From 1c61e9ba12c2f9d771222ae741899d13f647cc11 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 8 Dec 2023 16:19:42 -0500 Subject: [PATCH] [WORKFLOW] Updating protos from viamrobotics/api, commit: 413aa3ac087027066181f59cf9ef819a54208738 (#156) Co-authored-by: viambot --- .../gen/app/mltraining/v1/ml_training.pb.dart | 101 ++- .../app/mltraining/v1/ml_training.pbgrpc.dart | 92 +-- .../app/mltraining/v1/ml_training.pbjson.dart | 26 +- lib/src/gen/app/v1/app.pb.dart | 684 ++++++++++++++++++ lib/src/gen/app/v1/app.pbenum.dart | 17 + lib/src/gen/app/v1/app.pbgrpc.dart | 40 + lib/src/gen/app/v1/app.pbjson.dart | 166 +++++ lib/src/gen/google/api/client.pb.dart | 19 + lib/src/gen/google/api/client.pbjson.dart | 14 +- lib/src/gen/service/motion/v1/motion.pb.dart | 192 ++++- .../gen/service/motion/v1/motion.pbgrpc.dart | 20 + .../gen/service/motion/v1/motion.pbjson.dart | 40 + 12 files changed, 1286 insertions(+), 125 deletions(-) diff --git a/lib/src/gen/app/mltraining/v1/ml_training.pb.dart b/lib/src/gen/app/mltraining/v1/ml_training.pb.dart index 16764c37192..577af8daea6 100644 --- a/lib/src/gen/app/mltraining/v1/ml_training.pb.dart +++ b/lib/src/gen/app/mltraining/v1/ml_training.pb.dart @@ -13,16 +13,14 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; -import '../../../google/protobuf/timestamp.pb.dart' as $2; -import '../../../google/rpc/status.pb.dart' as $3; -import '../../data/v1/data.pb.dart' as $0; +import '../../../google/protobuf/timestamp.pb.dart' as $1; +import '../../../google/rpc/status.pb.dart' as $2; import 'ml_training.pbenum.dart'; export 'ml_training.pbenum.dart'; class SubmitTrainingJobRequest extends $pb.GeneratedMessage { factory SubmitTrainingJobRequest({ - $0.Filter? filter, $core.String? organizationId, $core.String? modelName, $core.String? modelVersion, @@ -31,9 +29,6 @@ class SubmitTrainingJobRequest extends $pb.GeneratedMessage { $core.String? datasetId, }) { final $result = create(); - if (filter != null) { - $result.filter = filter; - } if (organizationId != null) { $result.organizationId = organizationId; } @@ -59,7 +54,6 @@ class SubmitTrainingJobRequest extends $pb.GeneratedMessage { factory SubmitTrainingJobRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SubmitTrainingJobRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.mltraining.v1'), createEmptyInstance: create) - ..aOM<$0.Filter>(1, _omitFieldNames ? '' : 'filter', subBuilder: $0.Filter.create) ..aOS(2, _omitFieldNames ? '' : 'organizationId') ..aOS(3, _omitFieldNames ? '' : 'modelName') ..aOS(4, _omitFieldNames ? '' : 'modelVersion') @@ -90,62 +84,51 @@ class SubmitTrainingJobRequest extends $pb.GeneratedMessage { static SubmitTrainingJobRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SubmitTrainingJobRequest? _defaultInstance; - @$pb.TagNumber(1) - $0.Filter get filter => $_getN(0); - @$pb.TagNumber(1) - set filter($0.Filter v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasFilter() => $_has(0); - @$pb.TagNumber(1) - void clearFilter() => clearField(1); - @$pb.TagNumber(1) - $0.Filter ensureFilter() => $_ensure(0); - @$pb.TagNumber(2) - $core.String get organizationId => $_getSZ(1); + $core.String get organizationId => $_getSZ(0); @$pb.TagNumber(2) - set organizationId($core.String v) { $_setString(1, v); } + set organizationId($core.String v) { $_setString(0, v); } @$pb.TagNumber(2) - $core.bool hasOrganizationId() => $_has(1); + $core.bool hasOrganizationId() => $_has(0); @$pb.TagNumber(2) void clearOrganizationId() => clearField(2); @$pb.TagNumber(3) - $core.String get modelName => $_getSZ(2); + $core.String get modelName => $_getSZ(1); @$pb.TagNumber(3) - set modelName($core.String v) { $_setString(2, v); } + set modelName($core.String v) { $_setString(1, v); } @$pb.TagNumber(3) - $core.bool hasModelName() => $_has(2); + $core.bool hasModelName() => $_has(1); @$pb.TagNumber(3) void clearModelName() => clearField(3); @$pb.TagNumber(4) - $core.String get modelVersion => $_getSZ(3); + $core.String get modelVersion => $_getSZ(2); @$pb.TagNumber(4) - set modelVersion($core.String v) { $_setString(3, v); } + set modelVersion($core.String v) { $_setString(2, v); } @$pb.TagNumber(4) - $core.bool hasModelVersion() => $_has(3); + $core.bool hasModelVersion() => $_has(2); @$pb.TagNumber(4) void clearModelVersion() => clearField(4); @$pb.TagNumber(5) - ModelType get modelType => $_getN(4); + ModelType get modelType => $_getN(3); @$pb.TagNumber(5) set modelType(ModelType v) { setField(5, v); } @$pb.TagNumber(5) - $core.bool hasModelType() => $_has(4); + $core.bool hasModelType() => $_has(3); @$pb.TagNumber(5) void clearModelType() => clearField(5); @$pb.TagNumber(6) - $core.List<$core.String> get tags => $_getList(5); + $core.List<$core.String> get tags => $_getList(4); @$pb.TagNumber(7) - $core.String get datasetId => $_getSZ(6); + $core.String get datasetId => $_getSZ(5); @$pb.TagNumber(7) - set datasetId($core.String v) { $_setString(6, v); } + set datasetId($core.String v) { $_setString(5, v); } @$pb.TagNumber(7) - $core.bool hasDatasetId() => $_has(6); + $core.bool hasDatasetId() => $_has(5); @$pb.TagNumber(7) void clearDatasetId() => clearField(7); } @@ -414,13 +397,13 @@ class TrainingJobMetadata extends $pb.GeneratedMessage { factory TrainingJobMetadata({ SubmitTrainingJobRequest? request, TrainingStatus? status, - $2.Timestamp? createdOn, - $2.Timestamp? lastModified, + $1.Timestamp? createdOn, + $1.Timestamp? lastModified, $core.String? syncedModelId, $core.String? id, - $3.Status? errorStatus, - $2.Timestamp? trainingStarted, - $2.Timestamp? trainingEnded, + $2.Status? errorStatus, + $1.Timestamp? trainingStarted, + $1.Timestamp? trainingEnded, }) { final $result = create(); if (request != null) { @@ -459,13 +442,13 @@ class TrainingJobMetadata extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrainingJobMetadata', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.mltraining.v1'), createEmptyInstance: create) ..aOM(1, _omitFieldNames ? '' : 'request', subBuilder: SubmitTrainingJobRequest.create) ..e(2, _omitFieldNames ? '' : 'status', $pb.PbFieldType.OE, defaultOrMaker: TrainingStatus.TRAINING_STATUS_UNSPECIFIED, valueOf: TrainingStatus.valueOf, enumValues: TrainingStatus.values) - ..aOM<$2.Timestamp>(3, _omitFieldNames ? '' : 'createdOn', subBuilder: $2.Timestamp.create) - ..aOM<$2.Timestamp>(4, _omitFieldNames ? '' : 'lastModified', subBuilder: $2.Timestamp.create) + ..aOM<$1.Timestamp>(3, _omitFieldNames ? '' : 'createdOn', subBuilder: $1.Timestamp.create) + ..aOM<$1.Timestamp>(4, _omitFieldNames ? '' : 'lastModified', subBuilder: $1.Timestamp.create) ..aOS(5, _omitFieldNames ? '' : 'syncedModelId') ..aOS(7, _omitFieldNames ? '' : 'id') - ..aOM<$3.Status>(8, _omitFieldNames ? '' : 'errorStatus', subBuilder: $3.Status.create) - ..aOM<$2.Timestamp>(9, _omitFieldNames ? '' : 'trainingStarted', subBuilder: $2.Timestamp.create) - ..aOM<$2.Timestamp>(10, _omitFieldNames ? '' : 'trainingEnded', subBuilder: $2.Timestamp.create) + ..aOM<$2.Status>(8, _omitFieldNames ? '' : 'errorStatus', subBuilder: $2.Status.create) + ..aOM<$1.Timestamp>(9, _omitFieldNames ? '' : 'trainingStarted', subBuilder: $1.Timestamp.create) + ..aOM<$1.Timestamp>(10, _omitFieldNames ? '' : 'trainingEnded', subBuilder: $1.Timestamp.create) ..hasRequiredFields = false ; @@ -511,26 +494,26 @@ class TrainingJobMetadata extends $pb.GeneratedMessage { void clearStatus() => clearField(2); @$pb.TagNumber(3) - $2.Timestamp get createdOn => $_getN(2); + $1.Timestamp get createdOn => $_getN(2); @$pb.TagNumber(3) - set createdOn($2.Timestamp v) { setField(3, v); } + set createdOn($1.Timestamp v) { setField(3, v); } @$pb.TagNumber(3) $core.bool hasCreatedOn() => $_has(2); @$pb.TagNumber(3) void clearCreatedOn() => clearField(3); @$pb.TagNumber(3) - $2.Timestamp ensureCreatedOn() => $_ensure(2); + $1.Timestamp ensureCreatedOn() => $_ensure(2); @$pb.TagNumber(4) - $2.Timestamp get lastModified => $_getN(3); + $1.Timestamp get lastModified => $_getN(3); @$pb.TagNumber(4) - set lastModified($2.Timestamp v) { setField(4, v); } + set lastModified($1.Timestamp v) { setField(4, v); } @$pb.TagNumber(4) $core.bool hasLastModified() => $_has(3); @$pb.TagNumber(4) void clearLastModified() => clearField(4); @$pb.TagNumber(4) - $2.Timestamp ensureLastModified() => $_ensure(3); + $1.Timestamp ensureLastModified() => $_ensure(3); @$pb.TagNumber(5) $core.String get syncedModelId => $_getSZ(4); @@ -551,37 +534,37 @@ class TrainingJobMetadata extends $pb.GeneratedMessage { void clearId() => clearField(7); @$pb.TagNumber(8) - $3.Status get errorStatus => $_getN(6); + $2.Status get errorStatus => $_getN(6); @$pb.TagNumber(8) - set errorStatus($3.Status v) { setField(8, v); } + set errorStatus($2.Status v) { setField(8, v); } @$pb.TagNumber(8) $core.bool hasErrorStatus() => $_has(6); @$pb.TagNumber(8) void clearErrorStatus() => clearField(8); @$pb.TagNumber(8) - $3.Status ensureErrorStatus() => $_ensure(6); + $2.Status ensureErrorStatus() => $_ensure(6); @$pb.TagNumber(9) - $2.Timestamp get trainingStarted => $_getN(7); + $1.Timestamp get trainingStarted => $_getN(7); @$pb.TagNumber(9) - set trainingStarted($2.Timestamp v) { setField(9, v); } + set trainingStarted($1.Timestamp v) { setField(9, v); } @$pb.TagNumber(9) $core.bool hasTrainingStarted() => $_has(7); @$pb.TagNumber(9) void clearTrainingStarted() => clearField(9); @$pb.TagNumber(9) - $2.Timestamp ensureTrainingStarted() => $_ensure(7); + $1.Timestamp ensureTrainingStarted() => $_ensure(7); @$pb.TagNumber(10) - $2.Timestamp get trainingEnded => $_getN(8); + $1.Timestamp get trainingEnded => $_getN(8); @$pb.TagNumber(10) - set trainingEnded($2.Timestamp v) { setField(10, v); } + set trainingEnded($1.Timestamp v) { setField(10, v); } @$pb.TagNumber(10) $core.bool hasTrainingEnded() => $_has(8); @$pb.TagNumber(10) void clearTrainingEnded() => clearField(10); @$pb.TagNumber(10) - $2.Timestamp ensureTrainingEnded() => $_ensure(8); + $1.Timestamp ensureTrainingEnded() => $_ensure(8); } class CancelTrainingJobRequest extends $pb.GeneratedMessage { diff --git a/lib/src/gen/app/mltraining/v1/ml_training.pbgrpc.dart b/lib/src/gen/app/mltraining/v1/ml_training.pbgrpc.dart index 4bdc633346e..ad56b588292 100644 --- a/lib/src/gen/app/mltraining/v1/ml_training.pbgrpc.dart +++ b/lib/src/gen/app/mltraining/v1/ml_training.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 'ml_training.pb.dart' as $1; +import 'ml_training.pb.dart' as $0; export 'ml_training.pb.dart'; @$pb.GrpcServiceName('viam.app.mltraining.v1.MLTrainingService') class MLTrainingServiceClient extends $grpc.Client { - static final _$submitTrainingJob = $grpc.ClientMethod<$1.SubmitTrainingJobRequest, $1.SubmitTrainingJobResponse>( + static final _$submitTrainingJob = $grpc.ClientMethod<$0.SubmitTrainingJobRequest, $0.SubmitTrainingJobResponse>( '/viam.app.mltraining.v1.MLTrainingService/SubmitTrainingJob', - ($1.SubmitTrainingJobRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $1.SubmitTrainingJobResponse.fromBuffer(value)); - static final _$getTrainingJob = $grpc.ClientMethod<$1.GetTrainingJobRequest, $1.GetTrainingJobResponse>( + ($0.SubmitTrainingJobRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.SubmitTrainingJobResponse.fromBuffer(value)); + static final _$getTrainingJob = $grpc.ClientMethod<$0.GetTrainingJobRequest, $0.GetTrainingJobResponse>( '/viam.app.mltraining.v1.MLTrainingService/GetTrainingJob', - ($1.GetTrainingJobRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $1.GetTrainingJobResponse.fromBuffer(value)); - static final _$listTrainingJobs = $grpc.ClientMethod<$1.ListTrainingJobsRequest, $1.ListTrainingJobsResponse>( + ($0.GetTrainingJobRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.GetTrainingJobResponse.fromBuffer(value)); + static final _$listTrainingJobs = $grpc.ClientMethod<$0.ListTrainingJobsRequest, $0.ListTrainingJobsResponse>( '/viam.app.mltraining.v1.MLTrainingService/ListTrainingJobs', - ($1.ListTrainingJobsRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $1.ListTrainingJobsResponse.fromBuffer(value)); - static final _$cancelTrainingJob = $grpc.ClientMethod<$1.CancelTrainingJobRequest, $1.CancelTrainingJobResponse>( + ($0.ListTrainingJobsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.ListTrainingJobsResponse.fromBuffer(value)); + static final _$cancelTrainingJob = $grpc.ClientMethod<$0.CancelTrainingJobRequest, $0.CancelTrainingJobResponse>( '/viam.app.mltraining.v1.MLTrainingService/CancelTrainingJob', - ($1.CancelTrainingJobRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $1.CancelTrainingJobResponse.fromBuffer(value)); - static final _$deleteCompletedTrainingJob = $grpc.ClientMethod<$1.DeleteCompletedTrainingJobRequest, $1.DeleteCompletedTrainingJobResponse>( + ($0.CancelTrainingJobRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.CancelTrainingJobResponse.fromBuffer(value)); + static final _$deleteCompletedTrainingJob = $grpc.ClientMethod<$0.DeleteCompletedTrainingJobRequest, $0.DeleteCompletedTrainingJobResponse>( '/viam.app.mltraining.v1.MLTrainingService/DeleteCompletedTrainingJob', - ($1.DeleteCompletedTrainingJobRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $1.DeleteCompletedTrainingJobResponse.fromBuffer(value)); + ($0.DeleteCompletedTrainingJobRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.DeleteCompletedTrainingJobResponse.fromBuffer(value)); MLTrainingServiceClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, @@ -48,23 +48,23 @@ class MLTrainingServiceClient extends $grpc.Client { : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$1.SubmitTrainingJobResponse> submitTrainingJob($1.SubmitTrainingJobRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$0.SubmitTrainingJobResponse> submitTrainingJob($0.SubmitTrainingJobRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$submitTrainingJob, request, options: options); } - $grpc.ResponseFuture<$1.GetTrainingJobResponse> getTrainingJob($1.GetTrainingJobRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$0.GetTrainingJobResponse> getTrainingJob($0.GetTrainingJobRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getTrainingJob, request, options: options); } - $grpc.ResponseFuture<$1.ListTrainingJobsResponse> listTrainingJobs($1.ListTrainingJobsRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$0.ListTrainingJobsResponse> listTrainingJobs($0.ListTrainingJobsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listTrainingJobs, request, options: options); } - $grpc.ResponseFuture<$1.CancelTrainingJobResponse> cancelTrainingJob($1.CancelTrainingJobRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$0.CancelTrainingJobResponse> cancelTrainingJob($0.CancelTrainingJobRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$cancelTrainingJob, request, options: options); } - $grpc.ResponseFuture<$1.DeleteCompletedTrainingJobResponse> deleteCompletedTrainingJob($1.DeleteCompletedTrainingJobRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$0.DeleteCompletedTrainingJobResponse> deleteCompletedTrainingJob($0.DeleteCompletedTrainingJobRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteCompletedTrainingJob, request, options: options); } } @@ -74,66 +74,66 @@ abstract class MLTrainingServiceBase extends $grpc.Service { $core.String get $name => 'viam.app.mltraining.v1.MLTrainingService'; MLTrainingServiceBase() { - $addMethod($grpc.ServiceMethod<$1.SubmitTrainingJobRequest, $1.SubmitTrainingJobResponse>( + $addMethod($grpc.ServiceMethod<$0.SubmitTrainingJobRequest, $0.SubmitTrainingJobResponse>( 'SubmitTrainingJob', submitTrainingJob_Pre, false, false, - ($core.List<$core.int> value) => $1.SubmitTrainingJobRequest.fromBuffer(value), - ($1.SubmitTrainingJobResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$1.GetTrainingJobRequest, $1.GetTrainingJobResponse>( + ($core.List<$core.int> value) => $0.SubmitTrainingJobRequest.fromBuffer(value), + ($0.SubmitTrainingJobResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.GetTrainingJobRequest, $0.GetTrainingJobResponse>( 'GetTrainingJob', getTrainingJob_Pre, false, false, - ($core.List<$core.int> value) => $1.GetTrainingJobRequest.fromBuffer(value), - ($1.GetTrainingJobResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$1.ListTrainingJobsRequest, $1.ListTrainingJobsResponse>( + ($core.List<$core.int> value) => $0.GetTrainingJobRequest.fromBuffer(value), + ($0.GetTrainingJobResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.ListTrainingJobsRequest, $0.ListTrainingJobsResponse>( 'ListTrainingJobs', listTrainingJobs_Pre, false, false, - ($core.List<$core.int> value) => $1.ListTrainingJobsRequest.fromBuffer(value), - ($1.ListTrainingJobsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$1.CancelTrainingJobRequest, $1.CancelTrainingJobResponse>( + ($core.List<$core.int> value) => $0.ListTrainingJobsRequest.fromBuffer(value), + ($0.ListTrainingJobsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.CancelTrainingJobRequest, $0.CancelTrainingJobResponse>( 'CancelTrainingJob', cancelTrainingJob_Pre, false, false, - ($core.List<$core.int> value) => $1.CancelTrainingJobRequest.fromBuffer(value), - ($1.CancelTrainingJobResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$1.DeleteCompletedTrainingJobRequest, $1.DeleteCompletedTrainingJobResponse>( + ($core.List<$core.int> value) => $0.CancelTrainingJobRequest.fromBuffer(value), + ($0.CancelTrainingJobResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.DeleteCompletedTrainingJobRequest, $0.DeleteCompletedTrainingJobResponse>( 'DeleteCompletedTrainingJob', deleteCompletedTrainingJob_Pre, false, false, - ($core.List<$core.int> value) => $1.DeleteCompletedTrainingJobRequest.fromBuffer(value), - ($1.DeleteCompletedTrainingJobResponse value) => value.writeToBuffer())); + ($core.List<$core.int> value) => $0.DeleteCompletedTrainingJobRequest.fromBuffer(value), + ($0.DeleteCompletedTrainingJobResponse value) => value.writeToBuffer())); } - $async.Future<$1.SubmitTrainingJobResponse> submitTrainingJob_Pre($grpc.ServiceCall call, $async.Future<$1.SubmitTrainingJobRequest> request) async { + $async.Future<$0.SubmitTrainingJobResponse> submitTrainingJob_Pre($grpc.ServiceCall call, $async.Future<$0.SubmitTrainingJobRequest> request) async { return submitTrainingJob(call, await request); } - $async.Future<$1.GetTrainingJobResponse> getTrainingJob_Pre($grpc.ServiceCall call, $async.Future<$1.GetTrainingJobRequest> request) async { + $async.Future<$0.GetTrainingJobResponse> getTrainingJob_Pre($grpc.ServiceCall call, $async.Future<$0.GetTrainingJobRequest> request) async { return getTrainingJob(call, await request); } - $async.Future<$1.ListTrainingJobsResponse> listTrainingJobs_Pre($grpc.ServiceCall call, $async.Future<$1.ListTrainingJobsRequest> request) async { + $async.Future<$0.ListTrainingJobsResponse> listTrainingJobs_Pre($grpc.ServiceCall call, $async.Future<$0.ListTrainingJobsRequest> request) async { return listTrainingJobs(call, await request); } - $async.Future<$1.CancelTrainingJobResponse> cancelTrainingJob_Pre($grpc.ServiceCall call, $async.Future<$1.CancelTrainingJobRequest> request) async { + $async.Future<$0.CancelTrainingJobResponse> cancelTrainingJob_Pre($grpc.ServiceCall call, $async.Future<$0.CancelTrainingJobRequest> request) async { return cancelTrainingJob(call, await request); } - $async.Future<$1.DeleteCompletedTrainingJobResponse> deleteCompletedTrainingJob_Pre($grpc.ServiceCall call, $async.Future<$1.DeleteCompletedTrainingJobRequest> request) async { + $async.Future<$0.DeleteCompletedTrainingJobResponse> deleteCompletedTrainingJob_Pre($grpc.ServiceCall call, $async.Future<$0.DeleteCompletedTrainingJobRequest> request) async { return deleteCompletedTrainingJob(call, await request); } - $async.Future<$1.SubmitTrainingJobResponse> submitTrainingJob($grpc.ServiceCall call, $1.SubmitTrainingJobRequest request); - $async.Future<$1.GetTrainingJobResponse> getTrainingJob($grpc.ServiceCall call, $1.GetTrainingJobRequest request); - $async.Future<$1.ListTrainingJobsResponse> listTrainingJobs($grpc.ServiceCall call, $1.ListTrainingJobsRequest request); - $async.Future<$1.CancelTrainingJobResponse> cancelTrainingJob($grpc.ServiceCall call, $1.CancelTrainingJobRequest request); - $async.Future<$1.DeleteCompletedTrainingJobResponse> deleteCompletedTrainingJob($grpc.ServiceCall call, $1.DeleteCompletedTrainingJobRequest request); + $async.Future<$0.SubmitTrainingJobResponse> submitTrainingJob($grpc.ServiceCall call, $0.SubmitTrainingJobRequest request); + $async.Future<$0.GetTrainingJobResponse> getTrainingJob($grpc.ServiceCall call, $0.GetTrainingJobRequest request); + $async.Future<$0.ListTrainingJobsResponse> listTrainingJobs($grpc.ServiceCall call, $0.ListTrainingJobsRequest request); + $async.Future<$0.CancelTrainingJobResponse> cancelTrainingJob($grpc.ServiceCall call, $0.CancelTrainingJobRequest request); + $async.Future<$0.DeleteCompletedTrainingJobResponse> deleteCompletedTrainingJob($grpc.ServiceCall call, $0.DeleteCompletedTrainingJobRequest request); } diff --git a/lib/src/gen/app/mltraining/v1/ml_training.pbjson.dart b/lib/src/gen/app/mltraining/v1/ml_training.pbjson.dart index 64123bdde88..78728e1fdcb 100644 --- a/lib/src/gen/app/mltraining/v1/ml_training.pbjson.dart +++ b/lib/src/gen/app/mltraining/v1/ml_training.pbjson.dart @@ -56,7 +56,6 @@ final $typed_data.Uint8List trainingStatusDescriptor = $convert.base64Decode( const SubmitTrainingJobRequest$json = { '1': 'SubmitTrainingJobRequest', '2': [ - {'1': 'filter', '3': 1, '4': 1, '5': 11, '6': '.viam.app.data.v1.Filter', '8': {}, '10': 'filter'}, {'1': 'dataset_id', '3': 7, '4': 1, '5': 9, '8': {}, '10': 'datasetId'}, {'1': 'organization_id', '3': 2, '4': 1, '5': 9, '8': {}, '10': 'organizationId'}, {'1': 'model_name', '3': 3, '4': 1, '5': 9, '8': {}, '10': 'modelName'}, @@ -64,21 +63,24 @@ const SubmitTrainingJobRequest$json = { {'1': 'model_type', '3': 5, '4': 1, '5': 14, '6': '.viam.app.mltraining.v1.ModelType', '8': {}, '10': 'modelType'}, {'1': 'tags', '3': 6, '4': 3, '5': 9, '8': {}, '10': 'tags'}, ], + '9': [ + {'1': 1, '2': 2}, + ], + '10': ['filter'], }; /// Descriptor for `SubmitTrainingJobRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List submitTrainingJobRequestDescriptor = $convert.base64Decode( - 'ChhTdWJtaXRUcmFpbmluZ0pvYlJlcXVlc3QSUgoGZmlsdGVyGAEgASgLMhgudmlhbS5hcHAuZG' - 'F0YS52MS5GaWx0ZXJCIJqEngMbYnNvbjoiZmlsdGVyIiBqc29uOiJmaWx0ZXIiUgZmaWx0ZXIS' - 'RwoKZGF0YXNldF9pZBgHIAEoCUIomoSeAyNic29uOiJkYXRhc2V0X2lkIiBqc29uOiJkYXRhc2' - 'V0X2lkIlIJZGF0YXNldElkElsKD29yZ2FuaXphdGlvbl9pZBgCIAEoCUIymoSeAy1ic29uOiJv' - 'cmdhbml6YXRpb25faWQiIGpzb246Im9yZ2FuaXphdGlvbl9pZCJSDm9yZ2FuaXphdGlvbklkEk' - 'cKCm1vZGVsX25hbWUYAyABKAlCKJqEngMjYnNvbjoibW9kZWxfbmFtZSIganNvbjoibW9kZWxf' - 'bmFtZSJSCW1vZGVsTmFtZRJTCg1tb2RlbF92ZXJzaW9uGAQgASgJQi6ahJ4DKWJzb246Im1vZG' - 'VsX3ZlcnNpb24iIGpzb246Im1vZGVsX3ZlcnNpb24iUgxtb2RlbFZlcnNpb24SagoKbW9kZWxf' - 'dHlwZRgFIAEoDjIhLnZpYW0uYXBwLm1sdHJhaW5pbmcudjEuTW9kZWxUeXBlQiiahJ4DI2Jzb2' - '46Im1vZGVsX3R5cGUiIGpzb246Im1vZGVsX3R5cGUiUgltb2RlbFR5cGUSMAoEdGFncxgGIAMo' - 'CUIcmoSeAxdic29uOiJ0YWdzIiBqc29uOiJ0YWdzIlIEdGFncw=='); + 'ChhTdWJtaXRUcmFpbmluZ0pvYlJlcXVlc3QSRwoKZGF0YXNldF9pZBgHIAEoCUIomoSeAyNic2' + '9uOiJkYXRhc2V0X2lkIiBqc29uOiJkYXRhc2V0X2lkIlIJZGF0YXNldElkElsKD29yZ2FuaXph' + 'dGlvbl9pZBgCIAEoCUIymoSeAy1ic29uOiJvcmdhbml6YXRpb25faWQiIGpzb246Im9yZ2FuaX' + 'phdGlvbl9pZCJSDm9yZ2FuaXphdGlvbklkEkcKCm1vZGVsX25hbWUYAyABKAlCKJqEngMjYnNv' + 'bjoibW9kZWxfbmFtZSIganNvbjoibW9kZWxfbmFtZSJSCW1vZGVsTmFtZRJTCg1tb2RlbF92ZX' + 'JzaW9uGAQgASgJQi6ahJ4DKWJzb246Im1vZGVsX3ZlcnNpb24iIGpzb246Im1vZGVsX3ZlcnNp' + 'b24iUgxtb2RlbFZlcnNpb24SagoKbW9kZWxfdHlwZRgFIAEoDjIhLnZpYW0uYXBwLm1sdHJhaW' + '5pbmcudjEuTW9kZWxUeXBlQiiahJ4DI2Jzb246Im1vZGVsX3R5cGUiIGpzb246Im1vZGVsX3R5' + 'cGUiUgltb2RlbFR5cGUSMAoEdGFncxgGIAMoCUIcmoSeAxdic29uOiJ0YWdzIiBqc29uOiJ0YW' + 'dzIlIEdGFnc0oECAEQAlIGZmlsdGVy'); @$core.Deprecated('Use submitTrainingJobResponseDescriptor instead') const SubmitTrainingJobResponse$json = { diff --git a/lib/src/gen/app/v1/app.pb.dart b/lib/src/gen/app/v1/app.pb.dart index f97e37573ed..515a146ef80 100644 --- a/lib/src/gen/app/v1/app.pb.dart +++ b/lib/src/gen/app/v1/app.pb.dart @@ -2990,6 +2990,100 @@ class DeleteLocationResponse extends $pb.GeneratedMessage { static DeleteLocationResponse? _defaultInstance; } +class GetOrganizationsWithAccessToLocationRequest extends $pb.GeneratedMessage { + factory GetOrganizationsWithAccessToLocationRequest({ + $core.String? locationId, + }) { + final $result = create(); + if (locationId != null) { + $result.locationId = locationId; + } + return $result; + } + GetOrganizationsWithAccessToLocationRequest._() : super(); + factory GetOrganizationsWithAccessToLocationRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory GetOrganizationsWithAccessToLocationRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetOrganizationsWithAccessToLocationRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'locationId') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetOrganizationsWithAccessToLocationRequest clone() => GetOrganizationsWithAccessToLocationRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetOrganizationsWithAccessToLocationRequest copyWith(void Function(GetOrganizationsWithAccessToLocationRequest) updates) => super.copyWith((message) => updates(message as GetOrganizationsWithAccessToLocationRequest)) as GetOrganizationsWithAccessToLocationRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static GetOrganizationsWithAccessToLocationRequest create() => GetOrganizationsWithAccessToLocationRequest._(); + GetOrganizationsWithAccessToLocationRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GetOrganizationsWithAccessToLocationRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetOrganizationsWithAccessToLocationRequest? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get locationId => $_getSZ(0); + @$pb.TagNumber(1) + set locationId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasLocationId() => $_has(0); + @$pb.TagNumber(1) + void clearLocationId() => clearField(1); +} + +class GetOrganizationsWithAccessToLocationResponse extends $pb.GeneratedMessage { + factory GetOrganizationsWithAccessToLocationResponse({ + $core.Iterable? organizations, + }) { + final $result = create(); + if (organizations != null) { + $result.organizations.addAll(organizations); + } + return $result; + } + GetOrganizationsWithAccessToLocationResponse._() : super(); + factory GetOrganizationsWithAccessToLocationResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory GetOrganizationsWithAccessToLocationResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetOrganizationsWithAccessToLocationResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'organizations', $pb.PbFieldType.PM, subBuilder: Organization.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') + GetOrganizationsWithAccessToLocationResponse clone() => GetOrganizationsWithAccessToLocationResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetOrganizationsWithAccessToLocationResponse copyWith(void Function(GetOrganizationsWithAccessToLocationResponse) updates) => super.copyWith((message) => updates(message as GetOrganizationsWithAccessToLocationResponse)) as GetOrganizationsWithAccessToLocationResponse; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static GetOrganizationsWithAccessToLocationResponse create() => GetOrganizationsWithAccessToLocationResponse._(); + GetOrganizationsWithAccessToLocationResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GetOrganizationsWithAccessToLocationResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetOrganizationsWithAccessToLocationResponse? _defaultInstance; + + @$pb.TagNumber(1) + $core.List get organizations => $_getList(0); +} + class ListLocationsRequest extends $pb.GeneratedMessage { factory ListLocationsRequest({ $core.String? organizationId, @@ -7310,6 +7404,441 @@ class CheckPermissionsResponse extends $pb.GeneratedMessage { $core.List get authorizedPermissions => $_getList(0); } +class ModuleVersion extends $pb.GeneratedMessage { + factory ModuleVersion({ + $core.String? version, + $core.Iterable? files, + $core.Iterable? models, + $core.String? entrypoint, + }) { + final $result = create(); + if (version != null) { + $result.version = version; + } + if (files != null) { + $result.files.addAll(files); + } + if (models != null) { + $result.models.addAll(models); + } + if (entrypoint != null) { + $result.entrypoint = entrypoint; + } + return $result; + } + ModuleVersion._() : super(); + factory ModuleVersion.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ModuleVersion.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ModuleVersion', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'version') + ..pc(2, _omitFieldNames ? '' : 'files', $pb.PbFieldType.PM, subBuilder: Uploads.create) + ..pc(3, _omitFieldNames ? '' : 'models', $pb.PbFieldType.PM, subBuilder: Model.create) + ..aOS(4, _omitFieldNames ? '' : 'entrypoint') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ModuleVersion clone() => ModuleVersion()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ModuleVersion copyWith(void Function(ModuleVersion) updates) => super.copyWith((message) => updates(message as ModuleVersion)) as ModuleVersion; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ModuleVersion create() => ModuleVersion._(); + ModuleVersion createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ModuleVersion getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ModuleVersion? _defaultInstance; + + /// The semver string that represents the major/minor/patch version of the module + @$pb.TagNumber(1) + $core.String get version => $_getSZ(0); + @$pb.TagNumber(1) + set version($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasVersion() => $_has(0); + @$pb.TagNumber(1) + void clearVersion() => clearField(1); + + /// The uploads that are available for this module version + @$pb.TagNumber(2) + $core.List get files => $_getList(1); + + /// The models that this verion of the module provides + @$pb.TagNumber(3) + $core.List get models => $_getList(2); + + /// The entrypoint for this version of the module + @$pb.TagNumber(4) + $core.String get entrypoint => $_getSZ(3); + @$pb.TagNumber(4) + set entrypoint($core.String v) { $_setString(3, v); } + @$pb.TagNumber(4) + $core.bool hasEntrypoint() => $_has(3); + @$pb.TagNumber(4) + void clearEntrypoint() => clearField(4); +} + +class ModuleMetadata extends $pb.GeneratedMessage { + factory ModuleMetadata({ + $core.Iterable? models, + $core.Iterable? versions, + $core.String? entrypoint, + }) { + final $result = create(); + if (models != null) { + $result.models.addAll(models); + } + if (versions != null) { + $result.versions.addAll(versions); + } + if (entrypoint != null) { + $result.entrypoint = entrypoint; + } + return $result; + } + ModuleMetadata._() : super(); + factory ModuleMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ModuleMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ModuleMetadata', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'models', $pb.PbFieldType.PM, subBuilder: Model.create) + ..pc(2, _omitFieldNames ? '' : 'versions', $pb.PbFieldType.PM, subBuilder: ModuleVersion.create) + ..aOS(3, _omitFieldNames ? '' : 'entrypoint') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ModuleMetadata clone() => ModuleMetadata()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ModuleMetadata copyWith(void Function(ModuleMetadata) updates) => super.copyWith((message) => updates(message as ModuleMetadata)) as ModuleMetadata; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ModuleMetadata create() => ModuleMetadata._(); + ModuleMetadata createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ModuleMetadata getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ModuleMetadata? _defaultInstance; + + /// A list of models that are available in the module + @$pb.TagNumber(1) + $core.List get models => $_getList(0); + + /// A list of versions of the module that are available + /// When this is returned from the backend, the versions are sorted in ascending order by the semver version + @$pb.TagNumber(2) + $core.List get versions => $_getList(1); + + /// The executable to run to start the module program + @$pb.TagNumber(3) + $core.String get entrypoint => $_getSZ(2); + @$pb.TagNumber(3) + set entrypoint($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) + $core.bool hasEntrypoint() => $_has(2); + @$pb.TagNumber(3) + void clearEntrypoint() => clearField(3); +} + +class MLModelMetadata extends $pb.GeneratedMessage { + factory MLModelMetadata({ + $core.Iterable<$core.String>? versions, + }) { + final $result = create(); + if (versions != null) { + $result.versions.addAll(versions); + } + return $result; + } + MLModelMetadata._() : super(); + factory MLModelMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory MLModelMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MLModelMetadata', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) + ..pPS(1, _omitFieldNames ? '' : 'versions') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + MLModelMetadata clone() => MLModelMetadata()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + MLModelMetadata copyWith(void Function(MLModelMetadata) updates) => super.copyWith((message) => updates(message as MLModelMetadata)) as MLModelMetadata; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static MLModelMetadata create() => MLModelMetadata._(); + MLModelMetadata createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static MLModelMetadata getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static MLModelMetadata? _defaultInstance; + + /// A list of package versions for a ML model + @$pb.TagNumber(1) + $core.List<$core.String> get versions => $_getList(0); +} + +enum RegistryItem_Metadata { + moduleMetadata, + mlModelMetadata, + notSet +} + +class RegistryItem extends $pb.GeneratedMessage { + factory RegistryItem({ + $core.String? itemId, + $core.String? organizationId, + $core.String? publicNamespace, + $core.String? name, + $0.PackageType? type, + Visibility? visibility, + $core.String? url, + $core.String? description, + $fixnum.Int64? totalRobotUsage, + $fixnum.Int64? totalOrganizationUsage, + ModuleMetadata? moduleMetadata, + MLModelMetadata? mlModelMetadata, + }) { + final $result = create(); + if (itemId != null) { + $result.itemId = itemId; + } + if (organizationId != null) { + $result.organizationId = organizationId; + } + if (publicNamespace != null) { + $result.publicNamespace = publicNamespace; + } + if (name != null) { + $result.name = name; + } + if (type != null) { + $result.type = type; + } + if (visibility != null) { + $result.visibility = visibility; + } + if (url != null) { + $result.url = url; + } + if (description != null) { + $result.description = description; + } + if (totalRobotUsage != null) { + $result.totalRobotUsage = totalRobotUsage; + } + if (totalOrganizationUsage != null) { + $result.totalOrganizationUsage = totalOrganizationUsage; + } + if (moduleMetadata != null) { + $result.moduleMetadata = moduleMetadata; + } + if (mlModelMetadata != null) { + $result.mlModelMetadata = mlModelMetadata; + } + return $result; + } + RegistryItem._() : super(); + factory RegistryItem.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RegistryItem.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, RegistryItem_Metadata> _RegistryItem_MetadataByTag = { + 11 : RegistryItem_Metadata.moduleMetadata, + 12 : RegistryItem_Metadata.mlModelMetadata, + 0 : RegistryItem_Metadata.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RegistryItem', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) + ..oo(0, [11, 12]) + ..aOS(1, _omitFieldNames ? '' : 'itemId') + ..aOS(2, _omitFieldNames ? '' : 'organizationId') + ..aOS(3, _omitFieldNames ? '' : 'publicNamespace') + ..aOS(4, _omitFieldNames ? '' : 'name') + ..e<$0.PackageType>(5, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: $0.PackageType.PACKAGE_TYPE_UNSPECIFIED, valueOf: $0.PackageType.valueOf, enumValues: $0.PackageType.values) + ..e(6, _omitFieldNames ? '' : 'visibility', $pb.PbFieldType.OE, defaultOrMaker: Visibility.VISIBILITY_UNSPECIFIED, valueOf: Visibility.valueOf, enumValues: Visibility.values) + ..aOS(7, _omitFieldNames ? '' : 'url') + ..aOS(8, _omitFieldNames ? '' : 'description') + ..aInt64(9, _omitFieldNames ? '' : 'totalRobotUsage') + ..aInt64(10, _omitFieldNames ? '' : 'totalOrganizationUsage') + ..aOM(11, _omitFieldNames ? '' : 'moduleMetadata', subBuilder: ModuleMetadata.create) + ..aOM(12, _omitFieldNames ? '' : 'mlModelMetadata', subBuilder: MLModelMetadata.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') + RegistryItem clone() => RegistryItem()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RegistryItem copyWith(void Function(RegistryItem) updates) => super.copyWith((message) => updates(message as RegistryItem)) as RegistryItem; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RegistryItem create() => RegistryItem._(); + RegistryItem createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RegistryItem getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RegistryItem? _defaultInstance; + + RegistryItem_Metadata whichMetadata() => _RegistryItem_MetadataByTag[$_whichOneof(0)]!; + void clearMetadata() => clearField($_whichOneof(0)); + + /// The id of the item, containing either: + /// namespace:item_name when a namespace exists on the org. + /// org_id:item_name when a namespace does not exist. + @$pb.TagNumber(1) + $core.String get itemId => $_getSZ(0); + @$pb.TagNumber(1) + set itemId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasItemId() => $_has(0); + @$pb.TagNumber(1) + void clearItemId() => clearField(1); + + /// The id of the organization that owns the item + @$pb.TagNumber(2) + $core.String get organizationId => $_getSZ(1); + @$pb.TagNumber(2) + set organizationId($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasOrganizationId() => $_has(1); + @$pb.TagNumber(2) + void clearOrganizationId() => clearField(2); + + /// The public namespace of the organization that owns the module + /// This is empty if no public namespace is set + @$pb.TagNumber(3) + $core.String get publicNamespace => $_getSZ(2); + @$pb.TagNumber(3) + set publicNamespace($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) + $core.bool hasPublicNamespace() => $_has(2); + @$pb.TagNumber(3) + void clearPublicNamespace() => clearField(3); + + /// The name of the registry item + @$pb.TagNumber(4) + $core.String get name => $_getSZ(3); + @$pb.TagNumber(4) + set name($core.String v) { $_setString(3, v); } + @$pb.TagNumber(4) + $core.bool hasName() => $_has(3); + @$pb.TagNumber(4) + void clearName() => clearField(4); + + /// The type of the item in the registry + @$pb.TagNumber(5) + $0.PackageType get type => $_getN(4); + @$pb.TagNumber(5) + set type($0.PackageType v) { setField(5, v); } + @$pb.TagNumber(5) + $core.bool hasType() => $_has(4); + @$pb.TagNumber(5) + void clearType() => clearField(5); + + /// The visibility of the registry item + @$pb.TagNumber(6) + Visibility get visibility => $_getN(5); + @$pb.TagNumber(6) + set visibility(Visibility v) { setField(6, v); } + @$pb.TagNumber(6) + $core.bool hasVisibility() => $_has(5); + @$pb.TagNumber(6) + void clearVisibility() => clearField(6); + + /// The url to reference for documentation, code, etc. + @$pb.TagNumber(7) + $core.String get url => $_getSZ(6); + @$pb.TagNumber(7) + set url($core.String v) { $_setString(6, v); } + @$pb.TagNumber(7) + $core.bool hasUrl() => $_has(6); + @$pb.TagNumber(7) + void clearUrl() => clearField(7); + + /// A short description of the item that explains its purpose + @$pb.TagNumber(8) + $core.String get description => $_getSZ(7); + @$pb.TagNumber(8) + set description($core.String v) { $_setString(7, v); } + @$pb.TagNumber(8) + $core.bool hasDescription() => $_has(7); + @$pb.TagNumber(8) + void clearDescription() => clearField(8); + + /// The total number of robots using this item + @$pb.TagNumber(9) + $fixnum.Int64 get totalRobotUsage => $_getI64(8); + @$pb.TagNumber(9) + set totalRobotUsage($fixnum.Int64 v) { $_setInt64(8, v); } + @$pb.TagNumber(9) + $core.bool hasTotalRobotUsage() => $_has(8); + @$pb.TagNumber(9) + void clearTotalRobotUsage() => clearField(9); + + /// The total number of organizations using this item + @$pb.TagNumber(10) + $fixnum.Int64 get totalOrganizationUsage => $_getI64(9); + @$pb.TagNumber(10) + set totalOrganizationUsage($fixnum.Int64 v) { $_setInt64(9, v); } + @$pb.TagNumber(10) + $core.bool hasTotalOrganizationUsage() => $_has(9); + @$pb.TagNumber(10) + void clearTotalOrganizationUsage() => clearField(10); + + @$pb.TagNumber(11) + ModuleMetadata get moduleMetadata => $_getN(10); + @$pb.TagNumber(11) + set moduleMetadata(ModuleMetadata v) { setField(11, v); } + @$pb.TagNumber(11) + $core.bool hasModuleMetadata() => $_has(10); + @$pb.TagNumber(11) + void clearModuleMetadata() => clearField(11); + @$pb.TagNumber(11) + ModuleMetadata ensureModuleMetadata() => $_ensure(10); + + @$pb.TagNumber(12) + MLModelMetadata get mlModelMetadata => $_getN(11); + @$pb.TagNumber(12) + set mlModelMetadata(MLModelMetadata v) { setField(12, v); } + @$pb.TagNumber(12) + $core.bool hasMlModelMetadata() => $_has(11); + @$pb.TagNumber(12) + void clearMlModelMetadata() => clearField(12); + @$pb.TagNumber(12) + MLModelMetadata ensureMlModelMetadata() => $_ensure(11); +} + class CreateRegistryItemRequest extends $pb.GeneratedMessage { factory CreateRegistryItemRequest({ $core.String? organizationId, @@ -7547,6 +8076,161 @@ class UpdateRegistryItemResponse extends $pb.GeneratedMessage { static UpdateRegistryItemResponse? _defaultInstance; } +class ListRegistryItemsRequest extends $pb.GeneratedMessage { + factory ListRegistryItemsRequest({ + $core.String? organizationId, + $core.Iterable<$0.PackageType>? types, + $core.Iterable? visibilities, + $core.Iterable<$core.String>? platforms, + $core.Iterable? statuses, + $core.String? searchTerm, + $core.String? pageToken, + }) { + final $result = create(); + if (organizationId != null) { + $result.organizationId = organizationId; + } + if (types != null) { + $result.types.addAll(types); + } + if (visibilities != null) { + $result.visibilities.addAll(visibilities); + } + if (platforms != null) { + $result.platforms.addAll(platforms); + } + if (statuses != null) { + $result.statuses.addAll(statuses); + } + if (searchTerm != null) { + $result.searchTerm = searchTerm; + } + if (pageToken != null) { + $result.pageToken = pageToken; + } + return $result; + } + ListRegistryItemsRequest._() : super(); + factory ListRegistryItemsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ListRegistryItemsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListRegistryItemsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'organizationId') + ..pc<$0.PackageType>(2, _omitFieldNames ? '' : 'types', $pb.PbFieldType.KE, valueOf: $0.PackageType.valueOf, enumValues: $0.PackageType.values, defaultEnumValue: $0.PackageType.PACKAGE_TYPE_UNSPECIFIED) + ..pc(3, _omitFieldNames ? '' : 'visibilities', $pb.PbFieldType.KE, valueOf: Visibility.valueOf, enumValues: Visibility.values, defaultEnumValue: Visibility.VISIBILITY_UNSPECIFIED) + ..pPS(4, _omitFieldNames ? '' : 'platforms') + ..pc(5, _omitFieldNames ? '' : 'statuses', $pb.PbFieldType.KE, valueOf: RegistryItemStatus.valueOf, enumValues: RegistryItemStatus.values, defaultEnumValue: RegistryItemStatus.REGISTRY_ITEM_STATUS_UNSPECIFIED) + ..aOS(6, _omitFieldNames ? '' : 'searchTerm') + ..aOS(7, _omitFieldNames ? '' : 'pageToken') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ListRegistryItemsRequest clone() => ListRegistryItemsRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ListRegistryItemsRequest copyWith(void Function(ListRegistryItemsRequest) updates) => super.copyWith((message) => updates(message as ListRegistryItemsRequest)) as ListRegistryItemsRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ListRegistryItemsRequest create() => ListRegistryItemsRequest._(); + ListRegistryItemsRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ListRegistryItemsRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ListRegistryItemsRequest? _defaultInstance; + + /// The id of the organization to return registry items for. + @$pb.TagNumber(1) + $core.String get organizationId => $_getSZ(0); + @$pb.TagNumber(1) + set organizationId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasOrganizationId() => $_has(0); + @$pb.TagNumber(1) + void clearOrganizationId() => clearField(1); + + @$pb.TagNumber(2) + $core.List<$0.PackageType> get types => $_getList(1); + + @$pb.TagNumber(3) + $core.List get visibilities => $_getList(2); + + @$pb.TagNumber(4) + $core.List<$core.String> get platforms => $_getList(3); + + @$pb.TagNumber(5) + $core.List get statuses => $_getList(4); + + @$pb.TagNumber(6) + $core.String get searchTerm => $_getSZ(5); + @$pb.TagNumber(6) + set searchTerm($core.String v) { $_setString(5, v); } + @$pb.TagNumber(6) + $core.bool hasSearchTerm() => $_has(5); + @$pb.TagNumber(6) + void clearSearchTerm() => clearField(6); + + @$pb.TagNumber(7) + $core.String get pageToken => $_getSZ(6); + @$pb.TagNumber(7) + set pageToken($core.String v) { $_setString(6, v); } + @$pb.TagNumber(7) + $core.bool hasPageToken() => $_has(6); + @$pb.TagNumber(7) + void clearPageToken() => clearField(7); +} + +class ListRegistryItemsResponse extends $pb.GeneratedMessage { + factory ListRegistryItemsResponse({ + $core.Iterable? items, + }) { + final $result = create(); + if (items != null) { + $result.items.addAll(items); + } + return $result; + } + ListRegistryItemsResponse._() : super(); + factory ListRegistryItemsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ListRegistryItemsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListRegistryItemsResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'items', $pb.PbFieldType.PM, subBuilder: RegistryItem.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') + ListRegistryItemsResponse clone() => ListRegistryItemsResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ListRegistryItemsResponse copyWith(void Function(ListRegistryItemsResponse) updates) => super.copyWith((message) => updates(message as ListRegistryItemsResponse)) as ListRegistryItemsResponse; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ListRegistryItemsResponse create() => ListRegistryItemsResponse._(); + ListRegistryItemsResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ListRegistryItemsResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ListRegistryItemsResponse? _defaultInstance; + + @$pb.TagNumber(1) + $core.List get items => $_getList(0); +} + /// Modules class CreateModuleRequest extends $pb.GeneratedMessage { factory CreateModuleRequest({ diff --git a/lib/src/gen/app/v1/app.pbenum.dart b/lib/src/gen/app/v1/app.pbenum.dart index ba91a9cb882..57d46e6b15f 100644 --- a/lib/src/gen/app/v1/app.pbenum.dart +++ b/lib/src/gen/app/v1/app.pbenum.dart @@ -13,6 +13,23 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; +class RegistryItemStatus extends $pb.ProtobufEnum { + static const RegistryItemStatus REGISTRY_ITEM_STATUS_UNSPECIFIED = RegistryItemStatus._(0, _omitEnumNames ? '' : 'REGISTRY_ITEM_STATUS_UNSPECIFIED'); + static const RegistryItemStatus REGISTRY_ITEM_STATUS_PUBLISHED = RegistryItemStatus._(1, _omitEnumNames ? '' : 'REGISTRY_ITEM_STATUS_PUBLISHED'); + static const RegistryItemStatus REGISTRY_ITEM_STATUS_IN_DEVELOPMENT = RegistryItemStatus._(2, _omitEnumNames ? '' : 'REGISTRY_ITEM_STATUS_IN_DEVELOPMENT'); + + static const $core.List values = [ + REGISTRY_ITEM_STATUS_UNSPECIFIED, + REGISTRY_ITEM_STATUS_PUBLISHED, + REGISTRY_ITEM_STATUS_IN_DEVELOPMENT, + ]; + + static final $core.Map<$core.int, RegistryItemStatus> _byValue = $pb.ProtobufEnum.initByValue(values); + static RegistryItemStatus? valueOf($core.int value) => _byValue[value]; + + const RegistryItemStatus._($core.int v, $core.String n) : super(v, n); +} + class Visibility extends $pb.ProtobufEnum { static const Visibility VISIBILITY_UNSPECIFIED = Visibility._(0, _omitEnumNames ? '' : 'VISIBILITY_UNSPECIFIED'); static const Visibility VISIBILITY_PRIVATE = Visibility._(1, _omitEnumNames ? '' : 'VISIBILITY_PRIVATE'); diff --git a/lib/src/gen/app/v1/app.pbgrpc.dart b/lib/src/gen/app/v1/app.pbgrpc.dart index eaabd7ff015..52ca6cd95ae 100644 --- a/lib/src/gen/app/v1/app.pbgrpc.dart +++ b/lib/src/gen/app/v1/app.pbgrpc.dart @@ -33,6 +33,10 @@ class AppServiceClient extends $grpc.Client { '/viam.app.v1.AppService/ListOrganizations', ($1.ListOrganizationsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $1.ListOrganizationsResponse.fromBuffer(value)); + static final _$getOrganizationsWithAccessToLocation = $grpc.ClientMethod<$1.GetOrganizationsWithAccessToLocationRequest, $1.GetOrganizationsWithAccessToLocationResponse>( + '/viam.app.v1.AppService/GetOrganizationsWithAccessToLocation', + ($1.GetOrganizationsWithAccessToLocationRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $1.GetOrganizationsWithAccessToLocationResponse.fromBuffer(value)); static final _$listOrganizationsByUser = $grpc.ClientMethod<$1.ListOrganizationsByUserRequest, $1.ListOrganizationsByUserResponse>( '/viam.app.v1.AppService/ListOrganizationsByUser', ($1.ListOrganizationsByUserRequest value) => value.writeToBuffer(), @@ -241,6 +245,10 @@ class AppServiceClient extends $grpc.Client { '/viam.app.v1.AppService/UpdateRegistryItem', ($1.UpdateRegistryItemRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $1.UpdateRegistryItemResponse.fromBuffer(value)); + static final _$listRegistryItems = $grpc.ClientMethod<$1.ListRegistryItemsRequest, $1.ListRegistryItemsResponse>( + '/viam.app.v1.AppService/ListRegistryItems', + ($1.ListRegistryItemsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $1.ListRegistryItemsResponse.fromBuffer(value)); static final _$createModule = $grpc.ClientMethod<$1.CreateModuleRequest, $1.CreateModuleResponse>( '/viam.app.v1.AppService/CreateModule', ($1.CreateModuleRequest value) => value.writeToBuffer(), @@ -300,6 +308,10 @@ class AppServiceClient extends $grpc.Client { return $createUnaryCall(_$listOrganizations, request, options: options); } + $grpc.ResponseFuture<$1.GetOrganizationsWithAccessToLocationResponse> getOrganizationsWithAccessToLocation($1.GetOrganizationsWithAccessToLocationRequest request, {$grpc.CallOptions? options}) { + return $createUnaryCall(_$getOrganizationsWithAccessToLocation, request, options: options); + } + $grpc.ResponseFuture<$1.ListOrganizationsByUserResponse> listOrganizationsByUser($1.ListOrganizationsByUserRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listOrganizationsByUser, request, options: options); } @@ -508,6 +520,10 @@ class AppServiceClient extends $grpc.Client { return $createUnaryCall(_$updateRegistryItem, request, options: options); } + $grpc.ResponseFuture<$1.ListRegistryItemsResponse> listRegistryItems($1.ListRegistryItemsRequest request, {$grpc.CallOptions? options}) { + return $createUnaryCall(_$listRegistryItems, request, options: options); + } + $grpc.ResponseFuture<$1.CreateModuleResponse> createModule($1.CreateModuleRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createModule, request, options: options); } @@ -575,6 +591,13 @@ abstract class AppServiceBase extends $grpc.Service { false, ($core.List<$core.int> value) => $1.ListOrganizationsRequest.fromBuffer(value), ($1.ListOrganizationsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$1.GetOrganizationsWithAccessToLocationRequest, $1.GetOrganizationsWithAccessToLocationResponse>( + 'GetOrganizationsWithAccessToLocation', + getOrganizationsWithAccessToLocation_Pre, + false, + false, + ($core.List<$core.int> value) => $1.GetOrganizationsWithAccessToLocationRequest.fromBuffer(value), + ($1.GetOrganizationsWithAccessToLocationResponse value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$1.ListOrganizationsByUserRequest, $1.ListOrganizationsByUserResponse>( 'ListOrganizationsByUser', listOrganizationsByUser_Pre, @@ -939,6 +962,13 @@ abstract class AppServiceBase extends $grpc.Service { false, ($core.List<$core.int> value) => $1.UpdateRegistryItemRequest.fromBuffer(value), ($1.UpdateRegistryItemResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$1.ListRegistryItemsRequest, $1.ListRegistryItemsResponse>( + 'ListRegistryItems', + listRegistryItems_Pre, + false, + false, + ($core.List<$core.int> value) => $1.ListRegistryItemsRequest.fromBuffer(value), + ($1.ListRegistryItemsResponse value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$1.CreateModuleRequest, $1.CreateModuleResponse>( 'CreateModule', createModule_Pre, @@ -1023,6 +1053,10 @@ abstract class AppServiceBase extends $grpc.Service { return listOrganizations(call, await request); } + $async.Future<$1.GetOrganizationsWithAccessToLocationResponse> getOrganizationsWithAccessToLocation_Pre($grpc.ServiceCall call, $async.Future<$1.GetOrganizationsWithAccessToLocationRequest> request) async { + return getOrganizationsWithAccessToLocation(call, await request); + } + $async.Future<$1.ListOrganizationsByUserResponse> listOrganizationsByUser_Pre($grpc.ServiceCall call, $async.Future<$1.ListOrganizationsByUserRequest> request) async { return listOrganizationsByUser(call, await request); } @@ -1231,6 +1265,10 @@ abstract class AppServiceBase extends $grpc.Service { return updateRegistryItem(call, await request); } + $async.Future<$1.ListRegistryItemsResponse> listRegistryItems_Pre($grpc.ServiceCall call, $async.Future<$1.ListRegistryItemsRequest> request) async { + return listRegistryItems(call, await request); + } + $async.Future<$1.CreateModuleResponse> createModule_Pre($grpc.ServiceCall call, $async.Future<$1.CreateModuleRequest> request) async { return createModule(call, await request); } @@ -1270,6 +1308,7 @@ abstract class AppServiceBase extends $grpc.Service { $async.Future<$1.GetUserIDByEmailResponse> getUserIDByEmail($grpc.ServiceCall call, $1.GetUserIDByEmailRequest request); $async.Future<$1.CreateOrganizationResponse> createOrganization($grpc.ServiceCall call, $1.CreateOrganizationRequest request); $async.Future<$1.ListOrganizationsResponse> listOrganizations($grpc.ServiceCall call, $1.ListOrganizationsRequest request); + $async.Future<$1.GetOrganizationsWithAccessToLocationResponse> getOrganizationsWithAccessToLocation($grpc.ServiceCall call, $1.GetOrganizationsWithAccessToLocationRequest request); $async.Future<$1.ListOrganizationsByUserResponse> listOrganizationsByUser($grpc.ServiceCall call, $1.ListOrganizationsByUserRequest request); $async.Future<$1.GetOrganizationResponse> getOrganization($grpc.ServiceCall call, $1.GetOrganizationRequest request); $async.Future<$1.GetOrganizationNamespaceAvailabilityResponse> getOrganizationNamespaceAvailability($grpc.ServiceCall call, $1.GetOrganizationNamespaceAvailabilityRequest request); @@ -1322,6 +1361,7 @@ abstract class AppServiceBase extends $grpc.Service { $async.Future<$1.CheckPermissionsResponse> checkPermissions($grpc.ServiceCall call, $1.CheckPermissionsRequest request); $async.Future<$1.CreateRegistryItemResponse> createRegistryItem($grpc.ServiceCall call, $1.CreateRegistryItemRequest request); $async.Future<$1.UpdateRegistryItemResponse> updateRegistryItem($grpc.ServiceCall call, $1.UpdateRegistryItemRequest request); + $async.Future<$1.ListRegistryItemsResponse> listRegistryItems($grpc.ServiceCall call, $1.ListRegistryItemsRequest request); $async.Future<$1.CreateModuleResponse> createModule($grpc.ServiceCall call, $1.CreateModuleRequest request); $async.Future<$1.UpdateModuleResponse> updateModule($grpc.ServiceCall call, $1.UpdateModuleRequest request); $async.Future<$1.UploadModuleFileResponse> uploadModuleFile($grpc.ServiceCall call, $async.Stream<$1.UploadModuleFileRequest> request); diff --git a/lib/src/gen/app/v1/app.pbjson.dart b/lib/src/gen/app/v1/app.pbjson.dart index 6d59d5489a1..20f32301386 100644 --- a/lib/src/gen/app/v1/app.pbjson.dart +++ b/lib/src/gen/app/v1/app.pbjson.dart @@ -13,6 +13,22 @@ import 'dart:convert' as $convert; import 'dart:core' as $core; import 'dart:typed_data' as $typed_data; +@$core.Deprecated('Use registryItemStatusDescriptor instead') +const RegistryItemStatus$json = { + '1': 'RegistryItemStatus', + '2': [ + {'1': 'REGISTRY_ITEM_STATUS_UNSPECIFIED', '2': 0}, + {'1': 'REGISTRY_ITEM_STATUS_PUBLISHED', '2': 1}, + {'1': 'REGISTRY_ITEM_STATUS_IN_DEVELOPMENT', '2': 2}, + ], +}; + +/// Descriptor for `RegistryItemStatus`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List registryItemStatusDescriptor = $convert.base64Decode( + 'ChJSZWdpc3RyeUl0ZW1TdGF0dXMSJAogUkVHSVNUUllfSVRFTV9TVEFUVVNfVU5TUEVDSUZJRU' + 'QQABIiCh5SRUdJU1RSWV9JVEVNX1NUQVRVU19QVUJMSVNIRUQQARInCiNSRUdJU1RSWV9JVEVN' + 'X1NUQVRVU19JTl9ERVZFTE9QTUVOVBAC'); + @$core.Deprecated('Use visibilityDescriptor instead') const Visibility$json = { '1': 'Visibility', @@ -718,6 +734,32 @@ const DeleteLocationResponse$json = { final $typed_data.Uint8List deleteLocationResponseDescriptor = $convert.base64Decode( 'ChZEZWxldGVMb2NhdGlvblJlc3BvbnNl'); +@$core.Deprecated('Use getOrganizationsWithAccessToLocationRequestDescriptor instead') +const GetOrganizationsWithAccessToLocationRequest$json = { + '1': 'GetOrganizationsWithAccessToLocationRequest', + '2': [ + {'1': 'location_id', '3': 1, '4': 1, '5': 9, '10': 'locationId'}, + ], +}; + +/// Descriptor for `GetOrganizationsWithAccessToLocationRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List getOrganizationsWithAccessToLocationRequestDescriptor = $convert.base64Decode( + 'CitHZXRPcmdhbml6YXRpb25zV2l0aEFjY2Vzc1RvTG9jYXRpb25SZXF1ZXN0Eh8KC2xvY2F0aW' + '9uX2lkGAEgASgJUgpsb2NhdGlvbklk'); + +@$core.Deprecated('Use getOrganizationsWithAccessToLocationResponseDescriptor instead') +const GetOrganizationsWithAccessToLocationResponse$json = { + '1': 'GetOrganizationsWithAccessToLocationResponse', + '2': [ + {'1': 'organizations', '3': 1, '4': 3, '5': 11, '6': '.viam.app.v1.Organization', '10': 'organizations'}, + ], +}; + +/// Descriptor for `GetOrganizationsWithAccessToLocationResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List getOrganizationsWithAccessToLocationResponseDescriptor = $convert.base64Decode( + 'CixHZXRPcmdhbml6YXRpb25zV2l0aEFjY2Vzc1RvTG9jYXRpb25SZXNwb25zZRI/Cg1vcmdhbm' + 'l6YXRpb25zGAEgAygLMhkudmlhbS5hcHAudjEuT3JnYW5pemF0aW9uUg1vcmdhbml6YXRpb25z'); + @$core.Deprecated('Use listLocationsRequestDescriptor instead') const ListLocationsRequest$json = { '1': 'ListLocationsRequest', @@ -1735,6 +1777,87 @@ final $typed_data.Uint8List checkPermissionsResponseDescriptor = $convert.base64 'MoCzIiLnZpYW0uYXBwLnYxLkF1dGhvcml6ZWRQZXJtaXNzaW9uc1IVYXV0aG9yaXplZFBlcm1p' 'c3Npb25z'); +@$core.Deprecated('Use moduleVersionDescriptor instead') +const ModuleVersion$json = { + '1': 'ModuleVersion', + '2': [ + {'1': 'version', '3': 1, '4': 1, '5': 9, '10': 'version'}, + {'1': 'files', '3': 2, '4': 3, '5': 11, '6': '.viam.app.v1.Uploads', '10': 'files'}, + {'1': 'models', '3': 3, '4': 3, '5': 11, '6': '.viam.app.v1.Model', '10': 'models'}, + {'1': 'entrypoint', '3': 4, '4': 1, '5': 9, '10': 'entrypoint'}, + ], +}; + +/// Descriptor for `ModuleVersion`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List moduleVersionDescriptor = $convert.base64Decode( + 'Cg1Nb2R1bGVWZXJzaW9uEhgKB3ZlcnNpb24YASABKAlSB3ZlcnNpb24SKgoFZmlsZXMYAiADKA' + 'syFC52aWFtLmFwcC52MS5VcGxvYWRzUgVmaWxlcxIqCgZtb2RlbHMYAyADKAsyEi52aWFtLmFw' + 'cC52MS5Nb2RlbFIGbW9kZWxzEh4KCmVudHJ5cG9pbnQYBCABKAlSCmVudHJ5cG9pbnQ='); + +@$core.Deprecated('Use moduleMetadataDescriptor instead') +const ModuleMetadata$json = { + '1': 'ModuleMetadata', + '2': [ + {'1': 'models', '3': 1, '4': 3, '5': 11, '6': '.viam.app.v1.Model', '10': 'models'}, + {'1': 'versions', '3': 2, '4': 3, '5': 11, '6': '.viam.app.v1.ModuleVersion', '10': 'versions'}, + {'1': 'entrypoint', '3': 3, '4': 1, '5': 9, '10': 'entrypoint'}, + ], +}; + +/// Descriptor for `ModuleMetadata`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List moduleMetadataDescriptor = $convert.base64Decode( + 'Cg5Nb2R1bGVNZXRhZGF0YRIqCgZtb2RlbHMYASADKAsyEi52aWFtLmFwcC52MS5Nb2RlbFIGbW' + '9kZWxzEjYKCHZlcnNpb25zGAIgAygLMhoudmlhbS5hcHAudjEuTW9kdWxlVmVyc2lvblIIdmVy' + 'c2lvbnMSHgoKZW50cnlwb2ludBgDIAEoCVIKZW50cnlwb2ludA=='); + +@$core.Deprecated('Use mLModelMetadataDescriptor instead') +const MLModelMetadata$json = { + '1': 'MLModelMetadata', + '2': [ + {'1': 'versions', '3': 1, '4': 3, '5': 9, '10': 'versions'}, + ], +}; + +/// Descriptor for `MLModelMetadata`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List mLModelMetadataDescriptor = $convert.base64Decode( + 'Cg9NTE1vZGVsTWV0YWRhdGESGgoIdmVyc2lvbnMYASADKAlSCHZlcnNpb25z'); + +@$core.Deprecated('Use registryItemDescriptor instead') +const RegistryItem$json = { + '1': 'RegistryItem', + '2': [ + {'1': 'item_id', '3': 1, '4': 1, '5': 9, '10': 'itemId'}, + {'1': 'organization_id', '3': 2, '4': 1, '5': 9, '10': 'organizationId'}, + {'1': 'public_namespace', '3': 3, '4': 1, '5': 9, '10': 'publicNamespace'}, + {'1': 'name', '3': 4, '4': 1, '5': 9, '10': 'name'}, + {'1': 'type', '3': 5, '4': 1, '5': 14, '6': '.viam.app.packages.v1.PackageType', '10': 'type'}, + {'1': 'visibility', '3': 6, '4': 1, '5': 14, '6': '.viam.app.v1.Visibility', '10': 'visibility'}, + {'1': 'url', '3': 7, '4': 1, '5': 9, '10': 'url'}, + {'1': 'description', '3': 8, '4': 1, '5': 9, '10': 'description'}, + {'1': 'total_robot_usage', '3': 9, '4': 1, '5': 3, '10': 'totalRobotUsage'}, + {'1': 'total_organization_usage', '3': 10, '4': 1, '5': 3, '10': 'totalOrganizationUsage'}, + {'1': 'module_metadata', '3': 11, '4': 1, '5': 11, '6': '.viam.app.v1.ModuleMetadata', '9': 0, '10': 'moduleMetadata'}, + {'1': 'ml_model_metadata', '3': 12, '4': 1, '5': 11, '6': '.viam.app.v1.MLModelMetadata', '9': 0, '10': 'mlModelMetadata'}, + ], + '8': [ + {'1': 'metadata'}, + ], +}; + +/// Descriptor for `RegistryItem`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List registryItemDescriptor = $convert.base64Decode( + 'CgxSZWdpc3RyeUl0ZW0SFwoHaXRlbV9pZBgBIAEoCVIGaXRlbUlkEicKD29yZ2FuaXphdGlvbl' + '9pZBgCIAEoCVIOb3JnYW5pemF0aW9uSWQSKQoQcHVibGljX25hbWVzcGFjZRgDIAEoCVIPcHVi' + 'bGljTmFtZXNwYWNlEhIKBG5hbWUYBCABKAlSBG5hbWUSNQoEdHlwZRgFIAEoDjIhLnZpYW0uYX' + 'BwLnBhY2thZ2VzLnYxLlBhY2thZ2VUeXBlUgR0eXBlEjcKCnZpc2liaWxpdHkYBiABKA4yFy52' + 'aWFtLmFwcC52MS5WaXNpYmlsaXR5Ugp2aXNpYmlsaXR5EhAKA3VybBgHIAEoCVIDdXJsEiAKC2' + 'Rlc2NyaXB0aW9uGAggASgJUgtkZXNjcmlwdGlvbhIqChF0b3RhbF9yb2JvdF91c2FnZRgJIAEo' + 'A1IPdG90YWxSb2JvdFVzYWdlEjgKGHRvdGFsX29yZ2FuaXphdGlvbl91c2FnZRgKIAEoA1IWdG' + '90YWxPcmdhbml6YXRpb25Vc2FnZRJGCg9tb2R1bGVfbWV0YWRhdGEYCyABKAsyGy52aWFtLmFw' + 'cC52MS5Nb2R1bGVNZXRhZGF0YUgAUg5tb2R1bGVNZXRhZGF0YRJKChFtbF9tb2RlbF9tZXRhZG' + 'F0YRgMIAEoCzIcLnZpYW0uYXBwLnYxLk1MTW9kZWxNZXRhZGF0YUgAUg9tbE1vZGVsTWV0YWRh' + 'dGFCCgoIbWV0YWRhdGE='); + @$core.Deprecated('Use createRegistryItemRequestDescriptor instead') const CreateRegistryItemRequest$json = { '1': 'CreateRegistryItemRequest', @@ -1787,6 +1910,49 @@ const UpdateRegistryItemResponse$json = { final $typed_data.Uint8List updateRegistryItemResponseDescriptor = $convert.base64Decode( 'ChpVcGRhdGVSZWdpc3RyeUl0ZW1SZXNwb25zZQ=='); +@$core.Deprecated('Use listRegistryItemsRequestDescriptor instead') +const ListRegistryItemsRequest$json = { + '1': 'ListRegistryItemsRequest', + '2': [ + {'1': 'organization_id', '3': 1, '4': 1, '5': 9, '9': 0, '10': 'organizationId', '17': true}, + {'1': 'types', '3': 2, '4': 3, '5': 14, '6': '.viam.app.packages.v1.PackageType', '10': 'types'}, + {'1': 'visibilities', '3': 3, '4': 3, '5': 14, '6': '.viam.app.v1.Visibility', '10': 'visibilities'}, + {'1': 'platforms', '3': 4, '4': 3, '5': 9, '10': 'platforms'}, + {'1': 'statuses', '3': 5, '4': 3, '5': 14, '6': '.viam.app.v1.RegistryItemStatus', '10': 'statuses'}, + {'1': 'search_term', '3': 6, '4': 1, '5': 9, '9': 1, '10': 'searchTerm', '17': true}, + {'1': 'page_token', '3': 7, '4': 1, '5': 9, '9': 2, '10': 'pageToken', '17': true}, + ], + '8': [ + {'1': '_organization_id'}, + {'1': '_search_term'}, + {'1': '_page_token'}, + ], +}; + +/// Descriptor for `ListRegistryItemsRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List listRegistryItemsRequestDescriptor = $convert.base64Decode( + 'ChhMaXN0UmVnaXN0cnlJdGVtc1JlcXVlc3QSLAoPb3JnYW5pemF0aW9uX2lkGAEgASgJSABSDm' + '9yZ2FuaXphdGlvbklkiAEBEjcKBXR5cGVzGAIgAygOMiEudmlhbS5hcHAucGFja2FnZXMudjEu' + 'UGFja2FnZVR5cGVSBXR5cGVzEjsKDHZpc2liaWxpdGllcxgDIAMoDjIXLnZpYW0uYXBwLnYxLl' + 'Zpc2liaWxpdHlSDHZpc2liaWxpdGllcxIcCglwbGF0Zm9ybXMYBCADKAlSCXBsYXRmb3JtcxI7' + 'CghzdGF0dXNlcxgFIAMoDjIfLnZpYW0uYXBwLnYxLlJlZ2lzdHJ5SXRlbVN0YXR1c1IIc3RhdH' + 'VzZXMSJAoLc2VhcmNoX3Rlcm0YBiABKAlIAVIKc2VhcmNoVGVybYgBARIiCgpwYWdlX3Rva2Vu' + 'GAcgASgJSAJSCXBhZ2VUb2tlbogBAUISChBfb3JnYW5pemF0aW9uX2lkQg4KDF9zZWFyY2hfdG' + 'VybUINCgtfcGFnZV90b2tlbg=='); + +@$core.Deprecated('Use listRegistryItemsResponseDescriptor instead') +const ListRegistryItemsResponse$json = { + '1': 'ListRegistryItemsResponse', + '2': [ + {'1': 'items', '3': 1, '4': 3, '5': 11, '6': '.viam.app.v1.RegistryItem', '10': 'items'}, + ], +}; + +/// Descriptor for `ListRegistryItemsResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List listRegistryItemsResponseDescriptor = $convert.base64Decode( + 'ChlMaXN0UmVnaXN0cnlJdGVtc1Jlc3BvbnNlEi8KBWl0ZW1zGAEgAygLMhkudmlhbS5hcHAudj' + 'EuUmVnaXN0cnlJdGVtUgVpdGVtcw=='); + @$core.Deprecated('Use createModuleRequestDescriptor instead') const CreateModuleRequest$json = { '1': 'CreateModuleRequest', diff --git a/lib/src/gen/google/api/client.pb.dart b/lib/src/gen/google/api/client.pb.dart index 42b29598094..6c3d454b873 100644 --- a/lib/src/gen/google/api/client.pb.dart +++ b/lib/src/gen/google/api/client.pb.dart @@ -1145,6 +1145,7 @@ class MethodSettings extends $pb.GeneratedMessage { factory MethodSettings({ $core.String? selector, MethodSettings_LongRunning? longRunning, + $core.Iterable<$core.String>? autoPopulatedFields, }) { final $result = create(); if (selector != null) { @@ -1153,6 +1154,9 @@ class MethodSettings extends $pb.GeneratedMessage { if (longRunning != null) { $result.longRunning = longRunning; } + if (autoPopulatedFields != null) { + $result.autoPopulatedFields.addAll(autoPopulatedFields); + } return $result; } MethodSettings._() : super(); @@ -1162,6 +1166,7 @@ class MethodSettings extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MethodSettings', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'selector') ..aOM(2, _omitFieldNames ? '' : 'longRunning', subBuilder: MethodSettings_LongRunning.create) + ..pPS(3, _omitFieldNames ? '' : 'autoPopulatedFields') ..hasRequiredFields = false ; @@ -1224,6 +1229,20 @@ class MethodSettings extends $pb.GeneratedMessage { void clearLongRunning() => clearField(2); @$pb.TagNumber(2) MethodSettings_LongRunning ensureLongRunning() => $_ensure(1); + + /// List of top-level fields of the request message, that should be + /// automatically populated by the client libraries based on their + /// (google.api.field_info).format. Currently supported format: UUID4. + /// + /// Example of a YAML configuration: + /// + /// publishing: + /// method_settings: + /// - selector: google.example.v1.ExampleService.CreateExample + /// auto_populated_fields: + /// - request_id + @$pb.TagNumber(3) + $core.List<$core.String> get autoPopulatedFields => $_getList(2); } class Client { diff --git a/lib/src/gen/google/api/client.pbjson.dart b/lib/src/gen/google/api/client.pbjson.dart index af7d347c25f..314c432314e 100644 --- a/lib/src/gen/google/api/client.pbjson.dart +++ b/lib/src/gen/google/api/client.pbjson.dart @@ -296,6 +296,7 @@ const MethodSettings$json = { '2': [ {'1': 'selector', '3': 1, '4': 1, '5': 9, '10': 'selector'}, {'1': 'long_running', '3': 2, '4': 1, '5': 11, '6': '.google.api.MethodSettings.LongRunning', '10': 'longRunning'}, + {'1': 'auto_populated_fields', '3': 3, '4': 3, '5': 9, '10': 'autoPopulatedFields'}, ], '3': [MethodSettings_LongRunning$json], }; @@ -315,10 +316,11 @@ const MethodSettings_LongRunning$json = { final $typed_data.Uint8List methodSettingsDescriptor = $convert.base64Decode( 'Cg5NZXRob2RTZXR0aW5ncxIaCghzZWxlY3RvchgBIAEoCVIIc2VsZWN0b3ISSQoMbG9uZ19ydW' '5uaW5nGAIgASgLMiYuZ29vZ2xlLmFwaS5NZXRob2RTZXR0aW5ncy5Mb25nUnVubmluZ1ILbG9u' - 'Z1J1bm5pbmcalAIKC0xvbmdSdW5uaW5nEkcKEmluaXRpYWxfcG9sbF9kZWxheRgBIAEoCzIZLm' - 'dvb2dsZS5wcm90b2J1Zi5EdXJhdGlvblIQaW5pdGlhbFBvbGxEZWxheRIyChVwb2xsX2RlbGF5' - 'X211bHRpcGxpZXIYAiABKAJSE3BvbGxEZWxheU11bHRpcGxpZXISPwoObWF4X3BvbGxfZGVsYX' - 'kYAyABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SDG1heFBvbGxEZWxheRJHChJ0b3Rh' - 'bF9wb2xsX3RpbWVvdXQYBCABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SEHRvdGFsUG' - '9sbFRpbWVvdXQ='); + 'Z1J1bm5pbmcSMgoVYXV0b19wb3B1bGF0ZWRfZmllbGRzGAMgAygJUhNhdXRvUG9wdWxhdGVkRm' + 'llbGRzGpQCCgtMb25nUnVubmluZxJHChJpbml0aWFsX3BvbGxfZGVsYXkYASABKAsyGS5nb29n' + 'bGUucHJvdG9idWYuRHVyYXRpb25SEGluaXRpYWxQb2xsRGVsYXkSMgoVcG9sbF9kZWxheV9tdW' + 'x0aXBsaWVyGAIgASgCUhNwb2xsRGVsYXlNdWx0aXBsaWVyEj8KDm1heF9wb2xsX2RlbGF5GAMg' + 'ASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUgxtYXhQb2xsRGVsYXkSRwoSdG90YWxfcG' + '9sbF90aW1lb3V0GAQgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUhB0b3RhbFBvbGxU' + 'aW1lb3V0'); diff --git a/lib/src/gen/service/motion/v1/motion.pb.dart b/lib/src/gen/service/motion/v1/motion.pb.dart index a6aeefbf361..17f727980cc 100644 --- a/lib/src/gen/service/motion/v1/motion.pb.dart +++ b/lib/src/gen/service/motion/v1/motion.pb.dart @@ -208,6 +208,195 @@ 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, @@ -1470,8 +1659,7 @@ class GetPlanRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); - /// The name of the component which the MoveOnGlobeRequest - /// asked to be moved. + /// The name of the component which was requested to be moved. @$pb.TagNumber(2) $1.ResourceName get componentName => $_getN(1); @$pb.TagNumber(2) diff --git a/lib/src/gen/service/motion/v1/motion.pbgrpc.dart b/lib/src/gen/service/motion/v1/motion.pbgrpc.dart index a57b63de4cc..89e2be6d19d 100644 --- a/lib/src/gen/service/motion/v1/motion.pbgrpc.dart +++ b/lib/src/gen/service/motion/v1/motion.pbgrpc.dart @@ -30,6 +30,10 @@ 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,6 +77,10 @@ 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,6 +129,13 @@ 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,6 +195,10 @@ 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,6 +229,7 @@ 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.MoveOnGlobeNewResponse> moveOnGlobeNew($grpc.ServiceCall call, $0.MoveOnGlobeNewRequest request); $async.Future<$0.GetPoseResponse> getPose($grpc.ServiceCall call, $0.GetPoseRequest request); diff --git a/lib/src/gen/service/motion/v1/motion.pbjson.dart b/lib/src/gen/service/motion/v1/motion.pbjson.dart index d3533d1e0da..3b9862c0dbd 100644 --- a/lib/src/gen/service/motion/v1/motion.pbjson.dart +++ b/lib/src/gen/service/motion/v1/motion.pbjson.dart @@ -70,6 +70,46 @@ 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'}, + ], + '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' + 'YXRpb26IAQESLQoFZXh0cmEYYyABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0UgVleHRyYU' + 'IXChVfbW90aW9uX2NvbmZpZ3VyYXRpb24='); + +@$core.Deprecated('Use moveOnMapNewResponseDescriptor instead') +const MoveOnMapNewResponse$json = { + '1': 'MoveOnMapNewResponse', + '2': [ + {'1': 'execution_id', '3': 1, '4': 1, '5': 9, '10': 'executionId'}, + ], +}; + +/// Descriptor for `MoveOnMapNewResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List moveOnMapNewResponseDescriptor = $convert.base64Decode( + 'ChRNb3ZlT25NYXBOZXdSZXNwb25zZRIhCgxleGVjdXRpb25faWQYASABKAlSC2V4ZWN1dGlvbk' + 'lk'); + @$core.Deprecated('Use moveOnMapRequestDescriptor instead') const MoveOnMapRequest$json = { '1': 'MoveOnMapRequest',