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
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GeneratorResult {
    #[prost(oneof="generator_result::Value", tags="1, 2, 3")]
    pub value: ::std::option::Option<generator_result::Value>,
}
pub mod generator_result {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Value {
        #[prost(string, tag="1")]
        Guid(std::string::String),
        #[prost(uint64, tag="2")]
        SequenceNo(u64),
        #[prost(uint32, tag="3")]
        RandomNo(u32),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GeneratorRequest {
    #[prost(enumeration="GeneratorType", tag="1")]
    pub gentype: i32,
    #[prost(uint32, tag="2")]
    pub min: u32,
    /// only used for random
    #[prost(uint32, tag="3")]
    pub max: u32,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum GeneratorType {
    None = 0,
    Guid = 1,
    Sequence = 2,
    Random = 3,
}