cx_api/generated/
com.coralogixapis.dashboards.v1.ast.variables_v2.rs

1// This file is @generated by prost-build.
2#[derive(serde::Serialize, serde::Deserialize)]
3#[serde(rename_all = "snake_case")]
4#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5#[repr(i32)]
6pub enum VariableDisplayTypeV2 {
7    Unspecified = 0,
8    LabelValue = 1,
9    Value = 2,
10    Nothing = 3,
11}
12impl VariableDisplayTypeV2 {
13    /// String value of the enum field names used in the ProtoBuf definition.
14    ///
15    /// The values are not transformed in any way and thus are considered stable
16    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
17    pub fn as_str_name(&self) -> &'static str {
18        match self {
19            Self::Unspecified => "VARIABLE_DISPLAY_TYPE_V2_UNSPECIFIED",
20            Self::LabelValue => "VARIABLE_DISPLAY_TYPE_V2_LABEL_VALUE",
21            Self::Value => "VARIABLE_DISPLAY_TYPE_V2_VALUE",
22            Self::Nothing => "VARIABLE_DISPLAY_TYPE_V2_NOTHING",
23        }
24    }
25    /// Creates an enum from field names used in the ProtoBuf definition.
26    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
27        match value {
28            "VARIABLE_DISPLAY_TYPE_V2_UNSPECIFIED" => Some(Self::Unspecified),
29            "VARIABLE_DISPLAY_TYPE_V2_LABEL_VALUE" => Some(Self::LabelValue),
30            "VARIABLE_DISPLAY_TYPE_V2_VALUE" => Some(Self::Value),
31            "VARIABLE_DISPLAY_TYPE_V2_NOTHING" => Some(Self::Nothing),
32            _ => None,
33        }
34    }
35}
36#[derive(serde::Serialize, serde::Deserialize)]
37#[serde(rename_all = "snake_case")]
38#[derive(Clone, PartialEq, ::prost::Message)]
39pub struct VariableSourceV2 {
40    #[prost(oneof = "variable_source_v2::Value", tags = "1, 2, 3")]
41    pub value: ::core::option::Option<variable_source_v2::Value>,
42}
43/// Nested message and enum types in `VariableSourceV2`.
44pub mod variable_source_v2 {
45    #[derive(serde::Serialize, serde::Deserialize)]
46    #[serde(rename_all = "snake_case")]
47    #[derive(Clone, PartialEq, ::prost::Message)]
48    pub struct TextboxSource {
49        #[prost(message, optional, tag = "1")]
50        pub default_value: ::core::option::Option<textbox_source::TextboxDefaultValue>,
51    }
52    /// Nested message and enum types in `TextboxSource`.
53    pub mod textbox_source {
54        #[derive(serde::Serialize, serde::Deserialize)]
55        #[serde(rename_all = "snake_case")]
56        #[derive(Clone, PartialEq, ::prost::Message)]
57        pub struct TextboxDefaultValue {
58            #[prost(
59                oneof = "textbox_default_value::Value",
60                tags = "1, 2, 3, 4, 5, 6, 7"
61            )]
62            pub value: ::core::option::Option<textbox_default_value::Value>,
63        }
64        /// Nested message and enum types in `TextboxDefaultValue`.
65        pub mod textbox_default_value {
66            #[derive(serde::Serialize, serde::Deserialize)]
67            #[serde(rename_all = "snake_case")]
68            #[derive(Clone, PartialEq, ::prost::Message)]
69            pub struct TextboxDefaultStringValue {
70                #[prost(message, optional, tag = "1")]
71                pub value: ::core::option::Option<::prost::alloc::string::String>,
72            }
73            #[derive(serde::Serialize, serde::Deserialize)]
74            #[serde(rename_all = "snake_case")]
75            #[derive(Clone, Copy, PartialEq, ::prost::Message)]
76            pub struct TextboxDefaultNumericValue {
77                #[prost(message, optional, tag = "1")]
78                pub value: ::core::option::Option<f32>,
79                #[prost(message, optional, tag = "2")]
80                pub min: ::core::option::Option<f32>,
81                #[prost(message, optional, tag = "3")]
82                pub max: ::core::option::Option<f32>,
83                #[prost(message, optional, tag = "4")]
84                pub is_integer: ::core::option::Option<bool>,
85            }
86            #[derive(serde::Serialize, serde::Deserialize)]
87            #[serde(rename_all = "snake_case")]
88            #[derive(Clone, PartialEq, ::prost::Message)]
89            pub struct TextboxDefaultLuceneValue {
90                #[prost(message, optional, tag = "1")]
91                pub value: ::core::option::Option<::prost::alloc::string::String>,
92                #[prost(
93                    enumeration = "super::super::super::super::super::common::DataModeType",
94                    tag = "2"
95                )]
96                pub data_mode_type: i32,
97            }
98            #[derive(serde::Serialize, serde::Deserialize)]
99            #[serde(rename_all = "snake_case")]
100            #[derive(Clone, PartialEq, ::prost::Message)]
101            pub struct TextboxDefaultRegexValue {
102                #[prost(message, optional, tag = "1")]
103                pub value: ::core::option::Option<::prost::alloc::string::String>,
104            }
105            #[derive(serde::Serialize, serde::Deserialize)]
106            #[serde(rename_all = "snake_case")]
107            #[derive(Clone, PartialEq, ::prost::Message)]
108            pub struct TextboxDefaultIntervalValue {
109                #[prost(message, optional, tag = "1")]
110                pub value: ::core::option::Option<::prost::alloc::string::String>,
111            }
112            #[derive(serde::Serialize, serde::Deserialize)]
113            #[serde(rename_all = "snake_case")]
114            #[derive(Clone, PartialEq, ::prost::Oneof)]
115            pub enum Value {
116                #[prost(message, tag = "1")]
117                SingleString(::prost::alloc::string::String),
118                #[prost(message, tag = "2")]
119                SingleNumeric(f32),
120                #[prost(message, tag = "3")]
121                DefaultStringValue(TextboxDefaultStringValue),
122                #[prost(message, tag = "4")]
123                DefaultNumericValue(TextboxDefaultNumericValue),
124                #[prost(message, tag = "5")]
125                DefaultLuceneValue(TextboxDefaultLuceneValue),
126                #[prost(message, tag = "6")]
127                DefaultRegexValue(TextboxDefaultRegexValue),
128                #[prost(message, tag = "7")]
129                DefaultIntervalValue(TextboxDefaultIntervalValue),
130            }
131        }
132    }
133    #[derive(serde::Serialize, serde::Deserialize)]
134    #[serde(rename_all = "snake_case")]
135    #[derive(Clone, PartialEq, ::prost::Message)]
136    pub struct StaticSource {
137        #[prost(message, repeated, tag = "1")]
138        pub values: ::prost::alloc::vec::Vec<static_source::ValueLabel>,
139        #[prost(enumeration = "super::super::super::common::OrderDirection", tag = "2")]
140        pub values_order_direction: i32,
141        #[prost(message, optional, tag = "3")]
142        pub all_option: ::core::option::Option<AllOption>,
143    }
144    /// Nested message and enum types in `StaticSource`.
145    pub mod static_source {
146        #[derive(serde::Serialize, serde::Deserialize)]
147        #[serde(rename_all = "snake_case")]
148        #[derive(Clone, PartialEq, ::prost::Message)]
149        pub struct ValueLabel {
150            #[prost(message, optional, tag = "1")]
151            pub value: ::core::option::Option<::prost::alloc::string::String>,
152            #[prost(message, optional, tag = "2")]
153            pub label: ::core::option::Option<::prost::alloc::string::String>,
154            #[prost(message, optional, tag = "3")]
155            pub is_default: ::core::option::Option<bool>,
156        }
157    }
158    #[derive(serde::Serialize, serde::Deserialize)]
159    #[serde(rename_all = "snake_case")]
160    #[derive(Clone, PartialEq, ::prost::Message)]
161    pub struct QuerySource {
162        #[prost(enumeration = "super::super::super::common::OrderDirection", tag = "5")]
163        pub values_order_direction: i32,
164        #[prost(enumeration = "RefreshStrategy", tag = "6")]
165        pub refresh_strategy: i32,
166        #[prost(message, optional, tag = "7")]
167        pub value_display_options: ::core::option::Option<ValueDisplayOptions>,
168        #[prost(message, optional, tag = "8")]
169        pub all_option: ::core::option::Option<AllOption>,
170        #[prost(oneof = "query_source::Value", tags = "1, 2, 3, 4")]
171        pub value: ::core::option::Option<query_source::Value>,
172    }
173    /// Nested message and enum types in `QuerySource`.
174    pub mod query_source {
175        #[derive(serde::Serialize, serde::Deserialize)]
176        #[serde(rename_all = "snake_case")]
177        #[derive(Clone, PartialEq, ::prost::Message)]
178        pub struct LogsQuery {
179            #[prost(message, optional, tag = "1")]
180            pub r#type: ::core::option::Option<logs_query::Type>,
181        }
182        /// Nested message and enum types in `LogsQuery`.
183        pub mod logs_query {
184            #[derive(serde::Serialize, serde::Deserialize)]
185            #[serde(rename_all = "snake_case")]
186            #[derive(Clone, PartialEq, ::prost::Message)]
187            pub struct Type {
188                #[prost(oneof = "r#type::Value", tags = "1, 2")]
189                pub value: ::core::option::Option<r#type::Value>,
190            }
191            /// Nested message and enum types in `Type`.
192            pub mod r#type {
193                #[derive(serde::Serialize, serde::Deserialize)]
194                #[serde(rename_all = "snake_case")]
195                #[derive(Clone, PartialEq, ::prost::Message)]
196                pub struct FieldName {
197                    #[prost(message, optional, tag = "1")]
198                    pub log_regex: ::core::option::Option<
199                        ::prost::alloc::string::String,
200                    >,
201                }
202                #[derive(serde::Serialize, serde::Deserialize)]
203                #[serde(rename_all = "snake_case")]
204                #[derive(Clone, PartialEq, ::prost::Message)]
205                pub struct FieldValue {
206                    #[prost(message, optional, tag = "3")]
207                    pub observation_field: ::core::option::Option<
208                        super::super::super::super::super::super::common::ObservationField,
209                    >,
210                }
211                #[derive(serde::Serialize, serde::Deserialize)]
212                #[serde(rename_all = "snake_case")]
213                #[derive(Clone, PartialEq, ::prost::Oneof)]
214                pub enum Value {
215                    #[prost(message, tag = "1")]
216                    FieldName(FieldName),
217                    #[prost(message, tag = "2")]
218                    FieldValue(FieldValue),
219                }
220            }
221        }
222        #[derive(serde::Serialize, serde::Deserialize)]
223        #[serde(rename_all = "snake_case")]
224        #[derive(Clone, PartialEq, ::prost::Message)]
225        pub struct SpansQuery {
226            #[prost(message, optional, tag = "1")]
227            pub r#type: ::core::option::Option<spans_query::Type>,
228        }
229        /// Nested message and enum types in `SpansQuery`.
230        pub mod spans_query {
231            #[derive(serde::Serialize, serde::Deserialize)]
232            #[serde(rename_all = "snake_case")]
233            #[derive(Clone, PartialEq, ::prost::Message)]
234            pub struct Type {
235                #[prost(oneof = "r#type::Value", tags = "1, 2")]
236                pub value: ::core::option::Option<r#type::Value>,
237            }
238            /// Nested message and enum types in `Type`.
239            pub mod r#type {
240                #[derive(serde::Serialize, serde::Deserialize)]
241                #[serde(rename_all = "snake_case")]
242                #[derive(Clone, PartialEq, ::prost::Message)]
243                pub struct FieldName {
244                    #[prost(message, optional, tag = "1")]
245                    pub span_regex: ::core::option::Option<
246                        ::prost::alloc::string::String,
247                    >,
248                }
249                #[derive(serde::Serialize, serde::Deserialize)]
250                #[serde(rename_all = "snake_case")]
251                #[derive(Clone, PartialEq, ::prost::Message)]
252                pub struct FieldValue {
253                    #[prost(message, optional, tag = "1")]
254                    pub value: ::core::option::Option<
255                        super::super::super::super::super::super::common::SpanField,
256                    >,
257                    #[prost(message, optional, tag = "2")]
258                    pub observation_field: ::core::option::Option<
259                        super::super::super::super::super::super::common::ObservationField,
260                    >,
261                }
262                #[derive(serde::Serialize, serde::Deserialize)]
263                #[serde(rename_all = "snake_case")]
264                #[derive(Clone, PartialEq, ::prost::Oneof)]
265                pub enum Value {
266                    #[prost(message, tag = "1")]
267                    FieldName(FieldName),
268                    #[prost(message, tag = "2")]
269                    FieldValue(FieldValue),
270                }
271            }
272        }
273        #[derive(serde::Serialize, serde::Deserialize)]
274        #[serde(rename_all = "snake_case")]
275        #[derive(Clone, PartialEq, ::prost::Message)]
276        pub struct MetricsQuery {
277            #[prost(message, optional, tag = "1")]
278            pub r#type: ::core::option::Option<metrics_query::Type>,
279        }
280        /// Nested message and enum types in `MetricsQuery`.
281        pub mod metrics_query {
282            #[derive(serde::Serialize, serde::Deserialize)]
283            #[serde(rename_all = "snake_case")]
284            #[derive(Clone, PartialEq, ::prost::Message)]
285            pub struct Type {
286                #[prost(oneof = "r#type::Value", tags = "1, 2, 3")]
287                pub value: ::core::option::Option<r#type::Value>,
288            }
289            /// Nested message and enum types in `Type`.
290            pub mod r#type {
291                #[derive(serde::Serialize, serde::Deserialize)]
292                #[serde(rename_all = "snake_case")]
293                #[derive(Clone, PartialEq, ::prost::Message)]
294                pub struct MetricName {
295                    #[prost(message, optional, tag = "1")]
296                    pub metric_regex: ::core::option::Option<
297                        ::prost::alloc::string::String,
298                    >,
299                }
300                #[derive(serde::Serialize, serde::Deserialize)]
301                #[serde(rename_all = "snake_case")]
302                #[derive(Clone, PartialEq, ::prost::Message)]
303                pub struct LabelName {
304                    #[prost(message, optional, tag = "1")]
305                    pub metric_regex: ::core::option::Option<
306                        ::prost::alloc::string::String,
307                    >,
308                }
309                #[derive(serde::Serialize, serde::Deserialize)]
310                #[serde(rename_all = "snake_case")]
311                #[derive(Clone, PartialEq, ::prost::Message)]
312                pub struct LabelValue {
313                    #[prost(message, optional, tag = "1")]
314                    pub metric_name: ::core::option::Option<super::StringOrVariable>,
315                    #[prost(message, optional, tag = "2")]
316                    pub label_name: ::core::option::Option<super::StringOrVariable>,
317                    #[prost(message, repeated, tag = "3")]
318                    pub label_filters: ::prost::alloc::vec::Vec<
319                        super::MetricsLabelFilter,
320                    >,
321                }
322                #[derive(serde::Serialize, serde::Deserialize)]
323                #[serde(rename_all = "snake_case")]
324                #[derive(Clone, PartialEq, ::prost::Oneof)]
325                pub enum Value {
326                    #[prost(message, tag = "1")]
327                    MetricName(MetricName),
328                    #[prost(message, tag = "2")]
329                    LabelName(LabelName),
330                    #[prost(message, tag = "3")]
331                    LabelValue(LabelValue),
332                }
333            }
334            #[derive(serde::Serialize, serde::Deserialize)]
335            #[serde(rename_all = "snake_case")]
336            #[derive(Clone, PartialEq, ::prost::Message)]
337            pub struct StringOrVariable {
338                #[prost(oneof = "string_or_variable::Value", tags = "1, 2")]
339                pub value: ::core::option::Option<string_or_variable::Value>,
340            }
341            /// Nested message and enum types in `StringOrVariable`.
342            pub mod string_or_variable {
343                #[derive(serde::Serialize, serde::Deserialize)]
344                #[serde(rename_all = "snake_case")]
345                #[derive(Clone, PartialEq, ::prost::Oneof)]
346                pub enum Value {
347                    #[prost(message, tag = "1")]
348                    StringValue(::prost::alloc::string::String),
349                    #[prost(message, tag = "2")]
350                    VariableName(::prost::alloc::string::String),
351                }
352            }
353            #[derive(serde::Serialize, serde::Deserialize)]
354            #[serde(rename_all = "snake_case")]
355            #[derive(Clone, PartialEq, ::prost::Message)]
356            pub struct MetricsLabelFilter {
357                #[prost(message, optional, tag = "1")]
358                pub metric: ::core::option::Option<StringOrVariable>,
359                #[prost(message, optional, tag = "2")]
360                pub label: ::core::option::Option<StringOrVariable>,
361                #[prost(message, optional, tag = "3")]
362                pub operator: ::core::option::Option<Operator>,
363            }
364            #[derive(serde::Serialize, serde::Deserialize)]
365            #[serde(rename_all = "snake_case")]
366            #[derive(Clone, PartialEq, ::prost::Message)]
367            pub struct Operator {
368                #[prost(oneof = "operator::Value", tags = "1, 2")]
369                pub value: ::core::option::Option<operator::Value>,
370            }
371            /// Nested message and enum types in `Operator`.
372            pub mod operator {
373                #[derive(serde::Serialize, serde::Deserialize)]
374                #[serde(rename_all = "snake_case")]
375                #[derive(Clone, PartialEq, ::prost::Oneof)]
376                pub enum Value {
377                    #[prost(message, tag = "1")]
378                    Equals(super::Equals),
379                    #[prost(message, tag = "2")]
380                    NotEquals(super::NotEquals),
381                }
382            }
383            #[derive(serde::Serialize, serde::Deserialize)]
384            #[serde(rename_all = "snake_case")]
385            #[derive(Clone, PartialEq, ::prost::Message)]
386            pub struct Equals {
387                #[prost(message, optional, tag = "1")]
388                pub selection: ::core::option::Option<Selection>,
389            }
390            #[derive(serde::Serialize, serde::Deserialize)]
391            #[serde(rename_all = "snake_case")]
392            #[derive(Clone, PartialEq, ::prost::Message)]
393            pub struct NotEquals {
394                #[prost(message, optional, tag = "1")]
395                pub selection: ::core::option::Option<Selection>,
396            }
397            #[derive(serde::Serialize, serde::Deserialize)]
398            #[serde(rename_all = "snake_case")]
399            #[derive(Clone, PartialEq, ::prost::Message)]
400            pub struct Selection {
401                #[prost(oneof = "selection::Value", tags = "1")]
402                pub value: ::core::option::Option<selection::Value>,
403            }
404            /// Nested message and enum types in `Selection`.
405            pub mod selection {
406                #[derive(serde::Serialize, serde::Deserialize)]
407                #[serde(rename_all = "snake_case")]
408                #[derive(Clone, PartialEq, ::prost::Message)]
409                pub struct ListSelection {
410                    #[prost(message, repeated, tag = "1")]
411                    pub values: ::prost::alloc::vec::Vec<super::StringOrVariable>,
412                }
413                #[derive(serde::Serialize, serde::Deserialize)]
414                #[serde(rename_all = "snake_case")]
415                #[derive(Clone, PartialEq, ::prost::Oneof)]
416                pub enum Value {
417                    #[prost(message, tag = "1")]
418                    List(ListSelection),
419                }
420            }
421        }
422        #[derive(serde::Serialize, serde::Deserialize)]
423        #[serde(rename_all = "snake_case")]
424        #[derive(Clone, PartialEq, ::prost::Message)]
425        pub struct DataprimeQuery {
426            #[prost(message, optional, tag = "1")]
427            pub r#type: ::core::option::Option<dataprime_query::Type>,
428        }
429        /// Nested message and enum types in `DataprimeQuery`.
430        pub mod dataprime_query {
431            #[derive(serde::Serialize, serde::Deserialize)]
432            #[serde(rename_all = "snake_case")]
433            #[derive(Clone, PartialEq, ::prost::Message)]
434            pub struct Type {
435                #[prost(oneof = "r#type::Value", tags = "1")]
436                pub value: ::core::option::Option<r#type::Value>,
437            }
438            /// Nested message and enum types in `Type`.
439            pub mod r#type {
440                #[derive(serde::Serialize, serde::Deserialize)]
441                #[serde(rename_all = "snake_case")]
442                #[derive(Clone, PartialEq, ::prost::Message)]
443                pub struct QueryText {
444                    #[prost(message, optional, tag = "1")]
445                    pub query: ::core::option::Option<
446                        super::super::super::super::super::super::common::DataprimeQuery,
447                    >,
448                    #[prost(
449                        enumeration = "super::super::super::super::super::super::common::DataModeType",
450                        tag = "2"
451                    )]
452                    pub data_mode_type: i32,
453                }
454                #[derive(serde::Serialize, serde::Deserialize)]
455                #[serde(rename_all = "snake_case")]
456                #[derive(Clone, PartialEq, ::prost::Oneof)]
457                pub enum Value {
458                    #[prost(message, tag = "1")]
459                    QueryText(QueryText),
460                }
461            }
462        }
463        #[derive(serde::Serialize, serde::Deserialize)]
464        #[serde(rename_all = "snake_case")]
465        #[derive(Clone, PartialEq, ::prost::Oneof)]
466        pub enum Value {
467            #[prost(message, tag = "1")]
468            LogsQuery(LogsQuery),
469            #[prost(message, tag = "2")]
470            MetricsQuery(MetricsQuery),
471            #[prost(message, tag = "3")]
472            SpansQuery(SpansQuery),
473            #[prost(message, tag = "4")]
474            DataprimeQuery(DataprimeQuery),
475        }
476    }
477    #[derive(serde::Serialize, serde::Deserialize)]
478    #[serde(rename_all = "snake_case")]
479    #[derive(Clone, PartialEq, ::prost::Message)]
480    pub struct ValueDisplayOptions {
481        #[prost(message, optional, tag = "1")]
482        pub value_regex: ::core::option::Option<::prost::alloc::string::String>,
483        #[prost(message, optional, tag = "2")]
484        pub label_regex: ::core::option::Option<::prost::alloc::string::String>,
485    }
486    #[derive(serde::Serialize, serde::Deserialize)]
487    #[serde(rename_all = "snake_case")]
488    #[derive(Clone, PartialEq, ::prost::Message)]
489    pub struct AllOption {
490        #[prost(message, optional, tag = "1")]
491        pub include_all: ::core::option::Option<bool>,
492        #[prost(message, optional, tag = "2")]
493        pub label: ::core::option::Option<::prost::alloc::string::String>,
494    }
495    #[derive(serde::Serialize, serde::Deserialize)]
496    #[serde(rename_all = "snake_case")]
497    #[derive(
498        Clone,
499        Copy,
500        Debug,
501        PartialEq,
502        Eq,
503        Hash,
504        PartialOrd,
505        Ord,
506        ::prost::Enumeration
507    )]
508    #[repr(i32)]
509    pub enum RefreshStrategy {
510        Unspecified = 0,
511        OnDashboardLoad = 1,
512        OnTimeFrameChange = 2,
513    }
514    impl RefreshStrategy {
515        /// String value of the enum field names used in the ProtoBuf definition.
516        ///
517        /// The values are not transformed in any way and thus are considered stable
518        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
519        pub fn as_str_name(&self) -> &'static str {
520            match self {
521                Self::Unspecified => "REFRESH_STRATEGY_UNSPECIFIED",
522                Self::OnDashboardLoad => "REFRESH_STRATEGY_ON_DASHBOARD_LOAD",
523                Self::OnTimeFrameChange => "REFRESH_STRATEGY_ON_TIME_FRAME_CHANGE",
524            }
525        }
526        /// Creates an enum from field names used in the ProtoBuf definition.
527        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
528            match value {
529                "REFRESH_STRATEGY_UNSPECIFIED" => Some(Self::Unspecified),
530                "REFRESH_STRATEGY_ON_DASHBOARD_LOAD" => Some(Self::OnDashboardLoad),
531                "REFRESH_STRATEGY_ON_TIME_FRAME_CHANGE" => Some(Self::OnTimeFrameChange),
532                _ => None,
533            }
534        }
535    }
536    #[derive(serde::Serialize, serde::Deserialize)]
537    #[serde(rename_all = "snake_case")]
538    #[derive(Clone, PartialEq, ::prost::Oneof)]
539    pub enum Value {
540        #[prost(message, tag = "1")]
541        Static(StaticSource),
542        #[prost(message, tag = "2")]
543        Query(QuerySource),
544        #[prost(message, tag = "3")]
545        Textbox(TextboxSource),
546    }
547}
548#[derive(serde::Serialize, serde::Deserialize)]
549#[serde(rename_all = "snake_case")]
550#[derive(Clone, PartialEq, ::prost::Message)]
551pub struct VariableValueV2 {
552    #[prost(oneof = "variable_value_v2::Value", tags = "1, 2, 3, 4, 5, 6")]
553    pub value: ::core::option::Option<variable_value_v2::Value>,
554}
555/// Nested message and enum types in `VariableValueV2`.
556pub mod variable_value_v2 {
557    #[derive(serde::Serialize, serde::Deserialize)]
558    #[serde(rename_all = "snake_case")]
559    #[derive(Clone, PartialEq, ::prost::Message)]
560    pub struct MultiStringValue {
561        #[prost(oneof = "multi_string_value::Value", tags = "1, 2")]
562        pub value: ::core::option::Option<multi_string_value::Value>,
563    }
564    /// Nested message and enum types in `MultiStringValue`.
565    pub mod multi_string_value {
566        #[derive(serde::Serialize, serde::Deserialize)]
567        #[serde(rename_all = "snake_case")]
568        #[derive(Clone, Copy, PartialEq, ::prost::Message)]
569        pub struct AllValue {}
570        #[derive(serde::Serialize, serde::Deserialize)]
571        #[serde(rename_all = "snake_case")]
572        #[derive(Clone, PartialEq, ::prost::Message)]
573        pub struct ListValue {
574            #[prost(message, repeated, tag = "1")]
575            pub values: ::prost::alloc::vec::Vec<super::SingleStringValue>,
576        }
577        #[derive(serde::Serialize, serde::Deserialize)]
578        #[serde(rename_all = "snake_case")]
579        #[derive(Clone, PartialEq, ::prost::Oneof)]
580        pub enum Value {
581            #[prost(message, tag = "1")]
582            All(AllValue),
583            #[prost(message, tag = "2")]
584            List(ListValue),
585        }
586    }
587    #[derive(serde::Serialize, serde::Deserialize)]
588    #[serde(rename_all = "snake_case")]
589    #[derive(Clone, PartialEq, ::prost::Message)]
590    pub struct SingleStringValue {
591        #[prost(message, optional, tag = "1")]
592        pub value: ::core::option::Option<StringValueLabel>,
593    }
594    #[derive(serde::Serialize, serde::Deserialize)]
595    #[serde(rename_all = "snake_case")]
596    #[derive(Clone, PartialEq, ::prost::Message)]
597    pub struct SingleNumericValue {
598        #[prost(message, optional, tag = "1")]
599        pub value: ::core::option::Option<NumericValueLabel>,
600    }
601    #[derive(serde::Serialize, serde::Deserialize)]
602    #[serde(rename_all = "snake_case")]
603    #[derive(Clone, PartialEq, ::prost::Message)]
604    pub struct RegexValue {
605        #[prost(message, optional, tag = "1")]
606        pub value: ::core::option::Option<StringValueLabel>,
607    }
608    #[derive(serde::Serialize, serde::Deserialize)]
609    #[serde(rename_all = "snake_case")]
610    #[derive(Clone, PartialEq, ::prost::Message)]
611    pub struct LuceneQueryValue {
612        #[prost(message, optional, tag = "1")]
613        pub value: ::core::option::Option<StringValueLabel>,
614    }
615    #[derive(serde::Serialize, serde::Deserialize)]
616    #[serde(rename_all = "snake_case")]
617    #[derive(Clone, PartialEq, ::prost::Message)]
618    pub struct StringValueLabel {
619        #[prost(message, optional, tag = "1")]
620        pub value: ::core::option::Option<::prost::alloc::string::String>,
621        #[prost(message, optional, tag = "2")]
622        pub label: ::core::option::Option<::prost::alloc::string::String>,
623    }
624    #[derive(serde::Serialize, serde::Deserialize)]
625    #[serde(rename_all = "snake_case")]
626    #[derive(Clone, PartialEq, ::prost::Message)]
627    pub struct NumericValueLabel {
628        #[prost(message, optional, tag = "1")]
629        pub value: ::core::option::Option<f32>,
630        #[prost(message, optional, tag = "2")]
631        pub label: ::core::option::Option<::prost::alloc::string::String>,
632    }
633    #[derive(serde::Serialize, serde::Deserialize)]
634    #[serde(rename_all = "snake_case")]
635    #[derive(Clone, PartialEq, ::prost::Message)]
636    pub struct IntervalValue {
637        #[prost(message, optional, tag = "1")]
638        pub value: ::core::option::Option<StringValueLabel>,
639    }
640    #[derive(serde::Serialize, serde::Deserialize)]
641    #[serde(rename_all = "snake_case")]
642    #[derive(Clone, PartialEq, ::prost::Oneof)]
643    pub enum Value {
644        #[prost(message, tag = "1")]
645        MultiString(MultiStringValue),
646        #[prost(message, tag = "2")]
647        SingleString(SingleStringValue),
648        #[prost(message, tag = "3")]
649        SingleNumeric(SingleNumericValue),
650        #[prost(message, tag = "4")]
651        Regex(RegexValue),
652        #[prost(message, tag = "5")]
653        Lucene(LuceneQueryValue),
654        #[prost(message, tag = "6")]
655        Interval(IntervalValue),
656    }
657}
658#[derive(serde::Serialize, serde::Deserialize)]
659#[serde(rename_all = "snake_case")]
660#[derive(Clone, PartialEq, ::prost::Message)]
661pub struct VariableV2 {
662    #[prost(message, optional, tag = "1")]
663    pub name: ::core::option::Option<::prost::alloc::string::String>,
664    #[prost(message, optional, tag = "3")]
665    pub display_name: ::core::option::Option<::prost::alloc::string::String>,
666    #[prost(message, optional, tag = "4")]
667    pub description: ::core::option::Option<::prost::alloc::string::String>,
668    #[prost(enumeration = "VariableDisplayTypeV2", tag = "5")]
669    pub display_type: i32,
670    #[prost(message, optional, tag = "6")]
671    pub source: ::core::option::Option<VariableSourceV2>,
672    #[prost(message, optional, tag = "7")]
673    pub value: ::core::option::Option<VariableValueV2>,
674    #[prost(message, optional, tag = "8")]
675    pub display_full_row: ::core::option::Option<bool>,
676}