Skip to content

Commit

Permalink
[WORKFLOW] Updating protos from viamrobotics/api, commit: cdaf1d58f50…
Browse files Browse the repository at this point in the history
…3c0c373a3a3e3d58d8fe2fc83763a (#296)

Co-authored-by: viambot <[email protected]>
  • Loading branch information
github-actions[bot] and viambot authored Nov 14, 2024
1 parent 22ed53c commit 670dc1b
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 28 deletions.
20 changes: 2 additions & 18 deletions lib/src/gen/app/data/v1/data.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1007,13 +1007,9 @@ class TabularDataBySQLRequest extends $pb.GeneratedMessage {
/// TabularDataBySQLResponse provides unified tabular data and metadata, queried with SQL.
class TabularDataBySQLResponse extends $pb.GeneratedMessage {
factory TabularDataBySQLResponse({
$core.Iterable<$43.Struct>? data,
$core.Iterable<$core.List<$core.int>>? rawData,
}) {
final $result = create();
if (data != null) {
$result.data.addAll(data);
}
if (rawData != null) {
$result.rawData.addAll(rawData);
}
Expand All @@ -1024,7 +1020,6 @@ class TabularDataBySQLResponse extends $pb.GeneratedMessage {
factory TabularDataBySQLResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TabularDataBySQLResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.data.v1'), createEmptyInstance: create)
..pc<$43.Struct>(1, _omitFieldNames ? '' : 'data', $pb.PbFieldType.PM, subBuilder: $43.Struct.create)
..p<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'rawData', $pb.PbFieldType.PY)
..hasRequiredFields = false
;
Expand All @@ -1050,11 +1045,8 @@ class TabularDataBySQLResponse extends $pb.GeneratedMessage {
static TabularDataBySQLResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<TabularDataBySQLResponse>(create);
static TabularDataBySQLResponse? _defaultInstance;

@$pb.TagNumber(1)
$core.List<$43.Struct> get data => $_getList(0);

@$pb.TagNumber(2)
$core.List<$core.List<$core.int>> get rawData => $_getList(1);
$core.List<$core.List<$core.int>> get rawData => $_getList(0);
}

/// TabularDataByMQLRequest requests tabular data using an MQL query.
Expand Down Expand Up @@ -1122,13 +1114,9 @@ class TabularDataByMQLRequest extends $pb.GeneratedMessage {
/// TabularDataByMQLResponse provides unified tabular data and metadata, queried with MQL.
class TabularDataByMQLResponse extends $pb.GeneratedMessage {
factory TabularDataByMQLResponse({
$core.Iterable<$43.Struct>? data,
$core.Iterable<$core.List<$core.int>>? rawData,
}) {
final $result = create();
if (data != null) {
$result.data.addAll(data);
}
if (rawData != null) {
$result.rawData.addAll(rawData);
}
Expand All @@ -1139,7 +1127,6 @@ class TabularDataByMQLResponse extends $pb.GeneratedMessage {
factory TabularDataByMQLResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TabularDataByMQLResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.data.v1'), createEmptyInstance: create)
..pc<$43.Struct>(1, _omitFieldNames ? '' : 'data', $pb.PbFieldType.PM, subBuilder: $43.Struct.create)
..p<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'rawData', $pb.PbFieldType.PY)
..hasRequiredFields = false
;
Expand All @@ -1165,11 +1152,8 @@ class TabularDataByMQLResponse extends $pb.GeneratedMessage {
static TabularDataByMQLResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<TabularDataByMQLResponse>(create);
static TabularDataByMQLResponse? _defaultInstance;

@$pb.TagNumber(1)
$core.List<$43.Struct> get data => $_getList(0);

@$pb.TagNumber(2)
$core.List<$core.List<$core.int>> get rawData => $_getList(1);
$core.List<$core.List<$core.int>> get rawData => $_getList(0);
}

/// BinaryData contains data and metadata associated with binary data.
Expand Down
18 changes: 12 additions & 6 deletions lib/src/gen/app/data/v1/data.pbjson.dart
Original file line number Diff line number Diff line change
Expand Up @@ -252,15 +252,18 @@ final $typed_data.Uint8List tabularDataBySQLRequestDescriptor = $convert.base64D
const TabularDataBySQLResponse$json = {
'1': 'TabularDataBySQLResponse',
'2': [
{'1': 'data', '3': 1, '4': 3, '5': 11, '6': '.google.protobuf.Struct', '10': 'data'},
{'1': 'raw_data', '3': 2, '4': 3, '5': 12, '10': 'rawData'},
],
'9': [
{'1': 1, '2': 2},
],
'10': ['data'],
};

/// Descriptor for `TabularDataBySQLResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List tabularDataBySQLResponseDescriptor = $convert.base64Decode(
'ChhUYWJ1bGFyRGF0YUJ5U1FMUmVzcG9uc2USKwoEZGF0YRgBIAMoCzIXLmdvb2dsZS5wcm90b2'
'J1Zi5TdHJ1Y3RSBGRhdGESGQoIcmF3X2RhdGEYAiADKAxSB3Jhd0RhdGE=');
'ChhUYWJ1bGFyRGF0YUJ5U1FMUmVzcG9uc2USGQoIcmF3X2RhdGEYAiADKAxSB3Jhd0RhdGFKBA'
'gBEAJSBGRhdGE=');

@$core.Deprecated('Use tabularDataByMQLRequestDescriptor instead')
const TabularDataByMQLRequest$json = {
Expand All @@ -285,15 +288,18 @@ final $typed_data.Uint8List tabularDataByMQLRequestDescriptor = $convert.base64D
const TabularDataByMQLResponse$json = {
'1': 'TabularDataByMQLResponse',
'2': [
{'1': 'data', '3': 1, '4': 3, '5': 11, '6': '.google.protobuf.Struct', '10': 'data'},
{'1': 'raw_data', '3': 2, '4': 3, '5': 12, '10': 'rawData'},
],
'9': [
{'1': 1, '2': 2},
],
'10': ['data'],
};

/// Descriptor for `TabularDataByMQLResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List tabularDataByMQLResponseDescriptor = $convert.base64Decode(
'ChhUYWJ1bGFyRGF0YUJ5TVFMUmVzcG9uc2USKwoEZGF0YRgBIAMoCzIXLmdvb2dsZS5wcm90b2'
'J1Zi5TdHJ1Y3RSBGRhdGESGQoIcmF3X2RhdGEYAiADKAxSB3Jhd0RhdGE=');
'ChhUYWJ1bGFyRGF0YUJ5TVFMUmVzcG9uc2USGQoIcmF3X2RhdGEYAiADKAxSB3Jhd0RhdGFKBA'
'gBEAJSBGRhdGE=');

@$core.Deprecated('Use binaryDataDescriptor instead')
const BinaryData$json = {
Expand Down
17 changes: 17 additions & 0 deletions lib/src/gen/robot/v1/robot.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2585,6 +2585,7 @@ class ResourceStatus extends $pb.GeneratedMessage {
$44.Timestamp? lastUpdated,
$core.String? revision,
$core.String? error,
GetCloudMetadataResponse? cloudMetadata,
}) {
final $result = create();
if (name != null) {
Expand All @@ -2602,6 +2603,9 @@ class ResourceStatus extends $pb.GeneratedMessage {
if (error != null) {
$result.error = error;
}
if (cloudMetadata != null) {
$result.cloudMetadata = cloudMetadata;
}
return $result;
}
ResourceStatus._() : super();
Expand All @@ -2614,6 +2618,7 @@ class ResourceStatus extends $pb.GeneratedMessage {
..aOM<$44.Timestamp>(3, _omitFieldNames ? '' : 'lastUpdated', subBuilder: $44.Timestamp.create)
..aOS(4, _omitFieldNames ? '' : 'revision')
..aOS(5, _omitFieldNames ? '' : 'error')
..aOM<GetCloudMetadataResponse>(6, _omitFieldNames ? '' : 'cloudMetadata', subBuilder: GetCloudMetadataResponse.create)
..hasRequiredFields = false
;

Expand Down Expand Up @@ -2692,6 +2697,18 @@ class ResourceStatus extends $pb.GeneratedMessage {
$core.bool hasError() => $_has(4);
@$pb.TagNumber(5)
void clearError() => clearField(5);

/// infomation about resource orgID, locationID and partID
@$pb.TagNumber(6)
GetCloudMetadataResponse get cloudMetadata => $_getN(5);
@$pb.TagNumber(6)
set cloudMetadata(GetCloudMetadataResponse v) { setField(6, v); }
@$pb.TagNumber(6)
$core.bool hasCloudMetadata() => $_has(5);
@$pb.TagNumber(6)
void clearCloudMetadata() => clearField(6);
@$pb.TagNumber(6)
GetCloudMetadataResponse ensureCloudMetadata() => $_ensure(5);
}

class ConfigStatus extends $pb.GeneratedMessage {
Expand Down
12 changes: 9 additions & 3 deletions lib/src/gen/robot/v1/robot.pbjson.dart
Original file line number Diff line number Diff line change
Expand Up @@ -681,8 +681,12 @@ const ResourceStatus$json = {
{'1': 'last_updated', '3': 3, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'lastUpdated'},
{'1': 'revision', '3': 4, '4': 1, '5': 9, '10': 'revision'},
{'1': 'error', '3': 5, '4': 1, '5': 9, '10': 'error'},
{'1': 'cloud_metadata', '3': 6, '4': 1, '5': 11, '6': '.viam.robot.v1.GetCloudMetadataResponse', '9': 0, '10': 'cloudMetadata', '17': true},
],
'4': [ResourceStatus_State$json],
'8': [
{'1': '_cloud_metadata'},
],
};

@$core.Deprecated('Use resourceStatusDescriptor instead')
Expand All @@ -704,9 +708,11 @@ final $typed_data.Uint8List resourceStatusDescriptor = $convert.base64Decode(
'VOYW1lUgRuYW1lEjkKBXN0YXRlGAIgASgOMiMudmlhbS5yb2JvdC52MS5SZXNvdXJjZVN0YXR1'
'cy5TdGF0ZVIFc3RhdGUSPQoMbGFzdF91cGRhdGVkGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLl'
'RpbWVzdGFtcFILbGFzdFVwZGF0ZWQSGgoIcmV2aXNpb24YBCABKAlSCHJldmlzaW9uEhQKBWVy'
'cm9yGAUgASgJUgVlcnJvciKHAQoFU3RhdGUSFQoRU1RBVEVfVU5TUEVDSUZJRUQQABIWChJTVE'
'FURV9VTkNPTkZJR1VSRUQQARIVChFTVEFURV9DT05GSUdVUklORxACEg8KC1NUQVRFX1JFQURZ'
'EAMSEgoOU1RBVEVfUkVNT1ZJTkcQBBITCg9TVEFURV9VTkhFQUxUSFkQBQ==');
'cm9yGAUgASgJUgVlcnJvchJTCg5jbG91ZF9tZXRhZGF0YRgGIAEoCzInLnZpYW0ucm9ib3Qudj'
'EuR2V0Q2xvdWRNZXRhZGF0YVJlc3BvbnNlSABSDWNsb3VkTWV0YWRhdGGIAQEihwEKBVN0YXRl'
'EhUKEVNUQVRFX1VOU1BFQ0lGSUVEEAASFgoSU1RBVEVfVU5DT05GSUdVUkVEEAESFQoRU1RBVE'
'VfQ09ORklHVVJJTkcQAhIPCgtTVEFURV9SRUFEWRADEhIKDlNUQVRFX1JFTU9WSU5HEAQSEwoP'
'U1RBVEVfVU5IRUFMVEhZEAVCEQoPX2Nsb3VkX21ldGFkYXRh');

@$core.Deprecated('Use configStatusDescriptor instead')
const ConfigStatus$json = {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ extension GetReadingsResponseUtils on GetReadingsResponse {

String getVersionMetadata() {
const String sdkVersion = 'v0.0.27';
const String apiTag = 'v0.1.361';
const String apiTag = 'v0.1.363';

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

0 comments on commit 670dc1b

Please sign in to comment.