Skip to content

Commit

Permalink
[WORKFLOW] Updating protos from viamrobotics/api, commit: 6d6a5c629e7…
Browse files Browse the repository at this point in the history
…82fd312ecd5c16bdc1f3969cdfd7c
  • Loading branch information
viambot authored May 22, 2024
1 parent 62ce012 commit 71db4e3
Show file tree
Hide file tree
Showing 8 changed files with 518 additions and 68 deletions.
226 changes: 210 additions & 16 deletions lib/src/gen/app/v1/app.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7559,17 +7559,80 @@ class MLModelMetadata extends $pb.GeneratedMessage {
$core.List<$core.String> get versions => $_getList(0);
}

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

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MLTrainingVersion', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'version')
..aOM<$6.Timestamp>(2, _omitFieldNames ? '' : 'createdOn', subBuilder: $6.Timestamp.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')
MLTrainingVersion clone() => MLTrainingVersion()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
MLTrainingVersion copyWith(void Function(MLTrainingVersion) updates) => super.copyWith((message) => updates(message as MLTrainingVersion)) as MLTrainingVersion;

$pb.BuilderInfo get info_ => _i;

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

@$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);

@$pb.TagNumber(2)
$6.Timestamp get createdOn => $_getN(1);
@$pb.TagNumber(2)
set createdOn($6.Timestamp v) { setField(2, v); }
@$pb.TagNumber(2)
$core.bool hasCreatedOn() => $_has(1);
@$pb.TagNumber(2)
void clearCreatedOn() => clearField(2);
@$pb.TagNumber(2)
$6.Timestamp ensureCreatedOn() => $_ensure(1);
}

