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
// This file is @generated by prost-build.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Disjunction {
    #[prost(message, repeated, tag = "1")]
    pub conjunctions: ::prost::alloc::vec::Vec<Conjunction>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Conjunction {
    #[prost(message, repeated, tag = "1")]
    pub predicates: ::prost::alloc::vec::Vec<Predicate>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Predicate {
    #[prost(message, optional, tag = "1")]
    pub lhs: ::core::option::Option<super::dtype::FieldPath>,
    #[prost(enumeration = "Operator", tag = "2")]
    pub op: i32,
    #[prost(oneof = "predicate::Rhs", tags = "3, 4")]
    pub rhs: ::core::option::Option<predicate::Rhs>,
}
/// Nested message and enum types in `Predicate`.
pub mod predicate {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Rhs {
        #[prost(message, tag = "3")]
        Field(super::super::dtype::FieldPath),
        #[prost(message, tag = "4")]
        Scalar(super::super::scalar::Scalar),
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Operator {
    Unknown = 0,
    Eq = 1,
    Neq = 2,
    Lt = 3,
    Lte = 4,
    Gt = 5,
    Gte = 6,
}
impl Operator {
    /// 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 {
            Operator::Unknown => "UNKNOWN",
            Operator::Eq => "EQ",
            Operator::Neq => "NEQ",
            Operator::Lt => "LT",
            Operator::Lte => "LTE",
            Operator::Gt => "GT",
            Operator::Gte => "GTE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "UNKNOWN" => Some(Self::Unknown),
            "EQ" => Some(Self::Eq),
            "NEQ" => Some(Self::Neq),
            "LT" => Some(Self::Lt),
            "LTE" => Some(Self::Lte),
            "GT" => Some(Self::Gt),
            "GTE" => Some(Self::Gte),
            _ => None,
        }
    }
}