Skip to content

Commit

Permalink
[WORKFLOW] Updating protos from viamrobotics/api, commit: b39c74b5a2d…
Browse files Browse the repository at this point in the history
…320fa459ef0ec4fac6a3b36a690e3 (#195)

Co-authored-by: viambot <[email protected]>
  • Loading branch information
github-actions[bot] and viambot authored May 2, 2024
1 parent 4084d09 commit cfb038b
Show file tree
Hide file tree
Showing 11 changed files with 1,033 additions and 689 deletions.
397 changes: 12 additions & 385 deletions lib/src/gen/app/agent/v1/agent.pb.dart

Large diffs are not rendered by default.

58 changes: 0 additions & 58 deletions lib/src/gen/app/agent/v1/agent.pbgrpc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,64 +19,6 @@ import 'agent.pb.dart' as $0;

export 'agent.pb.dart';

@$pb.GrpcServiceName('viam.app.agent.v1.AgentAppService')
class AgentAppServiceClient extends $grpc.Client {
static final _$getAgentConfig = $grpc.ClientMethod<$0.GetAgentConfigRequest, $0.GetAgentConfigResponse>(
'/viam.app.agent.v1.AgentAppService/GetAgentConfig',
($0.GetAgentConfigRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.GetAgentConfigResponse.fromBuffer(value));
static final _$updateAgentConfig = $grpc.ClientMethod<$0.UpdateAgentConfigRequest, $0.UpdateAgentConfigResponse>(
'/viam.app.agent.v1.AgentAppService/UpdateAgentConfig',
($0.UpdateAgentConfigRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.UpdateAgentConfigResponse.fromBuffer(value));

AgentAppServiceClient($grpc.ClientChannel channel,
{$grpc.CallOptions? options,
$core.Iterable<$grpc.ClientInterceptor>? interceptors})
: super(channel, options: options,
interceptors: interceptors);

$grpc.ResponseFuture<$0.GetAgentConfigResponse> getAgentConfig($0.GetAgentConfigRequest request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$getAgentConfig, request, options: options);
}

$grpc.ResponseFuture<$0.UpdateAgentConfigResponse> updateAgentConfig($0.UpdateAgentConfigRequest request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$updateAgentConfig, request, options: options);
}
}

@$pb.GrpcServiceName('viam.app.agent.v1.AgentAppService')
abstract class AgentAppServiceBase extends $grpc.Service {
$core.String get $name => 'viam.app.agent.v1.AgentAppService';

AgentAppServiceBase() {
$addMethod($grpc.ServiceMethod<$0.GetAgentConfigRequest, $0.GetAgentConfigResponse>(
'GetAgentConfig',
getAgentConfig_Pre,
false,
false,
($core.List<$core.int> value) => $0.GetAgentConfigRequest.fromBuffer(value),
($0.GetAgentConfigResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.UpdateAgentConfigRequest, $0.UpdateAgentConfigResponse>(
'UpdateAgentConfig',
updateAgentConfig_Pre,
false,
false,
($core.List<$core.int> value) => $0.UpdateAgentConfigRequest.fromBuffer(value),
($0.UpdateAgentConfigResponse value) => value.writeToBuffer()));
}

$async.Future<$0.GetAgentConfigResponse> getAgentConfig_Pre($grpc.ServiceCall call, $async.Future<$0.GetAgentConfigRequest> request) async {
return getAgentConfig(call, await request);
}

$async.Future<$0.UpdateAgentConfigResponse> updateAgentConfig_Pre($grpc.ServiceCall call, $async.Future<$0.UpdateAgentConfigRequest> request) async {
return updateAgentConfig(call, await request);
}

$async.Future<$0.GetAgentConfigResponse> getAgentConfig($grpc.ServiceCall call, $0.GetAgentConfigRequest request);
$async.Future<$0.UpdateAgentConfigResponse> updateAgentConfig($grpc.ServiceCall call, $0.UpdateAgentConfigRequest request);
}
@$pb.GrpcServiceName('viam.app.agent.v1.AgentDeviceService')
class AgentDeviceServiceClient extends $grpc.Client {
static final _$deviceAgentConfig = $grpc.ClientMethod<$0.DeviceAgentConfigRequest, $0.DeviceAgentConfigResponse>(
Expand Down
105 changes: 0 additions & 105 deletions lib/src/gen/app/agent/v1/agent.pbjson.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,111 +31,6 @@ final $typed_data.Uint8List packageFormatDescriptor = $convert.base64Decode(
'FHRV9GT1JNQVRfUkFXEAESFQoRUEFDS0FHRV9GT1JNQVRfWFoQAhIdChlQQUNLQUdFX0ZPUk1B'
'VF9FWEVDVVRBQkxFEAMSIAocUEFDS0FHRV9GT1JNQVRfWFpfRVhFQ1VUQUJMRRAE');

@$core.Deprecated('Use getAgentConfigRequestDescriptor instead')
const GetAgentConfigRequest$json = {
'1': 'GetAgentConfigRequest',
'2': [
{'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'},
],
};

/// Descriptor for `GetAgentConfigRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List getAgentConfigRequestDescriptor = $convert.base64Decode(
'ChVHZXRBZ2VudENvbmZpZ1JlcXVlc3QSDgoCaWQYASABKAlSAmlk');

@$core.Deprecated('Use getAgentConfigResponseDescriptor instead')
const GetAgentConfigResponse$json = {
'1': 'GetAgentConfigResponse',
'2': [
{'1': 'agent_config', '3': 1, '4': 1, '5': 11, '6': '.viam.app.agent.v1.AppAgentConfig', '10': 'agentConfig'},
],
};

/// Descriptor for `GetAgentConfigResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List getAgentConfigResponseDescriptor = $convert.base64Decode(
'ChZHZXRBZ2VudENvbmZpZ1Jlc3BvbnNlEkQKDGFnZW50X2NvbmZpZxgBIAEoCzIhLnZpYW0uYX'
'BwLmFnZW50LnYxLkFwcEFnZW50Q29uZmlnUgthZ2VudENvbmZpZw==');

@$core.Deprecated('Use updateAgentConfigRequestDescriptor instead')
const UpdateAgentConfigRequest$json = {
'1': 'UpdateAgentConfigRequest',
'2': [
{'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'},
{'1': 'agent_config', '3': 2, '4': 1, '5': 11, '6': '.viam.app.agent.v1.AppAgentConfig', '10': 'agentConfig'},
],
};

/// Descriptor for `UpdateAgentConfigRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List updateAgentConfigRequestDescriptor = $convert.base64Decode(
'ChhVcGRhdGVBZ2VudENvbmZpZ1JlcXVlc3QSDgoCaWQYASABKAlSAmlkEkQKDGFnZW50X2Nvbm'
'ZpZxgCIAEoCzIhLnZpYW0uYXBwLmFnZW50LnYxLkFwcEFnZW50Q29uZmlnUgthZ2VudENvbmZp'
'Zw==');

@$core.Deprecated('Use updateAgentConfigResponseDescriptor instead')
const UpdateAgentConfigResponse$json = {
'1': 'UpdateAgentConfigResponse',
'2': [
{'1': 'agent_config', '3': 1, '4': 1, '5': 11, '6': '.viam.app.agent.v1.AppAgentConfig', '10': 'agentConfig'},
],
};

/// Descriptor for `UpdateAgentConfigResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List updateAgentConfigResponseDescriptor = $convert.base64Decode(
'ChlVcGRhdGVBZ2VudENvbmZpZ1Jlc3BvbnNlEkQKDGFnZW50X2NvbmZpZxgBIAEoCzIhLnZpYW'
'0uYXBwLmFnZW50LnYxLkFwcEFnZW50Q29uZmlnUgthZ2VudENvbmZpZw==');

@$core.Deprecated('Use appAgentConfigDescriptor instead')
const AppAgentConfig$json = {
'1': 'AppAgentConfig',
'2': [
{'1': 'subsystem_configs', '3': 1, '4': 3, '5': 11, '6': '.viam.app.agent.v1.AppAgentConfig.SubsystemConfigsEntry', '8': {}, '10': 'subsystemConfigs'},
],
'3': [AppAgentConfig_SubsystemConfigsEntry$json],
};

@$core.Deprecated('Use appAgentConfigDescriptor instead')
const AppAgentConfig_SubsystemConfigsEntry$json = {
'1': 'SubsystemConfigsEntry',
'2': [
{'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
{'1': 'value', '3': 2, '4': 1, '5': 11, '6': '.viam.app.agent.v1.AppSubsystemConfig', '10': 'value'},
],
'7': {'7': true},
};

/// Descriptor for `AppAgentConfig`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List appAgentConfigDescriptor = $convert.base64Decode(
'Cg5BcHBBZ2VudENvbmZpZxKcAQoRc3Vic3lzdGVtX2NvbmZpZ3MYASADKAsyNy52aWFtLmFwcC'
'5hZ2VudC52MS5BcHBBZ2VudENvbmZpZy5TdWJzeXN0ZW1Db25maWdzRW50cnlCNpqEngMxYnNv'
'bjoic3Vic3lzdGVtX2NvbmZpZ3MiIGpzb246InN1YnN5c3RlbV9jb25maWdzIlIQc3Vic3lzdG'
'VtQ29uZmlncxpqChVTdWJzeXN0ZW1Db25maWdzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSOwoF'
'dmFsdWUYAiABKAsyJS52aWFtLmFwcC5hZ2VudC52MS5BcHBTdWJzeXN0ZW1Db25maWdSBXZhbH'
'VlOgI4AQ==');

@$core.Deprecated('Use appSubsystemConfigDescriptor instead')
const AppSubsystemConfig$json = {
'1': 'AppSubsystemConfig',
'2': [
{'1': 'release_channel', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'releaseChannel'},
{'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'},
],
};

/// Descriptor for `AppSubsystemConfig`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List appSubsystemConfigDescriptor = $convert.base64Decode(
'ChJBcHBTdWJzeXN0ZW1Db25maWcSWwoPcmVsZWFzZV9jaGFubmVsGAEgASgJQjKahJ4DLWJzb2'
'46InJlbGVhc2VfY2hhbm5lbCIganNvbjoicmVsZWFzZV9jaGFubmVsIlIOcmVsZWFzZUNoYW5u'
'ZWwSSwoLcGluX3ZlcnNpb24YAiABKAlCKpqEngMlYnNvbjoicGluX3ZlcnNpb24iIGpzb246In'
'Bpbl92ZXJzaW9uIlIKcGluVmVyc2lvbhI7CgdwaW5fdXJsGAMgASgJQiKahJ4DHWJzb246InBp'
'bl91cmwiIGpzb246InBpbl91cmwiUgZwaW5VcmwSYwoRZGlzYWJsZV9zdWJzeXN0ZW0YBCABKA'
'hCNpqEngMxYnNvbjoiZGlzYWJsZV9zdWJzeXN0ZW0iIGpzb246ImRpc2FibGVfc3Vic3lzdGVt'
'IlIQZGlzYWJsZVN1YnN5c3RlbRJhCgphdHRyaWJ1dGVzGAUgASgLMhcuZ29vZ2xlLnByb3RvYn'
'VmLlN0cnVjdEIomoSeAyNic29uOiJhdHRyaWJ1dGVzIiBqc29uOiJhdHRyaWJ1dGVzIlIKYXR0'
'cmlidXRlcw==');

