1#[derive(prost_helpers::AnyPB)]
3#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4pub struct Status {
5 #[prost(enumeration = "status::Code", tag = "1")]
6 pub code: i32,
7 #[prost(string, tag = "2")]
8 pub message: ::prost::alloc::string::String,
9}
10pub mod status {
12 #[derive(prost_helpers::AnyPB)]
13 #[derive(
14 Clone,
15 Copy,
16 Debug,
17 PartialEq,
18 Eq,
19 Hash,
20 PartialOrd,
21 Ord,
22 ::prost::Enumeration
23 )]
24 #[repr(i32)]
25 pub enum Code {
26 Unspecified = 0,
27 Ok = 1,
28 UnknownWorker = 2,
29 }
30 impl Code {
31 pub fn as_str_name(&self) -> &'static str {
36 match self {
37 Self::Unspecified => "UNSPECIFIED",
38 Self::Ok => "OK",
39 Self::UnknownWorker => "UNKNOWN_WORKER",
40 }
41 }
42 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
44 match value {
45 "UNSPECIFIED" => Some(Self::Unspecified),
46 "OK" => Some(Self::Ok),
47 "UNKNOWN_WORKER" => Some(Self::UnknownWorker),
48 _ => None,
49 }
50 }
51 }
52}
53#[derive(prost_helpers::AnyPB)]
54#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
55pub struct HostAddress {
56 #[prost(string, tag = "1")]
57 pub host: ::prost::alloc::string::String,
58 #[prost(int32, tag = "2")]
59 pub port: i32,
60}
61#[derive(prost_helpers::AnyPB)]
63#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
64pub struct ActorInfo {
65 #[prost(uint32, tag = "1", wrapper = "crate::id::ActorId")]
66 pub actor_id: crate::id::ActorId,
67 #[prost(message, optional, tag = "2")]
68 pub host: ::core::option::Option<HostAddress>,
69 #[prost(uint64, tag = "3", wrapper = "crate::id::PartialGraphId")]
70 pub partial_graph_id: crate::id::PartialGraphId,
71}
72#[derive(prost_helpers::AnyPB)]
74#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
75pub struct ActorLocation {
76 #[prost(uint32, tag = "2", wrapper = "crate::id::WorkerId")]
77 pub worker_node_id: crate::id::WorkerId,
78}
79#[derive(prost_helpers::AnyPB)]
80#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
81pub struct WorkerNode {
82 #[prost(uint32, tag = "1", wrapper = "crate::id::WorkerId")]
83 pub id: crate::id::WorkerId,
84 #[prost(enumeration = "WorkerType", tag = "2")]
85 pub r#type: i32,
86 #[prost(message, optional, tag = "3")]
87 pub host: ::core::option::Option<HostAddress>,
88 #[prost(enumeration = "worker_node::State", tag = "4")]
89 pub state: i32,
90 #[prost(message, optional, tag = "6")]
91 pub property: ::core::option::Option<worker_node::Property>,
92 #[prost(uint32, optional, tag = "7")]
94 pub transactional_id: ::core::option::Option<u32>,
95 #[prost(message, optional, tag = "8")]
98 pub resource: ::core::option::Option<worker_node::Resource>,
99 #[prost(uint64, optional, tag = "9")]
103 pub started_at: ::core::option::Option<u64>,
104}
105pub mod worker_node {
107 #[derive(prost_helpers::AnyPB)]
109 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
110 pub struct Property {
111 #[prost(bool, tag = "1")]
112 pub is_streaming: bool,
113 #[prost(bool, tag = "2")]
114 pub is_serving: bool,
115 #[prost(string, tag = "4")]
117 pub internal_rpc_host_addr: ::prost::alloc::string::String,
118 #[prost(uint32, tag = "6")]
119 pub parallelism: u32,
120 #[prost(string, optional, tag = "7")]
122 pub resource_group: ::core::option::Option<::prost::alloc::string::String>,
123 #[prost(bool, tag = "8")]
125 pub is_iceberg_compactor: bool,
126 }
127 #[derive(prost_helpers::AnyPB)]
128 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
129 pub struct Resource {
130 #[prost(string, tag = "1")]
131 pub rw_version: ::prost::alloc::string::String,
132 #[prost(uint64, tag = "2")]
133 pub total_memory_bytes: u64,
134 #[prost(uint64, tag = "3")]
135 pub total_cpu_cores: u64,
136 #[prost(string, tag = "4")]
139 pub hostname: ::prost::alloc::string::String,
140 }
141 #[derive(prost_helpers::AnyPB)]
142 #[derive(
143 Clone,
144 Copy,
145 Debug,
146 PartialEq,
147 Eq,
148 Hash,
149 PartialOrd,
150 Ord,
151 ::prost::Enumeration
152 )]
153 #[repr(i32)]
154 pub enum State {
155 Unspecified = 0,
156 Starting = 1,
157 Running = 2,
158 }
159 impl State {
160 pub fn as_str_name(&self) -> &'static str {
165 match self {
166 Self::Unspecified => "UNSPECIFIED",
167 Self::Starting => "STARTING",
168 Self::Running => "RUNNING",
169 }
170 }
171 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
173 match value {
174 "UNSPECIFIED" => Some(Self::Unspecified),
175 "STARTING" => Some(Self::Starting),
176 "RUNNING" => Some(Self::Running),
177 _ => None,
178 }
179 }
180 }
181}
182#[derive(prost_helpers::AnyPB)]
183#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
184pub struct ClusterResource {
185 #[prost(uint64, tag = "1")]
186 pub total_memory_bytes: u64,
187 #[prost(uint64, tag = "2")]
188 pub total_cpu_cores: u64,
189}
190#[derive(prost_helpers::AnyPB)]
191#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
192pub struct Buffer {
193 #[prost(enumeration = "buffer::CompressionType", tag = "1")]
194 pub compression: i32,
195 #[prost(bytes = "vec", tag = "2")]
196 pub body: ::prost::alloc::vec::Vec<u8>,
197}
198pub mod buffer {
200 #[derive(prost_helpers::AnyPB)]
201 #[derive(
202 Clone,
203 Copy,
204 Debug,
205 PartialEq,
206 Eq,
207 Hash,
208 PartialOrd,
209 Ord,
210 ::prost::Enumeration
211 )]
212 #[repr(i32)]
213 pub enum CompressionType {
214 Unspecified = 0,
215 None = 1,
216 }
217 impl CompressionType {
218 pub fn as_str_name(&self) -> &'static str {
223 match self {
224 Self::Unspecified => "UNSPECIFIED",
225 Self::None => "NONE",
226 }
227 }
228 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
230 match value {
231 "UNSPECIFIED" => Some(Self::Unspecified),
232 "NONE" => Some(Self::None),
233 _ => None,
234 }
235 }
236 }
237}
238#[derive(prost_helpers::AnyPB)]
240#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
241pub struct WorkerSlotMapping {
242 #[prost(uint32, repeated, tag = "1")]
243 pub original_indices: ::prost::alloc::vec::Vec<u32>,
244 #[prost(uint64, repeated, tag = "2")]
245 pub data: ::prost::alloc::vec::Vec<u64>,
246}
247#[derive(prost_helpers::AnyPB)]
248#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
249pub struct BatchQueryCommittedEpoch {
250 #[prost(uint64, tag = "1")]
251 pub epoch: u64,
252 #[prost(uint64, tag = "2", wrapper = "crate::id::HummockVersionId")]
253 pub hummock_version_id: crate::id::HummockVersionId,
254}
255#[derive(prost_helpers::AnyPB)]
257#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
258pub struct BatchQueryLatestCommittedEpoch {
259 #[prost(uint64, tag = "1", wrapper = "crate::id::HummockVersionId")]
261 pub hummock_version_id: crate::id::HummockVersionId,
262}
263#[derive(prost_helpers::AnyPB)]
264#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
265pub struct BatchQueryEpoch {
266 #[prost(oneof = "batch_query_epoch::Epoch", tags = "1, 3, 4, 5")]
267 pub epoch: ::core::option::Option<batch_query_epoch::Epoch>,
268}
269pub mod batch_query_epoch {
271 #[derive(prost_helpers::AnyPB)]
272 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
273 pub enum Epoch {
274 #[prost(message, tag = "1")]
275 Committed(super::BatchQueryCommittedEpoch),
276 #[prost(uint64, tag = "3")]
277 Backup(u64),
278 #[prost(uint64, tag = "4")]
279 TimeTravel(u64),
280 #[prost(message, tag = "5")]
281 LatestCommitted(super::BatchQueryLatestCommittedEpoch),
282 }
283}
284#[derive(prost_helpers::AnyPB)]
285#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
286pub struct OrderType {
287 #[prost(enumeration = "Direction", tag = "1")]
288 pub direction: i32,
289 #[prost(enumeration = "NullsAre", tag = "2")]
290 pub nulls_are: i32,
291}
292#[derive(prost_helpers::AnyPB)]
294#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
295pub struct ColumnOrder {
296 #[prost(uint32, tag = "1")]
297 pub column_index: u32,
298 #[prost(message, optional, tag = "2")]
299 pub order_type: ::core::option::Option<OrderType>,
300}
301#[derive(prost_helpers::AnyPB)]
302#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
303pub struct Uint32Vector {
304 #[prost(uint32, repeated, tag = "1")]
305 pub data: ::prost::alloc::vec::Vec<u32>,
306}
307#[derive(prost_helpers::AnyPB)]
308#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
309pub struct OptionalUint32 {
310 #[prost(uint32, optional, tag = "1")]
311 pub value: ::core::option::Option<u32>,
312}
313#[derive(prost_helpers::AnyPB)]
314#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
315pub struct OptionalUint64 {
316 #[prost(uint64, optional, tag = "1")]
317 pub value: ::core::option::Option<u64>,
318}
319#[derive(prost_helpers::AnyPB)]
320#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
321#[repr(i32)]
322pub enum WorkerType {
323 Unspecified = 0,
324 Frontend = 1,
325 ComputeNode = 2,
326 RiseCtl = 3,
327 Compactor = 4,
328 Meta = 5,
329}
330impl WorkerType {
331 pub fn as_str_name(&self) -> &'static str {
336 match self {
337 Self::Unspecified => "WORKER_TYPE_UNSPECIFIED",
338 Self::Frontend => "WORKER_TYPE_FRONTEND",
339 Self::ComputeNode => "WORKER_TYPE_COMPUTE_NODE",
340 Self::RiseCtl => "WORKER_TYPE_RISE_CTL",
341 Self::Compactor => "WORKER_TYPE_COMPACTOR",
342 Self::Meta => "WORKER_TYPE_META",
343 }
344 }
345 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
347 match value {
348 "WORKER_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
349 "WORKER_TYPE_FRONTEND" => Some(Self::Frontend),
350 "WORKER_TYPE_COMPUTE_NODE" => Some(Self::ComputeNode),
351 "WORKER_TYPE_RISE_CTL" => Some(Self::RiseCtl),
352 "WORKER_TYPE_COMPACTOR" => Some(Self::Compactor),
353 "WORKER_TYPE_META" => Some(Self::Meta),
354 _ => None,
355 }
356 }
357}
358#[derive(prost_helpers::AnyPB)]
359#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
360#[repr(i32)]
361pub enum Direction {
362 Unspecified = 0,
363 Ascending = 1,
364 Descending = 2,
365}
366impl Direction {
367 pub fn as_str_name(&self) -> &'static str {
372 match self {
373 Self::Unspecified => "DIRECTION_UNSPECIFIED",
374 Self::Ascending => "DIRECTION_ASCENDING",
375 Self::Descending => "DIRECTION_DESCENDING",
376 }
377 }
378 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
380 match value {
381 "DIRECTION_UNSPECIFIED" => Some(Self::Unspecified),
382 "DIRECTION_ASCENDING" => Some(Self::Ascending),
383 "DIRECTION_DESCENDING" => Some(Self::Descending),
384 _ => None,
385 }
386 }
387}
388#[derive(prost_helpers::AnyPB)]
389#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
390#[repr(i32)]
391pub enum NullsAre {
392 Unspecified = 0,
393 Largest = 1,
394 Smallest = 2,
395}
396impl NullsAre {
397 pub fn as_str_name(&self) -> &'static str {
402 match self {
403 Self::Unspecified => "NULLS_ARE_UNSPECIFIED",
404 Self::Largest => "NULLS_ARE_LARGEST",
405 Self::Smallest => "NULLS_ARE_SMALLEST",
406 }
407 }
408 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
410 match value {
411 "NULLS_ARE_UNSPECIFIED" => Some(Self::Unspecified),
412 "NULLS_ARE_LARGEST" => Some(Self::Largest),
413 "NULLS_ARE_SMALLEST" => Some(Self::Smallest),
414 _ => None,
415 }
416 }
417}
418#[derive(prost_helpers::AnyPB)]
419#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
420#[repr(i32)]
421pub enum ObjectType {
422 Unspecified = 0,
423 Database = 1,
424 Schema = 2,
425 Table = 3,
426 Mview = 4,
427 Source = 5,
428 Sink = 6,
429 View = 7,
430 Index = 8,
431 Function = 9,
432 Connection = 10,
433 Subscription = 11,
434 Secret = 12,
435}
436impl ObjectType {
437 pub fn as_str_name(&self) -> &'static str {
442 match self {
443 Self::Unspecified => "UNSPECIFIED",
444 Self::Database => "DATABASE",
445 Self::Schema => "SCHEMA",
446 Self::Table => "TABLE",
447 Self::Mview => "MVIEW",
448 Self::Source => "SOURCE",
449 Self::Sink => "SINK",
450 Self::View => "VIEW",
451 Self::Index => "INDEX",
452 Self::Function => "FUNCTION",
453 Self::Connection => "CONNECTION",
454 Self::Subscription => "SUBSCRIPTION",
455 Self::Secret => "SECRET",
456 }
457 }
458 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
460 match value {
461 "UNSPECIFIED" => Some(Self::Unspecified),
462 "DATABASE" => Some(Self::Database),
463 "SCHEMA" => Some(Self::Schema),
464 "TABLE" => Some(Self::Table),
465 "MVIEW" => Some(Self::Mview),
466 "SOURCE" => Some(Self::Source),
467 "SINK" => Some(Self::Sink),
468 "VIEW" => Some(Self::View),
469 "INDEX" => Some(Self::Index),
470 "FUNCTION" => Some(Self::Function),
471 "CONNECTION" => Some(Self::Connection),
472 "SUBSCRIPTION" => Some(Self::Subscription),
473 "SECRET" => Some(Self::Secret),
474 _ => None,
475 }
476 }
477}
478#[derive(prost_helpers::AnyPB)]
479#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
480#[repr(i32)]
481pub enum DistanceType {
482 Unspecified = 0,
483 L1 = 1,
484 L2Sqr = 2,
485 Cosine = 3,
486 InnerProduct = 4,
487}
488impl DistanceType {
489 pub fn as_str_name(&self) -> &'static str {
494 match self {
495 Self::Unspecified => "DISTANCE_TYPE_UNSPECIFIED",
496 Self::L1 => "DISTANCE_TYPE_L1",
497 Self::L2Sqr => "DISTANCE_TYPE_L2_SQR",
498 Self::Cosine => "DISTANCE_TYPE_COSINE",
499 Self::InnerProduct => "DISTANCE_TYPE_INNER_PRODUCT",
500 }
501 }
502 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
504 match value {
505 "DISTANCE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
506 "DISTANCE_TYPE_L1" => Some(Self::L1),
507 "DISTANCE_TYPE_L2_SQR" => Some(Self::L2Sqr),
508 "DISTANCE_TYPE_COSINE" => Some(Self::Cosine),
509 "DISTANCE_TYPE_INNER_PRODUCT" => Some(Self::InnerProduct),
510 _ => None,
511 }
512 }
513}
514#[derive(prost_helpers::AnyPB)]
515#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
516#[repr(i32)]
517pub enum ThrottleType {
518 Unspecified = 0,
519 Dml = 1,
520 Backfill = 2,
521 Source = 3,
522 Sink = 4,
523}
524impl ThrottleType {
525 pub fn as_str_name(&self) -> &'static str {
530 match self {
531 Self::Unspecified => "THROTTLE_TYPE_UNSPECIFIED",
532 Self::Dml => "THROTTLE_TYPE_DML",
533 Self::Backfill => "THROTTLE_TYPE_BACKFILL",
534 Self::Source => "THROTTLE_TYPE_SOURCE",
535 Self::Sink => "THROTTLE_TYPE_SINK",
536 }
537 }
538 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
540 match value {
541 "THROTTLE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
542 "THROTTLE_TYPE_DML" => Some(Self::Dml),
543 "THROTTLE_TYPE_BACKFILL" => Some(Self::Backfill),
544 "THROTTLE_TYPE_SOURCE" => Some(Self::Source),
545 "THROTTLE_TYPE_SINK" => Some(Self::Sink),
546 _ => None,
547 }
548 }
549}