risingwave_pb/
java_binding.rs

1// This file is @generated by prost-build.
2/// When `left` or `right` is none, it represents unbounded.
3#[derive(prost_helpers::AnyPB)]
4#[derive(Clone, PartialEq, ::prost::Message)]
5pub struct KeyRange {
6    #[prost(bytes = "vec", tag = "1")]
7    pub left: ::prost::alloc::vec::Vec<u8>,
8    #[prost(bytes = "vec", tag = "2")]
9    pub right: ::prost::alloc::vec::Vec<u8>,
10    #[prost(enumeration = "key_range::Bound", tag = "3")]
11    pub left_bound: i32,
12    #[prost(enumeration = "key_range::Bound", tag = "4")]
13    pub right_bound: i32,
14}
15/// Nested message and enum types in `KeyRange`.
16pub mod key_range {
17    #[derive(prost_helpers::AnyPB)]
18    #[derive(
19        Clone,
20        Copy,
21        Debug,
22        PartialEq,
23        Eq,
24        Hash,
25        PartialOrd,
26        Ord,
27        ::prost::Enumeration
28    )]
29    #[repr(i32)]
30    pub enum Bound {
31        Unspecified = 0,
32        Unbounded = 1,
33        Included = 2,
34        Excluded = 3,
35    }
36    impl Bound {
37        /// String value of the enum field names used in the ProtoBuf definition.
38        ///
39        /// The values are not transformed in any way and thus are considered stable
40        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
41        pub fn as_str_name(&self) -> &'static str {
42            match self {
43                Self::Unspecified => "UNSPECIFIED",
44                Self::Unbounded => "UNBOUNDED",
45                Self::Included => "INCLUDED",
46                Self::Excluded => "EXCLUDED",
47            }
48        }
49        /// Creates an enum from field names used in the ProtoBuf definition.
50        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
51            match value {
52                "UNSPECIFIED" => Some(Self::Unspecified),
53                "UNBOUNDED" => Some(Self::Unbounded),
54                "INCLUDED" => Some(Self::Included),
55                "EXCLUDED" => Some(Self::Excluded),
56                _ => None,
57            }
58        }
59    }
60}
61#[derive(prost_helpers::AnyPB)]
62#[derive(Clone, PartialEq, ::prost::Message)]
63pub struct ReadPlan {
64    #[prost(string, tag = "1")]
65    pub object_store_url: ::prost::alloc::string::String,
66    #[prost(string, tag = "2")]
67    pub data_dir: ::prost::alloc::string::String,
68    #[prost(message, optional, tag = "3")]
69    pub key_range: ::core::option::Option<KeyRange>,
70    #[prost(uint32, tag = "4")]
71    pub table_id: u32,
72    #[prost(uint64, tag = "5")]
73    pub epoch: u64,
74    #[prost(message, optional, tag = "6")]
75    pub version: ::core::option::Option<super::hummock::HummockVersion>,
76    #[prost(message, optional, tag = "7")]
77    pub table_catalog: ::core::option::Option<super::catalog::Table>,
78    #[prost(uint32, repeated, tag = "8")]
79    pub vnode_ids: ::prost::alloc::vec::Vec<u32>,
80    #[prost(bool, tag = "9")]
81    pub use_new_object_prefix_strategy: bool,
82}