@$core.Deprecated('Use deviceAgentConfigRequestDescriptor instead')
const DeviceAgentConfigRequest$json = {
'1': 'DeviceAgentConfigRequest',
Expand Down
103 changes: 0 additions & 103 deletions lib/src/gen/common/v1/common.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

import 'dart:core' as $core;

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

import '../../google/protobuf/struct.pb.dart' as $1;
Expand Down Expand Up @@ -112,108 +111,6 @@ class ResourceName extends $pb.GeneratedMessage {
void clearName() => clearField(4);
}

class AnalogStatus extends $pb.GeneratedMessage {
factory AnalogStatus({
$core.int? value,
}) {
final $result = create();
if (value != null) {
$result.value = value;
}
return $result;
}
AnalogStatus._() : super();
factory AnalogStatus.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory AnalogStatus.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AnalogStatus', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.common.v1'), createEmptyInstance: create)
..a<$core.int>(1, _omitFieldNames ? '' : 'value', $pb.PbFieldType.O3)
..hasRequiredFields = false
;

@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
AnalogStatus clone() => AnalogStatus()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
AnalogStatus copyWith(void Function(AnalogStatus) updates) => super.copyWith((message) => updates(message as AnalogStatus)) as AnalogStatus;

$pb.BuilderInfo get info_ => _i;

