1#[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}
16pub 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 Property {
28 #[prost(string, tag = "1")]
29 pub name: ::prost::alloc::string::String,
30 #[prost(string, tag = "2")]
31 pub value: ::prost::alloc::string::String,
32}
33#[derive(Clone, PartialEq, ::prost::Message)]
34pub struct LabelUpdateWrapper {
35 #[prost(string, repeated, tag = "1")]
36 pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
37}
38#[derive(Clone, PartialEq, ::prost::Message)]
39pub struct PropertyUpdateWrapper {
40 #[prost(map = "string, string", tag = "1")]
41 pub properties: ::std::collections::HashMap<
42 ::prost::alloc::string::String,
43 ::prost::alloc::string::String,
44 >,
45}
46#[derive(Clone, PartialEq, ::prost::Message)]
47pub struct RefNameAndType {
48 #[prost(string, tag = "1")]
49 pub name: ::prost::alloc::string::String,
50 #[prost(enumeration = "DataSourceType", tag = "2")]
51 pub r#type: i32,
52}
53#[derive(Clone, PartialEq, ::prost::Message)]
54pub struct SerializableError {
55 #[prost(string, tag = "1")]
56 pub name: ::prost::alloc::string::String,
57 #[prost(string, optional, tag = "2")]
58 pub message: ::core::option::Option<::prost::alloc::string::String>,
59 #[prost(string, tag = "3")]
60 pub error_instance_id: ::prost::alloc::string::String,
61 #[prost(int32, tag = "4")]
62 pub status_code: i32,
63 #[prost(map = "string, string", tag = "5")]
64 pub params: ::std::collections::HashMap<
65 ::prost::alloc::string::String,
66 ::prost::alloc::string::String,
67 >,
68}
69#[derive(Clone, Copy, PartialEq, ::prost::Message)]
70pub struct SuccessResult {}
71#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
72#[repr(i32)]
73pub enum ArchivedStatus {
74 Unspecified = 0,
75 NotArchived = 1,
76 Archived = 2,
77}
78impl ArchivedStatus {
79 pub fn as_str_name(&self) -> &'static str {
84 match self {
85 Self::Unspecified => "ARCHIVED_STATUS_UNSPECIFIED",
86 Self::NotArchived => "NOT_ARCHIVED",
87 Self::Archived => "ARCHIVED",
88 }
89 }
90 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
92 match value {
93 "ARCHIVED_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
94 "NOT_ARCHIVED" => Some(Self::NotArchived),
95 "ARCHIVED" => Some(Self::Archived),
96 _ => None,
97 }
98 }
99}
100#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
101#[repr(i32)]
102pub enum DataSourceType {
103 Unspecified = 0,
104 Dataset = 1,
105 Connection = 2,
106 Video = 3,
107 Spatial = 4,
108}
109impl DataSourceType {
110 pub fn as_str_name(&self) -> &'static str {
115 match self {
116 Self::Unspecified => "DATA_SOURCE_TYPE_UNSPECIFIED",
117 Self::Dataset => "DATASET",
118 Self::Connection => "CONNECTION",
119 Self::Video => "VIDEO",
120 Self::Spatial => "SPATIAL",
121 }
122 }
123 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
125 match value {
126 "DATA_SOURCE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
127 "DATASET" => Some(Self::Dataset),
128 "CONNECTION" => Some(Self::Connection),
129 "VIDEO" => Some(Self::Video),
130 "SPATIAL" => Some(Self::Spatial),
131 _ => None,
132 }
133 }
134}
135#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
136#[repr(i32)]
137pub enum Granularity {
138 Unspecified = 0,
139 Nanoseconds = 2,
140}
141impl Granularity {
142 pub fn as_str_name(&self) -> &'static str {
147 match self {
148 Self::Unspecified => "GRANULARITY_UNSPECIFIED",
149 Self::Nanoseconds => "NANOSECONDS",
150 }
151 }
152 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
154 match value {
155 "GRANULARITY_UNSPECIFIED" => Some(Self::Unspecified),
156 "NANOSECONDS" => Some(Self::Nanoseconds),
157 _ => None,
158 }
159 }
160}
161#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
162#[repr(i32)]
163pub enum IngestStatus {
164 Unspecified = 0,
165 Succeeded = 1,
166 Failed = 2,
167 InProgress = 3,
168 DeletionInProgress = 4,
169 Deleted = 5,
170}
171impl IngestStatus {
172 pub fn as_str_name(&self) -> &'static str {
177 match self {
178 Self::Unspecified => "INGEST_STATUS_UNSPECIFIED",
179 Self::Succeeded => "SUCCEEDED",
180 Self::Failed => "FAILED",
181 Self::InProgress => "IN_PROGRESS",
182 Self::DeletionInProgress => "DELETION_IN_PROGRESS",
183 Self::Deleted => "DELETED",
184 }
185 }
186 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
188 match value {
189 "INGEST_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
190 "SUCCEEDED" => Some(Self::Succeeded),
191 "FAILED" => Some(Self::Failed),
192 "IN_PROGRESS" => Some(Self::InProgress),
193 "DELETION_IN_PROGRESS" => Some(Self::DeletionInProgress),
194 "DELETED" => Some(Self::Deleted),
195 _ => None,
196 }
197 }
198}
199#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
200#[repr(i32)]
201pub enum NominalDataType {
202 Unspecified = 0,
203 Double = 1,
204 String = 2,
205 Log = 3,
206 Int64 = 4,
207}
208impl NominalDataType {
209 pub fn as_str_name(&self) -> &'static str {
214 match self {
215 Self::Unspecified => "NOMINAL_DATA_TYPE_UNSPECIFIED",
216 Self::Double => "DOUBLE",
217 Self::String => "STRING",
218 Self::Log => "LOG",
219 Self::Int64 => "INT64",
220 }
221 }
222 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
224 match value {
225 "NOMINAL_DATA_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
226 "DOUBLE" => Some(Self::Double),
227 "STRING" => Some(Self::String),
228 "LOG" => Some(Self::Log),
229 "INT64" => Some(Self::Int64),
230 _ => None,
231 }
232 }
233}
234#[derive(Clone, Copy, PartialEq, ::prost::Message)]
235pub struct Duration {
236 #[prost(int64, tag = "1")]
237 pub seconds: i64,
238 #[prost(int64, tag = "2")]
239 pub nanos: i64,
240}
241#[derive(Clone, PartialEq, ::prost::Message)]
242pub struct PropertiesFilter {
243 #[prost(string, tag = "1")]
244 pub name: ::prost::alloc::string::String,
245 #[prost(string, repeated, tag = "2")]
246 pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
247}
248#[derive(Clone, PartialEq, ::prost::Message)]
249pub struct LabelsFilter {
250 #[prost(enumeration = "SetOperator", tag = "1")]
251 pub operator: i32,
252 #[prost(string, repeated, tag = "2")]
253 pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
254}
255#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
256#[repr(i32)]
257pub enum Priority {
258 Unspecified = 0,
259 P0 = 1,
260 P1 = 2,
261 P2 = 3,
262 P3 = 4,
263 P4 = 5,
264}
265impl Priority {
266 pub fn as_str_name(&self) -> &'static str {
271 match self {
272 Self::Unspecified => "PRIORITY_UNSPECIFIED",
273 Self::P0 => "P0",
274 Self::P1 => "P1",
275 Self::P2 => "P2",
276 Self::P3 => "P3",
277 Self::P4 => "P4",
278 }
279 }
280 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
282 match value {
283 "PRIORITY_UNSPECIFIED" => Some(Self::Unspecified),
284 "P0" => Some(Self::P0),
285 "P1" => Some(Self::P1),
286 "P2" => Some(Self::P2),
287 "P3" => Some(Self::P3),
288 "P4" => Some(Self::P4),
289 _ => None,
290 }
291 }
292}
293#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
294#[repr(i32)]
295pub enum SetOperator {
296 Unspecified = 0,
297 And = 1,
298 Or = 2,
299}
300impl SetOperator {
301 pub fn as_str_name(&self) -> &'static str {
306 match self {
307 Self::Unspecified => "SET_OPERATOR_UNSPECIFIED",
308 Self::And => "AND",
309 Self::Or => "OR",
310 }
311 }
312 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
314 match value {
315 "SET_OPERATOR_UNSPECIFIED" => Some(Self::Unspecified),
316 "AND" => Some(Self::And),
317 "OR" => Some(Self::Or),
318 _ => None,
319 }
320 }
321}