Skip to content

Commit 5ca1768

Browse files
authored
[WORKFLOW] Updating protos from viamrobotics/api, commit: d2dcefa44387911121722e09f54eec4744bda0b6 (#371)
Co-authored-by: viambot <[email protected]>
1 parent 84e5aa3 commit 5ca1768

File tree

6 files changed

+169
-22
lines changed

6 files changed

+169
-22
lines changed

Diff for: lib/src/gen/app/data/v1/data.pb.dart

+84-14
Original file line numberDiff line numberDiff line change
@@ -1049,13 +1049,80 @@ class TabularDataBySQLResponse extends $pb.GeneratedMessage {
10491049
$core.List<$core.List<$core.int>> get rawData => $_getList(0);
10501050
}
10511051

1052+
/// TabularDataSource specifies the data source for user queries to execute on.
1053+
class TabularDataSource extends $pb.GeneratedMessage {
1054+
factory TabularDataSource({
1055+
TabularDataSourceType? type,
1056+
$core.String? pipelineId,
1057+
}) {
1058+
final $result = create();
1059+
if (type != null) {
1060+
$result.type = type;
1061+
}
1062+
if (pipelineId != null) {
1063+
$result.pipelineId = pipelineId;
1064+
}
1065+
return $result;
1066+
}
1067+
TabularDataSource._() : super();
1068+
factory TabularDataSource.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
1069+
factory TabularDataSource.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
1070+
1071+
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TabularDataSource', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.data.v1'), createEmptyInstance: create)
1072+
..e<TabularDataSourceType>(1, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: TabularDataSourceType.TABULAR_DATA_SOURCE_TYPE_UNSPECIFIED, valueOf: TabularDataSourceType.valueOf, enumValues: TabularDataSourceType.values)
1073+
..aOS(2, _omitFieldNames ? '' : 'pipelineId')
1074+
..hasRequiredFields = false
1075+
;
1076+
1077+
@$core.Deprecated(
1078+
'Using this can add significant overhead to your binary. '
1079+
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
1080+
'Will be removed in next major version')
1081+
TabularDataSource clone() => TabularDataSource()..mergeFromMessage(this);
1082+
@$core.Deprecated(
1083+
'Using this can add significant overhead to your binary. '
1084+
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
1085+
'Will be removed in next major version')
1086+
TabularDataSource copyWith(void Function(TabularDataSource) updates) => super.copyWith((message) => updates(message as TabularDataSource)) as TabularDataSource;
1087+
1088+
$pb.BuilderInfo get info_ => _i;
1089+
1090+
@$core.pragma('dart2js:noInline')
1091+
static TabularDataSource create() => TabularDataSource._();
1092+
TabularDataSource createEmptyInstance() => create();
1093+
static $pb.PbList<TabularDataSource> createRepeated() => $pb.PbList<TabularDataSource>();
1094+
@$core.pragma('dart2js:noInline')
1095+
static TabularDataSource getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<TabularDataSource>(create);
1096+
static TabularDataSource? _defaultInstance;
1097+
1098+
@$pb.TagNumber(1)
1099+
TabularDataSourceType get type => $_getN(0);
1100+
@$pb.TagNumber(1)
1101+
set type(TabularDataSourceType v) { setField(1, v); }
1102+
@$pb.TagNumber(1)
1103+
$core.bool hasType() => $_has(0);
1104+
@$pb.TagNumber(1)
1105+
void clearType() => clearField(1);
1106+
1107+
/// pipeline_id is the ID of the pipeline to query. Required when using
1108+
/// TABULAR_DATA_SOURCE_TYPE_PIPELINE_SINK.
1109+
@$pb.TagNumber(2)
1110+
$core.String get pipelineId => $_getSZ(1);
1111+
@$pb.TagNumber(2)
1112+
set pipelineId($core.String v) { $_setString(1, v); }
1113+
@$pb.TagNumber(2)
1114+
$core.bool hasPipelineId() => $_has(1);
1115+
@$pb.TagNumber(2)
1116+
void clearPipelineId() => clearField(2);
1117+
}
1118+
10521119
/// TabularDataByMQLRequest requests tabular data using an MQL query.
10531120
class TabularDataByMQLRequest extends $pb.GeneratedMessage {
10541121
factory TabularDataByMQLRequest({
10551122
$core.String? organizationId,
10561123
$core.Iterable<$core.List<$core.int>>? mqlBinary,
10571124
$core.bool? useRecentData,
1058-
$core.String? useDataPipeline,
1125+
TabularDataSource? dataSource,
10591126
}) {
10601127
final $result = create();
10611128
if (organizationId != null) {
@@ -1067,8 +1134,8 @@ class TabularDataByMQLRequest extends $pb.GeneratedMessage {
10671134
if (useRecentData != null) {
10681135
$result.useRecentData = useRecentData;
10691136
}
1070-
if (useDataPipeline != null) {
1071-
$result.useDataPipeline = useDataPipeline;
1137+
if (dataSource != null) {
1138+
$result.dataSource = dataSource;
10721139
}
10731140
return $result;
10741141
}
@@ -1080,7 +1147,7 @@ class TabularDataByMQLRequest extends $pb.GeneratedMessage {
10801147
..aOS(1, _omitFieldNames ? '' : 'organizationId')
10811148
..p<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'mqlBinary', $pb.PbFieldType.PY)
10821149
..aOB(4, _omitFieldNames ? '' : 'useRecentData')
1083-
..aOS(5, _omitFieldNames ? '' : 'useDataPipeline')
1150+
..aOM<TabularDataSource>(6, _omitFieldNames ? '' : 'dataSource', subBuilder: TabularDataSource.create)
10841151
..hasRequiredFields = false
10851152
;
10861153

@@ -1120,6 +1187,7 @@ class TabularDataByMQLRequest extends $pb.GeneratedMessage {
11201187
@$pb.TagNumber(3)
11211188
$core.List<$core.List<$core.int>> get mqlBinary => $_getList(1);
11221189

1190+
/// Deprecated, please use TABULAR_DATA_SOURCE_TYPE_HOT_STORAGE instead.
11231191
@$pb.TagNumber(4)
11241192
$core.bool get useRecentData => $_getBF(2);
11251193
@$pb.TagNumber(4)
@@ -1129,16 +1197,18 @@ class TabularDataByMQLRequest extends $pb.GeneratedMessage {
11291197
@$pb.TagNumber(4)
11301198
void clearUseRecentData() => clearField(4);
11311199

1132-
/// if set, MQL query will target the sink collection for the data pipeline name
1133-
/// referenced by this value under the given organization.
1134-
@$pb.TagNumber(5)
1135-
$core.String get useDataPipeline => $_getSZ(3);
1136-
@$pb.TagNumber(5)
1137-
set useDataPipeline($core.String v) { $_setString(3, v); }
1138-
@$pb.TagNumber(5)
1139-
$core.bool hasUseDataPipeline() => $_has(3);
1140-
@$pb.TagNumber(5)
1141-
void clearUseDataPipeline() => clearField(5);
1200+
/// data_source is an optional field that can be used to specify the data source for the query.
1201+
/// If not specified, the query will run on "standard" storage.
1202+
@$pb.TagNumber(6)
1203+
TabularDataSource get dataSource => $_getN(3);
1204+
@$pb.TagNumber(6)
1205+
set dataSource(TabularDataSource v) { setField(6, v); }
1206+
@$pb.TagNumber(6)
1207+
$core.bool hasDataSource() => $_has(3);
1208+
@$pb.TagNumber(6)
1209+
void clearDataSource() => clearField(6);
1210+
@$pb.TagNumber(6)
1211+
TabularDataSource ensureDataSource() => $_ensure(3);
11421212
}
11431213

11441214
/// TabularDataByMQLResponse provides unified tabular data and metadata, queried with MQL.

Diff for: lib/src/gen/app/data/v1/data.pbenum.dart

+20
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,25 @@ class TagsFilterType extends $pb.ProtobufEnum {
5151
const TagsFilterType._($core.int v, $core.String n) : super(v, n);
5252
}
5353

54+
/// TabularDataSourceType specifies the data source type for TabularDataByMQL queries.
55+
class TabularDataSourceType extends $pb.ProtobufEnum {
56+
static const TabularDataSourceType TABULAR_DATA_SOURCE_TYPE_UNSPECIFIED = TabularDataSourceType._(0, _omitEnumNames ? '' : 'TABULAR_DATA_SOURCE_TYPE_UNSPECIFIED');
57+
static const TabularDataSourceType TABULAR_DATA_SOURCE_TYPE_STANDARD = TabularDataSourceType._(1, _omitEnumNames ? '' : 'TABULAR_DATA_SOURCE_TYPE_STANDARD');
58+
static const TabularDataSourceType TABULAR_DATA_SOURCE_TYPE_HOT_STORAGE = TabularDataSourceType._(2, _omitEnumNames ? '' : 'TABULAR_DATA_SOURCE_TYPE_HOT_STORAGE');
59+
static const TabularDataSourceType TABULAR_DATA_SOURCE_TYPE_PIPELINE_SINK = TabularDataSourceType._(3, _omitEnumNames ? '' : 'TABULAR_DATA_SOURCE_TYPE_PIPELINE_SINK');
60+
61+
static const $core.List<TabularDataSourceType> values = <TabularDataSourceType> [
62+
TABULAR_DATA_SOURCE_TYPE_UNSPECIFIED,
63+
TABULAR_DATA_SOURCE_TYPE_STANDARD,
64+
TABULAR_DATA_SOURCE_TYPE_HOT_STORAGE,
65+
TABULAR_DATA_SOURCE_TYPE_PIPELINE_SINK,
66+
];
67+
68+
static final $core.Map<$core.int, TabularDataSourceType> _byValue = $pb.ProtobufEnum.initByValue(values);
69+
static TabularDataSourceType? valueOf($core.int value) => _byValue[value];
70+
71+
const TabularDataSourceType._($core.int v, $core.String n) : super(v, n);
72+
}
73+
5474

5575
const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');

Diff for: lib/src/gen/app/data/v1/data.pbjson.dart

+44-6
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,24 @@ final $typed_data.Uint8List tagsFilterTypeDescriptor = $convert.base64Decode(
4545
'FHU19GSUxURVJfVFlQRV9NQVRDSF9CWV9PUhABEhsKF1RBR1NfRklMVEVSX1RZUEVfVEFHR0VE'
4646
'EAISHQoZVEFHU19GSUxURVJfVFlQRV9VTlRBR0dFRBAD');
4747

48+
@$core.Deprecated('Use tabularDataSourceTypeDescriptor instead')
49+
const TabularDataSourceType$json = {
50+
'1': 'TabularDataSourceType',
51+
'2': [
52+
{'1': 'TABULAR_DATA_SOURCE_TYPE_UNSPECIFIED', '2': 0},
53+
{'1': 'TABULAR_DATA_SOURCE_TYPE_STANDARD', '2': 1},
54+
{'1': 'TABULAR_DATA_SOURCE_TYPE_HOT_STORAGE', '2': 2},
55+
{'1': 'TABULAR_DATA_SOURCE_TYPE_PIPELINE_SINK', '2': 3},
56+
],
57+
};
58+
59+
/// Descriptor for `TabularDataSourceType`. Decode as a `google.protobuf.EnumDescriptorProto`.
60+
final $typed_data.Uint8List tabularDataSourceTypeDescriptor = $convert.base64Decode(
61+
'ChVUYWJ1bGFyRGF0YVNvdXJjZVR5cGUSKAokVEFCVUxBUl9EQVRBX1NPVVJDRV9UWVBFX1VOU1'
62+
'BFQ0lGSUVEEAASJQohVEFCVUxBUl9EQVRBX1NPVVJDRV9UWVBFX1NUQU5EQVJEEAESKAokVEFC'
63+
'VUxBUl9EQVRBX1NPVVJDRV9UWVBFX0hPVF9TVE9SQUdFEAISKgomVEFCVUxBUl9EQVRBX1NPVV'
64+
'JDRV9UWVBFX1BJUEVMSU5FX1NJTksQAw==');
65+
4866
@$core.Deprecated('Use dataRequestDescriptor instead')
4967
const DataRequest$json = {
5068
'1': 'DataRequest',
@@ -268,32 +286,52 @@ final $typed_data.Uint8List tabularDataBySQLResponseDescriptor = $convert.base64
268286
'ChhUYWJ1bGFyRGF0YUJ5U1FMUmVzcG9uc2USGQoIcmF3X2RhdGEYAiADKAxSB3Jhd0RhdGFKBA'
269287
'gBEAJSBGRhdGE=');
270288

289+
@$core.Deprecated('Use tabularDataSourceDescriptor instead')
290+
const TabularDataSource$json = {
291+
'1': 'TabularDataSource',
292+
'2': [
293+
{'1': 'type', '3': 1, '4': 1, '5': 14, '6': '.viam.app.data.v1.TabularDataSourceType', '10': 'type'},
294+
{'1': 'pipeline_id', '3': 2, '4': 1, '5': 9, '9': 0, '10': 'pipelineId', '17': true},
295+
],
296+
'8': [
297+
{'1': '_pipeline_id'},
298+
],
299+
};
300+
301+
/// Descriptor for `TabularDataSource`. Decode as a `google.protobuf.DescriptorProto`.
302+
final $typed_data.Uint8List tabularDataSourceDescriptor = $convert.base64Decode(
303+
'ChFUYWJ1bGFyRGF0YVNvdXJjZRI7CgR0eXBlGAEgASgOMicudmlhbS5hcHAuZGF0YS52MS5UYW'
304+
'J1bGFyRGF0YVNvdXJjZVR5cGVSBHR5cGUSJAoLcGlwZWxpbmVfaWQYAiABKAlIAFIKcGlwZWxp'
305+
'bmVJZIgBAUIOCgxfcGlwZWxpbmVfaWQ=');
306+
271307
@$core.Deprecated('Use tabularDataByMQLRequestDescriptor instead')
272308
const TabularDataByMQLRequest$json = {
273309
'1': 'TabularDataByMQLRequest',
274310
'2': [
275311
{'1': 'organization_id', '3': 1, '4': 1, '5': 9, '10': 'organizationId'},
276312
{'1': 'mql_binary', '3': 3, '4': 3, '5': 12, '10': 'mqlBinary'},
277313
{'1': 'use_recent_data', '3': 4, '4': 1, '5': 8, '9': 0, '10': 'useRecentData', '17': true},
278-
{'1': 'use_data_pipeline', '3': 5, '4': 1, '5': 9, '9': 1, '10': 'useDataPipeline', '17': true},
314+
{'1': 'data_source', '3': 6, '4': 1, '5': 11, '6': '.viam.app.data.v1.TabularDataSource', '9': 1, '10': 'dataSource', '17': true},
279315
],
280316
'8': [
281317
{'1': '_use_recent_data'},
282-
{'1': '_use_data_pipeline'},
318+
{'1': '_data_source'},
283319
],
284320
'9': [
285321
{'1': 2, '2': 3},
322+
{'1': 5, '2': 6},
286323
],
287-
'10': ['mql_query'],
324+
'10': ['mql_query', 'use_data_pipeline'],
288325
};
289326

290327
/// Descriptor for `TabularDataByMQLRequest`. Decode as a `google.protobuf.DescriptorProto`.
291328
final $typed_data.Uint8List tabularDataByMQLRequestDescriptor = $convert.base64Decode(
292329
'ChdUYWJ1bGFyRGF0YUJ5TVFMUmVxdWVzdBInCg9vcmdhbml6YXRpb25faWQYASABKAlSDm9yZ2'
293330
'FuaXphdGlvbklkEh0KCm1xbF9iaW5hcnkYAyADKAxSCW1xbEJpbmFyeRIrCg91c2VfcmVjZW50'
294-
'X2RhdGEYBCABKAhIAFINdXNlUmVjZW50RGF0YYgBARIvChF1c2VfZGF0YV9waXBlbGluZRgFIA'
295-
'EoCUgBUg91c2VEYXRhUGlwZWxpbmWIAQFCEgoQX3VzZV9yZWNlbnRfZGF0YUIUChJfdXNlX2Rh'
296-
'dGFfcGlwZWxpbmVKBAgCEANSCW1xbF9xdWVyeQ==');
331+
'X2RhdGEYBCABKAhIAFINdXNlUmVjZW50RGF0YYgBARJJCgtkYXRhX3NvdXJjZRgGIAEoCzIjLn'
332+
'ZpYW0uYXBwLmRhdGEudjEuVGFidWxhckRhdGFTb3VyY2VIAVIKZGF0YVNvdXJjZYgBAUISChBf'
333+
'dXNlX3JlY2VudF9kYXRhQg4KDF9kYXRhX3NvdXJjZUoECAIQA0oECAUQBlIJbXFsX3F1ZXJ5Uh'
334+
'F1c2VfZGF0YV9waXBlbGluZQ==');
297335

298336
@$core.Deprecated('Use tabularDataByMQLResponseDescriptor instead')
299337
const TabularDataByMQLResponse$json = {

Diff for: lib/src/gen/app/v1/app.pb.dart

+15
Original file line numberDiff line numberDiff line change
@@ -11051,6 +11051,7 @@ class ModuleVersion extends $pb.GeneratedMessage {
1105111051
$core.Iterable<Model>? models,
1105211052
$core.String? entrypoint,
1105311053
$core.String? firstRun,
11054+
$core.String? markdownDescription,
1105411055
}) {
1105511056
final $result = create();
1105611057
if (version != null) {
@@ -11068,6 +11069,9 @@ class ModuleVersion extends $pb.GeneratedMessage {
1106811069
if (firstRun != null) {
1106911070
$result.firstRun = firstRun;
1107011071
}
11072+
if (markdownDescription != null) {
11073+
$result.markdownDescription = markdownDescription;
11074+
}
1107111075
return $result;
1107211076
}
1107311077
ModuleVersion._() : super();
@@ -11080,6 +11084,7 @@ class ModuleVersion extends $pb.GeneratedMessage {
1108011084
..pc<Model>(3, _omitFieldNames ? '' : 'models', $pb.PbFieldType.PM, subBuilder: Model.create)
1108111085
..aOS(4, _omitFieldNames ? '' : 'entrypoint')
1108211086
..aOS(5, _omitFieldNames ? '' : 'firstRun')
11087+
..aOS(6, _omitFieldNames ? '' : 'markdownDescription')
1108311088
..hasRequiredFields = false
1108411089
;
1108511090

@@ -11141,6 +11146,16 @@ class ModuleVersion extends $pb.GeneratedMessage {
1114111146
$core.bool hasFirstRun() => $_has(4);
1114211147
@$pb.TagNumber(5)
1114311148
void clearFirstRun() => clearField(5);
11149+
11150+
/// The markdown documentation for this version of the module
11151+
@$pb.TagNumber(6)
11152+
$core.String get markdownDescription => $_getSZ(5);
11153+
@$pb.TagNumber(6)
11154+
set markdownDescription($core.String v) { $_setString(5, v); }
11155+
@$pb.TagNumber(6)
11156+
$core.bool hasMarkdownDescription() => $_has(5);
11157+
@$pb.TagNumber(6)
11158+
void clearMarkdownDescription() => clearField(6);
1114411159
}
1114511160

1114611161
class ModuleMetadata extends $pb.GeneratedMessage {

Diff for: lib/src/gen/app/v1/app.pbjson.dart

+5-1
Original file line numberDiff line numberDiff line change
@@ -2783,9 +2783,11 @@ const ModuleVersion$json = {
27832783
{'1': 'models', '3': 3, '4': 3, '5': 11, '6': '.viam.app.v1.Model', '10': 'models'},
27842784
{'1': 'entrypoint', '3': 4, '4': 1, '5': 9, '10': 'entrypoint'},
27852785
{'1': 'first_run', '3': 5, '4': 1, '5': 9, '9': 0, '10': 'firstRun', '17': true},
2786+
{'1': 'markdown_description', '3': 6, '4': 1, '5': 9, '9': 1, '10': 'markdownDescription', '17': true},
27862787
],
27872788
'8': [
27882789
{'1': '_first_run'},
2790+
{'1': '_markdown_description'},
27892791
],
27902792
};
27912793

@@ -2794,7 +2796,9 @@ final $typed_data.Uint8List moduleVersionDescriptor = $convert.base64Decode(
27942796
'Cg1Nb2R1bGVWZXJzaW9uEhgKB3ZlcnNpb24YASABKAlSB3ZlcnNpb24SKgoFZmlsZXMYAiADKA'
27952797
'syFC52aWFtLmFwcC52MS5VcGxvYWRzUgVmaWxlcxIqCgZtb2RlbHMYAyADKAsyEi52aWFtLmFw'
27962798
'cC52MS5Nb2RlbFIGbW9kZWxzEh4KCmVudHJ5cG9pbnQYBCABKAlSCmVudHJ5cG9pbnQSIAoJZm'
2797-
'lyc3RfcnVuGAUgASgJSABSCGZpcnN0UnVuiAEBQgwKCl9maXJzdF9ydW4=');
2799+
'lyc3RfcnVuGAUgASgJSABSCGZpcnN0UnVuiAEBEjYKFG1hcmtkb3duX2Rlc2NyaXB0aW9uGAYg'
2800+
'ASgJSAFSE21hcmtkb3duRGVzY3JpcHRpb26IAQFCDAoKX2ZpcnN0X3J1bkIXChVfbWFya2Rvd2'
2801+
'5fZGVzY3JpcHRpb24=');
27982802

27992803
@$core.Deprecated('Use moduleMetadataDescriptor instead')
28002804
const ModuleMetadata$json = {

Diff for: lib/src/utils.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ extension GetReadingsResponseUtils on GetReadingsResponse {
117117

118118
String getVersionMetadata() {
119119
const String sdkVersion = 'v0.5.0';
120-
const String apiTag = 'v0.1.417';
120+
const String apiTag = 'v0.1.420';
121121

122122
return 'flutter;$sdkVersion;$apiTag';
123123
}

0 commit comments

Comments
 (0)