1
1
// @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.
2
8
#[ allow( clippy:: derive_partial_eq_without_eq) ]
3
9
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
4
10
pub struct DataRequest {
@@ -11,6 +17,11 @@ pub struct DataRequest {
11
17
#[ prost( enumeration="Order" , tag="4" ) ]
12
18
pub sort_order : i32 ,
13
19
}
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`.
14
25
#[ allow( clippy:: derive_partial_eq_without_eq) ]
15
26
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
16
27
pub struct Filter {
@@ -38,15 +49,17 @@ pub struct Filter {
38
49
pub interval : :: core:: option:: Option < CaptureInterval > ,
39
50
#[ prost( message, optional, tag="14" ) ]
40
51
pub tags_filter : :: core:: option:: Option < TagsFilter > ,
52
+ /// bbox_labels are used to match documents with the specified bounding box labels (using logical OR)
41
53
#[ prost( string, repeated, tag="15" ) ]
42
54
pub bbox_labels : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: string:: String > ,
43
55
}
56
+ /// TagsFilter defines the type of filtering and, if applicable, over which tags to perform a logical OR.
44
57
#[ allow( clippy:: derive_partial_eq_without_eq) ]
45
58
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
46
59
pub struct TagsFilter {
47
60
#[ prost( enumeration="TagsFilterType" , tag="1" ) ]
48
61
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
50
63
#[ prost( string, repeated, tag="2" ) ]
51
64
pub tags : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: string:: String > ,
52
65
}
@@ -174,10 +187,6 @@ pub struct BinaryDataByIDsRequest {
174
187
pub include_binary : bool ,
175
188
#[ prost( message, repeated, tag="3" ) ]
176
189
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 > ,
181
190
}
182
191
/// BinaryDataByIDsResponse provides the data and metadata of binary (image + file) data when a filter is provided
183
192
#[ allow( clippy:: derive_partial_eq_without_eq) ]
@@ -267,10 +276,6 @@ pub struct DeleteBinaryDataByFilterResponse {
267
276
pub struct DeleteBinaryDataByIDsRequest {
268
277
#[ prost( message, repeated, tag="2" ) ]
269
278
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 > ,
274
279
}
275
280
/// DeleteBinaryDataByIDsResponse returns the number of binary files deleted when binary ids are provided
276
281
#[ allow( clippy:: derive_partial_eq_without_eq) ]
@@ -287,10 +292,6 @@ pub struct AddTagsToBinaryDataByIDsRequest {
287
292
pub binary_ids : :: prost:: alloc:: vec:: Vec < BinaryId > ,
288
293
#[ prost( string, repeated, tag="2" ) ]
289
294
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 > ,
294
295
}
295
296
#[ allow( clippy:: derive_partial_eq_without_eq) ]
296
297
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -317,10 +318,6 @@ pub struct RemoveTagsFromBinaryDataByIDsRequest {
317
318
pub binary_ids : :: prost:: alloc:: vec:: Vec < BinaryId > ,
318
319
#[ prost( string, repeated, tag="2" ) ]
319
320
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 > ,
324
321
}
325
322
/// RemoveTagsFromBinaryDataByIDsResponse returns the number of binary files which had tags removed
326
323
#[ allow( clippy:: derive_partial_eq_without_eq) ]
@@ -374,10 +371,6 @@ pub struct AddBoundingBoxToImageByIdRequest {
374
371
pub x_max_normalized : f64 ,
375
372
#[ prost( double, tag="6" ) ]
376
373
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 ,
381
374
}
382
375
#[ allow( clippy:: derive_partial_eq_without_eq) ]
383
376
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -392,10 +385,6 @@ pub struct RemoveBoundingBoxFromImageByIdRequest {
392
385
pub binary_id : :: core:: option:: Option < BinaryId > ,
393
386
#[ prost( string, tag="2" ) ]
394
387
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 ,
399
388
}
400
389
#[ allow( clippy:: derive_partial_eq_without_eq) ]
401
390
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -413,6 +402,7 @@ pub struct BoundingBoxLabelsByFilterResponse {
413
402
#[ prost( string, repeated, tag="1" ) ]
414
403
pub labels : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: string:: String > ,
415
404
}
405
+ /// Order specifies the order in which data is returned.
416
406
#[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , PartialOrd , Ord , :: prost:: Enumeration ) ]
417
407
#[ repr( i32 ) ]
418
408
pub enum Order {
0 commit comments