Skip to content

Commit ced47eb

Browse files
authored
[WORKFLOW] Updating protos from viamrobotics/api, commit: ae9e0f07862ae40f79119b746fca6d68f2a7d2e0
1 parent fc3c002 commit ced47eb

5 files changed

+631
-25
lines changed

src/gen/viam.app.data.v1.rs

+15-25
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
// @generated
2+
/// DataRequest encapsulates the filter for the data, a limit on the maximum results returned,
3+
/// a last string associated with the last returned document, and the sorting order by time.
4+
/// last is returned in the responses TabularDataByFilterResponse and BinaryDataByFilterResponse
5+
/// from the API calls TabularDataByFilter and BinaryDataByFilter, respectively.
6+
/// We can then use the last string from the previous API calls in the subsequent request
7+
/// to get the next set of ordered documents.
28
#[allow(clippy::derive_partial_eq_without_eq)]
39
#[derive(Clone, PartialEq, ::prost::Message)]
410
pub struct DataRequest {
@@ -11,6 +17,11 @@ pub struct DataRequest {
1117
#[prost(enumeration="Order", tag="4")]
1218
pub sort_order: i32,
1319
}
20+
/// Filter defines the fields over which we can filter data using a logic AND.
21+
/// For example, if component_type and robot_id are specified, only data from that `robot_id` of
22+
/// type `component_type` is returned. However, we logical OR over the specified tags and bounding
23+
/// box labels, such that if component_type, robot_id, tagA, tagB are specified,
24+
/// we return data from that `robot_id` of type `component_type` with `tagA` or `tagB`.
1425
#[allow(clippy::derive_partial_eq_without_eq)]
1526
#[derive(Clone, PartialEq, ::prost::Message)]
1627
pub struct Filter {
@@ -38,15 +49,17 @@ pub struct Filter {
3849
pub interval: ::core::option::Option<CaptureInterval>,
3950
#[prost(message, optional, tag="14")]
4051
pub tags_filter: ::core::option::Option<TagsFilter>,
52+
/// bbox_labels are used to match documents with the specified bounding box labels (using logical OR)
4153
#[prost(string, repeated, tag="15")]
4254
pub bbox_labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
4355
}
56+
/// TagsFilter defines the type of filtering and, if applicable, over which tags to perform a logical OR.
4457
#[allow(clippy::derive_partial_eq_without_eq)]
4558
#[derive(Clone, PartialEq, ::prost::Message)]
4659
pub struct TagsFilter {
4760
#[prost(enumeration="TagsFilterType", tag="1")]
4861
pub r#type: i32,
49-
/// Tags are used to match documents if `type` is UNSPECIFIED or MATCH_BY_ORG
62+
/// Tags are used to match documents if `type` is UNSPECIFIED or MATCH_BY_OR
5063
#[prost(string, repeated, tag="2")]
5164
pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5265
}
@@ -174,10 +187,6 @@ pub struct BinaryDataByIDsRequest {
174187
pub include_binary: bool,
175188
#[prost(message, repeated, tag="3")]
176189
pub binary_ids: ::prost::alloc::vec::Vec<BinaryId>,
177-
/// Replaced by binary_ids
178-
#[deprecated]
179-
#[prost(string, repeated, tag="1")]
180-
pub file_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
181190
}
182191
/// BinaryDataByIDsResponse provides the data and metadata of binary (image + file) data when a filter is provided
183192
#[allow(clippy::derive_partial_eq_without_eq)]
@@ -267,10 +276,6 @@ pub struct DeleteBinaryDataByFilterResponse {
267276
pub struct DeleteBinaryDataByIDsRequest {
268277
#[prost(message, repeated, tag="2")]
269278
pub binary_ids: ::prost::alloc::vec::Vec<BinaryId>,
270-
/// Replaced by binary_ids
271-
#[deprecated]
272-
#[prost(string, repeated, tag="1")]
273-
pub file_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
274279
}
275280
/// DeleteBinaryDataByIDsResponse returns the number of binary files deleted when binary ids are provided
276281
#[allow(clippy::derive_partial_eq_without_eq)]
@@ -287,10 +292,6 @@ pub struct AddTagsToBinaryDataByIDsRequest {
287292
pub binary_ids: ::prost::alloc::vec::Vec<BinaryId>,
288293
#[prost(string, repeated, tag="2")]
289294
pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
290-
/// Replaced by binary_ids
291-
#[deprecated]
292-
#[prost(string, repeated, tag="1")]
293-
pub file_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
294295
}
295296
#[allow(clippy::derive_partial_eq_without_eq)]
296297
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -317,10 +318,6 @@ pub struct RemoveTagsFromBinaryDataByIDsRequest {
317318
pub binary_ids: ::prost::alloc::vec::Vec<BinaryId>,
318319
#[prost(string, repeated, tag="2")]
319320
pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
320-
/// Replaced by binary_ids
321-
#[deprecated]
322-
#[prost(string, repeated, tag="1")]
323-
pub file_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
324321
}
325322
/// RemoveTagsFromBinaryDataByIDsResponse returns the number of binary files which had tags removed
326323
#[allow(clippy::derive_partial_eq_without_eq)]
@@ -374,10 +371,6 @@ pub struct AddBoundingBoxToImageByIdRequest {
374371
pub x_max_normalized: f64,
375372
#[prost(double, tag="6")]
376373
pub y_max_normalized: f64,
377-
/// Replaced by binary_id
378-
#[deprecated]
379-
#[prost(string, tag="1")]
380-
pub file_id: ::prost::alloc::string::String,
381374
}
382375
#[allow(clippy::derive_partial_eq_without_eq)]
383376
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -392,10 +385,6 @@ pub struct RemoveBoundingBoxFromImageByIdRequest {
392385
pub binary_id: ::core::option::Option<BinaryId>,
393386
#[prost(string, tag="2")]
394387
pub bbox_id: ::prost::alloc::string::String,
395-
/// Replaced by binary_id
396-
#[deprecated]
397-
#[prost(string, tag="1")]
398-
pub file_id: ::prost::alloc::string::String,
399388
}
400389
#[allow(clippy::derive_partial_eq_without_eq)]
401390
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -413,6 +402,7 @@ pub struct BoundingBoxLabelsByFilterResponse {
413402
#[prost(string, repeated, tag="1")]
414403
pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
415404
}
405+
/// Order specifies the order in which data is returned.
416406
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
417407
#[repr(i32)]
418408
pub enum Order {

src/gen/viam.app.v1.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1431,6 +1431,9 @@ pub struct GetOrgBillingInformationResponse {
14311431
/// defined if type is PAYMENT_METHOD_TYPE_CARD
14321432
#[prost(message, optional, tag="3")]
14331433
pub method: ::core::option::Option<PaymentMethodCard>,
1434+
/// Only return billing_tier for billing dashboard admin users
1435+
#[prost(string, optional, tag="4")]
1436+
pub billing_tier: ::core::option::Option<::prost::alloc::string::String>,
14341437
}
14351438
#[allow(clippy::derive_partial_eq_without_eq)]
14361439
#[derive(Clone, PartialEq, ::prost::Message)]

src/gen/viam.common.v1.rs

+6
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,9 @@ pub struct GetKinematicsRequest {
262262
/// The component name
263263
#[prost(string, tag="1")]
264264
pub name: ::prost::alloc::string::String,
265+
/// Additional arguments to the method
266+
#[prost(message, optional, tag="99")]
267+
pub extra: ::core::option::Option<::prost_types::Struct>,
265268
}
266269
#[allow(clippy::derive_partial_eq_without_eq)]
267270
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -280,6 +283,9 @@ pub struct GetGeometriesRequest {
280283
/// The component name
281284
#[prost(string, tag="1")]
282285
pub name: ::prost::alloc::string::String,
286+
/// Additional arguments to the method
287+
#[prost(message, optional, tag="99")]
288+
pub extra: ::core::option::Option<::prost_types::Struct>,
283289
}
284290
#[allow(clippy::derive_partial_eq_without_eq)]
285291
#[derive(Clone, PartialEq, ::prost::Message)]
+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
// @generated
2+
#[allow(clippy::derive_partial_eq_without_eq)]
3+
#[derive(Clone, PartialEq, ::prost::Message)]
4+
pub struct GetVoltageRequest {
5+
/// Name of a power sensor
6+
#[prost(string, tag="1")]
7+
pub name: ::prost::alloc::string::String,
8+
/// Additional arguments to the method
9+
#[prost(message, optional, tag="99")]
10+
pub extra: ::core::option::Option<::prost_types::Struct>,
11+
}
12+
#[allow(clippy::derive_partial_eq_without_eq)]
13+
#[derive(Clone, PartialEq, ::prost::Message)]
14+
pub struct GetVoltageResponse {
15+
/// Voltage in volts
16+
#[prost(double, tag="1")]
17+
pub volts: f64,
18+
/// Bool describing whether the voltage is DC or AC
19+
#[prost(bool, tag="2")]
20+
pub is_ac: bool,
21+
}
22+
#[allow(clippy::derive_partial_eq_without_eq)]
23+
#[derive(Clone, PartialEq, ::prost::Message)]
24+
pub struct GetCurrentRequest {
25+
/// Name of a power sensor
26+
#[prost(string, tag="1")]
27+
pub name: ::prost::alloc::string::String,
28+
/// Additional arguments to the method
29+
#[prost(message, optional, tag="99")]
30+
pub extra: ::core::option::Option<::prost_types::Struct>,
31+
}
32+
#[allow(clippy::derive_partial_eq_without_eq)]
33+
#[derive(Clone, PartialEq, ::prost::Message)]
34+
pub struct GetCurrentResponse {
35+
/// Current in amperes
36+
#[prost(double, tag="1")]
37+
pub amperes: f64,
38+
/// Bool descibing whether the current is DC or AC
39+
#[prost(bool, tag="2")]
40+
pub is_ac: bool,
41+
}
42+
#[allow(clippy::derive_partial_eq_without_eq)]
43+
#[derive(Clone, PartialEq, ::prost::Message)]
44+
pub struct GetPowerRequest {
45+
/// Name of a power sensor
46+
#[prost(string, tag="1")]
47+
pub name: ::prost::alloc::string::String,
48+
/// Additional arguments to the method
49+
#[prost(message, optional, tag="99")]
50+
pub extra: ::core::option::Option<::prost_types::Struct>,
51+
}
52+
#[allow(clippy::derive_partial_eq_without_eq)]
53+
#[derive(Clone, PartialEq, ::prost::Message)]
54+
pub struct GetPowerResponse {
55+
/// Power in watts
56+
#[prost(double, tag="1")]
57+
pub watts: f64,
58+
}
59+
// @@protoc_insertion_point(module)

0 commit comments

Comments
 (0)