From 337e9d2767eec68c022bca94a6f3c852b94b822b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 12 Feb 2024 12:13:57 -0500 Subject: [PATCH] Automated Protos Update (#177) * [WORKFLOW] Updating protos from viamrobotics/api, commit: 8eabaff8c16444b60d5d17614efb6a32ec66d891 * Update LogEntry import --------- Co-authored-by: viambot Co-authored-by: Naveed Jooma --- lib/src/app/app.dart | 5 +- lib/src/gen/app/data/v1/data.pb.dart | 17 +- lib/src/gen/app/data/v1/data.pbjson.dart | 9 +- lib/src/gen/app/v1/app.pb.dart | 177 +++------------ lib/src/gen/app/v1/app.pbjson.dart | 60 ++---- lib/src/gen/app/v1/robot.pb.dart | 71 +++--- lib/src/gen/app/v1/robot.pbjson.dart | 6 +- lib/src/gen/common/v1/common.pb.dart | 146 +++++++++++++ lib/src/gen/common/v1/common.pbjson.dart | 24 +++ .../google/api/expr/v1alpha1/syntax.pb.dart | 189 +++++++++++++++- .../api/expr/v1alpha1/syntax.pbenum.dart | 26 +++ .../api/expr/v1alpha1/syntax.pbjson.dart | 50 ++++- lib/src/gen/google/api/field_behavior.pb.dart | 2 +- lib/src/gen/module/v1/module.pb.dart | 44 ++-- lib/src/gen/module/v1/module.pbgrpc.dart | 92 ++++---- lib/src/gen/robot/v1/robot.pb.dart | 76 +++++++ lib/src/gen/robot/v1/robot.pbgrpc.dart | 20 ++ lib/src/gen/robot/v1/robot.pbjson.dart | 22 ++ lib/src/gen/service/motion/v1/motion.pb.dart | 204 ++---------------- .../gen/service/motion/v1/motion.pbgrpc.dart | 20 -- .../gen/service/motion/v1/motion.pbjson.dart | 48 +---- test/unit_test/app/app_client_test.dart | 1 + 22 files changed, 722 insertions(+), 587 deletions(-) diff --git a/lib/src/app/app.dart b/lib/src/app/app.dart index 0be21191ae5..fb386b38214 100644 --- a/lib/src/app/app.dart +++ b/lib/src/app/app.dart @@ -3,6 +3,7 @@ import 'dart:async'; import 'package:viam_sdk/src/gen/google/protobuf/struct.pb.dart'; import '../gen/app/v1/app.pbgrpc.dart'; +import '../gen/common/v1/common.pb.dart'; import 'permissions.dart'; typedef RobotPartLogPage = GetRobotPartLogsResponse; @@ -82,10 +83,10 @@ class AppClient { } /// Get a page of [LogEntry] for a specific [RobotPart]. Logs are sorted by descending time (newest first) - Future getLogs(RobotPart part, {bool errorsOnly = false, String pageToken = ''}) async { + Future getLogs(RobotPart part, {String? filter, String pageToken = ''}) async { final request = GetRobotPartLogsRequest() ..id = part.id - ..errorsOnly = errorsOnly + ..filter = filter ?? '' ..pageToken = pageToken; return await _client.getRobotPartLogs(request); } diff --git a/lib/src/gen/app/data/v1/data.pb.dart b/lib/src/gen/app/data/v1/data.pb.dart index cc6b57f90af..4ac2939c789 100644 --- a/lib/src/gen/app/data/v1/data.pb.dart +++ b/lib/src/gen/app/data/v1/data.pb.dart @@ -1053,16 +1053,12 @@ class TabularDataBySQLResponse extends $pb.GeneratedMessage { class TabularDataByMQLRequest extends $pb.GeneratedMessage { factory TabularDataByMQLRequest({ $core.String? organizationId, - $core.String? mqlQuery, $core.Iterable<$core.List<$core.int>>? mqlBinary, }) { final $result = create(); if (organizationId != null) { $result.organizationId = organizationId; } - if (mqlQuery != null) { - $result.mqlQuery = mqlQuery; - } if (mqlBinary != null) { $result.mqlBinary.addAll(mqlBinary); } @@ -1074,7 +1070,6 @@ class TabularDataByMQLRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TabularDataByMQLRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.data.v1'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'organizationId') - ..aOS(2, _omitFieldNames ? '' : 'mqlQuery') ..p<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'mqlBinary', $pb.PbFieldType.PY) ..hasRequiredFields = false ; @@ -1109,21 +1104,11 @@ class TabularDataByMQLRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearOrganizationId() => clearField(1); - /// mql_query is deprecated. - @$pb.TagNumber(2) - $core.String get mqlQuery => $_getSZ(1); - @$pb.TagNumber(2) - set mqlQuery($core.String v) { $_setString(1, v); } - @$pb.TagNumber(2) - $core.bool hasMqlQuery() => $_has(1); - @$pb.TagNumber(2) - void clearMqlQuery() => clearField(2); - /// mql_binary accepts a MongoDB aggregation pipeline as a list of BSON documents, where each /// document is one stage in the pipeline. The pipeline is run on the "sensorData.readings" /// namespace, which holds the Viam organization's tabular data. @$pb.TagNumber(3) - $core.List<$core.List<$core.int>> get mqlBinary => $_getList(2); + $core.List<$core.List<$core.int>> get mqlBinary => $_getList(1); } /// TabularDataByMQLResponse provides unified tabular data and metadata, queried with MQL. diff --git a/lib/src/gen/app/data/v1/data.pbjson.dart b/lib/src/gen/app/data/v1/data.pbjson.dart index 5100013b35d..dac6b697bf3 100644 --- a/lib/src/gen/app/data/v1/data.pbjson.dart +++ b/lib/src/gen/app/data/v1/data.pbjson.dart @@ -266,16 +266,19 @@ const TabularDataByMQLRequest$json = { '1': 'TabularDataByMQLRequest', '2': [ {'1': 'organization_id', '3': 1, '4': 1, '5': 9, '10': 'organizationId'}, - {'1': 'mql_query', '3': 2, '4': 1, '5': 9, '10': 'mqlQuery'}, {'1': 'mql_binary', '3': 3, '4': 3, '5': 12, '10': 'mqlBinary'}, ], + '9': [ + {'1': 2, '2': 3}, + ], + '10': ['mql_query'], }; /// Descriptor for `TabularDataByMQLRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List tabularDataByMQLRequestDescriptor = $convert.base64Decode( 'ChdUYWJ1bGFyRGF0YUJ5TVFMUmVxdWVzdBInCg9vcmdhbml6YXRpb25faWQYASABKAlSDm9yZ2' - 'FuaXphdGlvbklkEhsKCW1xbF9xdWVyeRgCIAEoCVIIbXFsUXVlcnkSHQoKbXFsX2JpbmFyeRgD' - 'IAMoDFIJbXFsQmluYXJ5'); + 'FuaXphdGlvbklkEh0KCm1xbF9iaW5hcnkYAyADKAxSCW1xbEJpbmFyeUoECAIQA1IJbXFsX3F1' + 'ZXJ5'); @$core.Deprecated('Use tabularDataByMQLResponseDescriptor instead') const TabularDataByMQLResponse$json = { diff --git a/lib/src/gen/app/v1/app.pb.dart b/lib/src/gen/app/v1/app.pb.dart index 4717da4779c..6a977730fda 100644 --- a/lib/src/gen/app/v1/app.pb.dart +++ b/lib/src/gen/app/v1/app.pb.dart @@ -14,6 +14,7 @@ import 'dart:core' as $core; import 'package:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; +import '../../common/v1/common.pb.dart' as $7; import '../../google/protobuf/struct.pb.dart' as $6; import '../../google/protobuf/timestamp.pb.dart' as $5; import '../packages/v1/packages.pbenum.dart' as $0; @@ -4246,15 +4247,18 @@ class GetRobotPartResponse extends $pb.GeneratedMessage { class GetRobotPartLogsRequest extends $pb.GeneratedMessage { factory GetRobotPartLogsRequest({ $core.String? id, + @$core.Deprecated('This field is deprecated.') $core.bool? errorsOnly, $core.String? filter, $core.String? pageToken, + $core.Iterable<$core.String>? levels, }) { final $result = create(); if (id != null) { $result.id = id; } if (errorsOnly != null) { + // ignore: deprecated_member_use_from_same_package $result.errorsOnly = errorsOnly; } if (filter != null) { @@ -4263,6 +4267,9 @@ class GetRobotPartLogsRequest extends $pb.GeneratedMessage { if (pageToken != null) { $result.pageToken = pageToken; } + if (levels != null) { + $result.levels.addAll(levels); + } return $result; } GetRobotPartLogsRequest._() : super(); @@ -4274,6 +4281,7 @@ class GetRobotPartLogsRequest extends $pb.GeneratedMessage { ..aOB(2, _omitFieldNames ? '' : 'errorsOnly') ..aOS(3, _omitFieldNames ? '' : 'filter') ..aOS(4, _omitFieldNames ? '' : 'pageToken') + ..pPS(5, _omitFieldNames ? '' : 'levels') ..hasRequiredFields = false ; @@ -4307,12 +4315,17 @@ class GetRobotPartLogsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearId() => clearField(1); + /// TODO(https://viam.atlassian.net/browse/APP-3877): Remove this field + @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(2) $core.bool get errorsOnly => $_getBF(1); + @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(2) set errorsOnly($core.bool v) { $_setBool(1, v); } + @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(2) $core.bool hasErrorsOnly() => $_has(1); + @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(2) void clearErrorsOnly() => clearField(2); @@ -4333,157 +4346,15 @@ class GetRobotPartLogsRequest extends $pb.GeneratedMessage { $core.bool hasPageToken() => $_has(3); @$pb.TagNumber(4) void clearPageToken() => clearField(4); -} - -class LogEntry extends $pb.GeneratedMessage { - factory LogEntry({ - $core.String? host, - $core.String? level, - $5.Timestamp? time, - $core.String? loggerName, - $core.String? message, - $6.Struct? caller, - $core.String? stack, - $core.Iterable<$6.Struct>? fields, - }) { - final $result = create(); - if (host != null) { - $result.host = host; - } - if (level != null) { - $result.level = level; - } - if (time != null) { - $result.time = time; - } - if (loggerName != null) { - $result.loggerName = loggerName; - } - if (message != null) { - $result.message = message; - } - if (caller != null) { - $result.caller = caller; - } - if (stack != null) { - $result.stack = stack; - } - if (fields != null) { - $result.fields.addAll(fields); - } - return $result; - } - LogEntry._() : super(); - factory LogEntry.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory LogEntry.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LogEntry', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'host') - ..aOS(2, _omitFieldNames ? '' : 'level') - ..aOM<$5.Timestamp>(3, _omitFieldNames ? '' : 'time', subBuilder: $5.Timestamp.create) - ..aOS(4, _omitFieldNames ? '' : 'loggerName') - ..aOS(5, _omitFieldNames ? '' : 'message') - ..aOM<$6.Struct>(6, _omitFieldNames ? '' : 'caller', subBuilder: $6.Struct.create) - ..aOS(7, _omitFieldNames ? '' : 'stack') - ..pc<$6.Struct>(8, _omitFieldNames ? '' : 'fields', $pb.PbFieldType.PM, subBuilder: $6.Struct.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - LogEntry clone() => LogEntry()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - LogEntry copyWith(void Function(LogEntry) updates) => super.copyWith((message) => updates(message as LogEntry)) as LogEntry; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static LogEntry create() => LogEntry._(); - LogEntry createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static LogEntry getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static LogEntry? _defaultInstance; - - @$pb.TagNumber(1) - $core.String get host => $_getSZ(0); - @$pb.TagNumber(1) - set host($core.String v) { $_setString(0, v); } - @$pb.TagNumber(1) - $core.bool hasHost() => $_has(0); - @$pb.TagNumber(1) - void clearHost() => clearField(1); - - @$pb.TagNumber(2) - $core.String get level => $_getSZ(1); - @$pb.TagNumber(2) - set level($core.String v) { $_setString(1, v); } - @$pb.TagNumber(2) - $core.bool hasLevel() => $_has(1); - @$pb.TagNumber(2) - void clearLevel() => clearField(2); - - @$pb.TagNumber(3) - $5.Timestamp get time => $_getN(2); - @$pb.TagNumber(3) - set time($5.Timestamp v) { setField(3, v); } - @$pb.TagNumber(3) - $core.bool hasTime() => $_has(2); - @$pb.TagNumber(3) - void clearTime() => clearField(3); - @$pb.TagNumber(3) - $5.Timestamp ensureTime() => $_ensure(2); - - @$pb.TagNumber(4) - $core.String get loggerName => $_getSZ(3); - @$pb.TagNumber(4) - set loggerName($core.String v) { $_setString(3, v); } - @$pb.TagNumber(4) - $core.bool hasLoggerName() => $_has(3); - @$pb.TagNumber(4) - void clearLoggerName() => clearField(4); + /// logs of all levels are returned when the levels field is empty @$pb.TagNumber(5) - $core.String get message => $_getSZ(4); - @$pb.TagNumber(5) - set message($core.String v) { $_setString(4, v); } - @$pb.TagNumber(5) - $core.bool hasMessage() => $_has(4); - @$pb.TagNumber(5) - void clearMessage() => clearField(5); - - @$pb.TagNumber(6) - $6.Struct get caller => $_getN(5); - @$pb.TagNumber(6) - set caller($6.Struct v) { setField(6, v); } - @$pb.TagNumber(6) - $core.bool hasCaller() => $_has(5); - @$pb.TagNumber(6) - void clearCaller() => clearField(6); - @$pb.TagNumber(6) - $6.Struct ensureCaller() => $_ensure(5); - - @$pb.TagNumber(7) - $core.String get stack => $_getSZ(6); - @$pb.TagNumber(7) - set stack($core.String v) { $_setString(6, v); } - @$pb.TagNumber(7) - $core.bool hasStack() => $_has(6); - @$pb.TagNumber(7) - void clearStack() => clearField(7); - - @$pb.TagNumber(8) - $core.List<$6.Struct> get fields => $_getList(7); + $core.List<$core.String> get levels => $_getList(4); } class GetRobotPartLogsResponse extends $pb.GeneratedMessage { factory GetRobotPartLogsResponse({ - $core.Iterable? logs, + $core.Iterable<$7.LogEntry>? logs, $core.String? nextPageToken, }) { final $result = create(); @@ -4500,7 +4371,7 @@ class GetRobotPartLogsResponse extends $pb.GeneratedMessage { factory GetRobotPartLogsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetRobotPartLogsResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'logs', $pb.PbFieldType.PM, subBuilder: LogEntry.create) + ..pc<$7.LogEntry>(1, _omitFieldNames ? '' : 'logs', $pb.PbFieldType.PM, subBuilder: $7.LogEntry.create) ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') ..hasRequiredFields = false ; @@ -4527,7 +4398,7 @@ class GetRobotPartLogsResponse extends $pb.GeneratedMessage { static GetRobotPartLogsResponse? _defaultInstance; @$pb.TagNumber(1) - $core.List get logs => $_getList(0); + $core.List<$7.LogEntry> get logs => $_getList(0); @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @@ -4619,7 +4490,7 @@ class TailRobotPartLogsRequest extends $pb.GeneratedMessage { class TailRobotPartLogsResponse extends $pb.GeneratedMessage { factory TailRobotPartLogsResponse({ - $core.Iterable? logs, + $core.Iterable<$7.LogEntry>? logs, }) { final $result = create(); if (logs != null) { @@ -4632,7 +4503,7 @@ class TailRobotPartLogsResponse extends $pb.GeneratedMessage { factory TailRobotPartLogsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TailRobotPartLogsResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'logs', $pb.PbFieldType.PM, subBuilder: LogEntry.create) + ..pc<$7.LogEntry>(1, _omitFieldNames ? '' : 'logs', $pb.PbFieldType.PM, subBuilder: $7.LogEntry.create) ..hasRequiredFields = false ; @@ -4658,7 +4529,7 @@ class TailRobotPartLogsResponse extends $pb.GeneratedMessage { static TailRobotPartLogsResponse? _defaultInstance; @$pb.TagNumber(1) - $core.List get logs => $_getList(0); + $core.List<$7.LogEntry> get logs => $_getList(0); } class GetRobotPartHistoryRequest extends $pb.GeneratedMessage { @@ -5197,7 +5068,7 @@ class APIKey extends $pb.GeneratedMessage { class GetRobotAPIKeysResponse extends $pb.GeneratedMessage { factory GetRobotAPIKeysResponse({ - $core.Iterable? apiKeys, + $core.Iterable? apiKeys, }) { final $result = create(); if (apiKeys != null) { @@ -5210,7 +5081,7 @@ class GetRobotAPIKeysResponse extends $pb.GeneratedMessage { factory GetRobotAPIKeysResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetRobotAPIKeysResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'apiKeys', $pb.PbFieldType.PM, subBuilder: APIKey.create) + ..pc(1, _omitFieldNames ? '' : 'apiKeys', $pb.PbFieldType.PM, subBuilder: APIKeyWithAuthorizations.create) ..hasRequiredFields = false ; @@ -5236,7 +5107,7 @@ class GetRobotAPIKeysResponse extends $pb.GeneratedMessage { static GetRobotAPIKeysResponse? _defaultInstance; @$pb.TagNumber(1) - $core.List get apiKeys => $_getList(0); + $core.List get apiKeys => $_getList(0); } class DeleteRobotPartResponse extends $pb.GeneratedMessage { diff --git a/lib/src/gen/app/v1/app.pbjson.dart b/lib/src/gen/app/v1/app.pbjson.dart index c1ab5133c0f..c356ad64814 100644 --- a/lib/src/gen/app/v1/app.pbjson.dart +++ b/lib/src/gen/app/v1/app.pbjson.dart @@ -1044,9 +1044,17 @@ const GetRobotPartLogsRequest$json = { '1': 'GetRobotPartLogsRequest', '2': [ {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, - {'1': 'errors_only', '3': 2, '4': 1, '5': 8, '10': 'errorsOnly'}, + { + '1': 'errors_only', + '3': 2, + '4': 1, + '5': 8, + '8': {'3': true}, + '10': 'errorsOnly', + }, {'1': 'filter', '3': 3, '4': 1, '5': 9, '9': 0, '10': 'filter', '17': true}, {'1': 'page_token', '3': 4, '4': 1, '5': 9, '9': 1, '10': 'pageToken', '17': true}, + {'1': 'levels', '3': 5, '4': 3, '5': 9, '10': 'levels'}, ], '8': [ {'1': '_filter'}, @@ -1056,47 +1064,25 @@ const GetRobotPartLogsRequest$json = { /// Descriptor for `GetRobotPartLogsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getRobotPartLogsRequestDescriptor = $convert.base64Decode( - 'ChdHZXRSb2JvdFBhcnRMb2dzUmVxdWVzdBIOCgJpZBgBIAEoCVICaWQSHwoLZXJyb3JzX29ubH' - 'kYAiABKAhSCmVycm9yc09ubHkSGwoGZmlsdGVyGAMgASgJSABSBmZpbHRlcogBARIiCgpwYWdl' - 'X3Rva2VuGAQgASgJSAFSCXBhZ2VUb2tlbogBAUIJCgdfZmlsdGVyQg0KC19wYWdlX3Rva2Vu'); - -@$core.Deprecated('Use logEntryDescriptor instead') -const LogEntry$json = { - '1': 'LogEntry', - '2': [ - {'1': 'host', '3': 1, '4': 1, '5': 9, '10': 'host'}, - {'1': 'level', '3': 2, '4': 1, '5': 9, '10': 'level'}, - {'1': 'time', '3': 3, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'time'}, - {'1': 'logger_name', '3': 4, '4': 1, '5': 9, '10': 'loggerName'}, - {'1': 'message', '3': 5, '4': 1, '5': 9, '10': 'message'}, - {'1': 'caller', '3': 6, '4': 1, '5': 11, '6': '.google.protobuf.Struct', '10': 'caller'}, - {'1': 'stack', '3': 7, '4': 1, '5': 9, '10': 'stack'}, - {'1': 'fields', '3': 8, '4': 3, '5': 11, '6': '.google.protobuf.Struct', '10': 'fields'}, - ], -}; - -/// Descriptor for `LogEntry`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List logEntryDescriptor = $convert.base64Decode( - 'CghMb2dFbnRyeRISCgRob3N0GAEgASgJUgRob3N0EhQKBWxldmVsGAIgASgJUgVsZXZlbBIuCg' - 'R0aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIEdGltZRIfCgtsb2dnZXJf' - 'bmFtZRgEIAEoCVIKbG9nZ2VyTmFtZRIYCgdtZXNzYWdlGAUgASgJUgdtZXNzYWdlEi8KBmNhbG' - 'xlchgGIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RSBmNhbGxlchIUCgVzdGFjaxgHIAEo' - 'CVIFc3RhY2sSLwoGZmllbGRzGAggAygLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdFIGZmllbG' - 'Rz'); + 'ChdHZXRSb2JvdFBhcnRMb2dzUmVxdWVzdBIOCgJpZBgBIAEoCVICaWQSIwoLZXJyb3JzX29ubH' + 'kYAiABKAhCAhgBUgplcnJvcnNPbmx5EhsKBmZpbHRlchgDIAEoCUgAUgZmaWx0ZXKIAQESIgoK' + 'cGFnZV90b2tlbhgEIAEoCUgBUglwYWdlVG9rZW6IAQESFgoGbGV2ZWxzGAUgAygJUgZsZXZlbH' + 'NCCQoHX2ZpbHRlckINCgtfcGFnZV90b2tlbg=='); @$core.Deprecated('Use getRobotPartLogsResponseDescriptor instead') const GetRobotPartLogsResponse$json = { '1': 'GetRobotPartLogsResponse', '2': [ - {'1': 'logs', '3': 1, '4': 3, '5': 11, '6': '.viam.app.v1.LogEntry', '10': 'logs'}, + {'1': 'logs', '3': 1, '4': 3, '5': 11, '6': '.viam.common.v1.LogEntry', '10': 'logs'}, {'1': 'next_page_token', '3': 2, '4': 1, '5': 9, '10': 'nextPageToken'}, ], }; /// Descriptor for `GetRobotPartLogsResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getRobotPartLogsResponseDescriptor = $convert.base64Decode( - 'ChhHZXRSb2JvdFBhcnRMb2dzUmVzcG9uc2USKQoEbG9ncxgBIAMoCzIVLnZpYW0uYXBwLnYxLk' - 'xvZ0VudHJ5UgRsb2dzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + 'ChhHZXRSb2JvdFBhcnRMb2dzUmVzcG9uc2USLAoEbG9ncxgBIAMoCzIYLnZpYW0uY29tbW9uLn' + 'YxLkxvZ0VudHJ5UgRsb2dzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tl' + 'bg=='); @$core.Deprecated('Use tailRobotPartLogsRequestDescriptor instead') const TailRobotPartLogsRequest$json = { @@ -1121,14 +1107,14 @@ final $typed_data.Uint8List tailRobotPartLogsRequestDescriptor = $convert.base64 const TailRobotPartLogsResponse$json = { '1': 'TailRobotPartLogsResponse', '2': [ - {'1': 'logs', '3': 1, '4': 3, '5': 11, '6': '.viam.app.v1.LogEntry', '10': 'logs'}, + {'1': 'logs', '3': 1, '4': 3, '5': 11, '6': '.viam.common.v1.LogEntry', '10': 'logs'}, ], }; /// Descriptor for `TailRobotPartLogsResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List tailRobotPartLogsResponseDescriptor = $convert.base64Decode( - 'ChlUYWlsUm9ib3RQYXJ0TG9nc1Jlc3BvbnNlEikKBGxvZ3MYASADKAsyFS52aWFtLmFwcC52MS' - '5Mb2dFbnRyeVIEbG9ncw=='); + 'ChlUYWlsUm9ib3RQYXJ0TG9nc1Jlc3BvbnNlEiwKBGxvZ3MYASADKAsyGC52aWFtLmNvbW1vbi' + '52MS5Mb2dFbnRyeVIEbG9ncw=='); @$core.Deprecated('Use getRobotPartHistoryRequestDescriptor instead') const GetRobotPartHistoryRequest$json = { @@ -1255,14 +1241,14 @@ final $typed_data.Uint8List aPIKeyDescriptor = $convert.base64Decode( const GetRobotAPIKeysResponse$json = { '1': 'GetRobotAPIKeysResponse', '2': [ - {'1': 'api_keys', '3': 1, '4': 3, '5': 11, '6': '.viam.app.v1.APIKey', '10': 'apiKeys'}, + {'1': 'api_keys', '3': 1, '4': 3, '5': 11, '6': '.viam.app.v1.APIKeyWithAuthorizations', '10': 'apiKeys'}, ], }; /// Descriptor for `GetRobotAPIKeysResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getRobotAPIKeysResponseDescriptor = $convert.base64Decode( - 'ChdHZXRSb2JvdEFQSUtleXNSZXNwb25zZRIuCghhcGlfa2V5cxgBIAMoCzITLnZpYW0uYXBwLn' - 'YxLkFQSUtleVIHYXBpS2V5cw=='); + 'ChdHZXRSb2JvdEFQSUtleXNSZXNwb25zZRJACghhcGlfa2V5cxgBIAMoCzIlLnZpYW0uYXBwLn' + 'YxLkFQSUtleVdpdGhBdXRob3JpemF0aW9uc1IHYXBpS2V5cw=='); @$core.Deprecated('Use deleteRobotPartResponseDescriptor instead') const DeleteRobotPartResponse$json = { diff --git a/lib/src/gen/app/v1/robot.pb.dart b/lib/src/gen/app/v1/robot.pb.dart index 401bfcc88be..7211fe0b293 100644 --- a/lib/src/gen/app/v1/robot.pb.dart +++ b/lib/src/gen/app/v1/robot.pb.dart @@ -13,10 +13,9 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; -import '../../common/v1/common.pb.dart' as $8; -import '../../google/protobuf/duration.pb.dart' as $7; +import '../../common/v1/common.pb.dart' as $7; +import '../../google/protobuf/duration.pb.dart' as $8; import '../../google/protobuf/struct.pb.dart' as $6; -import 'app.pb.dart' as $1; import 'robot.pbenum.dart'; export 'robot.pbenum.dart'; @@ -712,7 +711,7 @@ class ProcessConfig extends $pb.GeneratedMessage { $core.bool? oneShot, $core.bool? log, $core.int? stopSignal, - $7.Duration? stopTimeout, + $8.Duration? stopTimeout, $core.Map<$core.String, $core.String>? env, }) { final $result = create(); @@ -757,7 +756,7 @@ class ProcessConfig extends $pb.GeneratedMessage { ..aOB(5, _omitFieldNames ? '' : 'oneShot') ..aOB(6, _omitFieldNames ? '' : 'log') ..a<$core.int>(7, _omitFieldNames ? '' : 'stopSignal', $pb.PbFieldType.O3) - ..aOM<$7.Duration>(8, _omitFieldNames ? '' : 'stopTimeout', subBuilder: $7.Duration.create) + ..aOM<$8.Duration>(8, _omitFieldNames ? '' : 'stopTimeout', subBuilder: $8.Duration.create) ..m<$core.String, $core.String>(9, _omitFieldNames ? '' : 'env', entryClassName: 'ProcessConfig.EnvEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('viam.app.v1')) ..hasRequiredFields = false ; @@ -841,15 +840,15 @@ class ProcessConfig extends $pb.GeneratedMessage { void clearStopSignal() => clearField(7); @$pb.TagNumber(8) - $7.Duration get stopTimeout => $_getN(7); + $8.Duration get stopTimeout => $_getN(7); @$pb.TagNumber(8) - set stopTimeout($7.Duration v) { setField(8, v); } + set stopTimeout($8.Duration v) { setField(8, v); } @$pb.TagNumber(8) $core.bool hasStopTimeout() => $_has(7); @$pb.TagNumber(8) void clearStopTimeout() => clearField(8); @$pb.TagNumber(8) - $7.Duration ensureStopTimeout() => $_ensure(7); + $8.Duration ensureStopTimeout() => $_ensure(7); /// additional environment variables passed to the process @$pb.TagNumber(9) @@ -1104,7 +1103,7 @@ class NetworkConfig extends $pb.GeneratedMessage { class SessionsConfig extends $pb.GeneratedMessage { factory SessionsConfig({ - $7.Duration? heartbeatWindow, + $8.Duration? heartbeatWindow, }) { final $result = create(); if (heartbeatWindow != null) { @@ -1117,7 +1116,7 @@ class SessionsConfig extends $pb.GeneratedMessage { factory SessionsConfig.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SessionsConfig', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) - ..aOM<$7.Duration>(1, _omitFieldNames ? '' : 'heartbeatWindow', subBuilder: $7.Duration.create) + ..aOM<$8.Duration>(1, _omitFieldNames ? '' : 'heartbeatWindow', subBuilder: $8.Duration.create) ..hasRequiredFields = false ; @@ -1143,15 +1142,15 @@ class SessionsConfig extends $pb.GeneratedMessage { static SessionsConfig? _defaultInstance; @$pb.TagNumber(1) - $7.Duration get heartbeatWindow => $_getN(0); + $8.Duration get heartbeatWindow => $_getN(0); @$pb.TagNumber(1) - set heartbeatWindow($7.Duration v) { setField(1, v); } + set heartbeatWindow($8.Duration v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasHeartbeatWindow() => $_has(0); @$pb.TagNumber(1) void clearHeartbeatWindow() => clearField(1); @$pb.TagNumber(1) - $7.Duration ensureHeartbeatWindow() => $_ensure(0); + $8.Duration ensureHeartbeatWindow() => $_ensure(0); } class AuthConfig extends $pb.GeneratedMessage { @@ -1401,7 +1400,7 @@ class Frame extends $pb.GeneratedMessage { $core.String? parent, Translation? translation, Orientation? orientation, - $8.Geometry? geometry, + $7.Geometry? geometry, }) { final $result = create(); if (parent != null) { @@ -1426,7 +1425,7 @@ class Frame extends $pb.GeneratedMessage { ..aOS(1, _omitFieldNames ? '' : 'parent') ..aOM(2, _omitFieldNames ? '' : 'translation', subBuilder: Translation.create) ..aOM(3, _omitFieldNames ? '' : 'orientation', subBuilder: Orientation.create) - ..aOM<$8.Geometry>(4, _omitFieldNames ? '' : 'geometry', subBuilder: $8.Geometry.create) + ..aOM<$7.Geometry>(4, _omitFieldNames ? '' : 'geometry', subBuilder: $7.Geometry.create) ..hasRequiredFields = false ; @@ -1483,15 +1482,15 @@ class Frame extends $pb.GeneratedMessage { Orientation ensureOrientation() => $_ensure(2); @$pb.TagNumber(4) - $8.Geometry get geometry => $_getN(3); + $7.Geometry get geometry => $_getN(3); @$pb.TagNumber(4) - set geometry($8.Geometry v) { setField(4, v); } + set geometry($7.Geometry v) { setField(4, v); } @$pb.TagNumber(4) $core.bool hasGeometry() => $_has(3); @$pb.TagNumber(4) void clearGeometry() => clearField(4); @$pb.TagNumber(4) - $8.Geometry ensureGeometry() => $_ensure(3); + $7.Geometry ensureGeometry() => $_ensure(3); } class LogConfiguration extends $pb.GeneratedMessage { @@ -2288,8 +2287,8 @@ class RemoteConfig extends $pb.GeneratedMessage { RemoteAuth? auth, $core.String? managedBy, $core.bool? insecure, - $7.Duration? connectionCheckInterval, - $7.Duration? reconnectInterval, + $8.Duration? connectionCheckInterval, + $8.Duration? reconnectInterval, $core.Iterable? serviceConfigs, $core.String? secret, }) { @@ -2337,8 +2336,8 @@ class RemoteConfig extends $pb.GeneratedMessage { ..aOM(4, _omitFieldNames ? '' : 'auth', subBuilder: RemoteAuth.create) ..aOS(5, _omitFieldNames ? '' : 'managedBy') ..aOB(6, _omitFieldNames ? '' : 'insecure') - ..aOM<$7.Duration>(7, _omitFieldNames ? '' : 'connectionCheckInterval', subBuilder: $7.Duration.create) - ..aOM<$7.Duration>(8, _omitFieldNames ? '' : 'reconnectInterval', subBuilder: $7.Duration.create) + ..aOM<$8.Duration>(7, _omitFieldNames ? '' : 'connectionCheckInterval', subBuilder: $8.Duration.create) + ..aOM<$8.Duration>(8, _omitFieldNames ? '' : 'reconnectInterval', subBuilder: $8.Duration.create) ..pc(9, _omitFieldNames ? '' : 'serviceConfigs', $pb.PbFieldType.PM, subBuilder: ResourceLevelServiceConfig.create) ..aOS(10, _omitFieldNames ? '' : 'secret') ..hasRequiredFields = false @@ -2424,26 +2423,26 @@ class RemoteConfig extends $pb.GeneratedMessage { void clearInsecure() => clearField(6); @$pb.TagNumber(7) - $7.Duration get connectionCheckInterval => $_getN(6); + $8.Duration get connectionCheckInterval => $_getN(6); @$pb.TagNumber(7) - set connectionCheckInterval($7.Duration v) { setField(7, v); } + set connectionCheckInterval($8.Duration v) { setField(7, v); } @$pb.TagNumber(7) $core.bool hasConnectionCheckInterval() => $_has(6); @$pb.TagNumber(7) void clearConnectionCheckInterval() => clearField(7); @$pb.TagNumber(7) - $7.Duration ensureConnectionCheckInterval() => $_ensure(6); + $8.Duration ensureConnectionCheckInterval() => $_ensure(6); @$pb.TagNumber(8) - $7.Duration get reconnectInterval => $_getN(7); + $8.Duration get reconnectInterval => $_getN(7); @$pb.TagNumber(8) - set reconnectInterval($7.Duration v) { setField(8, v); } + set reconnectInterval($8.Duration v) { setField(8, v); } @$pb.TagNumber(8) $core.bool hasReconnectInterval() => $_has(7); @$pb.TagNumber(8) void clearReconnectInterval() => clearField(8); @$pb.TagNumber(8) - $7.Duration ensureReconnectInterval() => $_ensure(7); + $8.Duration ensureReconnectInterval() => $_ensure(7); @$pb.TagNumber(9) $core.List get serviceConfigs => $_getList(8); @@ -2964,7 +2963,7 @@ class CertificateResponse extends $pb.GeneratedMessage { class LogRequest extends $pb.GeneratedMessage { factory LogRequest({ $core.String? id, - $core.Iterable<$1.LogEntry>? logs, + $core.Iterable<$7.LogEntry>? logs, }) { final $result = create(); if (id != null) { @@ -2981,7 +2980,7 @@ class LogRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LogRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'id') - ..pc<$1.LogEntry>(2, _omitFieldNames ? '' : 'logs', $pb.PbFieldType.PM, subBuilder: $1.LogEntry.create) + ..pc<$7.LogEntry>(2, _omitFieldNames ? '' : 'logs', $pb.PbFieldType.PM, subBuilder: $7.LogEntry.create) ..hasRequiredFields = false ; @@ -3017,7 +3016,7 @@ class LogRequest extends $pb.GeneratedMessage { void clearId() => clearField(1); @$pb.TagNumber(2) - $core.List<$1.LogEntry> get logs => $_getList(1); + $core.List<$7.LogEntry> get logs => $_getList(1); } class LogResponse extends $pb.GeneratedMessage { @@ -3107,7 +3106,7 @@ class NeedsRestartResponse extends $pb.GeneratedMessage { factory NeedsRestartResponse({ $core.String? id, $core.bool? mustRestart, - $7.Duration? restartCheckInterval, + $8.Duration? restartCheckInterval, }) { final $result = create(); if (id != null) { @@ -3128,7 +3127,7 @@ class NeedsRestartResponse extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'NeedsRestartResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'id') ..aOB(2, _omitFieldNames ? '' : 'mustRestart') - ..aOM<$7.Duration>(3, _omitFieldNames ? '' : 'restartCheckInterval', subBuilder: $7.Duration.create) + ..aOM<$8.Duration>(3, _omitFieldNames ? '' : 'restartCheckInterval', subBuilder: $8.Duration.create) ..hasRequiredFields = false ; @@ -3173,15 +3172,15 @@ class NeedsRestartResponse extends $pb.GeneratedMessage { void clearMustRestart() => clearField(2); @$pb.TagNumber(3) - $7.Duration get restartCheckInterval => $_getN(2); + $8.Duration get restartCheckInterval => $_getN(2); @$pb.TagNumber(3) - set restartCheckInterval($7.Duration v) { setField(3, v); } + set restartCheckInterval($8.Duration v) { setField(3, v); } @$pb.TagNumber(3) $core.bool hasRestartCheckInterval() => $_has(2); @$pb.TagNumber(3) void clearRestartCheckInterval() => clearField(3); @$pb.TagNumber(3) - $7.Duration ensureRestartCheckInterval() => $_ensure(2); + $8.Duration ensureRestartCheckInterval() => $_ensure(2); } /// ModuleConfig is the configuration for a module. diff --git a/lib/src/gen/app/v1/robot.pbjson.dart b/lib/src/gen/app/v1/robot.pbjson.dart index 89f56112b82..9b9066bb54e 100644 --- a/lib/src/gen/app/v1/robot.pbjson.dart +++ b/lib/src/gen/app/v1/robot.pbjson.dart @@ -611,14 +611,14 @@ const LogRequest$json = { '1': 'LogRequest', '2': [ {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, - {'1': 'logs', '3': 2, '4': 3, '5': 11, '6': '.viam.app.v1.LogEntry', '10': 'logs'}, + {'1': 'logs', '3': 2, '4': 3, '5': 11, '6': '.viam.common.v1.LogEntry', '10': 'logs'}, ], }; /// Descriptor for `LogRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List logRequestDescriptor = $convert.base64Decode( - 'CgpMb2dSZXF1ZXN0Eg4KAmlkGAEgASgJUgJpZBIpCgRsb2dzGAIgAygLMhUudmlhbS5hcHAudj' - 'EuTG9nRW50cnlSBGxvZ3M='); + 'CgpMb2dSZXF1ZXN0Eg4KAmlkGAEgASgJUgJpZBIsCgRsb2dzGAIgAygLMhgudmlhbS5jb21tb2' + '4udjEuTG9nRW50cnlSBGxvZ3M='); @$core.Deprecated('Use logResponseDescriptor instead') const LogResponse$json = { diff --git a/lib/src/gen/common/v1/common.pb.dart b/lib/src/gen/common/v1/common.pb.dart index d81ed6e5aac..fbee98dc12a 100644 --- a/lib/src/gen/common/v1/common.pb.dart +++ b/lib/src/gen/common/v1/common.pb.dart @@ -1949,6 +1949,152 @@ class GetReadingsResponse extends $pb.GeneratedMessage { $core.Map<$core.String, $1.Value> get readings => $_getMap(0); } +class LogEntry extends $pb.GeneratedMessage { + factory LogEntry({ + $core.String? host, + $core.String? level, + $0.Timestamp? time, + $core.String? loggerName, + $core.String? message, + $1.Struct? caller, + $core.String? stack, + $core.Iterable<$1.Struct>? fields, + }) { + final $result = create(); + if (host != null) { + $result.host = host; + } + if (level != null) { + $result.level = level; + } + if (time != null) { + $result.time = time; + } + if (loggerName != null) { + $result.loggerName = loggerName; + } + if (message != null) { + $result.message = message; + } + if (caller != null) { + $result.caller = caller; + } + if (stack != null) { + $result.stack = stack; + } + if (fields != null) { + $result.fields.addAll(fields); + } + return $result; + } + LogEntry._() : super(); + factory LogEntry.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory LogEntry.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LogEntry', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.common.v1'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'host') + ..aOS(2, _omitFieldNames ? '' : 'level') + ..aOM<$0.Timestamp>(3, _omitFieldNames ? '' : 'time', subBuilder: $0.Timestamp.create) + ..aOS(4, _omitFieldNames ? '' : 'loggerName') + ..aOS(5, _omitFieldNames ? '' : 'message') + ..aOM<$1.Struct>(6, _omitFieldNames ? '' : 'caller', subBuilder: $1.Struct.create) + ..aOS(7, _omitFieldNames ? '' : 'stack') + ..pc<$1.Struct>(8, _omitFieldNames ? '' : 'fields', $pb.PbFieldType.PM, subBuilder: $1.Struct.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + LogEntry clone() => LogEntry()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + LogEntry copyWith(void Function(LogEntry) updates) => super.copyWith((message) => updates(message as LogEntry)) as LogEntry; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static LogEntry create() => LogEntry._(); + LogEntry createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static LogEntry getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static LogEntry? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get host => $_getSZ(0); + @$pb.TagNumber(1) + set host($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasHost() => $_has(0); + @$pb.TagNumber(1) + void clearHost() => clearField(1); + + @$pb.TagNumber(2) + $core.String get level => $_getSZ(1); + @$pb.TagNumber(2) + set level($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasLevel() => $_has(1); + @$pb.TagNumber(2) + void clearLevel() => clearField(2); + + @$pb.TagNumber(3) + $0.Timestamp get time => $_getN(2); + @$pb.TagNumber(3) + set time($0.Timestamp v) { setField(3, v); } + @$pb.TagNumber(3) + $core.bool hasTime() => $_has(2); + @$pb.TagNumber(3) + void clearTime() => clearField(3); + @$pb.TagNumber(3) + $0.Timestamp ensureTime() => $_ensure(2); + + @$pb.TagNumber(4) + $core.String get loggerName => $_getSZ(3); + @$pb.TagNumber(4) + set loggerName($core.String v) { $_setString(3, v); } + @$pb.TagNumber(4) + $core.bool hasLoggerName() => $_has(3); + @$pb.TagNumber(4) + void clearLoggerName() => clearField(4); + + @$pb.TagNumber(5) + $core.String get message => $_getSZ(4); + @$pb.TagNumber(5) + set message($core.String v) { $_setString(4, v); } + @$pb.TagNumber(5) + $core.bool hasMessage() => $_has(4); + @$pb.TagNumber(5) + void clearMessage() => clearField(5); + + @$pb.TagNumber(6) + $1.Struct get caller => $_getN(5); + @$pb.TagNumber(6) + set caller($1.Struct v) { setField(6, v); } + @$pb.TagNumber(6) + $core.bool hasCaller() => $_has(5); + @$pb.TagNumber(6) + void clearCaller() => clearField(6); + @$pb.TagNumber(6) + $1.Struct ensureCaller() => $_ensure(5); + + @$pb.TagNumber(7) + $core.String get stack => $_getSZ(6); + @$pb.TagNumber(7) + set stack($core.String v) { $_setString(6, v); } + @$pb.TagNumber(7) + $core.bool hasStack() => $_has(6); + @$pb.TagNumber(7) + void clearStack() => clearField(7); + + @$pb.TagNumber(8) + $core.List<$1.Struct> get fields => $_getList(7); +} + class Common { static final safetyHeartbeatMonitored = $pb.Extension<$core.bool>(_omitMessageNames ? '' : 'google.protobuf.MethodOptions', _omitFieldNames ? '' : 'safetyHeartbeatMonitored', 84260, $pb.PbFieldType.OB); static void registerAllExtensions($pb.ExtensionRegistry registry) { diff --git a/lib/src/gen/common/v1/common.pbjson.dart b/lib/src/gen/common/v1/common.pbjson.dart index c1801eb136b..37cdcffbd31 100644 --- a/lib/src/gen/common/v1/common.pbjson.dart +++ b/lib/src/gen/common/v1/common.pbjson.dart @@ -481,3 +481,27 @@ final $typed_data.Uint8List getReadingsResponseDescriptor = $convert.base64Decod 'c0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EiwKBXZhbHVlGAIgASgLMhYuZ29vZ2xlLnByb3RvYn' 'VmLlZhbHVlUgV2YWx1ZToCOAE='); +@$core.Deprecated('Use logEntryDescriptor instead') +const LogEntry$json = { + '1': 'LogEntry', + '2': [ + {'1': 'host', '3': 1, '4': 1, '5': 9, '10': 'host'}, + {'1': 'level', '3': 2, '4': 1, '5': 9, '10': 'level'}, + {'1': 'time', '3': 3, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'time'}, + {'1': 'logger_name', '3': 4, '4': 1, '5': 9, '10': 'loggerName'}, + {'1': 'message', '3': 5, '4': 1, '5': 9, '10': 'message'}, + {'1': 'caller', '3': 6, '4': 1, '5': 11, '6': '.google.protobuf.Struct', '10': 'caller'}, + {'1': 'stack', '3': 7, '4': 1, '5': 9, '10': 'stack'}, + {'1': 'fields', '3': 8, '4': 3, '5': 11, '6': '.google.protobuf.Struct', '10': 'fields'}, + ], +}; + +/// Descriptor for `LogEntry`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List logEntryDescriptor = $convert.base64Decode( + 'CghMb2dFbnRyeRISCgRob3N0GAEgASgJUgRob3N0EhQKBWxldmVsGAIgASgJUgVsZXZlbBIuCg' + 'R0aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIEdGltZRIfCgtsb2dnZXJf' + 'bmFtZRgEIAEoCVIKbG9nZ2VyTmFtZRIYCgdtZXNzYWdlGAUgASgJUgdtZXNzYWdlEi8KBmNhbG' + 'xlchgGIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RSBmNhbGxlchIUCgVzdGFjaxgHIAEo' + 'CVIFc3RhY2sSLwoGZmllbGRzGAggAygLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdFIGZmllbG' + 'Rz'); + diff --git a/lib/src/gen/google/api/expr/v1alpha1/syntax.pb.dart b/lib/src/gen/google/api/expr/v1alpha1/syntax.pb.dart index 157c32be776..e7649b4cf7c 100644 --- a/lib/src/gen/google/api/expr/v1alpha1/syntax.pb.dart +++ b/lib/src/gen/google/api/expr/v1alpha1/syntax.pb.dart @@ -17,6 +17,9 @@ import 'package:protobuf/protobuf.dart' as $pb; import '../../../protobuf/duration.pb.dart' as $0; import '../../../protobuf/struct.pbenum.dart' as $2; import '../../../protobuf/timestamp.pb.dart' as $1; +import 'syntax.pbenum.dart'; + +export 'syntax.pbenum.dart'; /// An expression together with source information as returned by the parser. class ParsedExpr extends $pb.GeneratedMessage { @@ -133,7 +136,8 @@ class Expr_Ident extends $pb.GeneratedMessage { /// Required. Holds a single, unqualified identifier, possibly preceded by a /// '.'. /// - /// Qualified names are represented by the [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression. + /// Qualified names are represented by the + /// [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -785,14 +789,16 @@ enum Expr_ExprKind { /// operators with the exception of the '.' operator are modelled as function /// calls. This makes it easy to represent new operators into the existing AST. /// -/// All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at -/// type-check for an expression to be valid. A reference may either be a bare -/// identifier `name` or a qualified identifier `google.api.name`. References -/// may either refer to a value or a function declaration. +/// All references within expressions must resolve to a +/// [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an +/// expression to be valid. A reference may either be a bare identifier `name` or +/// a qualified identifier `google.api.name`. References may either refer to a +/// value or a function declaration. /// /// For example, the expression `google.api.name.startsWith('expr')` references -/// the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and -/// the function declaration `startsWith`. +/// the declaration `google.api.name` within a +/// [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the +/// function declaration `startsWith`. class Expr extends $pb.GeneratedMessage { factory Expr({ $fixnum.Int64? id, @@ -1001,7 +1007,8 @@ enum Constant_ConstantKind { /// primitives. /// /// Lists and structs are not included as constants as these aggregate types may -/// contain [Expr][google.api.expr.v1alpha1.Expr] elements which require evaluation and are thus not constant. +/// contain [Expr][google.api.expr.v1alpha1.Expr] elements which require +/// evaluation and are thus not constant. /// /// Examples of literals include: `"hello"`, `b'bytes'`, `1u`, `4.2`, `-2`, /// `true`, `null`. @@ -1214,6 +1221,157 @@ class Constant extends $pb.GeneratedMessage { $1.Timestamp ensureTimestampValue() => $_ensure(8); } +/// Version +class SourceInfo_Extension_Version extends $pb.GeneratedMessage { + factory SourceInfo_Extension_Version({ + $fixnum.Int64? major, + $fixnum.Int64? minor, + }) { + final $result = create(); + if (major != null) { + $result.major = major; + } + if (minor != null) { + $result.minor = minor; + } + return $result; + } + SourceInfo_Extension_Version._() : super(); + factory SourceInfo_Extension_Version.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SourceInfo_Extension_Version.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SourceInfo.Extension.Version', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api.expr.v1alpha1'), createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'major') + ..aInt64(2, _omitFieldNames ? '' : 'minor') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + SourceInfo_Extension_Version clone() => SourceInfo_Extension_Version()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SourceInfo_Extension_Version copyWith(void Function(SourceInfo_Extension_Version) updates) => super.copyWith((message) => updates(message as SourceInfo_Extension_Version)) as SourceInfo_Extension_Version; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static SourceInfo_Extension_Version create() => SourceInfo_Extension_Version._(); + SourceInfo_Extension_Version createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static SourceInfo_Extension_Version getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SourceInfo_Extension_Version? _defaultInstance; + + /// Major version changes indicate different required support level from + /// the required components. + @$pb.TagNumber(1) + $fixnum.Int64 get major => $_getI64(0); + @$pb.TagNumber(1) + set major($fixnum.Int64 v) { $_setInt64(0, v); } + @$pb.TagNumber(1) + $core.bool hasMajor() => $_has(0); + @$pb.TagNumber(1) + void clearMajor() => clearField(1); + + /// Minor version changes must not change the observed behavior from + /// existing implementations, but may be provided informationally. + @$pb.TagNumber(2) + $fixnum.Int64 get minor => $_getI64(1); + @$pb.TagNumber(2) + set minor($fixnum.Int64 v) { $_setInt64(1, v); } + @$pb.TagNumber(2) + $core.bool hasMinor() => $_has(1); + @$pb.TagNumber(2) + void clearMinor() => clearField(2); +} + +/// An extension that was requested for the source expression. +class SourceInfo_Extension extends $pb.GeneratedMessage { + factory SourceInfo_Extension({ + $core.String? id, + $core.Iterable? affectedComponents, + SourceInfo_Extension_Version? version, + }) { + final $result = create(); + if (id != null) { + $result.id = id; + } + if (affectedComponents != null) { + $result.affectedComponents.addAll(affectedComponents); + } + if (version != null) { + $result.version = version; + } + return $result; + } + SourceInfo_Extension._() : super(); + factory SourceInfo_Extension.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SourceInfo_Extension.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SourceInfo.Extension', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api.expr.v1alpha1'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'id') + ..pc(2, _omitFieldNames ? '' : 'affectedComponents', $pb.PbFieldType.KE, valueOf: SourceInfo_Extension_Component.valueOf, enumValues: SourceInfo_Extension_Component.values, defaultEnumValue: SourceInfo_Extension_Component.COMPONENT_UNSPECIFIED) + ..aOM(3, _omitFieldNames ? '' : 'version', subBuilder: SourceInfo_Extension_Version.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + SourceInfo_Extension clone() => SourceInfo_Extension()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SourceInfo_Extension copyWith(void Function(SourceInfo_Extension) updates) => super.copyWith((message) => updates(message as SourceInfo_Extension)) as SourceInfo_Extension; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static SourceInfo_Extension create() => SourceInfo_Extension._(); + SourceInfo_Extension createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static SourceInfo_Extension getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SourceInfo_Extension? _defaultInstance; + + /// Identifier for the extension. Example: constant_folding + @$pb.TagNumber(1) + $core.String get id => $_getSZ(0); + @$pb.TagNumber(1) + set id($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasId() => $_has(0); + @$pb.TagNumber(1) + void clearId() => clearField(1); + + /// If set, the listed components must understand the extension for the + /// expression to evaluate correctly. + /// + /// This field has set semantics, repeated values should be deduplicated. + @$pb.TagNumber(2) + $core.List get affectedComponents => $_getList(1); + + /// Version info. May be skipped if it isn't meaningful for the extension. + /// (for example constant_folding might always be v0.0). + @$pb.TagNumber(3) + SourceInfo_Extension_Version get version => $_getN(2); + @$pb.TagNumber(3) + set version(SourceInfo_Extension_Version v) { setField(3, v); } + @$pb.TagNumber(3) + $core.bool hasVersion() => $_has(2); + @$pb.TagNumber(3) + void clearVersion() => clearField(3); + @$pb.TagNumber(3) + SourceInfo_Extension_Version ensureVersion() => $_ensure(2); +} + /// Source information collected at parse time. class SourceInfo extends $pb.GeneratedMessage { factory SourceInfo({ @@ -1222,6 +1380,7 @@ class SourceInfo extends $pb.GeneratedMessage { $core.Iterable<$core.int>? lineOffsets, $core.Map<$fixnum.Int64, $core.int>? positions, $core.Map<$fixnum.Int64, Expr>? macroCalls, + $core.Iterable? extensions, }) { final $result = create(); if (syntaxVersion != null) { @@ -1239,6 +1398,9 @@ class SourceInfo extends $pb.GeneratedMessage { if (macroCalls != null) { $result.macroCalls.addAll(macroCalls); } + if (extensions != null) { + $result.extensions.addAll(extensions); + } return $result; } SourceInfo._() : super(); @@ -1251,6 +1413,7 @@ class SourceInfo extends $pb.GeneratedMessage { ..p<$core.int>(3, _omitFieldNames ? '' : 'lineOffsets', $pb.PbFieldType.K3) ..m<$fixnum.Int64, $core.int>(4, _omitFieldNames ? '' : 'positions', entryClassName: 'SourceInfo.PositionsEntry', keyFieldType: $pb.PbFieldType.O6, valueFieldType: $pb.PbFieldType.O3, packageName: const $pb.PackageName('google.api.expr.v1alpha1')) ..m<$fixnum.Int64, Expr>(5, _omitFieldNames ? '' : 'macroCalls', entryClassName: 'SourceInfo.MacroCallsEntry', keyFieldType: $pb.PbFieldType.O6, valueFieldType: $pb.PbFieldType.OM, valueCreator: Expr.create, valueDefaultOrMaker: Expr.getDefault, packageName: const $pb.PackageName('google.api.expr.v1alpha1')) + ..pc(6, _omitFieldNames ? '' : 'extensions', $pb.PbFieldType.PM, subBuilder: SourceInfo_Extension.create) ..hasRequiredFields = false ; @@ -1323,6 +1486,16 @@ class SourceInfo extends $pb.GeneratedMessage { /// value is the call `Expr` that was replaced. @$pb.TagNumber(5) $core.Map<$fixnum.Int64, Expr> get macroCalls => $_getMap(4); + + /// A list of tags for extensions that were used while parsing or type checking + /// the source expression. For example, optimizations that require special + /// runtime support may be specified. + /// + /// These are used to check feature support between components in separate + /// implementations. This can be used to either skip redundant work or + /// report an error if the extension is unsupported. + @$pb.TagNumber(6) + $core.List get extensions => $_getList(5); } /// A specific position in source. diff --git a/lib/src/gen/google/api/expr/v1alpha1/syntax.pbenum.dart b/lib/src/gen/google/api/expr/v1alpha1/syntax.pbenum.dart index eef5bdda7fb..d9665f2ae34 100644 --- a/lib/src/gen/google/api/expr/v1alpha1/syntax.pbenum.dart +++ b/lib/src/gen/google/api/expr/v1alpha1/syntax.pbenum.dart @@ -9,3 +9,29 @@ // ignore_for_file: non_constant_identifier_names, prefer_final_fields // ignore_for_file: unnecessary_import, unnecessary_this, unused_import +import 'dart:core' as $core; + +import 'package:protobuf/protobuf.dart' as $pb; + +/// CEL component specifier. +class SourceInfo_Extension_Component extends $pb.ProtobufEnum { + static const SourceInfo_Extension_Component COMPONENT_UNSPECIFIED = SourceInfo_Extension_Component._(0, _omitEnumNames ? '' : 'COMPONENT_UNSPECIFIED'); + static const SourceInfo_Extension_Component COMPONENT_PARSER = SourceInfo_Extension_Component._(1, _omitEnumNames ? '' : 'COMPONENT_PARSER'); + static const SourceInfo_Extension_Component COMPONENT_TYPE_CHECKER = SourceInfo_Extension_Component._(2, _omitEnumNames ? '' : 'COMPONENT_TYPE_CHECKER'); + static const SourceInfo_Extension_Component COMPONENT_RUNTIME = SourceInfo_Extension_Component._(3, _omitEnumNames ? '' : 'COMPONENT_RUNTIME'); + + static const $core.List values = [ + COMPONENT_UNSPECIFIED, + COMPONENT_PARSER, + COMPONENT_TYPE_CHECKER, + COMPONENT_RUNTIME, + ]; + + static final $core.Map<$core.int, SourceInfo_Extension_Component> _byValue = $pb.ProtobufEnum.initByValue(values); + static SourceInfo_Extension_Component? valueOf($core.int value) => _byValue[value]; + + const SourceInfo_Extension_Component._($core.int v, $core.String n) : super(v, n); +} + + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/lib/src/gen/google/api/expr/v1alpha1/syntax.pbjson.dart b/lib/src/gen/google/api/expr/v1alpha1/syntax.pbjson.dart index f2b909eedb2..30fefba39e4 100644 --- a/lib/src/gen/google/api/expr/v1alpha1/syntax.pbjson.dart +++ b/lib/src/gen/google/api/expr/v1alpha1/syntax.pbjson.dart @@ -215,8 +215,41 @@ const SourceInfo$json = { {'1': 'line_offsets', '3': 3, '4': 3, '5': 5, '10': 'lineOffsets'}, {'1': 'positions', '3': 4, '4': 3, '5': 11, '6': '.google.api.expr.v1alpha1.SourceInfo.PositionsEntry', '10': 'positions'}, {'1': 'macro_calls', '3': 5, '4': 3, '5': 11, '6': '.google.api.expr.v1alpha1.SourceInfo.MacroCallsEntry', '10': 'macroCalls'}, + {'1': 'extensions', '3': 6, '4': 3, '5': 11, '6': '.google.api.expr.v1alpha1.SourceInfo.Extension', '10': 'extensions'}, + ], + '3': [SourceInfo_Extension$json, SourceInfo_PositionsEntry$json, SourceInfo_MacroCallsEntry$json], +}; + +@$core.Deprecated('Use sourceInfoDescriptor instead') +const SourceInfo_Extension$json = { + '1': 'Extension', + '2': [ + {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, + {'1': 'affected_components', '3': 2, '4': 3, '5': 14, '6': '.google.api.expr.v1alpha1.SourceInfo.Extension.Component', '10': 'affectedComponents'}, + {'1': 'version', '3': 3, '4': 1, '5': 11, '6': '.google.api.expr.v1alpha1.SourceInfo.Extension.Version', '10': 'version'}, + ], + '3': [SourceInfo_Extension_Version$json], + '4': [SourceInfo_Extension_Component$json], +}; + +@$core.Deprecated('Use sourceInfoDescriptor instead') +const SourceInfo_Extension_Version$json = { + '1': 'Version', + '2': [ + {'1': 'major', '3': 1, '4': 1, '5': 3, '10': 'major'}, + {'1': 'minor', '3': 2, '4': 1, '5': 3, '10': 'minor'}, + ], +}; + +@$core.Deprecated('Use sourceInfoDescriptor instead') +const SourceInfo_Extension_Component$json = { + '1': 'Component', + '2': [ + {'1': 'COMPONENT_UNSPECIFIED', '2': 0}, + {'1': 'COMPONENT_PARSER', '2': 1}, + {'1': 'COMPONENT_TYPE_CHECKER', '2': 2}, + {'1': 'COMPONENT_RUNTIME', '2': 3}, ], - '3': [SourceInfo_PositionsEntry$json, SourceInfo_MacroCallsEntry$json], }; @$core.Deprecated('Use sourceInfoDescriptor instead') @@ -246,9 +279,18 @@ final $typed_data.Uint8List sourceInfoDescriptor = $convert.base64Decode( 'ZXRzElEKCXBvc2l0aW9ucxgEIAMoCzIzLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5Tb3VyY2' 'VJbmZvLlBvc2l0aW9uc0VudHJ5Uglwb3NpdGlvbnMSVQoLbWFjcm9fY2FsbHMYBSADKAsyNC5n' 'b29nbGUuYXBpLmV4cHIudjFhbHBoYTEuU291cmNlSW5mby5NYWNyb0NhbGxzRW50cnlSCm1hY3' - 'JvQ2FsbHMaPAoOUG9zaXRpb25zRW50cnkSEAoDa2V5GAEgASgDUgNrZXkSFAoFdmFsdWUYAiAB' - 'KAVSBXZhbHVlOgI4ARpdCg9NYWNyb0NhbGxzRW50cnkSEAoDa2V5GAEgASgDUgNrZXkSNAoFdm' - 'FsdWUYAiABKAsyHi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwclIFdmFsdWU6AjgB'); + 'JvQ2FsbHMSTgoKZXh0ZW5zaW9ucxgGIAMoCzIuLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5T' + 'b3VyY2VJbmZvLkV4dGVuc2lvblIKZXh0ZW5zaW9ucxqAAwoJRXh0ZW5zaW9uEg4KAmlkGAEgAS' + 'gJUgJpZBJpChNhZmZlY3RlZF9jb21wb25lbnRzGAIgAygOMjguZ29vZ2xlLmFwaS5leHByLnYx' + 'YWxwaGExLlNvdXJjZUluZm8uRXh0ZW5zaW9uLkNvbXBvbmVudFISYWZmZWN0ZWRDb21wb25lbn' + 'RzElAKB3ZlcnNpb24YAyABKAsyNi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuU291cmNlSW5m' + 'by5FeHRlbnNpb24uVmVyc2lvblIHdmVyc2lvbho1CgdWZXJzaW9uEhQKBW1ham9yGAEgASgDUg' + 'VtYWpvchIUCgVtaW5vchgCIAEoA1IFbWlub3IibwoJQ29tcG9uZW50EhkKFUNPTVBPTkVOVF9V' + 'TlNQRUNJRklFRBAAEhQKEENPTVBPTkVOVF9QQVJTRVIQARIaChZDT01QT05FTlRfVFlQRV9DSE' + 'VDS0VSEAISFQoRQ09NUE9ORU5UX1JVTlRJTUUQAxo8Cg5Qb3NpdGlvbnNFbnRyeRIQCgNrZXkY' + 'ASABKANSA2tleRIUCgV2YWx1ZRgCIAEoBVIFdmFsdWU6AjgBGl0KD01hY3JvQ2FsbHNFbnRyeR' + 'IQCgNrZXkYASABKANSA2tleRI0CgV2YWx1ZRgCIAEoCzIeLmdvb2dsZS5hcGkuZXhwci52MWFs' + 'cGhhMS5FeHByUgV2YWx1ZToCOAE='); @$core.Deprecated('Use sourcePositionDescriptor instead') const SourcePosition$json = { diff --git a/lib/src/gen/google/api/field_behavior.pb.dart b/lib/src/gen/google/api/field_behavior.pb.dart index 81c3c0c2dc6..b43120204a5 100644 --- a/lib/src/gen/google/api/field_behavior.pb.dart +++ b/lib/src/gen/google/api/field_behavior.pb.dart @@ -18,7 +18,7 @@ import 'field_behavior.pbenum.dart'; export 'field_behavior.pbenum.dart'; class Field_behavior { - static final fieldBehavior = $pb.Extension.repeated(_omitMessageNames ? '' : 'google.protobuf.FieldOptions', _omitFieldNames ? '' : 'fieldBehavior', 1052, $pb.PbFieldType.KE, check: $pb.getCheckFunction($pb.PbFieldType.KE), valueOf: FieldBehavior.valueOf, enumValues: FieldBehavior.values); + static final fieldBehavior = $pb.Extension.repeated(_omitMessageNames ? '' : 'google.protobuf.FieldOptions', _omitFieldNames ? '' : 'fieldBehavior', 1052, $pb.PbFieldType.PE, check: $pb.getCheckFunction($pb.PbFieldType.PE), valueOf: FieldBehavior.valueOf, enumValues: FieldBehavior.values); static void registerAllExtensions($pb.ExtensionRegistry registry) { registry.add(fieldBehavior); } diff --git a/lib/src/gen/module/v1/module.pb.dart b/lib/src/gen/module/v1/module.pb.dart index 959349d4b82..306a52b3528 100644 --- a/lib/src/gen/module/v1/module.pb.dart +++ b/lib/src/gen/module/v1/module.pb.dart @@ -13,12 +13,12 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; -import '../../app/v1/robot.pb.dart' as $2; -import '../../robot/v1/robot.pb.dart' as $3; +import '../../app/v1/robot.pb.dart' as $0; +import '../../robot/v1/robot.pb.dart' as $1; class AddResourceRequest extends $pb.GeneratedMessage { factory AddResourceRequest({ - $2.ComponentConfig? config, + $0.ComponentConfig? config, $core.Iterable<$core.String>? dependencies, }) { final $result = create(); @@ -35,7 +35,7 @@ class AddResourceRequest extends $pb.GeneratedMessage { factory AddResourceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AddResourceRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.module.v1'), createEmptyInstance: create) - ..aOM<$2.ComponentConfig>(1, _omitFieldNames ? '' : 'config', subBuilder: $2.ComponentConfig.create) + ..aOM<$0.ComponentConfig>(1, _omitFieldNames ? '' : 'config', subBuilder: $0.ComponentConfig.create) ..pPS(2, _omitFieldNames ? '' : 'dependencies') ..hasRequiredFields = false ; @@ -62,15 +62,15 @@ class AddResourceRequest extends $pb.GeneratedMessage { static AddResourceRequest? _defaultInstance; @$pb.TagNumber(1) - $2.ComponentConfig get config => $_getN(0); + $0.ComponentConfig get config => $_getN(0); @$pb.TagNumber(1) - set config($2.ComponentConfig v) { setField(1, v); } + set config($0.ComponentConfig v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasConfig() => $_has(0); @$pb.TagNumber(1) void clearConfig() => clearField(1); @$pb.TagNumber(1) - $2.ComponentConfig ensureConfig() => $_ensure(0); + $0.ComponentConfig ensureConfig() => $_ensure(0); @$pb.TagNumber(2) $core.List<$core.String> get dependencies => $_getList(1); @@ -110,7 +110,7 @@ class AddResourceResponse extends $pb.GeneratedMessage { class ReconfigureResourceRequest extends $pb.GeneratedMessage { factory ReconfigureResourceRequest({ - $2.ComponentConfig? config, + $0.ComponentConfig? config, $core.Iterable<$core.String>? dependencies, }) { final $result = create(); @@ -127,7 +127,7 @@ class ReconfigureResourceRequest extends $pb.GeneratedMessage { factory ReconfigureResourceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReconfigureResourceRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.module.v1'), createEmptyInstance: create) - ..aOM<$2.ComponentConfig>(1, _omitFieldNames ? '' : 'config', subBuilder: $2.ComponentConfig.create) + ..aOM<$0.ComponentConfig>(1, _omitFieldNames ? '' : 'config', subBuilder: $0.ComponentConfig.create) ..pPS(2, _omitFieldNames ? '' : 'dependencies') ..hasRequiredFields = false ; @@ -154,15 +154,15 @@ class ReconfigureResourceRequest extends $pb.GeneratedMessage { static ReconfigureResourceRequest? _defaultInstance; @$pb.TagNumber(1) - $2.ComponentConfig get config => $_getN(0); + $0.ComponentConfig get config => $_getN(0); @$pb.TagNumber(1) - set config($2.ComponentConfig v) { setField(1, v); } + set config($0.ComponentConfig v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasConfig() => $_has(0); @$pb.TagNumber(1) void clearConfig() => clearField(1); @$pb.TagNumber(1) - $2.ComponentConfig ensureConfig() => $_ensure(0); + $0.ComponentConfig ensureConfig() => $_ensure(0); @$pb.TagNumber(2) $core.List<$core.String> get dependencies => $_getList(1); @@ -284,7 +284,7 @@ class RemoveResourceResponse extends $pb.GeneratedMessage { class HandlerDefinition extends $pb.GeneratedMessage { factory HandlerDefinition({ - $3.ResourceRPCSubtype? subtype, + $1.ResourceRPCSubtype? subtype, $core.Iterable<$core.String>? models, }) { final $result = create(); @@ -301,7 +301,7 @@ class HandlerDefinition extends $pb.GeneratedMessage { factory HandlerDefinition.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'HandlerDefinition', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.module.v1'), createEmptyInstance: create) - ..aOM<$3.ResourceRPCSubtype>(1, _omitFieldNames ? '' : 'subtype', subBuilder: $3.ResourceRPCSubtype.create) + ..aOM<$1.ResourceRPCSubtype>(1, _omitFieldNames ? '' : 'subtype', subBuilder: $1.ResourceRPCSubtype.create) ..pPS(2, _omitFieldNames ? '' : 'models') ..hasRequiredFields = false ; @@ -328,15 +328,15 @@ class HandlerDefinition extends $pb.GeneratedMessage { static HandlerDefinition? _defaultInstance; @$pb.TagNumber(1) - $3.ResourceRPCSubtype get subtype => $_getN(0); + $1.ResourceRPCSubtype get subtype => $_getN(0); @$pb.TagNumber(1) - set subtype($3.ResourceRPCSubtype v) { setField(1, v); } + set subtype($1.ResourceRPCSubtype v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasSubtype() => $_has(0); @$pb.TagNumber(1) void clearSubtype() => clearField(1); @$pb.TagNumber(1) - $3.ResourceRPCSubtype ensureSubtype() => $_ensure(0); + $1.ResourceRPCSubtype ensureSubtype() => $_ensure(0); @$pb.TagNumber(2) $core.List<$core.String> get models => $_getList(1); @@ -504,7 +504,7 @@ class ReadyResponse extends $pb.GeneratedMessage { class ValidateConfigRequest extends $pb.GeneratedMessage { factory ValidateConfigRequest({ - $2.ComponentConfig? config, + $0.ComponentConfig? config, }) { final $result = create(); if (config != null) { @@ -517,7 +517,7 @@ class ValidateConfigRequest extends $pb.GeneratedMessage { factory ValidateConfigRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ValidateConfigRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.module.v1'), createEmptyInstance: create) - ..aOM<$2.ComponentConfig>(1, _omitFieldNames ? '' : 'config', subBuilder: $2.ComponentConfig.create) + ..aOM<$0.ComponentConfig>(1, _omitFieldNames ? '' : 'config', subBuilder: $0.ComponentConfig.create) ..hasRequiredFields = false ; @@ -543,15 +543,15 @@ class ValidateConfigRequest extends $pb.GeneratedMessage { static ValidateConfigRequest? _defaultInstance; @$pb.TagNumber(1) - $2.ComponentConfig get config => $_getN(0); + $0.ComponentConfig get config => $_getN(0); @$pb.TagNumber(1) - set config($2.ComponentConfig v) { setField(1, v); } + set config($0.ComponentConfig v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasConfig() => $_has(0); @$pb.TagNumber(1) void clearConfig() => clearField(1); @$pb.TagNumber(1) - $2.ComponentConfig ensureConfig() => $_ensure(0); + $0.ComponentConfig ensureConfig() => $_ensure(0); } class ValidateConfigResponse extends $pb.GeneratedMessage { diff --git a/lib/src/gen/module/v1/module.pbgrpc.dart b/lib/src/gen/module/v1/module.pbgrpc.dart index 65bdc50c027..a7ff86a8c3f 100644 --- a/lib/src/gen/module/v1/module.pbgrpc.dart +++ b/lib/src/gen/module/v1/module.pbgrpc.dart @@ -15,32 +15,32 @@ import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; import 'package:protobuf/protobuf.dart' as $pb; -import 'module.pb.dart' as $4; +import 'module.pb.dart' as $2; export 'module.pb.dart'; @$pb.GrpcServiceName('viam.module.v1.ModuleService') class ModuleServiceClient extends $grpc.Client { - static final _$addResource = $grpc.ClientMethod<$4.AddResourceRequest, $4.AddResourceResponse>( + static final _$addResource = $grpc.ClientMethod<$2.AddResourceRequest, $2.AddResourceResponse>( '/viam.module.v1.ModuleService/AddResource', - ($4.AddResourceRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $4.AddResourceResponse.fromBuffer(value)); - static final _$reconfigureResource = $grpc.ClientMethod<$4.ReconfigureResourceRequest, $4.ReconfigureResourceResponse>( + ($2.AddResourceRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $2.AddResourceResponse.fromBuffer(value)); + static final _$reconfigureResource = $grpc.ClientMethod<$2.ReconfigureResourceRequest, $2.ReconfigureResourceResponse>( '/viam.module.v1.ModuleService/ReconfigureResource', - ($4.ReconfigureResourceRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $4.ReconfigureResourceResponse.fromBuffer(value)); - static final _$removeResource = $grpc.ClientMethod<$4.RemoveResourceRequest, $4.RemoveResourceResponse>( + ($2.ReconfigureResourceRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $2.ReconfigureResourceResponse.fromBuffer(value)); + static final _$removeResource = $grpc.ClientMethod<$2.RemoveResourceRequest, $2.RemoveResourceResponse>( '/viam.module.v1.ModuleService/RemoveResource', - ($4.RemoveResourceRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $4.RemoveResourceResponse.fromBuffer(value)); - static final _$ready = $grpc.ClientMethod<$4.ReadyRequest, $4.ReadyResponse>( + ($2.RemoveResourceRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $2.RemoveResourceResponse.fromBuffer(value)); + static final _$ready = $grpc.ClientMethod<$2.ReadyRequest, $2.ReadyResponse>( '/viam.module.v1.ModuleService/Ready', - ($4.ReadyRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $4.ReadyResponse.fromBuffer(value)); - static final _$validateConfig = $grpc.ClientMethod<$4.ValidateConfigRequest, $4.ValidateConfigResponse>( + ($2.ReadyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $2.ReadyResponse.fromBuffer(value)); + static final _$validateConfig = $grpc.ClientMethod<$2.ValidateConfigRequest, $2.ValidateConfigResponse>( '/viam.module.v1.ModuleService/ValidateConfig', - ($4.ValidateConfigRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $4.ValidateConfigResponse.fromBuffer(value)); + ($2.ValidateConfigRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $2.ValidateConfigResponse.fromBuffer(value)); ModuleServiceClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, @@ -48,23 +48,23 @@ class ModuleServiceClient extends $grpc.Client { : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$4.AddResourceResponse> addResource($4.AddResourceRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$2.AddResourceResponse> addResource($2.AddResourceRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$addResource, request, options: options); } - $grpc.ResponseFuture<$4.ReconfigureResourceResponse> reconfigureResource($4.ReconfigureResourceRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$2.ReconfigureResourceResponse> reconfigureResource($2.ReconfigureResourceRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$reconfigureResource, request, options: options); } - $grpc.ResponseFuture<$4.RemoveResourceResponse> removeResource($4.RemoveResourceRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$2.RemoveResourceResponse> removeResource($2.RemoveResourceRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$removeResource, request, options: options); } - $grpc.ResponseFuture<$4.ReadyResponse> ready($4.ReadyRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$2.ReadyResponse> ready($2.ReadyRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$ready, request, options: options); } - $grpc.ResponseFuture<$4.ValidateConfigResponse> validateConfig($4.ValidateConfigRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$2.ValidateConfigResponse> validateConfig($2.ValidateConfigRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$validateConfig, request, options: options); } } @@ -74,66 +74,66 @@ abstract class ModuleServiceBase extends $grpc.Service { $core.String get $name => 'viam.module.v1.ModuleService'; ModuleServiceBase() { - $addMethod($grpc.ServiceMethod<$4.AddResourceRequest, $4.AddResourceResponse>( + $addMethod($grpc.ServiceMethod<$2.AddResourceRequest, $2.AddResourceResponse>( 'AddResource', addResource_Pre, false, false, - ($core.List<$core.int> value) => $4.AddResourceRequest.fromBuffer(value), - ($4.AddResourceResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$4.ReconfigureResourceRequest, $4.ReconfigureResourceResponse>( + ($core.List<$core.int> value) => $2.AddResourceRequest.fromBuffer(value), + ($2.AddResourceResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$2.ReconfigureResourceRequest, $2.ReconfigureResourceResponse>( 'ReconfigureResource', reconfigureResource_Pre, false, false, - ($core.List<$core.int> value) => $4.ReconfigureResourceRequest.fromBuffer(value), - ($4.ReconfigureResourceResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$4.RemoveResourceRequest, $4.RemoveResourceResponse>( + ($core.List<$core.int> value) => $2.ReconfigureResourceRequest.fromBuffer(value), + ($2.ReconfigureResourceResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$2.RemoveResourceRequest, $2.RemoveResourceResponse>( 'RemoveResource', removeResource_Pre, false, false, - ($core.List<$core.int> value) => $4.RemoveResourceRequest.fromBuffer(value), - ($4.RemoveResourceResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$4.ReadyRequest, $4.ReadyResponse>( + ($core.List<$core.int> value) => $2.RemoveResourceRequest.fromBuffer(value), + ($2.RemoveResourceResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$2.ReadyRequest, $2.ReadyResponse>( 'Ready', ready_Pre, false, false, - ($core.List<$core.int> value) => $4.ReadyRequest.fromBuffer(value), - ($4.ReadyResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$4.ValidateConfigRequest, $4.ValidateConfigResponse>( + ($core.List<$core.int> value) => $2.ReadyRequest.fromBuffer(value), + ($2.ReadyResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$2.ValidateConfigRequest, $2.ValidateConfigResponse>( 'ValidateConfig', validateConfig_Pre, false, false, - ($core.List<$core.int> value) => $4.ValidateConfigRequest.fromBuffer(value), - ($4.ValidateConfigResponse value) => value.writeToBuffer())); + ($core.List<$core.int> value) => $2.ValidateConfigRequest.fromBuffer(value), + ($2.ValidateConfigResponse value) => value.writeToBuffer())); } - $async.Future<$4.AddResourceResponse> addResource_Pre($grpc.ServiceCall call, $async.Future<$4.AddResourceRequest> request) async { + $async.Future<$2.AddResourceResponse> addResource_Pre($grpc.ServiceCall call, $async.Future<$2.AddResourceRequest> request) async { return addResource(call, await request); } - $async.Future<$4.ReconfigureResourceResponse> reconfigureResource_Pre($grpc.ServiceCall call, $async.Future<$4.ReconfigureResourceRequest> request) async { + $async.Future<$2.ReconfigureResourceResponse> reconfigureResource_Pre($grpc.ServiceCall call, $async.Future<$2.ReconfigureResourceRequest> request) async { return reconfigureResource(call, await request); } - $async.Future<$4.RemoveResourceResponse> removeResource_Pre($grpc.ServiceCall call, $async.Future<$4.RemoveResourceRequest> request) async { + $async.Future<$2.RemoveResourceResponse> removeResource_Pre($grpc.ServiceCall call, $async.Future<$2.RemoveResourceRequest> request) async { return removeResource(call, await request); } - $async.Future<$4.ReadyResponse> ready_Pre($grpc.ServiceCall call, $async.Future<$4.ReadyRequest> request) async { + $async.Future<$2.ReadyResponse> ready_Pre($grpc.ServiceCall call, $async.Future<$2.ReadyRequest> request) async { return ready(call, await request); } - $async.Future<$4.ValidateConfigResponse> validateConfig_Pre($grpc.ServiceCall call, $async.Future<$4.ValidateConfigRequest> request) async { + $async.Future<$2.ValidateConfigResponse> validateConfig_Pre($grpc.ServiceCall call, $async.Future<$2.ValidateConfigRequest> request) async { return validateConfig(call, await request); } - $async.Future<$4.AddResourceResponse> addResource($grpc.ServiceCall call, $4.AddResourceRequest request); - $async.Future<$4.ReconfigureResourceResponse> reconfigureResource($grpc.ServiceCall call, $4.ReconfigureResourceRequest request); - $async.Future<$4.RemoveResourceResponse> removeResource($grpc.ServiceCall call, $4.RemoveResourceRequest request); - $async.Future<$4.ReadyResponse> ready($grpc.ServiceCall call, $4.ReadyRequest request); - $async.Future<$4.ValidateConfigResponse> validateConfig($grpc.ServiceCall call, $4.ValidateConfigRequest request); + $async.Future<$2.AddResourceResponse> addResource($grpc.ServiceCall call, $2.AddResourceRequest request); + $async.Future<$2.ReconfigureResourceResponse> reconfigureResource($grpc.ServiceCall call, $2.ReconfigureResourceRequest request); + $async.Future<$2.RemoveResourceResponse> removeResource($grpc.ServiceCall call, $2.RemoveResourceRequest request); + $async.Future<$2.ReadyResponse> ready($grpc.ServiceCall call, $2.ReadyRequest request); + $async.Future<$2.ValidateConfigResponse> validateConfig($grpc.ServiceCall call, $2.ValidateConfigRequest request); } diff --git a/lib/src/gen/robot/v1/robot.pb.dart b/lib/src/gen/robot/v1/robot.pb.dart index b609b63ea65..5f191af181c 100644 --- a/lib/src/gen/robot/v1/robot.pb.dart +++ b/lib/src/gen/robot/v1/robot.pb.dart @@ -2073,6 +2073,82 @@ class SendSessionHeartbeatResponse extends $pb.GeneratedMessage { static SendSessionHeartbeatResponse? _defaultInstance; } +class LogRequest extends $pb.GeneratedMessage { + factory LogRequest({ + $core.Iterable<$1.LogEntry>? logs, + }) { + final $result = create(); + if (logs != null) { + $result.logs.addAll(logs); + } + return $result; + } + LogRequest._() : super(); + factory LogRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory LogRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LogRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.robot.v1'), createEmptyInstance: create) + ..pc<$1.LogEntry>(1, _omitFieldNames ? '' : 'logs', $pb.PbFieldType.PM, subBuilder: $1.LogEntry.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + LogRequest clone() => LogRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + LogRequest copyWith(void Function(LogRequest) updates) => super.copyWith((message) => updates(message as LogRequest)) as LogRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static LogRequest create() => LogRequest._(); + LogRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static LogRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static LogRequest? _defaultInstance; + + @$pb.TagNumber(1) + $core.List<$1.LogEntry> get logs => $_getList(0); +} + +class LogResponse extends $pb.GeneratedMessage { + factory LogResponse() => create(); + LogResponse._() : super(); + factory LogResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory LogResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LogResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.robot.v1'), createEmptyInstance: create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + LogResponse clone() => LogResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + LogResponse copyWith(void Function(LogResponse) updates) => super.copyWith((message) => updates(message as LogResponse)) as LogResponse; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static LogResponse create() => LogResponse._(); + LogResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static LogResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static LogResponse? _defaultInstance; +} + const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/src/gen/robot/v1/robot.pbgrpc.dart b/lib/src/gen/robot/v1/robot.pbgrpc.dart index 2cba43d31c7..0c766f8ea75 100644 --- a/lib/src/gen/robot/v1/robot.pbgrpc.dart +++ b/lib/src/gen/robot/v1/robot.pbgrpc.dart @@ -81,6 +81,10 @@ class RobotServiceClient extends $grpc.Client { '/viam.robot.v1.RobotService/SendSessionHeartbeat', ($0.SendSessionHeartbeatRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.SendSessionHeartbeatResponse.fromBuffer(value)); + static final _$log = $grpc.ClientMethod<$0.LogRequest, $0.LogResponse>( + '/viam.robot.v1.RobotService/Log', + ($0.LogRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.LogResponse.fromBuffer(value)); RobotServiceClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, @@ -147,6 +151,10 @@ class RobotServiceClient extends $grpc.Client { $grpc.ResponseFuture<$0.SendSessionHeartbeatResponse> sendSessionHeartbeat($0.SendSessionHeartbeatRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$sendSessionHeartbeat, request, options: options); } + + $grpc.ResponseFuture<$0.LogResponse> log($0.LogRequest request, {$grpc.CallOptions? options}) { + return $createUnaryCall(_$log, request, options: options); + } } @$pb.GrpcServiceName('viam.robot.v1.RobotService') @@ -259,6 +267,13 @@ abstract class RobotServiceBase extends $grpc.Service { false, ($core.List<$core.int> value) => $0.SendSessionHeartbeatRequest.fromBuffer(value), ($0.SendSessionHeartbeatResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.LogRequest, $0.LogResponse>( + 'Log', + log_Pre, + false, + false, + ($core.List<$core.int> value) => $0.LogRequest.fromBuffer(value), + ($0.LogResponse value) => value.writeToBuffer())); } $async.Future<$0.GetOperationsResponse> getOperations_Pre($grpc.ServiceCall call, $async.Future<$0.GetOperationsRequest> request) async { @@ -321,6 +336,10 @@ abstract class RobotServiceBase extends $grpc.Service { return sendSessionHeartbeat(call, await request); } + $async.Future<$0.LogResponse> log_Pre($grpc.ServiceCall call, $async.Future<$0.LogRequest> request) async { + return log(call, await request); + } + $async.Future<$0.GetOperationsResponse> getOperations($grpc.ServiceCall call, $0.GetOperationsRequest request); $async.Future<$0.GetSessionsResponse> getSessions($grpc.ServiceCall call, $0.GetSessionsRequest request); $async.Future<$0.ResourceNamesResponse> resourceNames($grpc.ServiceCall call, $0.ResourceNamesRequest request); @@ -336,4 +355,5 @@ abstract class RobotServiceBase extends $grpc.Service { $async.Future<$0.StopAllResponse> stopAll($grpc.ServiceCall call, $0.StopAllRequest request); $async.Future<$0.StartSessionResponse> startSession($grpc.ServiceCall call, $0.StartSessionRequest request); $async.Future<$0.SendSessionHeartbeatResponse> sendSessionHeartbeat($grpc.ServiceCall call, $0.SendSessionHeartbeatRequest request); + $async.Future<$0.LogResponse> log($grpc.ServiceCall call, $0.LogRequest request); } diff --git a/lib/src/gen/robot/v1/robot.pbjson.dart b/lib/src/gen/robot/v1/robot.pbjson.dart index 2d370dff421..e6a78dfeab0 100644 --- a/lib/src/gen/robot/v1/robot.pbjson.dart +++ b/lib/src/gen/robot/v1/robot.pbjson.dart @@ -546,3 +546,25 @@ const SendSessionHeartbeatResponse$json = { final $typed_data.Uint8List sendSessionHeartbeatResponseDescriptor = $convert.base64Decode( 'ChxTZW5kU2Vzc2lvbkhlYXJ0YmVhdFJlc3BvbnNl'); +@$core.Deprecated('Use logRequestDescriptor instead') +const LogRequest$json = { + '1': 'LogRequest', + '2': [ + {'1': 'logs', '3': 1, '4': 3, '5': 11, '6': '.viam.common.v1.LogEntry', '10': 'logs'}, + ], +}; + +/// Descriptor for `LogRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List logRequestDescriptor = $convert.base64Decode( + 'CgpMb2dSZXF1ZXN0EiwKBGxvZ3MYASADKAsyGC52aWFtLmNvbW1vbi52MS5Mb2dFbnRyeVIEbG' + '9ncw=='); + +@$core.Deprecated('Use logResponseDescriptor instead') +const LogResponse$json = { + '1': 'LogResponse', +}; + +/// Descriptor for `LogResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List logResponseDescriptor = $convert.base64Decode( + 'CgtMb2dSZXNwb25zZQ=='); + diff --git a/lib/src/gen/service/motion/v1/motion.pb.dart b/lib/src/gen/service/motion/v1/motion.pb.dart index 9a2394a87d6..1d62dc81981 100644 --- a/lib/src/gen/service/motion/v1/motion.pb.dart +++ b/lib/src/gen/service/motion/v1/motion.pb.dart @@ -208,195 +208,6 @@ class MoveResponse extends $pb.GeneratedMessage { void clearSuccess() => clearField(1); } -class MoveOnMapNewRequest extends $pb.GeneratedMessage { - factory MoveOnMapNewRequest({ - $core.String? name, - $1.Pose? destination, - $1.ResourceName? componentName, - $1.ResourceName? slamServiceName, - MotionConfiguration? motionConfiguration, - $2.Struct? extra, - }) { - final $result = create(); - if (name != null) { - $result.name = name; - } - if (destination != null) { - $result.destination = destination; - } - if (componentName != null) { - $result.componentName = componentName; - } - if (slamServiceName != null) { - $result.slamServiceName = slamServiceName; - } - if (motionConfiguration != null) { - $result.motionConfiguration = motionConfiguration; - } - if (extra != null) { - $result.extra = extra; - } - return $result; - } - MoveOnMapNewRequest._() : super(); - factory MoveOnMapNewRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory MoveOnMapNewRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MoveOnMapNewRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.service.motion.v1'), createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'name') - ..aOM<$1.Pose>(2, _omitFieldNames ? '' : 'destination', subBuilder: $1.Pose.create) - ..aOM<$1.ResourceName>(3, _omitFieldNames ? '' : 'componentName', subBuilder: $1.ResourceName.create) - ..aOM<$1.ResourceName>(4, _omitFieldNames ? '' : 'slamServiceName', subBuilder: $1.ResourceName.create) - ..aOM(5, _omitFieldNames ? '' : 'motionConfiguration', subBuilder: MotionConfiguration.create) - ..aOM<$2.Struct>(99, _omitFieldNames ? '' : 'extra', subBuilder: $2.Struct.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - MoveOnMapNewRequest clone() => MoveOnMapNewRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - MoveOnMapNewRequest copyWith(void Function(MoveOnMapNewRequest) updates) => super.copyWith((message) => updates(message as MoveOnMapNewRequest)) as MoveOnMapNewRequest; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static MoveOnMapNewRequest create() => MoveOnMapNewRequest._(); - MoveOnMapNewRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static MoveOnMapNewRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static MoveOnMapNewRequest? _defaultInstance; - - /// Name of the motion service - @$pb.TagNumber(1) - $core.String get name => $_getSZ(0); - @$pb.TagNumber(1) - set name($core.String v) { $_setString(0, v); } - @$pb.TagNumber(1) - $core.bool hasName() => $_has(0); - @$pb.TagNumber(1) - void clearName() => clearField(1); - - /// Specify a destination to, which can be any pose with respect to the SLAM map's origin - @$pb.TagNumber(2) - $1.Pose get destination => $_getN(1); - @$pb.TagNumber(2) - set destination($1.Pose v) { setField(2, v); } - @$pb.TagNumber(2) - $core.bool hasDestination() => $_has(1); - @$pb.TagNumber(2) - void clearDestination() => clearField(2); - @$pb.TagNumber(2) - $1.Pose ensureDestination() => $_ensure(1); - - /// Component on the robot to move to the specified destination - @$pb.TagNumber(3) - $1.ResourceName get componentName => $_getN(2); - @$pb.TagNumber(3) - set componentName($1.ResourceName v) { setField(3, v); } - @$pb.TagNumber(3) - $core.bool hasComponentName() => $_has(2); - @$pb.TagNumber(3) - void clearComponentName() => clearField(3); - @$pb.TagNumber(3) - $1.ResourceName ensureComponentName() => $_ensure(2); - - /// Name of the slam service from which the SLAM map is requested - @$pb.TagNumber(4) - $1.ResourceName get slamServiceName => $_getN(3); - @$pb.TagNumber(4) - set slamServiceName($1.ResourceName v) { setField(4, v); } - @$pb.TagNumber(4) - $core.bool hasSlamServiceName() => $_has(3); - @$pb.TagNumber(4) - void clearSlamServiceName() => clearField(4); - @$pb.TagNumber(4) - $1.ResourceName ensureSlamServiceName() => $_ensure(3); - - /// Optional set of motion configuration options - @$pb.TagNumber(5) - MotionConfiguration get motionConfiguration => $_getN(4); - @$pb.TagNumber(5) - set motionConfiguration(MotionConfiguration v) { setField(5, v); } - @$pb.TagNumber(5) - $core.bool hasMotionConfiguration() => $_has(4); - @$pb.TagNumber(5) - void clearMotionConfiguration() => clearField(5); - @$pb.TagNumber(5) - MotionConfiguration ensureMotionConfiguration() => $_ensure(4); - - /// Additional arguments to the method - @$pb.TagNumber(99) - $2.Struct get extra => $_getN(5); - @$pb.TagNumber(99) - set extra($2.Struct v) { setField(99, v); } - @$pb.TagNumber(99) - $core.bool hasExtra() => $_has(5); - @$pb.TagNumber(99) - void clearExtra() => clearField(99); - @$pb.TagNumber(99) - $2.Struct ensureExtra() => $_ensure(5); -} - -class MoveOnMapNewResponse extends $pb.GeneratedMessage { - factory MoveOnMapNewResponse({ - $core.String? executionId, - }) { - final $result = create(); - if (executionId != null) { - $result.executionId = executionId; - } - return $result; - } - MoveOnMapNewResponse._() : super(); - factory MoveOnMapNewResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory MoveOnMapNewResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MoveOnMapNewResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.service.motion.v1'), createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'executionId') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - MoveOnMapNewResponse clone() => MoveOnMapNewResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - MoveOnMapNewResponse copyWith(void Function(MoveOnMapNewResponse) updates) => super.copyWith((message) => updates(message as MoveOnMapNewResponse)) as MoveOnMapNewResponse; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static MoveOnMapNewResponse create() => MoveOnMapNewResponse._(); - MoveOnMapNewResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static MoveOnMapNewResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static MoveOnMapNewResponse? _defaultInstance; - - /// The unique ID which identifies the execution. - /// Multiple plans will share the same execution_id if they were - /// generated due to replanning. - @$pb.TagNumber(1) - $core.String get executionId => $_getSZ(0); - @$pb.TagNumber(1) - set executionId($core.String v) { $_setString(0, v); } - @$pb.TagNumber(1) - $core.bool hasExecutionId() => $_has(0); - @$pb.TagNumber(1) - void clearExecutionId() => clearField(1); -} - class MoveOnMapRequest extends $pb.GeneratedMessage { factory MoveOnMapRequest({ $core.String? name, @@ -404,6 +215,7 @@ class MoveOnMapRequest extends $pb.GeneratedMessage { $1.ResourceName? componentName, $1.ResourceName? slamServiceName, MotionConfiguration? motionConfiguration, + $core.Iterable<$1.Geometry>? obstacles, $2.Struct? extra, }) { final $result = create(); @@ -422,6 +234,9 @@ class MoveOnMapRequest extends $pb.GeneratedMessage { if (motionConfiguration != null) { $result.motionConfiguration = motionConfiguration; } + if (obstacles != null) { + $result.obstacles.addAll(obstacles); + } if (extra != null) { $result.extra = extra; } @@ -437,6 +252,7 @@ class MoveOnMapRequest extends $pb.GeneratedMessage { ..aOM<$1.ResourceName>(3, _omitFieldNames ? '' : 'componentName', subBuilder: $1.ResourceName.create) ..aOM<$1.ResourceName>(4, _omitFieldNames ? '' : 'slamServiceName', subBuilder: $1.ResourceName.create) ..aOM(5, _omitFieldNames ? '' : 'motionConfiguration', subBuilder: MotionConfiguration.create) + ..pc<$1.Geometry>(6, _omitFieldNames ? '' : 'obstacles', $pb.PbFieldType.PM, subBuilder: $1.Geometry.create) ..aOM<$2.Struct>(99, _omitFieldNames ? '' : 'extra', subBuilder: $2.Struct.create) ..hasRequiredFields = false ; @@ -520,17 +336,21 @@ class MoveOnMapRequest extends $pb.GeneratedMessage { @$pb.TagNumber(5) MotionConfiguration ensureMotionConfiguration() => $_ensure(4); + /// Obstacles to be considered for motion planning + @$pb.TagNumber(6) + $core.List<$1.Geometry> get obstacles => $_getList(5); + /// Additional arguments to the method @$pb.TagNumber(99) - $2.Struct get extra => $_getN(5); + $2.Struct get extra => $_getN(6); @$pb.TagNumber(99) set extra($2.Struct v) { setField(99, v); } @$pb.TagNumber(99) - $core.bool hasExtra() => $_has(5); + $core.bool hasExtra() => $_has(6); @$pb.TagNumber(99) void clearExtra() => clearField(99); @$pb.TagNumber(99) - $2.Struct ensureExtra() => $_ensure(5); + $2.Struct ensureExtra() => $_ensure(6); } class MoveOnMapResponse extends $pb.GeneratedMessage { diff --git a/lib/src/gen/service/motion/v1/motion.pbgrpc.dart b/lib/src/gen/service/motion/v1/motion.pbgrpc.dart index 49d782f150a..b51634e0f2c 100644 --- a/lib/src/gen/service/motion/v1/motion.pbgrpc.dart +++ b/lib/src/gen/service/motion/v1/motion.pbgrpc.dart @@ -30,10 +30,6 @@ class MotionServiceClient extends $grpc.Client { '/viam.service.motion.v1.MotionService/MoveOnMap', ($0.MoveOnMapRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.MoveOnMapResponse.fromBuffer(value)); - static final _$moveOnMapNew = $grpc.ClientMethod<$0.MoveOnMapNewRequest, $0.MoveOnMapNewResponse>( - '/viam.service.motion.v1.MotionService/MoveOnMapNew', - ($0.MoveOnMapNewRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.MoveOnMapNewResponse.fromBuffer(value)); static final _$moveOnGlobe = $grpc.ClientMethod<$0.MoveOnGlobeRequest, $0.MoveOnGlobeResponse>( '/viam.service.motion.v1.MotionService/MoveOnGlobe', ($0.MoveOnGlobeRequest value) => value.writeToBuffer(), @@ -73,10 +69,6 @@ class MotionServiceClient extends $grpc.Client { return $createUnaryCall(_$moveOnMap, request, options: options); } - $grpc.ResponseFuture<$0.MoveOnMapNewResponse> moveOnMapNew($0.MoveOnMapNewRequest request, {$grpc.CallOptions? options}) { - return $createUnaryCall(_$moveOnMapNew, request, options: options); - } - $grpc.ResponseFuture<$0.MoveOnGlobeResponse> moveOnGlobe($0.MoveOnGlobeRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$moveOnGlobe, request, options: options); } @@ -121,13 +113,6 @@ abstract class MotionServiceBase extends $grpc.Service { false, ($core.List<$core.int> value) => $0.MoveOnMapRequest.fromBuffer(value), ($0.MoveOnMapResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.MoveOnMapNewRequest, $0.MoveOnMapNewResponse>( - 'MoveOnMapNew', - moveOnMapNew_Pre, - false, - false, - ($core.List<$core.int> value) => $0.MoveOnMapNewRequest.fromBuffer(value), - ($0.MoveOnMapNewResponse value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$0.MoveOnGlobeRequest, $0.MoveOnGlobeResponse>( 'MoveOnGlobe', moveOnGlobe_Pre, @@ -180,10 +165,6 @@ abstract class MotionServiceBase extends $grpc.Service { return moveOnMap(call, await request); } - $async.Future<$0.MoveOnMapNewResponse> moveOnMapNew_Pre($grpc.ServiceCall call, $async.Future<$0.MoveOnMapNewRequest> request) async { - return moveOnMapNew(call, await request); - } - $async.Future<$0.MoveOnGlobeResponse> moveOnGlobe_Pre($grpc.ServiceCall call, $async.Future<$0.MoveOnGlobeRequest> request) async { return moveOnGlobe(call, await request); } @@ -210,7 +191,6 @@ abstract class MotionServiceBase extends $grpc.Service { $async.Future<$0.MoveResponse> move($grpc.ServiceCall call, $0.MoveRequest request); $async.Future<$0.MoveOnMapResponse> moveOnMap($grpc.ServiceCall call, $0.MoveOnMapRequest request); - $async.Future<$0.MoveOnMapNewResponse> moveOnMapNew($grpc.ServiceCall call, $0.MoveOnMapNewRequest request); $async.Future<$0.MoveOnGlobeResponse> moveOnGlobe($grpc.ServiceCall call, $0.MoveOnGlobeRequest request); $async.Future<$0.GetPoseResponse> getPose($grpc.ServiceCall call, $0.GetPoseRequest request); $async.Future<$0.StopPlanResponse> stopPlan($grpc.ServiceCall call, $0.StopPlanRequest request); diff --git a/lib/src/gen/service/motion/v1/motion.pbjson.dart b/lib/src/gen/service/motion/v1/motion.pbjson.dart index fe6cb1187b8..36f328ba8d4 100644 --- a/lib/src/gen/service/motion/v1/motion.pbjson.dart +++ b/lib/src/gen/service/motion/v1/motion.pbjson.dart @@ -70,48 +70,6 @@ const MoveResponse$json = { final $typed_data.Uint8List moveResponseDescriptor = $convert.base64Decode( 'CgxNb3ZlUmVzcG9uc2USGAoHc3VjY2VzcxgBIAEoCFIHc3VjY2Vzcw=='); -@$core.Deprecated('Use moveOnMapNewRequestDescriptor instead') -const MoveOnMapNewRequest$json = { - '1': 'MoveOnMapNewRequest', - '2': [ - {'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'}, - {'1': 'destination', '3': 2, '4': 1, '5': 11, '6': '.viam.common.v1.Pose', '10': 'destination'}, - {'1': 'component_name', '3': 3, '4': 1, '5': 11, '6': '.viam.common.v1.ResourceName', '10': 'componentName'}, - {'1': 'slam_service_name', '3': 4, '4': 1, '5': 11, '6': '.viam.common.v1.ResourceName', '10': 'slamServiceName'}, - {'1': 'motion_configuration', '3': 5, '4': 1, '5': 11, '6': '.viam.service.motion.v1.MotionConfiguration', '9': 0, '10': 'motionConfiguration', '17': true}, - {'1': 'extra', '3': 99, '4': 1, '5': 11, '6': '.google.protobuf.Struct', '10': 'extra'}, - ], - '7': {'3': true}, - '8': [ - {'1': '_motion_configuration'}, - ], -}; - -/// Descriptor for `MoveOnMapNewRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List moveOnMapNewRequestDescriptor = $convert.base64Decode( - 'ChNNb3ZlT25NYXBOZXdSZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbWUSNgoLZGVzdGluYXRpb2' - '4YAiABKAsyFC52aWFtLmNvbW1vbi52MS5Qb3NlUgtkZXN0aW5hdGlvbhJDCg5jb21wb25lbnRf' - 'bmFtZRgDIAEoCzIcLnZpYW0uY29tbW9uLnYxLlJlc291cmNlTmFtZVINY29tcG9uZW50TmFtZR' - 'JIChFzbGFtX3NlcnZpY2VfbmFtZRgEIAEoCzIcLnZpYW0uY29tbW9uLnYxLlJlc291cmNlTmFt' - 'ZVIPc2xhbVNlcnZpY2VOYW1lEmMKFG1vdGlvbl9jb25maWd1cmF0aW9uGAUgASgLMisudmlhbS' - '5zZXJ2aWNlLm1vdGlvbi52MS5Nb3Rpb25Db25maWd1cmF0aW9uSABSE21vdGlvbkNvbmZpZ3Vy' - 'YXRpb26IAQESLQoFZXh0cmEYYyABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0UgVleHRyYT' - 'oCGAFCFwoVX21vdGlvbl9jb25maWd1cmF0aW9u'); - -@$core.Deprecated('Use moveOnMapNewResponseDescriptor instead') -const MoveOnMapNewResponse$json = { - '1': 'MoveOnMapNewResponse', - '2': [ - {'1': 'execution_id', '3': 1, '4': 1, '5': 9, '10': 'executionId'}, - ], - '7': {'3': true}, -}; - -/// Descriptor for `MoveOnMapNewResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List moveOnMapNewResponseDescriptor = $convert.base64Decode( - 'ChRNb3ZlT25NYXBOZXdSZXNwb25zZRIhCgxleGVjdXRpb25faWQYASABKAlSC2V4ZWN1dGlvbk' - 'lkOgIYAQ=='); - @$core.Deprecated('Use moveOnMapRequestDescriptor instead') const MoveOnMapRequest$json = { '1': 'MoveOnMapRequest', @@ -121,6 +79,7 @@ const MoveOnMapRequest$json = { {'1': 'component_name', '3': 3, '4': 1, '5': 11, '6': '.viam.common.v1.ResourceName', '10': 'componentName'}, {'1': 'slam_service_name', '3': 4, '4': 1, '5': 11, '6': '.viam.common.v1.ResourceName', '10': 'slamServiceName'}, {'1': 'motion_configuration', '3': 5, '4': 1, '5': 11, '6': '.viam.service.motion.v1.MotionConfiguration', '9': 0, '10': 'motionConfiguration', '17': true}, + {'1': 'obstacles', '3': 6, '4': 3, '5': 11, '6': '.viam.common.v1.Geometry', '10': 'obstacles'}, {'1': 'extra', '3': 99, '4': 1, '5': 11, '6': '.google.protobuf.Struct', '10': 'extra'}, ], '8': [ @@ -136,8 +95,9 @@ final $typed_data.Uint8List moveOnMapRequestDescriptor = $convert.base64Decode( 'FzbGFtX3NlcnZpY2VfbmFtZRgEIAEoCzIcLnZpYW0uY29tbW9uLnYxLlJlc291cmNlTmFtZVIP' 'c2xhbVNlcnZpY2VOYW1lEmMKFG1vdGlvbl9jb25maWd1cmF0aW9uGAUgASgLMisudmlhbS5zZX' 'J2aWNlLm1vdGlvbi52MS5Nb3Rpb25Db25maWd1cmF0aW9uSABSE21vdGlvbkNvbmZpZ3VyYXRp' - 'b26IAQESLQoFZXh0cmEYYyABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0UgVleHRyYUIXCh' - 'VfbW90aW9uX2NvbmZpZ3VyYXRpb24='); + 'b26IAQESNgoJb2JzdGFjbGVzGAYgAygLMhgudmlhbS5jb21tb24udjEuR2VvbWV0cnlSCW9ic3' + 'RhY2xlcxItCgVleHRyYRhjIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RSBWV4dHJhQhcK' + 'FV9tb3Rpb25fY29uZmlndXJhdGlvbg=='); @$core.Deprecated('Use moveOnMapResponseDescriptor instead') const MoveOnMapResponse$json = { diff --git a/test/unit_test/app/app_client_test.dart b/test/unit_test/app/app_client_test.dart index 61aa85f87a9..bf3f08913c5 100644 --- a/test/unit_test/app/app_client_test.dart +++ b/test/unit_test/app/app_client_test.dart @@ -1,6 +1,7 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/mockito.dart'; import 'package:viam_sdk/protos/app/app.dart'; +import 'package:viam_sdk/protos/common/common.dart'; import 'package:viam_sdk/src/app/app.dart'; import 'package:viam_sdk/src/gen/google/protobuf/struct.pb.dart'; import 'package:viam_sdk/src/gen/google/protobuf/timestamp.pb.dart';