Skip to main content

nominal_api_proto/proto/
nominal.types.rs

1// This file is @generated by prost-build.
2#[derive(Clone, Copy, PartialEq, ::prost::Message)]
3pub struct Duration {
4    #[prost(int64, tag = "1")]
5    pub seconds: i64,
6    #[prost(int64, tag = "2")]
7    pub nanos: i64,
8}
9#[derive(Clone, PartialEq, ::prost::Message)]
10pub struct PropertiesFilter {
11    #[prost(string, tag = "1")]
12    pub name: ::prost::alloc::string::String,
13    #[prost(string, repeated, tag = "2")]
14    pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
15}
16#[derive(Clone, PartialEq, ::prost::Message)]
17pub struct LabelsFilter {
18    #[prost(enumeration = "SetOperator", tag = "1")]
19    pub operator: i32,
20    #[prost(string, repeated, tag = "2")]
21    pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
22}
23#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
24#[repr(i32)]
25pub enum Priority {
26    Unspecified = 0,
27    P0 = 1,
28    P1 = 2,
29    P2 = 3,
30    P3 = 4,
31    P4 = 5,
32}
33impl Priority {
34    /// String value of the enum field names used in the ProtoBuf definition.
35    ///
36    /// The values are not transformed in any way and thus are considered stable
37    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
38    pub fn as_str_name(&self) -> &'static str {
39        match self {
40            Self::Unspecified => "PRIORITY_UNSPECIFIED",
41            Self::P0 => "P0",
42            Self::P1 => "P1",
43            Self::P2 => "P2",
44            Self::P3 => "P3",
45            Self::P4 => "P4",
46        }
47    }
48    /// Creates an enum from field names used in the ProtoBuf definition.
49    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
50        match value {
51            "PRIORITY_UNSPECIFIED" => Some(Self::Unspecified),
52            "P0" => Some(Self::P0),
53            "P1" => Some(Self::P1),
54            "P2" => Some(Self::P2),
55            "P3" => Some(Self::P3),
56            "P4" => Some(Self::P4),
57            _ => None,
58        }
59    }
60}
61#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
62#[repr(i32)]
63pub enum SetOperator {
64    Unspecified = 0,
65    And = 1,
66    Or = 2,
67}
68impl SetOperator {
69    /// String value of the enum field names used in the ProtoBuf definition.
70    ///
71    /// The values are not transformed in any way and thus are considered stable
72    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
73    pub fn as_str_name(&self) -> &'static str {
74        match self {
75            Self::Unspecified => "SET_OPERATOR_UNSPECIFIED",
76            Self::And => "AND",
77            Self::Or => "OR",
78        }
79    }
80    /// Creates an enum from field names used in the ProtoBuf definition.
81    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
82        match value {
83            "SET_OPERATOR_UNSPECIFIED" => Some(Self::Unspecified),
84            "AND" => Some(Self::And),
85            "OR" => Some(Self::Or),
86            _ => None,
87        }
88    }
89}
90#[derive(Clone, Copy, PartialEq, ::prost::Message)]
91pub struct Empty {}
92#[derive(Clone, PartialEq, ::prost::Message)]
93pub struct ErrorResult {
94    #[prost(string, tag = "1")]
95    pub error_type: ::prost::alloc::string::String,
96    #[prost(string, tag = "2")]
97    pub message: ::prost::alloc::string::String,
98}
99#[derive(Clone, PartialEq, ::prost::Message)]
100pub struct Handle {
101    #[prost(oneof = "handle::Handle", tags = "1")]
102    pub handle: ::core::option::Option<handle::Handle>,
103}
104/// Nested message and enum types in `Handle`.
105pub mod handle {
106    #[derive(Clone, PartialEq, ::prost::Oneof)]
107    pub enum Handle {
108        #[prost(string, tag = "1")]
109        S3(::prost::alloc::string::String),
110    }
111}
112#[derive(Clone, Copy, PartialEq, ::prost::Message)]
113pub struct InProgressResult {}
114#[derive(Clone, PartialEq, ::prost::Message)]
115pub struct Property {
116    #[prost(string, tag = "1")]
117    pub name: ::prost::alloc::string::String,
118    #[prost(string, tag = "2")]
119    pub value: ::prost::alloc::string::String,
120}
121#[derive(Clone, PartialEq, ::prost::Message)]
122pub struct TypedPropertyValue {
123    #[prost(oneof = "typed_property_value::TypedPropertyValue", tags = "1, 2")]
124    pub typed_property_value: ::core::option::Option<
125        typed_property_value::TypedPropertyValue,
126    >,
127}
128/// Nested message and enum types in `TypedPropertyValue`.
129pub mod typed_property_value {
130    #[derive(Clone, PartialEq, ::prost::Oneof)]
131    pub enum TypedPropertyValue {
132        #[prost(string, tag = "1")]
133        StringValue(::prost::alloc::string::String),
134        #[prost(double, tag = "2")]
135        NumericValue(f64),
136    }
137}
138#[derive(Clone, PartialEq, ::prost::Message)]
139pub struct NumericPropertyPredicate {
140    #[prost(string, tag = "1")]
141    pub name: ::prost::alloc::string::String,
142    #[prost(double, tag = "2")]
143    pub value: f64,
144    #[prost(enumeration = "PropertyComparisonOperator", tag = "3")]
145    pub operator: i32,
146}
147#[derive(Clone, PartialEq, ::prost::Message)]
148pub struct NumericPropertyRangePredicate {
149    #[prost(string, tag = "1")]
150    pub name: ::prost::alloc::string::String,
151    #[prost(double, optional, tag = "2")]
152    pub min: ::core::option::Option<f64>,
153    #[prost(double, optional, tag = "3")]
154    pub max: ::core::option::Option<f64>,
155    #[prost(enumeration = "NumericPropertyRangeOperator", tag = "4")]
156    pub operator: i32,
157}
158#[derive(Clone, PartialEq, ::prost::Message)]
159pub struct LabelUpdateWrapper {
160    #[prost(string, repeated, tag = "1")]
161    pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
162}
163#[derive(Clone, PartialEq, ::prost::Message)]
164pub struct PropertyUpdateWrapper {
165    #[prost(map = "string, string", tag = "1")]
166    pub properties: ::std::collections::HashMap<
167        ::prost::alloc::string::String,
168        ::prost::alloc::string::String,
169    >,
170}
171#[derive(Clone, PartialEq, ::prost::Message)]
172pub struct TypedPropertyUpdateWrapper {
173    #[prost(map = "string, message", tag = "1")]
174    pub typed_properties: ::std::collections::HashMap<
175        ::prost::alloc::string::String,
176        TypedPropertyValue,
177    >,
178}
179#[derive(Clone, PartialEq, ::prost::Message)]
180pub struct RefNameAndType {
181    #[prost(string, tag = "1")]
182    pub name: ::prost::alloc::string::String,
183    #[prost(enumeration = "DataSourceType", tag = "2")]
184    pub r#type: i32,
185}
186#[derive(Clone, PartialEq, ::prost::Message)]
187pub struct SerializableError {
188    #[prost(string, tag = "1")]
189    pub name: ::prost::alloc::string::String,
190    #[prost(string, optional, tag = "2")]
191    pub message: ::core::option::Option<::prost::alloc::string::String>,
192    #[prost(string, tag = "3")]
193    pub error_instance_id: ::prost::alloc::string::String,
194    #[prost(int32, tag = "4")]
195    pub status_code: i32,
196    #[prost(map = "string, string", tag = "5")]
197    pub params: ::std::collections::HashMap<
198        ::prost::alloc::string::String,
199        ::prost::alloc::string::String,
200    >,
201}
202#[derive(Clone, Copy, PartialEq, ::prost::Message)]
203pub struct SuccessResult {}
204#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
205#[repr(i32)]
206pub enum ArchivedStatus {
207    Unspecified = 0,
208    NotArchived = 1,
209    Archived = 2,
210}
211impl ArchivedStatus {
212    /// String value of the enum field names used in the ProtoBuf definition.
213    ///
214    /// The values are not transformed in any way and thus are considered stable
215    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
216    pub fn as_str_name(&self) -> &'static str {
217        match self {
218            Self::Unspecified => "ARCHIVED_STATUS_UNSPECIFIED",
219            Self::NotArchived => "NOT_ARCHIVED",
220            Self::Archived => "ARCHIVED",
221        }
222    }
223    /// Creates an enum from field names used in the ProtoBuf definition.
224    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
225        match value {
226            "ARCHIVED_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
227            "NOT_ARCHIVED" => Some(Self::NotArchived),
228            "ARCHIVED" => Some(Self::Archived),
229            _ => None,
230        }
231    }
232}
233#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
234#[repr(i32)]
235pub enum DataSourceType {
236    Unspecified = 0,
237    Dataset = 1,
238    Connection = 2,
239    Video = 3,
240    Spatial = 4,
241}
242impl DataSourceType {
243    /// String value of the enum field names used in the ProtoBuf definition.
244    ///
245    /// The values are not transformed in any way and thus are considered stable
246    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
247    pub fn as_str_name(&self) -> &'static str {
248        match self {
249            Self::Unspecified => "DATA_SOURCE_TYPE_UNSPECIFIED",
250            Self::Dataset => "DATASET",
251            Self::Connection => "CONNECTION",
252            Self::Video => "VIDEO",
253            Self::Spatial => "SPATIAL",
254        }
255    }
256    /// Creates an enum from field names used in the ProtoBuf definition.
257    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
258        match value {
259            "DATA_SOURCE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
260            "DATASET" => Some(Self::Dataset),
261            "CONNECTION" => Some(Self::Connection),
262            "VIDEO" => Some(Self::Video),
263            "SPATIAL" => Some(Self::Spatial),
264            _ => None,
265        }
266    }
267}
268#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
269#[repr(i32)]
270pub enum Granularity {
271    Unspecified = 0,
272    Nanoseconds = 2,
273}
274impl Granularity {
275    /// String value of the enum field names used in the ProtoBuf definition.
276    ///
277    /// The values are not transformed in any way and thus are considered stable
278    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
279    pub fn as_str_name(&self) -> &'static str {
280        match self {
281            Self::Unspecified => "GRANULARITY_UNSPECIFIED",
282            Self::Nanoseconds => "NANOSECONDS",
283        }
284    }
285    /// Creates an enum from field names used in the ProtoBuf definition.
286    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
287        match value {
288            "GRANULARITY_UNSPECIFIED" => Some(Self::Unspecified),
289            "NANOSECONDS" => Some(Self::Nanoseconds),
290            _ => None,
291        }
292    }
293}
294#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
295#[repr(i32)]
296pub enum IngestStatus {
297    Unspecified = 0,
298    Succeeded = 1,
299    Failed = 2,
300    InProgress = 3,
301    DeletionInProgress = 4,
302    Deleted = 5,
303}
304impl IngestStatus {
305    /// String value of the enum field names used in the ProtoBuf definition.
306    ///
307    /// The values are not transformed in any way and thus are considered stable
308    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
309    pub fn as_str_name(&self) -> &'static str {
310        match self {
311            Self::Unspecified => "INGEST_STATUS_UNSPECIFIED",
312            Self::Succeeded => "SUCCEEDED",
313            Self::Failed => "FAILED",
314            Self::InProgress => "IN_PROGRESS",
315            Self::DeletionInProgress => "DELETION_IN_PROGRESS",
316            Self::Deleted => "DELETED",
317        }
318    }
319    /// Creates an enum from field names used in the ProtoBuf definition.
320    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
321        match value {
322            "INGEST_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
323            "SUCCEEDED" => Some(Self::Succeeded),
324            "FAILED" => Some(Self::Failed),
325            "IN_PROGRESS" => Some(Self::InProgress),
326            "DELETION_IN_PROGRESS" => Some(Self::DeletionInProgress),
327            "DELETED" => Some(Self::Deleted),
328            _ => None,
329        }
330    }
331}
332#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
333#[repr(i32)]
334pub enum PropertyComparisonOperator {
335    Unspecified = 0,
336    Eq = 1,
337    Neq = 2,
338    Gt = 3,
339    Gte = 4,
340    Lt = 5,
341    Lte = 6,
342}
343impl PropertyComparisonOperator {
344    /// String value of the enum field names used in the ProtoBuf definition.
345    ///
346    /// The values are not transformed in any way and thus are considered stable
347    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
348    pub fn as_str_name(&self) -> &'static str {
349        match self {
350            Self::Unspecified => "PROPERTY_COMPARISON_OPERATOR_UNSPECIFIED",
351            Self::Eq => "EQ",
352            Self::Neq => "NEQ",
353            Self::Gt => "GT",
354            Self::Gte => "GTE",
355            Self::Lt => "LT",
356            Self::Lte => "LTE",
357        }
358    }
359    /// Creates an enum from field names used in the ProtoBuf definition.
360    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
361        match value {
362            "PROPERTY_COMPARISON_OPERATOR_UNSPECIFIED" => Some(Self::Unspecified),
363            "EQ" => Some(Self::Eq),
364            "NEQ" => Some(Self::Neq),
365            "GT" => Some(Self::Gt),
366            "GTE" => Some(Self::Gte),
367            "LT" => Some(Self::Lt),
368            "LTE" => Some(Self::Lte),
369            _ => None,
370        }
371    }
372}
373#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
374#[repr(i32)]
375pub enum NumericPropertyRangeOperator {
376    Unspecified = 0,
377    Between = 1,
378    NotBetween = 2,
379}
380impl NumericPropertyRangeOperator {
381    /// String value of the enum field names used in the ProtoBuf definition.
382    ///
383    /// The values are not transformed in any way and thus are considered stable
384    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
385    pub fn as_str_name(&self) -> &'static str {
386        match self {
387            Self::Unspecified => "NUMERIC_PROPERTY_RANGE_OPERATOR_UNSPECIFIED",
388            Self::Between => "BETWEEN",
389            Self::NotBetween => "NOT_BETWEEN",
390        }
391    }
392    /// Creates an enum from field names used in the ProtoBuf definition.
393    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
394        match value {
395            "NUMERIC_PROPERTY_RANGE_OPERATOR_UNSPECIFIED" => Some(Self::Unspecified),
396            "BETWEEN" => Some(Self::Between),
397            "NOT_BETWEEN" => Some(Self::NotBetween),
398            _ => None,
399        }
400    }
401}
402#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
403#[repr(i32)]
404pub enum NominalDataType {
405    Unspecified = 0,
406    Double = 1,
407    String = 2,
408    Log = 3,
409    Int64 = 4,
410}
411impl NominalDataType {
412    /// String value of the enum field names used in the ProtoBuf definition.
413    ///
414    /// The values are not transformed in any way and thus are considered stable
415    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
416    pub fn as_str_name(&self) -> &'static str {
417        match self {
418            Self::Unspecified => "NOMINAL_DATA_TYPE_UNSPECIFIED",
419            Self::Double => "DOUBLE",
420            Self::String => "STRING",
421            Self::Log => "LOG",
422            Self::Int64 => "INT64",
423        }
424    }
425    /// Creates an enum from field names used in the ProtoBuf definition.
426    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
427        match value {
428            "NOMINAL_DATA_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
429            "DOUBLE" => Some(Self::Double),
430            "STRING" => Some(Self::String),
431            "LOG" => Some(Self::Log),
432            "INT64" => Some(Self::Int64),
433            _ => None,
434        }
435    }
436}
437#[derive(Clone, PartialEq, ::prost::Message)]
438pub struct TagsWithValues {
439    #[prost(map = "string, string", tag = "1")]
440    pub values: ::std::collections::HashMap<
441        ::prost::alloc::string::String,
442        ::prost::alloc::string::String,
443    >,
444}
445#[derive(Clone, PartialEq, ::prost::Message)]
446pub struct TagPredicate {
447    #[prost(oneof = "tag_predicate::Predicate", tags = "1, 2, 3")]
448    pub predicate: ::core::option::Option<tag_predicate::Predicate>,
449}
450/// Nested message and enum types in `TagPredicate`.
451pub mod tag_predicate {
452    #[derive(Clone, PartialEq, ::prost::Oneof)]
453    pub enum Predicate {
454        #[prost(message, tag = "1")]
455        In(super::TagPredicateValues),
456        #[prost(message, tag = "2")]
457        NotIn(super::TagPredicateValues),
458        #[prost(message, tag = "3")]
459        And(::prost::alloc::boxed::Box<super::TagPredicateAnd>),
460    }
461}
462#[derive(Clone, PartialEq, ::prost::Message)]
463pub struct TagPredicateValues {
464    #[prost(string, tag = "1")]
465    pub key: ::prost::alloc::string::String,
466    #[prost(string, repeated, tag = "2")]
467    pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
468}
469#[derive(Clone, PartialEq, ::prost::Message)]
470pub struct TagPredicateAnd {
471    #[prost(message, optional, boxed, tag = "1")]
472    pub left: ::core::option::Option<::prost::alloc::boxed::Box<TagPredicate>>,
473    #[prost(message, optional, boxed, tag = "2")]
474    pub right: ::core::option::Option<::prost::alloc::boxed::Box<TagPredicate>>,
475}