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 Empty {}
4#[derive(Clone, PartialEq, ::prost::Message)]
5pub struct ErrorResult {
6    #[prost(string, tag = "1")]
7    pub error_type: ::prost::alloc::string::String,
8    #[prost(string, tag = "2")]
9    pub message: ::prost::alloc::string::String,
10}
11#[derive(Clone, PartialEq, ::prost::Message)]
12pub struct Handle {
13    #[prost(oneof = "handle::Handle", tags = "1")]
14    pub handle: ::core::option::Option<handle::Handle>,
15}
16/// Nested message and enum types in `Handle`.
17pub mod handle {
18    #[derive(Clone, PartialEq, ::prost::Oneof)]
19    pub enum Handle {
20        #[prost(string, tag = "1")]
21        S3(::prost::alloc::string::String),
22    }
23}
24#[derive(Clone, Copy, PartialEq, ::prost::Message)]
25pub struct InProgressResult {}
26#[derive(Clone, PartialEq, ::prost::Message)]
27pub struct IngestStatusV2 {
28    #[prost(oneof = "ingest_status_v2::IngestStatusV2", tags = "1, 2, 3")]
29    pub ingest_status_v2: ::core::option::Option<ingest_status_v2::IngestStatusV2>,
30}
31/// Nested message and enum types in `IngestStatusV2`.
32pub mod ingest_status_v2 {
33    #[derive(Clone, PartialEq, ::prost::Oneof)]
34    pub enum IngestStatusV2 {
35        #[prost(message, tag = "1")]
36        Success(super::SuccessResult),
37        #[prost(message, tag = "2")]
38        Error(super::ErrorResult),
39        #[prost(message, tag = "3")]
40        InProgress(super::InProgressResult),
41    }
42}
43#[derive(Clone, PartialEq, ::prost::Message)]
44pub struct McapChannelLocator {
45    #[prost(oneof = "mcap_channel_locator::McapChannelLocator", tags = "1, 2")]
46    pub mcap_channel_locator: ::core::option::Option<
47        mcap_channel_locator::McapChannelLocator,
48    >,
49}
50/// Nested message and enum types in `McapChannelLocator`.
51pub mod mcap_channel_locator {
52    #[derive(Clone, PartialEq, ::prost::Oneof)]
53    pub enum McapChannelLocator {
54        #[prost(string, tag = "1")]
55        Topic(::prost::alloc::string::String),
56        #[prost(int32, tag = "2")]
57        Id(i32),
58    }
59}
60#[derive(Clone, PartialEq, ::prost::Message)]
61pub struct Property {
62    #[prost(string, tag = "1")]
63    pub name: ::prost::alloc::string::String,
64    #[prost(string, tag = "2")]
65    pub value: ::prost::alloc::string::String,
66}
67#[derive(Clone, PartialEq, ::prost::Message)]
68pub struct LabelUpdateWrapper {
69    #[prost(string, repeated, tag = "1")]
70    pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
71}
72#[derive(Clone, PartialEq, ::prost::Message)]
73pub struct PropertyUpdateWrapper {
74    #[prost(map = "string, string", tag = "1")]
75    pub properties: ::std::collections::HashMap<
76        ::prost::alloc::string::String,
77        ::prost::alloc::string::String,
78    >,
79}
80#[derive(Clone, PartialEq, ::prost::Message)]
81pub struct RefNameAndType {
82    #[prost(string, tag = "1")]
83    pub name: ::prost::alloc::string::String,
84    #[prost(enumeration = "DataSourceType", tag = "2")]
85    pub r#type: i32,
86}
87#[derive(Clone, PartialEq, ::prost::Message)]
88pub struct SerializableError {
89    #[prost(string, tag = "1")]
90    pub name: ::prost::alloc::string::String,
91    #[prost(string, optional, tag = "2")]
92    pub message: ::core::option::Option<::prost::alloc::string::String>,
93    #[prost(string, tag = "3")]
94    pub error_instance_id: ::prost::alloc::string::String,
95    #[prost(int32, tag = "4")]
96    pub status_code: i32,
97    #[prost(map = "string, string", tag = "5")]
98    pub params: ::std::collections::HashMap<
99        ::prost::alloc::string::String,
100        ::prost::alloc::string::String,
101    >,
102}
103#[derive(Clone, Copy, PartialEq, ::prost::Message)]
104pub struct SuccessResult {}
105#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
106#[repr(i32)]
107pub enum ArchivedStatus {
108    Unspecified = 0,
109    NotArchived = 1,
110    Archived = 2,
111}
112impl ArchivedStatus {
113    /// String value of the enum field names used in the ProtoBuf definition.
114    ///
115    /// The values are not transformed in any way and thus are considered stable
116    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
117    pub fn as_str_name(&self) -> &'static str {
118        match self {
119            Self::Unspecified => "ARCHIVED_STATUS_UNSPECIFIED",
120            Self::NotArchived => "NOT_ARCHIVED",
121            Self::Archived => "ARCHIVED",
122        }
123    }
124    /// Creates an enum from field names used in the ProtoBuf definition.
125    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
126        match value {
127            "ARCHIVED_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
128            "NOT_ARCHIVED" => Some(Self::NotArchived),
129            "ARCHIVED" => Some(Self::Archived),
130            _ => None,
131        }
132    }
133}
134#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
135#[repr(i32)]
136pub enum DataSourceType {
137    Unspecified = 0,
138    Dataset = 1,
139    Connection = 2,
140    Video = 3,
141}
142impl DataSourceType {
143    /// String value of the enum field names used in the ProtoBuf definition.
144    ///
145    /// The values are not transformed in any way and thus are considered stable
146    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
147    pub fn as_str_name(&self) -> &'static str {
148        match self {
149            Self::Unspecified => "DATA_SOURCE_TYPE_UNSPECIFIED",
150            Self::Dataset => "DATASET",
151            Self::Connection => "CONNECTION",
152            Self::Video => "VIDEO",
153        }
154    }
155    /// Creates an enum from field names used in the ProtoBuf definition.
156    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
157        match value {
158            "DATA_SOURCE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
159            "DATASET" => Some(Self::Dataset),
160            "CONNECTION" => Some(Self::Connection),
161            "VIDEO" => Some(Self::Video),
162            _ => None,
163        }
164    }
165}
166#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
167#[repr(i32)]
168pub enum Granularity {
169    Unspecified = 0,
170    Nanoseconds = 2,
171}
172impl Granularity {
173    /// String value of the enum field names used in the ProtoBuf definition.
174    ///
175    /// The values are not transformed in any way and thus are considered stable
176    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
177    pub fn as_str_name(&self) -> &'static str {
178        match self {
179            Self::Unspecified => "GRANULARITY_UNSPECIFIED",
180            Self::Nanoseconds => "NANOSECONDS",
181        }
182    }
183    /// Creates an enum from field names used in the ProtoBuf definition.
184    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
185        match value {
186            "GRANULARITY_UNSPECIFIED" => Some(Self::Unspecified),
187            "NANOSECONDS" => Some(Self::Nanoseconds),
188            _ => None,
189        }
190    }
191}
192#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
193#[repr(i32)]
194pub enum IngestStatus {
195    Unspecified = 0,
196    Succeeded = 1,
197    Failed = 2,
198    InProgress = 3,
199    DeletionInProgress = 4,
200    Deleted = 5,
201}
202impl IngestStatus {
203    /// String value of the enum field names used in the ProtoBuf definition.
204    ///
205    /// The values are not transformed in any way and thus are considered stable
206    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
207    pub fn as_str_name(&self) -> &'static str {
208        match self {
209            Self::Unspecified => "INGEST_STATUS_UNSPECIFIED",
210            Self::Succeeded => "SUCCEEDED",
211            Self::Failed => "FAILED",
212            Self::InProgress => "IN_PROGRESS",
213            Self::DeletionInProgress => "DELETION_IN_PROGRESS",
214            Self::Deleted => "DELETED",
215        }
216    }
217    /// Creates an enum from field names used in the ProtoBuf definition.
218    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
219        match value {
220            "INGEST_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
221            "SUCCEEDED" => Some(Self::Succeeded),
222            "FAILED" => Some(Self::Failed),
223            "IN_PROGRESS" => Some(Self::InProgress),
224            "DELETION_IN_PROGRESS" => Some(Self::DeletionInProgress),
225            "DELETED" => Some(Self::Deleted),
226            _ => None,
227        }
228    }
229}
230#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
231#[repr(i32)]
232pub enum NominalDataType {
233    Unspecified = 0,
234    Double = 1,
235    String = 2,
236    Log = 3,
237    Int64 = 4,
238}
239impl NominalDataType {
240    /// String value of the enum field names used in the ProtoBuf definition.
241    ///
242    /// The values are not transformed in any way and thus are considered stable
243    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
244    pub fn as_str_name(&self) -> &'static str {
245        match self {
246            Self::Unspecified => "NOMINAL_DATA_TYPE_UNSPECIFIED",
247            Self::Double => "DOUBLE",
248            Self::String => "STRING",
249            Self::Log => "LOG",
250            Self::Int64 => "INT64",
251        }
252    }
253    /// Creates an enum from field names used in the ProtoBuf definition.
254    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
255        match value {
256            "NOMINAL_DATA_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
257            "DOUBLE" => Some(Self::Double),
258            "STRING" => Some(Self::String),
259            "LOG" => Some(Self::Log),
260            "INT64" => Some(Self::Int64),
261            _ => None,
262        }
263    }
264}
265#[derive(Clone, Copy, PartialEq, ::prost::Message)]
266pub struct Duration {
267    #[prost(int64, tag = "1")]
268    pub seconds: i64,
269    #[prost(int64, tag = "2")]
270    pub nanos: i64,
271}
272#[derive(Clone, PartialEq, ::prost::Message)]
273pub struct PendingReviewDispositionState {
274    #[prost(string, tag = "1")]
275    pub opened_by: ::prost::alloc::string::String,
276}
277#[derive(Clone, PartialEq, ::prost::Message)]
278pub struct ClosedWithFurtherActionDispositionState {
279    #[prost(string, tag = "1")]
280    pub closed_by: ::prost::alloc::string::String,
281}
282#[derive(Clone, PartialEq, ::prost::Message)]
283pub struct ClosedWithIgnoreDispositionState {
284    #[prost(string, tag = "1")]
285    pub closed_by: ::prost::alloc::string::String,
286}
287#[derive(Clone, PartialEq, ::prost::Message)]
288pub struct DispositionState {
289    #[prost(oneof = "disposition_state::DispositionState", tags = "1, 2, 3")]
290    pub disposition_state: ::core::option::Option<disposition_state::DispositionState>,
291}
292/// Nested message and enum types in `DispositionState`.
293pub mod disposition_state {
294    #[derive(Clone, PartialEq, ::prost::Oneof)]
295    pub enum DispositionState {
296        #[prost(message, tag = "1")]
297        PendingReview(super::PendingReviewDispositionState),
298        #[prost(message, tag = "2")]
299        ClosedWithFurtherAction(super::ClosedWithFurtherActionDispositionState),
300        #[prost(message, tag = "3")]
301        ClosedWithIgnore(super::ClosedWithIgnoreDispositionState),
302    }
303}
304#[derive(Clone, PartialEq, ::prost::Message)]
305pub struct PropertiesFilter {
306    #[prost(string, tag = "1")]
307    pub name: ::prost::alloc::string::String,
308    #[prost(string, repeated, tag = "2")]
309    pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
310}
311#[derive(Clone, PartialEq, ::prost::Message)]
312pub struct LabelsFilter {
313    #[prost(enumeration = "SetOperator", tag = "1")]
314    pub operator: i32,
315    #[prost(string, repeated, tag = "2")]
316    pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
317}
318#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
319#[repr(i32)]
320pub enum Priority {
321    Unspecified = 0,
322    P0 = 1,
323    P1 = 2,
324    P2 = 3,
325    P3 = 4,
326    P4 = 5,
327}
328impl Priority {
329    /// String value of the enum field names used in the ProtoBuf definition.
330    ///
331    /// The values are not transformed in any way and thus are considered stable
332    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
333    pub fn as_str_name(&self) -> &'static str {
334        match self {
335            Self::Unspecified => "PRIORITY_UNSPECIFIED",
336            Self::P0 => "P0",
337            Self::P1 => "P1",
338            Self::P2 => "P2",
339            Self::P3 => "P3",
340            Self::P4 => "P4",
341        }
342    }
343    /// Creates an enum from field names used in the ProtoBuf definition.
344    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
345        match value {
346            "PRIORITY_UNSPECIFIED" => Some(Self::Unspecified),
347            "P0" => Some(Self::P0),
348            "P1" => Some(Self::P1),
349            "P2" => Some(Self::P2),
350            "P3" => Some(Self::P3),
351            "P4" => Some(Self::P4),
352            _ => None,
353        }
354    }
355}
356#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
357#[repr(i32)]
358pub enum SetOperator {
359    Unspecified = 0,
360    And = 1,
361    Or = 2,
362}
363impl SetOperator {
364    /// String value of the enum field names used in the ProtoBuf definition.
365    ///
366    /// The values are not transformed in any way and thus are considered stable
367    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
368    pub fn as_str_name(&self) -> &'static str {
369        match self {
370            Self::Unspecified => "SET_OPERATOR_UNSPECIFIED",
371            Self::And => "AND",
372            Self::Or => "OR",
373        }
374    }
375    /// Creates an enum from field names used in the ProtoBuf definition.
376    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
377        match value {
378            "SET_OPERATOR_UNSPECIFIED" => Some(Self::Unspecified),
379            "AND" => Some(Self::And),
380            "OR" => Some(Self::Or),
381            _ => None,
382        }
383    }
384}