class MLTrainingMetadata extends $pb.GeneratedMessage {
factory MLTrainingMetadata({
$core.Iterable<$core.String>? versions,
$0.ModelType? modelType,
$0.ModelFramework? modelFramework,
$core.bool? draft,
$core.Iterable<MLTrainingVersion>? versions,
}) {
final $result = create();
if (versions != null) {
$result.versions.addAll(versions);
}
if (modelType != null) {
$result.modelType = modelType;
}
Expand All @@ -7579,17 +7642,20 @@ class MLTrainingMetadata extends $pb.GeneratedMessage {
if (draft != null) {
$result.draft = draft;
}
if (versions != null) {
$result.versions.addAll(versions);
}
return $result;
}
MLTrainingMetadata._() : super();
factory MLTrainingMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory MLTrainingMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MLTrainingMetadata', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create)
..pPS(1, _omitFieldNames ? '' : 'versions')
..e<$0.ModelType>(2, _omitFieldNames ? '' : 'modelType', $pb.PbFieldType.OE, defaultOrMaker: $0.ModelType.MODEL_TYPE_UNSPECIFIED, valueOf: $0.ModelType.valueOf, enumValues: $0.ModelType.values)
..e<$0.ModelFramework>(3, _omitFieldNames ? '' : 'modelFramework', $pb.PbFieldType.OE, defaultOrMaker: $0.ModelFramework.MODEL_FRAMEWORK_UNSPECIFIED, valueOf: $0.ModelFramework.valueOf, enumValues: $0.ModelFramework.values)
..aOB(4, _omitFieldNames ? '' : 'draft')
..pc<MLTrainingVersion>(5, _omitFieldNames ? '' : 'versions', $pb.PbFieldType.PM, subBuilder: MLTrainingVersion.create)
..hasRequiredFields = false
;

Expand All @@ -7614,36 +7680,36 @@ class MLTrainingMetadata extends $pb.GeneratedMessage {
static MLTrainingMetadata getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<MLTrainingMetadata>(create);
static MLTrainingMetadata? _defaultInstance;

/// A list of package versions for ML training source distribution
@$pb.TagNumber(1)
$core.List<$core.String> get versions => $_getList(0);

@$pb.TagNumber(2)
$0.ModelType get modelType => $_getN(1);
$0.ModelType get modelType => $_getN(0);
@$pb.TagNumber(2)
set modelType($0.ModelType v) { setField(2, v); }
@$pb.TagNumber(2)
$core.bool hasModelType() => $_has(1);
$core.bool hasModelType() => $_has(0);
@$pb.TagNumber(2)
void clearModelType() => clearField(2);

@$pb.TagNumber(3)
$0.ModelFramework get modelFramework => $_getN(2);
$0.ModelFramework get modelFramework => $_getN(1);
@$pb.TagNumber(3)
set modelFramework($0.ModelFramework v) { setField(3, v); }
@$pb.TagNumber(3)
$core.bool hasModelFramework() => $_has(2);
$core.bool hasModelFramework() => $_has(1);
@$pb.TagNumber(3)
void clearModelFramework() => clearField(3);

@$pb.TagNumber(4)
$core.bool get draft => $_getBF(3);
$core.bool get draft => $_getBF(2);
@$pb.TagNumber(4)
set draft($core.bool v) { $_setBool(3, v); }
set draft($core.bool v) { $_setBool(2, v); }
@$pb.TagNumber(4)
$core.bool hasDraft() => $_has(3);
$core.bool hasDraft() => $_has(2);
@$pb.TagNumber(4)
void clearDraft() => clearField(4);

/// A list of package versions for ML training source distribution
@$pb.TagNumber(5)
$core.List<MLTrainingVersion> get versions => $_getList(3);
}

enum RegistryItem_Metadata {
Expand Down Expand Up @@ -10155,6 +10221,134 @@ class DeleteKeyResponse extends $pb.GeneratedMessage {
static DeleteKeyResponse? _defaultInstance;
}

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

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RenameKeyRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'id')
..aOS(2, _omitFieldNames ? '' : 'name')
..hasRequiredFields = false
;

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

$pb.BuilderInfo get info_ => _i;

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

@$pb.TagNumber(1)
$core.String get id => $_getSZ(0);
@$pb.TagNumber(1)
set id($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasId() => $_has(0);
@$pb.TagNumber(1)
void clearId() => clearField(1);

@$pb.TagNumber(2)
$core.String get name => $_getSZ(1);
@$pb.TagNumber(2)
set name($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasName() => $_has(1);
@$pb.TagNumber(2)
void clearName() => clearField(2);
}

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

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RenameKeyResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'id')
..aOS(2, _omitFieldNames ? '' : 'name')
..hasRequiredFields = false
;

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

$pb.BuilderInfo get info_ => _i;

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

@$pb.TagNumber(1)
$core.String get id => $_getSZ(0);
@$pb.TagNumber(1)
set id($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasId() => $_has(0);
@$pb.TagNumber(1)
void clearId() => clearField(1);

@$pb.TagNumber(2)
$core.String get name => $_getSZ(1);
@$pb.TagNumber(2)
set name($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasName() => $_has(1);
@$pb.TagNumber(2)
void clearName() => clearField(2);
}

class AuthorizationDetails extends $pb.GeneratedMessage {
factory AuthorizationDetails({
$core.String? authorizationType,
Expand Down
20 changes: 20 additions & 0 deletions lib/src/gen/app/v1/app.pbgrpc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,10 @@ class AppServiceClient extends $grpc.Client {
'/viam.app.v1.AppService/ListKeys',
($2.ListKeysRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $2.ListKeysResponse.fromBuffer(value));
static final _$renameKey = $grpc.ClientMethod<$2.RenameKeyRequest, $2.RenameKeyResponse>(
'/viam.app.v1.AppService/RenameKey',
($2.RenameKeyRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $2.RenameKeyResponse.fromBuffer(value));
static final _$rotateKey = $grpc.ClientMethod<$2.RotateKeyRequest, $2.RotateKeyResponse>(
'/viam.app.v1.AppService/RotateKey',
($2.RotateKeyRequest value) => value.writeToBuffer(),
Expand Down Expand Up @@ -572,6 +576,10 @@ class AppServiceClient extends $grpc.Client {
return $createUnaryCall(_$listKeys, request, options: options);
}

$grpc.ResponseFuture<$2.RenameKeyResponse> renameKey($2.RenameKeyRequest request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$renameKey, request, options: options);
}

$grpc.ResponseFuture<$2.RotateKeyResponse> rotateKey($2.RotateKeyRequest request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$rotateKey, request, options: options);
}
Expand Down Expand Up @@ -1055,6 +1063,13 @@ abstract class AppServiceBase extends $grpc.Service {
false,
($core.List<$core.int> value) => $2.ListKeysRequest.fromBuffer(value),
($2.ListKeysResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$2.RenameKeyRequest, $2.RenameKeyResponse>(
'RenameKey',
renameKey_Pre,
false,
false,
($core.List<$core.int> value) => $2.RenameKeyRequest.fromBuffer(value),
($2.RenameKeyResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$2.RotateKeyRequest, $2.RotateKeyResponse>(
'RotateKey',
rotateKey_Pre,
Expand Down Expand Up @@ -1335,6 +1350,10 @@ abstract class AppServiceBase extends $grpc.Service {
return listKeys(call, await request);
}

$async.Future<$2.RenameKeyResponse> renameKey_Pre($grpc.ServiceCall call, $async.Future<$2.RenameKeyRequest> request) async {
return renameKey(call, await request);
}

$async.Future<$2.RotateKeyResponse> rotateKey_Pre($grpc.ServiceCall call, $async.Future<$2.RotateKeyRequest> request) async {
return rotateKey(call, await request);
}
Expand Down Expand Up @@ -1410,6 +1429,7 @@ abstract class AppServiceBase extends $grpc.Service {
$async.Future<$2.CreateKeyResponse> createKey($grpc.ServiceCall call, $2.CreateKeyRequest request);
$async.Future<$2.DeleteKeyResponse> deleteKey($grpc.ServiceCall call, $2.DeleteKeyRequest request);
$async.Future<$2.ListKeysResponse> listKeys($grpc.ServiceCall call, $2.ListKeysRequest request);
$async.Future<$2.RenameKeyResponse> renameKey($grpc.ServiceCall call, $2.RenameKeyRequest request);
$async.Future<$2.RotateKeyResponse> rotateKey($grpc.ServiceCall call, $2.RotateKeyRequest request);
$async.Future<$2.CreateKeyFromExistingKeyAuthorizationsResponse> createKeyFromExistingKeyAuthorizations($grpc.ServiceCall call, $2.CreateKeyFromExistingKeyAuthorizationsRequest request);
}
Loading

0 comments on commit 71db4e3

Please sign in to comment.