risingwave_pb/
java_binding.rs

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
// This file is @generated by prost-build.
/// When `left` or `right` is none, it represents unbounded.
#[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,
}
/// Nested message and enum types in `KeyRange`.
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 {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Bound::Unspecified => "UNSPECIFIED",
                Bound::Unbounded => "UNBOUNDED",
                Bound::Included => "INCLUDED",
                Bound::Excluded => "EXCLUDED",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        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,
}