@$core.pragma('dart2js:noInline')
static AnalogStatus create() => AnalogStatus._();
AnalogStatus createEmptyInstance() => create();
static $pb.PbList<AnalogStatus> createRepeated() => $pb.PbList<AnalogStatus>();
@$core.pragma('dart2js:noInline')
static AnalogStatus getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<AnalogStatus>(create);
static AnalogStatus? _defaultInstance;

/// Current value of the analog reader of a robot's board
@$pb.TagNumber(1)
$core.int get value => $_getIZ(0);
@$pb.TagNumber(1)
set value($core.int v) { $_setSignedInt32(0, v); }
@$pb.TagNumber(1)
$core.bool hasValue() => $_has(0);
@$pb.TagNumber(1)
void clearValue() => clearField(1);
}

class DigitalInterruptStatus extends $pb.GeneratedMessage {
factory DigitalInterruptStatus({
$fixnum.Int64? value,
}) {
final $result = create();
if (value != null) {
$result.value = value;
}
return $result;
}
DigitalInterruptStatus._() : super();
factory DigitalInterruptStatus.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory DigitalInterruptStatus.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DigitalInterruptStatus', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.common.v1'), createEmptyInstance: create)
..aInt64(1, _omitFieldNames ? '' : 'value')
..hasRequiredFields = false
;

