1#[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 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 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 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 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}
104pub 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}
128pub 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 LabelUpdateWrapper {
149 #[prost(string, repeated, tag = "1")]
150 pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
151}
152#[derive(Clone, PartialEq, ::prost::Message)]
153pub struct PropertyUpdateWrapper {
154 #[prost(map = "string, string", tag = "1")]
155 pub properties: ::std::collections::HashMap<
156 ::prost::alloc::string::String,
157 ::prost::alloc::string::String,
158 >,
159}
160#[derive(Clone, PartialEq, ::prost::Message)]
161pub struct TypedPropertyUpdateWrapper {
162 #[prost(map = "string, message", tag = "1")]
163 pub typed_properties: ::std::collections::HashMap<
164 ::prost::alloc::string::String,
165 TypedPropertyValue,
166 >,
167}
168#[derive(Clone, PartialEq, ::prost::Message)]
169pub struct RefNameAndType {
170 #[prost(string, tag = "1")]
171 pub name: ::prost::alloc::string::String,
172 #[prost(enumeration = "DataSourceType", tag = "2")]
173 pub r#type: i32,
174}
175#[derive(Clone, PartialEq, ::prost::Message)]
176pub struct SerializableError {
177 #[prost(string, tag = "1")]
178 pub name: ::prost::alloc::string::String,
179 #[prost(string, optional, tag = "2")]
180 pub message: ::core::option::Option<::prost::alloc::string::String>,
181 #[prost(string, tag = "3")]
182 pub error_instance_id: ::prost::alloc::string::String,
183 #[prost(int32, tag = "4")]
184 pub status_code: i32,
185 #[prost(map = "string, string", tag = "5")]
186 pub params: ::std::collections::HashMap<
187 ::prost::alloc::string::String,
188 ::prost::alloc::string::String,
189 >,
190}
191#[derive(Clone, Copy, PartialEq, ::prost::Message)]
192pub struct SuccessResult {}
193#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
194#[repr(i32)]
195pub enum ArchivedStatus {
196 Unspecified = 0,
197 NotArchived = 1,
198 Archived = 2,
199}
200impl ArchivedStatus {
201 pub fn as_str_name(&self) -> &'static str {
206 match self {
207 Self::Unspecified => "ARCHIVED_STATUS_UNSPECIFIED",
208 Self::NotArchived => "NOT_ARCHIVED",
209 Self::Archived => "ARCHIVED",
210 }
211 }
212 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
214 match value {
215 "ARCHIVED_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
216 "NOT_ARCHIVED" => Some(Self::NotArchived),
217 "ARCHIVED" => Some(Self::Archived),
218 _ => None,
219 }
220 }
221}
222#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
223#[repr(i32)]
224pub enum DataSourceType {
225 Unspecified = 0,
226 Dataset = 1,
227 Connection = 2,
228 Video = 3,
229 Spatial = 4,
230}
231impl DataSourceType {
232 pub fn as_str_name(&self) -> &'static str {
237 match self {
238 Self::Unspecified => "DATA_SOURCE_TYPE_UNSPECIFIED",
239 Self::Dataset => "DATASET",
240 Self::Connection => "CONNECTION",
241 Self::Video => "VIDEO",
242 Self::Spatial => "SPATIAL",
243 }
244 }
245 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
247 match value {
248 "DATA_SOURCE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
249 "DATASET" => Some(Self::Dataset),
250 "CONNECTION" => Some(Self::Connection),
251 "VIDEO" => Some(Self::Video),
252 "SPATIAL" => Some(Self::Spatial),
253 _ => None,
254 }
255 }
256}
257#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
258#[repr(i32)]
259pub enum Granularity {
260 Unspecified = 0,
261 Nanoseconds = 2,
262}
263impl Granularity {
264 pub fn as_str_name(&self) -> &'static str {
269 match self {
270 Self::Unspecified => "GRANULARITY_UNSPECIFIED",
271 Self::Nanoseconds => "NANOSECONDS",
272 }
273 }
274 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
276 match value {
277 "GRANULARITY_UNSPECIFIED" => Some(Self::Unspecified),
278 "NANOSECONDS" => Some(Self::Nanoseconds),
279 _ => None,
280 }
281 }
282}
283#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
284#[repr(i32)]
285pub enum IngestStatus {
286 Unspecified = 0,
287 Succeeded = 1,
288 Failed = 2,
289 InProgress = 3,
290 DeletionInProgress = 4,
291 Deleted = 5,
292}
293impl IngestStatus {
294 pub fn as_str_name(&self) -> &'static str {
299 match self {
300 Self::Unspecified => "INGEST_STATUS_UNSPECIFIED",
301 Self::Succeeded => "SUCCEEDED",
302 Self::Failed => "FAILED",
303 Self::InProgress => "IN_PROGRESS",
304 Self::DeletionInProgress => "DELETION_IN_PROGRESS",
305 Self::Deleted => "DELETED",
306 }
307 }
308 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
310 match value {
311 "INGEST_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
312 "SUCCEEDED" => Some(Self::Succeeded),
313 "FAILED" => Some(Self::Failed),
314 "IN_PROGRESS" => Some(Self::InProgress),
315 "DELETION_IN_PROGRESS" => Some(Self::DeletionInProgress),
316 "DELETED" => Some(Self::Deleted),
317 _ => None,
318 }
319 }
320}
321#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
322#[repr(i32)]
323pub enum PropertyComparisonOperator {
324 Unspecified = 0,
325 Eq = 1,
326 Neq = 2,
327 Gt = 3,
328 Geq = 4,
329 Lt = 5,
330 Leq = 6,
331}
332impl PropertyComparisonOperator {
333 pub fn as_str_name(&self) -> &'static str {
338 match self {
339 Self::Unspecified => "PROPERTY_COMPARISON_OPERATOR_UNSPECIFIED",
340 Self::Eq => "EQ",
341 Self::Neq => "NEQ",
342 Self::Gt => "GT",
343 Self::Geq => "GEQ",
344 Self::Lt => "LT",
345 Self::Leq => "LEQ",
346 }
347 }
348 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
350 match value {
351 "PROPERTY_COMPARISON_OPERATOR_UNSPECIFIED" => Some(Self::Unspecified),
352 "EQ" => Some(Self::Eq),
353 "NEQ" => Some(Self::Neq),
354 "GT" => Some(Self::Gt),
355 "GEQ" => Some(Self::Geq),
356 "LT" => Some(Self::Lt),
357 "LEQ" => Some(Self::Leq),
358 _ => None,
359 }
360 }
361}
362#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
363#[repr(i32)]
364pub enum NominalDataType {
365 Unspecified = 0,
366 Double = 1,
367 String = 2,
368 Log = 3,
369 Int64 = 4,
370}
371impl NominalDataType {
372 pub fn as_str_name(&self) -> &'static str {
377 match self {
378 Self::Unspecified => "NOMINAL_DATA_TYPE_UNSPECIFIED",
379 Self::Double => "DOUBLE",
380 Self::String => "STRING",
381 Self::Log => "LOG",
382 Self::Int64 => "INT64",
383 }
384 }
385 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
387 match value {
388 "NOMINAL_DATA_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
389 "DOUBLE" => Some(Self::Double),
390 "STRING" => Some(Self::String),
391 "LOG" => Some(Self::Log),
392 "INT64" => Some(Self::Int64),
393 _ => None,
394 }
395 }
396}