risingwave_pb/
java_binding.rs#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KeyRange {
#[prost(bytes = "vec", tag = "1")]
pub left: ::prost::alloc::vec::Vec<u8>,
#[prost(bytes = "vec", tag = "2")]
pub right: ::prost::alloc::vec::Vec<u8>,
#[prost(enumeration = "key_range::Bound", tag = "3")]
pub left_bound: i32,
#[prost(enumeration = "key_range::Bound", tag = "4")]
pub right_bound: i32,
}
pub mod key_range {
#[derive(prost_helpers::AnyPB)]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Bound {
Unspecified = 0,
Unbounded = 1,
Included = 2,
Excluded = 3,
}
impl Bound {
pub fn as_str_name(&self) -> &'static str {
match self {
Bound::Unspecified => "UNSPECIFIED",
Bound::Unbounded => "UNBOUNDED",
Bound::Included => "INCLUDED",
Bound::Excluded => "EXCLUDED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNSPECIFIED" => Some(Self::Unspecified),
"UNBOUNDED" => Some(Self::Unbounded),
"INCLUDED" => Some(Self::Included),
"EXCLUDED" => Some(Self::Excluded),
_ => None,
}
}
}
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReadPlan {
#[prost(string, tag = "1")]
pub object_store_url: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub data_dir: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub key_range: ::core::option::Option<KeyRange>,
#[prost(uint32, tag = "4")]
pub table_id: u32,
#[prost(uint64, tag = "5")]
pub epoch: u64,
#[prost(message, optional, tag = "6")]
pub version: ::core::option::Option<super::hummock::HummockVersion>,
#[prost(message, optional, tag = "7")]
pub table_catalog: ::core::option::Option<super::catalog::Table>,
#[prost(uint32, repeated, tag = "8")]
pub vnode_ids: ::prost::alloc::vec::Vec<u32>,
#[prost(bool, tag = "9")]
pub use_new_object_prefix_strategy: bool,
}