risingwave_pb/sim/
secret.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
85
86
87
88
89
90
91
92
// This file is @generated by prost-build.
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecretMetaBackend {
    #[prost(bytes = "vec", tag = "1")]
    pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecretHashicropValutBackend {
    #[prost(string, tag = "1")]
    pub host: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub vault_token: ::prost::alloc::string::String,
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Secret {
    /// the message is stored in meta as encrypted bytes and is interpreted as bytes by catalog
    #[prost(oneof = "secret::SecretBackend", tags = "1, 2")]
    pub secret_backend: ::core::option::Option<secret::SecretBackend>,
}
/// Nested message and enum types in `Secret`.
pub mod secret {
    /// the message is stored in meta as encrypted bytes and is interpreted as bytes by catalog
    #[derive(prost_helpers::AnyPB)]
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum SecretBackend {
        #[prost(message, tag = "1")]
        Meta(super::SecretMetaBackend),
        #[prost(message, tag = "2")]
        HashicorpVault(super::SecretHashicropValutBackend),
    }
}
#[derive(prost_helpers::AnyPB)]
#[derive(Eq, Hash)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SecretRef {
    #[prost(uint32, tag = "1")]
    pub secret_id: u32,
    #[prost(enumeration = "secret_ref::RefAsType", tag = "2")]
    pub ref_as: i32,
}
/// Nested message and enum types in `SecretRef`.
pub mod secret_ref {
    #[derive(prost_helpers::AnyPB)]
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum RefAsType {
        Unspecified = 0,
        Text = 1,
        /// AS FILE
        File = 2,
    }
    impl RefAsType {
        /// 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 {
                RefAsType::Unspecified => "UNSPECIFIED",
                RefAsType::Text => "TEXT",
                RefAsType::File => "FILE",
            }
        }
        /// 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),
                "TEXT" => Some(Self::Text),
                "FILE" => Some(Self::File),
                _ => None,
            }
        }
    }
}