1#[derive(serde::Serialize, serde::Deserialize)]
4#[serde(rename_all = "snake_case")]
5#[derive(Clone, PartialEq, ::prost::Message)]
6pub struct Filter {
7    #[prost(message, optional, tag = "1")]
9    pub name: ::core::option::Option<::prost::alloc::string::String>,
10    #[prost(map = "string, bool", tag = "2")]
12    pub selected_values: ::std::collections::HashMap<
13        ::prost::alloc::string::String,
14        bool,
15    >,
16}
17#[derive(serde::Serialize, serde::Deserialize)]
19#[serde(rename_all = "snake_case")]
20#[derive(Clone, PartialEq, ::prost::Message)]
21pub struct SelectedFilters {
22    #[prost(message, repeated, tag = "1")]
24    pub filters: ::prost::alloc::vec::Vec<Filter>,
25}
26#[derive(serde::Serialize, serde::Deserialize)]
27#[serde(rename_all = "snake_case")]
28#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
29#[repr(i32)]
30pub enum SyntaxType {
31    Unspecified = 0,
32    Lucene = 1,
33    Dataprime = 2,
34}
35impl SyntaxType {
36    pub fn as_str_name(&self) -> &'static str {
41        match self {
42            Self::Unspecified => "SYNTAX_TYPE_UNSPECIFIED",
43            Self::Lucene => "SYNTAX_TYPE_LUCENE",
44            Self::Dataprime => "SYNTAX_TYPE_DATAPRIME",
45        }
46    }
47    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
49        match value {
50            "SYNTAX_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
51            "SYNTAX_TYPE_LUCENE" => Some(Self::Lucene),
52            "SYNTAX_TYPE_DATAPRIME" => Some(Self::Dataprime),
53            _ => None,
54        }
55    }
56}
57#[derive(serde::Serialize, serde::Deserialize)]
59#[serde(rename_all = "snake_case")]
60#[derive(Clone, PartialEq, ::prost::Message)]
61pub struct SearchQuery {
62    #[prost(message, optional, tag = "1")]
64    pub query: ::core::option::Option<::prost::alloc::string::String>,
65    #[prost(enumeration = "SyntaxType", tag = "2")]
67    pub syntax_type: i32,
68}
69#[derive(serde::Serialize, serde::Deserialize)]
71#[serde(rename_all = "snake_case")]
72#[derive(Clone, PartialEq, ::prost::Message)]
73pub struct TimeSelection {
74    #[prost(oneof = "time_selection::SelectionType", tags = "1, 2")]
75    pub selection_type: ::core::option::Option<time_selection::SelectionType>,
76}
77pub mod time_selection {
79    #[derive(serde::Serialize, serde::Deserialize)]
80    #[serde(rename_all = "snake_case")]
81    #[derive(Clone, PartialEq, ::prost::Oneof)]
82    pub enum SelectionType {
83        #[prost(message, tag = "1")]
85        QuickSelection(super::QuickTimeSelection),
86        #[prost(message, tag = "2")]
88        CustomSelection(super::CustomTimeSelection),
89    }
90}
91#[derive(serde::Serialize, serde::Deserialize)]
93#[serde(rename_all = "snake_case")]
94#[derive(Clone, PartialEq, ::prost::Message)]
95pub struct QuickTimeSelection {
96    #[deprecated]
97    #[prost(message, optional, tag = "2")]
98    pub caption: ::core::option::Option<::prost::alloc::string::String>,
99    #[prost(uint32, tag = "3")]
100    pub seconds: u32,
101}
102#[derive(serde::Serialize, serde::Deserialize)]
104#[serde(rename_all = "snake_case")]
105#[derive(Clone, Copy, PartialEq, ::prost::Message)]
106pub struct CustomTimeSelection {
107    #[prost(message, optional, tag = "1")]
109    pub from_time: ::core::option::Option<::prost_wkt_types::Timestamp>,
110    #[prost(message, optional, tag = "2")]
112    pub to_time: ::core::option::Option<::prost_wkt_types::Timestamp>,
113}
114#[derive(serde::Serialize, serde::Deserialize)]
115#[serde(rename_all = "snake_case")]
116#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
117#[repr(i32)]
118pub enum ViewType {
119    Unspecified = 0,
120    Logs = 1,
121    Templates = 2,
122    ArchiveLogs = 3,
123    ArchiveTemplates = 4,
124}
125impl ViewType {
126    pub fn as_str_name(&self) -> &'static str {
131        match self {
132            Self::Unspecified => "VIEW_TYPE_UNSPECIFIED",
133            Self::Logs => "VIEW_TYPE_LOGS",
134            Self::Templates => "VIEW_TYPE_TEMPLATES",
135            Self::ArchiveLogs => "VIEW_TYPE_ARCHIVE_LOGS",
136            Self::ArchiveTemplates => "VIEW_TYPE_ARCHIVE_TEMPLATES",
137        }
138    }
139    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
141        match value {
142            "VIEW_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
143            "VIEW_TYPE_LOGS" => Some(Self::Logs),
144            "VIEW_TYPE_TEMPLATES" => Some(Self::Templates),
145            "VIEW_TYPE_ARCHIVE_LOGS" => Some(Self::ArchiveLogs),
146            "VIEW_TYPE_ARCHIVE_TEMPLATES" => Some(Self::ArchiveTemplates),
147            _ => None,
148        }
149    }
150}
151#[derive(serde::Serialize, serde::Deserialize)]
153#[serde(rename_all = "snake_case")]
154#[derive(Clone, PartialEq, ::prost::Message)]
155pub struct ViewFolder {
156    #[prost(message, optional, tag = "1")]
157    pub id: ::core::option::Option<::prost::alloc::string::String>,
158    #[prost(message, optional, tag = "2")]
159    pub name: ::core::option::Option<::prost::alloc::string::String>,
160}