nominal_api/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/// Locator for a channel in an mcap file. Channel name is not guaranteed to be unique, so channel ID should
44/// be used for mcap files with duplicate channel names.
45#[derive(Clone, PartialEq, ::prost::Message)]
46pub struct McapChannelLocator {
47    /// Locator for a channel in an mcap file. Channel name is not guaranteed to be unique, so channel ID should
48    /// be used for mcap files with duplicate channel names.
49    #[prost(oneof = "mcap_channel_locator::McapChannelLocator", tags = "1, 2")]
50    pub mcap_channel_locator: ::core::option::Option<
51        mcap_channel_locator::McapChannelLocator,
52    >,
53}
54/// Nested message and enum types in `McapChannelLocator`.
55pub mod mcap_channel_locator {
56    /// Locator for a channel in an mcap file. Channel name is not guaranteed to be unique, so channel ID should
57    /// be used for mcap files with duplicate channel names.
58    #[derive(Clone, PartialEq, ::prost::Oneof)]
59    pub enum McapChannelLocator {
60        #[prost(string, tag = "1")]
61        Topic(::prost::alloc::string::String),
62        #[prost(int32, tag = "2")]
63        Id(i32),
64    }
65}
66#[derive(Clone, PartialEq, ::prost::Message)]
67pub struct Property {
68    #[prost(string, tag = "1")]
69    pub name: ::prost::alloc::string::String,
70    #[prost(string, tag = "2")]
71    pub value: ::prost::alloc::string::String,
72}
73/// Wrapper classes to allow for optional fields on update requests
74#[derive(Clone, PartialEq, ::prost::Message)]
75pub struct LabelUpdateWrapper {
76    #[prost(string, repeated, tag = "1")]
77    pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
78}
79#[derive(Clone, PartialEq, ::prost::Message)]
80pub struct PropertyUpdateWrapper {
81    #[prost(map = "string, string", tag = "1")]
82    pub properties: ::std::collections::HashMap<
83        ::prost::alloc::string::String,
84        ::prost::alloc::string::String,
85    >,
86}
87#[derive(Clone, PartialEq, ::prost::Message)]
88pub struct RefNameAndType {
89    #[prost(string, tag = "1")]
90    pub name: ::prost::alloc::string::String,
91    #[prost(enumeration = "DataSourceType", tag = "2")]
92    pub r#type: i32,
93}
94/// A SerializableError is a representation of a ServiceException that exists to send error
95/// results to clients as part of a response object when directly throwing an exception is undesirable.
96#[derive(Clone, PartialEq, ::prost::Message)]
97pub struct SerializableError {
98    #[prost(string, tag = "1")]
99    pub name: ::prost::alloc::string::String,
100    #[prost(string, optional, tag = "2")]
101    pub message: ::core::option::Option<::prost::alloc::string::String>,
102    #[prost(string, tag = "3")]
103    pub error_instance_id: ::prost::alloc::string::String,
104    #[prost(int32, tag = "4")]
105    pub status_code: i32,
106    #[prost(map = "string, string", tag = "5")]
107    pub params: ::std::collections::HashMap<
108        ::prost::alloc::string::String,
109        ::prost::alloc::string::String,
110    >,
111}
112#[derive(Clone, Copy, PartialEq, ::prost::Message)]
113pub struct SuccessResult {}
114/// buf:lint:ignore ENUM_VALUE_PREFIX
115#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
116#[repr(i32)]
117pub enum ArchivedStatus {
118    Unspecified = 0,
119    NotArchived = 1,
120    Archived = 2,
121}
122impl ArchivedStatus {
123    /// String value of the enum field names used in the ProtoBuf definition.
124    ///
125    /// The values are not transformed in any way and thus are considered stable
126    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
127    pub fn as_str_name(&self) -> &'static str {
128        match self {
129            Self::Unspecified => "ARCHIVED_STATUS_UNSPECIFIED",
130            Self::NotArchived => "NOT_ARCHIVED",
131            Self::Archived => "ARCHIVED",
132        }
133    }
134    /// Creates an enum from field names used in the ProtoBuf definition.
135    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
136        match value {
137            "ARCHIVED_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
138            "NOT_ARCHIVED" => Some(Self::NotArchived),
139            "ARCHIVED" => Some(Self::Archived),
140            _ => None,
141        }
142    }
143}
144/// buf:lint:ignore ENUM_VALUE_PREFIX
145#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
146#[repr(i32)]
147pub enum DataSourceType {
148    Unspecified = 0,
149    Dataset = 1,
150    Connection = 2,
151    Video = 3,
152}
153impl DataSourceType {
154    /// String value of the enum field names used in the ProtoBuf definition.
155    ///
156    /// The values are not transformed in any way and thus are considered stable
157    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
158    pub fn as_str_name(&self) -> &'static str {
159        match self {
160            Self::Unspecified => "DATA_SOURCE_TYPE_UNSPECIFIED",
161            Self::Dataset => "DATASET",
162            Self::Connection => "CONNECTION",
163            Self::Video => "VIDEO",
164        }
165    }
166    /// Creates an enum from field names used in the ProtoBuf definition.
167    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
168        match value {
169            "DATA_SOURCE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
170            "DATASET" => Some(Self::Dataset),
171            "CONNECTION" => Some(Self::Connection),
172            "VIDEO" => Some(Self::Video),
173            _ => None,
174        }
175    }
176}
177/// buf:lint:ignore ENUM_VALUE_PREFIX
178#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
179#[repr(i32)]
180pub enum Granularity {
181    Unspecified = 0,
182    Picoseconds = 1,
183    Nanoseconds = 2,
184}
185impl Granularity {
186    /// String value of the enum field names used in the ProtoBuf definition.
187    ///
188    /// The values are not transformed in any way and thus are considered stable
189    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
190    pub fn as_str_name(&self) -> &'static str {
191        match self {
192            Self::Unspecified => "GRANULARITY_UNSPECIFIED",
193            Self::Picoseconds => "PICOSECONDS",
194            Self::Nanoseconds => "NANOSECONDS",
195        }
196    }
197    /// Creates an enum from field names used in the ProtoBuf definition.
198    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
199        match value {
200            "GRANULARITY_UNSPECIFIED" => Some(Self::Unspecified),
201            "PICOSECONDS" => Some(Self::Picoseconds),
202            "NANOSECONDS" => Some(Self::Nanoseconds),
203            _ => None,
204        }
205    }
206}
207/// buf:lint:ignore ENUM_VALUE_PREFIX
208#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
209#[repr(i32)]
210pub enum IngestStatus {
211    Unspecified = 0,
212    Succeeded = 1,
213    Failed = 2,
214    InProgress = 3,
215}
216impl IngestStatus {
217    /// String value of the enum field names used in the ProtoBuf definition.
218    ///
219    /// The values are not transformed in any way and thus are considered stable
220    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
221    pub fn as_str_name(&self) -> &'static str {
222        match self {
223            Self::Unspecified => "INGEST_STATUS_UNSPECIFIED",
224            Self::Succeeded => "SUCCEEDED",
225            Self::Failed => "FAILED",
226            Self::InProgress => "IN_PROGRESS",
227        }
228    }
229    /// Creates an enum from field names used in the ProtoBuf definition.
230    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
231        match value {
232            "INGEST_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
233            "SUCCEEDED" => Some(Self::Succeeded),
234            "FAILED" => Some(Self::Failed),
235            "IN_PROGRESS" => Some(Self::InProgress),
236            _ => None,
237        }
238    }
239}
240/// The data types supported by Nominal's database.
241///
242/// buf:lint:ignore ENUM_VALUE_PREFIX
243#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
244#[repr(i32)]
245pub enum NominalDataType {
246    Unspecified = 0,
247    Double = 1,
248    String = 2,
249    Log = 3,
250    Int64 = 4,
251}
252impl NominalDataType {
253    /// String value of the enum field names used in the ProtoBuf definition.
254    ///
255    /// The values are not transformed in any way and thus are considered stable
256    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
257    pub fn as_str_name(&self) -> &'static str {
258        match self {
259            Self::Unspecified => "NOMINAL_DATA_TYPE_UNSPECIFIED",
260            Self::Double => "DOUBLE",
261            Self::String => "STRING",
262            Self::Log => "LOG",
263            Self::Int64 => "INT64",
264        }
265    }
266    /// Creates an enum from field names used in the ProtoBuf definition.
267    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
268        match value {
269            "NOMINAL_DATA_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
270            "DOUBLE" => Some(Self::Double),
271            "STRING" => Some(Self::String),
272            "LOG" => Some(Self::Log),
273            "INT64" => Some(Self::Int64),
274            _ => None,
275        }
276    }
277}