Skip to content

Commit

Permalink
[WORKFLOW] Updating protos from viamrobotics/api, commit: 2ba2438a2ed…
Browse files Browse the repository at this point in the history
…0a63495c3821fa920f00a9beab7f8 (viamrobotics#172)

Co-authored-by: viambot <viambot@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and viambot authored Jan 29, 2024
1 parent 4665b24 commit 3d48a83
Show file tree
Hide file tree
Showing 16 changed files with 432 additions and 526 deletions.
10 changes: 10 additions & 0 deletions lib/protos/service/generic.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/// The proto definitions for generic
/// {@category Protobuf Definitions}
library viam_protos.service.generic;

// THIS FILE IS AUTOMATICALLY GENERATED
// DO NOT OVERWRITE
export '../../../src/gen/service/generic/v1/generic.pb.dart';
export '../../../src/gen/service/generic/v1/generic.pbenum.dart';
export '../../../src/gen/service/generic/v1/generic.pbgrpc.dart';
export '../../../src/gen/service/generic/v1/generic.pbjson.dart';
46 changes: 40 additions & 6 deletions lib/src/gen/app/agent/v1/agent.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ import 'dart:core' as $core;

import 'package:protobuf/protobuf.dart' as $pb;

import '../../../google/protobuf/duration.pb.dart' as $1;
import '../../../google/protobuf/duration.pb.dart' as $2;
import '../../../google/protobuf/struct.pb.dart' as $1;
import 'agent.pbenum.dart';

export 'agent.pbenum.dart';
Expand Down Expand Up @@ -289,6 +290,7 @@ class AppSubsystemConfig extends $pb.GeneratedMessage {
$core.String? pinVersion,
$core.String? pinUrl,
$core.bool? disableSubsystem,
$1.Struct? attributes,
}) {
final $result = create();
if (releaseChannel != null) {
Expand All @@ -303,6 +305,9 @@ class AppSubsystemConfig extends $pb.GeneratedMessage {
if (disableSubsystem != null) {
$result.disableSubsystem = disableSubsystem;
}
if (attributes != null) {
$result.attributes = attributes;
}
return $result;
}
AppSubsystemConfig._() : super();
Expand All @@ -314,6 +319,7 @@ class AppSubsystemConfig extends $pb.GeneratedMessage {
..aOS(2, _omitFieldNames ? '' : 'pinVersion')
..aOS(3, _omitFieldNames ? '' : 'pinUrl')
..aOB(4, _omitFieldNames ? '' : 'disableSubsystem')
..aOM<$1.Struct>(5, _omitFieldNames ? '' : 'attributes', subBuilder: $1.Struct.create)
..hasRequiredFields = false
;

Expand Down Expand Up @@ -373,6 +379,17 @@ class AppSubsystemConfig extends $pb.GeneratedMessage {
$core.bool hasDisableSubsystem() => $_has(3);
@$pb.TagNumber(4)
void clearDisableSubsystem() => clearField(4);

@$pb.TagNumber(5)
$1.Struct get attributes => $_getN(4);
@$pb.TagNumber(5)
set attributes($1.Struct v) { setField(5, v); }
@$pb.TagNumber(5)
$core.bool hasAttributes() => $_has(4);
@$pb.TagNumber(5)
void clearAttributes() => clearField(5);
@$pb.TagNumber(5)
$1.Struct ensureAttributes() => $_ensure(4);
}

/// Device side
Expand Down Expand Up @@ -456,7 +473,7 @@ class DeviceAgentConfigRequest extends $pb.GeneratedMessage {
class DeviceAgentConfigResponse extends $pb.GeneratedMessage {
factory DeviceAgentConfigResponse({
$core.Map<$core.String, DeviceSubsystemConfig>? subsystemConfigs,
$1.Duration? checkInterval,
$2.Duration? checkInterval,
}) {
final $result = create();
if (subsystemConfigs != null) {
Expand All @@ -473,7 +490,7 @@ class DeviceAgentConfigResponse extends $pb.GeneratedMessage {

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeviceAgentConfigResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.agent.v1'), createEmptyInstance: create)
..m<$core.String, DeviceSubsystemConfig>(1, _omitFieldNames ? '' : 'subsystemConfigs', entryClassName: 'DeviceAgentConfigResponse.SubsystemConfigsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: DeviceSubsystemConfig.create, valueDefaultOrMaker: DeviceSubsystemConfig.getDefault, packageName: const $pb.PackageName('viam.app.agent.v1'))
..aOM<$1.Duration>(2, _omitFieldNames ? '' : 'checkInterval', subBuilder: $1.Duration.create)
..aOM<$2.Duration>(2, _omitFieldNames ? '' : 'checkInterval', subBuilder: $2.Duration.create)
..hasRequiredFields = false
;

Expand Down Expand Up @@ -505,22 +522,23 @@ class DeviceAgentConfigResponse extends $pb.GeneratedMessage {

/// how often this request should be repeated
@$pb.TagNumber(2)
$1.Duration get checkInterval => $_getN(1);
$2.Duration get checkInterval => $_getN(1);
@$pb.TagNumber(2)
set checkInterval($1.Duration v) { setField(2, v); }
set checkInterval($2.Duration v) { setField(2, v); }
@$pb.TagNumber(2)
$core.bool hasCheckInterval() => $_has(1);
@$pb.TagNumber(2)
void clearCheckInterval() => clearField(2);
@$pb.TagNumber(2)
$1.Duration ensureCheckInterval() => $_ensure(1);
$2.Duration ensureCheckInterval() => $_ensure(1);
}

class DeviceSubsystemConfig extends $pb.GeneratedMessage {
factory DeviceSubsystemConfig({
SubsystemUpdateInfo? updateInfo,
$core.bool? disable,
$core.bool? forceRestart,
$1.Struct? attributes,
}) {
final $result = create();
if (updateInfo != null) {
Expand All @@ -532,6 +550,9 @@ class DeviceSubsystemConfig extends $pb.GeneratedMessage {
if (forceRestart != null) {
$result.forceRestart = forceRestart;
}
if (attributes != null) {
$result.attributes = attributes;
}
return $result;
}
DeviceSubsystemConfig._() : super();
Expand All @@ -542,6 +563,7 @@ class DeviceSubsystemConfig extends $pb.GeneratedMessage {
..aOM<SubsystemUpdateInfo>(1, _omitFieldNames ? '' : 'updateInfo', subBuilder: SubsystemUpdateInfo.create)
..aOB(2, _omitFieldNames ? '' : 'disable')
..aOB(3, _omitFieldNames ? '' : 'forceRestart')
..aOM<$1.Struct>(4, _omitFieldNames ? '' : 'attributes', subBuilder: $1.Struct.create)
..hasRequiredFields = false
;

Expand Down Expand Up @@ -597,6 +619,18 @@ class DeviceSubsystemConfig extends $pb.GeneratedMessage {
$core.bool hasForceRestart() => $_has(2);
@$pb.TagNumber(3)
void clearForceRestart() => clearField(3);

/// arbitrary config sections
@$pb.TagNumber(4)
$1.Struct get attributes => $_getN(3);
@$pb.TagNumber(4)
set attributes($1.Struct v) { setField(4, v); }
@$pb.TagNumber(4)
$core.bool hasAttributes() => $_has(3);
@$pb.TagNumber(4)
void clearAttributes() => clearField(4);
@$pb.TagNumber(4)
$1.Struct ensureAttributes() => $_ensure(3);
}

class HostInfo extends $pb.GeneratedMessage {
Expand Down
9 changes: 7 additions & 2 deletions lib/src/gen/app/agent/v1/agent.pbjson.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ const AppSubsystemConfig$json = {
{'1': 'pin_version', '3': 2, '4': 1, '5': 9, '8': {}, '10': 'pinVersion'},
{'1': 'pin_url', '3': 3, '4': 1, '5': 9, '8': {}, '10': 'pinUrl'},
{'1': 'disable_subsystem', '3': 4, '4': 1, '5': 8, '8': {}, '10': 'disableSubsystem'},
{'1': 'attributes', '3': 5, '4': 1, '5': 11, '6': '.google.protobuf.Struct', '8': {}, '10': 'attributes'},
],
};

Expand All @@ -131,7 +132,9 @@ final $typed_data.Uint8List appSubsystemConfigDescriptor = $convert.base64Decode
'Bpbl92ZXJzaW9uIlIKcGluVmVyc2lvbhI7CgdwaW5fdXJsGAMgASgJQiKahJ4DHWJzb246InBp'
'bl91cmwiIGpzb246InBpbl91cmwiUgZwaW5VcmwSYwoRZGlzYWJsZV9zdWJzeXN0ZW0YBCABKA'
'hCNpqEngMxYnNvbjoiZGlzYWJsZV9zdWJzeXN0ZW0iIGpzb246ImRpc2FibGVfc3Vic3lzdGVt'
'IlIQZGlzYWJsZVN1YnN5c3RlbQ==');
'IlIQZGlzYWJsZVN1YnN5c3RlbRJhCgphdHRyaWJ1dGVzGAUgASgLMhcuZ29vZ2xlLnByb3RvYn'
'VmLlN0cnVjdEIomoSeAyNic29uOiJhdHRyaWJ1dGVzIiBqc29uOiJhdHRyaWJ1dGVzIlIKYXR0'
'cmlidXRlcw==');

@$core.Deprecated('Use deviceAgentConfigRequestDescriptor instead')
const DeviceAgentConfigRequest$json = {
Expand Down Expand Up @@ -199,14 +202,16 @@ const DeviceSubsystemConfig$json = {
{'1': 'update_info', '3': 1, '4': 1, '5': 11, '6': '.viam.app.agent.v1.SubsystemUpdateInfo', '10': 'updateInfo'},
{'1': 'disable', '3': 2, '4': 1, '5': 8, '10': 'disable'},
{'1': 'force_restart', '3': 3, '4': 1, '5': 8, '10': 'forceRestart'},
{'1': 'attributes', '3': 4, '4': 1, '5': 11, '6': '.google.protobuf.Struct', '10': 'attributes'},
],
};

/// Descriptor for `DeviceSubsystemConfig`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List deviceSubsystemConfigDescriptor = $convert.base64Decode(
'ChVEZXZpY2VTdWJzeXN0ZW1Db25maWcSRwoLdXBkYXRlX2luZm8YASABKAsyJi52aWFtLmFwcC'
'5hZ2VudC52MS5TdWJzeXN0ZW1VcGRhdGVJbmZvUgp1cGRhdGVJbmZvEhgKB2Rpc2FibGUYAiAB'
'KAhSB2Rpc2FibGUSIwoNZm9yY2VfcmVzdGFydBgDIAEoCFIMZm9yY2VSZXN0YXJ0');
'KAhSB2Rpc2FibGUSIwoNZm9yY2VfcmVzdGFydBgDIAEoCFIMZm9yY2VSZXN0YXJ0EjcKCmF0dH'
'JpYnV0ZXMYBCABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0UgphdHRyaWJ1dGVz');

@$core.Deprecated('Use hostInfoDescriptor instead')
const HostInfo$json = {
Expand Down
Loading

0 comments on commit 3d48a83

Please sign in to comment.