@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
DigitalInterruptStatus clone() => DigitalInterruptStatus()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
DigitalInterruptStatus copyWith(void Function(DigitalInterruptStatus) updates) => super.copyWith((message) => updates(message as DigitalInterruptStatus)) as DigitalInterruptStatus;

$pb.BuilderInfo get info_ => _i;

@$core.pragma('dart2js:noInline')
static DigitalInterruptStatus create() => DigitalInterruptStatus._();
DigitalInterruptStatus createEmptyInstance() => create();
static $pb.PbList<DigitalInterruptStatus> createRepeated() => $pb.PbList<DigitalInterruptStatus>();
@$core.pragma('dart2js:noInline')
static DigitalInterruptStatus getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<DigitalInterruptStatus>(create);
static DigitalInterruptStatus? _defaultInstance;

/// Current value of the digital interrupt of a robot's board
@$pb.TagNumber(1)
$fixnum.Int64 get value => $_getI64(0);
@$pb.TagNumber(1)
set value($fixnum.Int64 v) { $_setInt64(0, v); }
@$pb.TagNumber(1)
$core.bool hasValue() => $_has(0);
@$pb.TagNumber(1)
void clearValue() => clearField(1);
}

/// Pose is a combination of location and orientation.
/// Location is expressed as distance which is represented by x , y, z coordinates. Orientation is expressed as an orientation vector which
/// is represented by o_x, o_y, o_z and theta. The o_x, o_y, o_z coordinates represent the point on the cartesian unit sphere that the end of
Expand Down
24 changes: 0 additions & 24 deletions lib/src/gen/common/v1/common.pbjson.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,30 +45,6 @@ final $typed_data.Uint8List resourceNameDescriptor = $convert.base64Decode(
'CgxSZXNvdXJjZU5hbWUSHAoJbmFtZXNwYWNlGAEgASgJUgluYW1lc3BhY2USEgoEdHlwZRgCIA'
'EoCVIEdHlwZRIYCgdzdWJ0eXBlGAMgASgJUgdzdWJ0eXBlEhIKBG5hbWUYBCABKAlSBG5hbWU=');

@$core.Deprecated('Use analogStatusDescriptor instead')
const AnalogStatus$json = {
'1': 'AnalogStatus',
'2': [
{'1': 'value', '3': 1, '4': 1, '5': 5, '10': 'value'},
],
};

/// Descriptor for `AnalogStatus`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List analogStatusDescriptor = $convert.base64Decode(
'CgxBbmFsb2dTdGF0dXMSFAoFdmFsdWUYASABKAVSBXZhbHVl');

@$core.Deprecated('Use digitalInterruptStatusDescriptor instead')
const DigitalInterruptStatus$json = {
'1': 'DigitalInterruptStatus',
'2': [
{'1': 'value', '3': 1, '4': 1, '5': 3, '10': 'value'},
],
};

/// Descriptor for `DigitalInterruptStatus`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List digitalInterruptStatusDescriptor = $convert.base64Decode(
'ChZEaWdpdGFsSW50ZXJydXB0U3RhdHVzEhQKBXZhbHVlGAEgASgDUgV2YWx1ZQ==');

@$core.Deprecated('Use poseDescriptor instead')
const Pose$json = {
'1': 'Pose',
Expand Down
Loading

0 comments on commit cfb038b

Please sign in to comment.