From 6d2386f6158804ab13cce228a6f6fb34e8257784 Mon Sep 17 00:00:00 2001 From: Dennis Loose Date: Tue, 17 Dec 2024 14:05:54 +0100 Subject: [PATCH] chore: regenerate protobuf files --- .../generated/ratings_features_app.pb.dart | 14 ++++ .../ratings_features_app.pbjson.dart | 4 +- .../generated/ratings_features_user.pb.dart | 78 +++++++------------ .../ratings_features_user.pbjson.dart | 21 ++--- 4 files changed, 51 insertions(+), 66 deletions(-) diff --git a/packages/app_center_ratings_client/lib/src/generated/ratings_features_app.pb.dart b/packages/app_center_ratings_client/lib/src/generated/ratings_features_app.pb.dart index 6f60f4d79..c77f0937c 100644 --- a/packages/app_center_ratings_client/lib/src/generated/ratings_features_app.pb.dart +++ b/packages/app_center_ratings_client/lib/src/generated/ratings_features_app.pb.dart @@ -18,11 +18,15 @@ import 'ratings_features_common.pb.dart' as $4; class GetRatingRequest extends $pb.GeneratedMessage { factory GetRatingRequest({ $core.String? snapId, + $core.String? snapName, }) { final $result = create(); if (snapId != null) { $result.snapId = snapId; } + if (snapName != null) { + $result.snapName = snapName; + } return $result; } GetRatingRequest._() : super(); @@ -31,6 +35,7 @@ class GetRatingRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetRatingRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'ratings.features.app'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'snapId') + ..aOS(2, _omitFieldNames ? '' : 'snapName') ..hasRequiredFields = false ; @@ -63,6 +68,15 @@ class GetRatingRequest extends $pb.GeneratedMessage { $core.bool hasSnapId() => $_has(0); @$pb.TagNumber(1) void clearSnapId() => clearField(1); + + @$pb.TagNumber(2) + $core.String get snapName => $_getSZ(1); + @$pb.TagNumber(2) + set snapName($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasSnapName() => $_has(1); + @$pb.TagNumber(2) + void clearSnapName() => clearField(2); } class GetRatingResponse extends $pb.GeneratedMessage { diff --git a/packages/app_center_ratings_client/lib/src/generated/ratings_features_app.pbjson.dart b/packages/app_center_ratings_client/lib/src/generated/ratings_features_app.pbjson.dart index f2029a358..9e2efca30 100644 --- a/packages/app_center_ratings_client/lib/src/generated/ratings_features_app.pbjson.dart +++ b/packages/app_center_ratings_client/lib/src/generated/ratings_features_app.pbjson.dart @@ -18,12 +18,14 @@ const GetRatingRequest$json = { '1': 'GetRatingRequest', '2': [ {'1': 'snap_id', '3': 1, '4': 1, '5': 9, '10': 'snapId'}, + {'1': 'snap_name', '3': 2, '4': 1, '5': 9, '10': 'snapName'}, ], }; /// Descriptor for `GetRatingRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getRatingRequestDescriptor = $convert.base64Decode( - 'ChBHZXRSYXRpbmdSZXF1ZXN0EhcKB3NuYXBfaWQYASABKAlSBnNuYXBJZA=='); + 'ChBHZXRSYXRpbmdSZXF1ZXN0EhcKB3NuYXBfaWQYASABKAlSBnNuYXBJZBIbCglzbmFwX25hbW' + 'UYAiABKAlSCHNuYXBOYW1l'); @$core.Deprecated('Use getRatingResponseDescriptor instead') const GetRatingResponse$json = { diff --git a/packages/app_center_ratings_client/lib/src/generated/ratings_features_user.pb.dart b/packages/app_center_ratings_client/lib/src/generated/ratings_features_user.pb.dart index 10de52835..5cdea4d24 100644 --- a/packages/app_center_ratings_client/lib/src/generated/ratings_features_user.pb.dart +++ b/packages/app_center_ratings_client/lib/src/generated/ratings_features_user.pb.dart @@ -115,56 +115,6 @@ class AuthenticateResponse extends $pb.GeneratedMessage { void clearToken() => clearField(1); } -class ListMyVotesRequest extends $pb.GeneratedMessage { - factory ListMyVotesRequest({ - $core.String? snapIdFilter, - }) { - final $result = create(); - if (snapIdFilter != null) { - $result.snapIdFilter = snapIdFilter; - } - return $result; - } - ListMyVotesRequest._() : super(); - factory ListMyVotesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ListMyVotesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListMyVotesRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'ratings.features.user'), createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'snapIdFilter') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ListMyVotesRequest clone() => ListMyVotesRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ListMyVotesRequest copyWith(void Function(ListMyVotesRequest) updates) => super.copyWith((message) => updates(message as ListMyVotesRequest)) as ListMyVotesRequest; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static ListMyVotesRequest create() => ListMyVotesRequest._(); - ListMyVotesRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static ListMyVotesRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static ListMyVotesRequest? _defaultInstance; - - @$pb.TagNumber(1) - $core.String get snapIdFilter => $_getSZ(0); - @$pb.TagNumber(1) - set snapIdFilter($core.String v) { $_setString(0, v); } - @$pb.TagNumber(1) - $core.bool hasSnapIdFilter() => $_has(0); - @$pb.TagNumber(1) - void clearSnapIdFilter() => clearField(1); -} - class ListMyVotesResponse extends $pb.GeneratedMessage { factory ListMyVotesResponse({ $core.Iterable? votes, @@ -212,11 +162,15 @@ class ListMyVotesResponse extends $pb.GeneratedMessage { class GetSnapVotesRequest extends $pb.GeneratedMessage { factory GetSnapVotesRequest({ $core.String? snapId, + $core.String? snapName, }) { final $result = create(); if (snapId != null) { $result.snapId = snapId; } + if (snapName != null) { + $result.snapName = snapName; + } return $result; } GetSnapVotesRequest._() : super(); @@ -225,6 +179,7 @@ class GetSnapVotesRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetSnapVotesRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'ratings.features.user'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'snapId') + ..aOS(2, _omitFieldNames ? '' : 'snapName') ..hasRequiredFields = false ; @@ -257,6 +212,15 @@ class GetSnapVotesRequest extends $pb.GeneratedMessage { $core.bool hasSnapId() => $_has(0); @$pb.TagNumber(1) void clearSnapId() => clearField(1); + + @$pb.TagNumber(2) + $core.String get snapName => $_getSZ(1); + @$pb.TagNumber(2) + set snapName($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasSnapName() => $_has(1); + @$pb.TagNumber(2) + void clearSnapName() => clearField(2); } class GetSnapVotesResponse extends $pb.GeneratedMessage { @@ -416,6 +380,7 @@ class VoteRequest extends $pb.GeneratedMessage { $core.String? snapId, $core.int? snapRevision, $core.bool? voteUp, + $core.String? snapName, }) { final $result = create(); if (snapId != null) { @@ -427,6 +392,9 @@ class VoteRequest extends $pb.GeneratedMessage { if (voteUp != null) { $result.voteUp = voteUp; } + if (snapName != null) { + $result.snapName = snapName; + } return $result; } VoteRequest._() : super(); @@ -437,6 +405,7 @@ class VoteRequest extends $pb.GeneratedMessage { ..aOS(1, _omitFieldNames ? '' : 'snapId') ..a<$core.int>(2, _omitFieldNames ? '' : 'snapRevision', $pb.PbFieldType.O3) ..aOB(3, _omitFieldNames ? '' : 'voteUp') + ..aOS(4, _omitFieldNames ? '' : 'snapName') ..hasRequiredFields = false ; @@ -487,6 +456,15 @@ class VoteRequest extends $pb.GeneratedMessage { $core.bool hasVoteUp() => $_has(2); @$pb.TagNumber(3) void clearVoteUp() => clearField(3); + + @$pb.TagNumber(4) + $core.String get snapName => $_getSZ(3); + @$pb.TagNumber(4) + set snapName($core.String v) { $_setString(3, v); } + @$pb.TagNumber(4) + $core.bool hasSnapName() => $_has(3); + @$pb.TagNumber(4) + void clearSnapName() => clearField(4); } diff --git a/packages/app_center_ratings_client/lib/src/generated/ratings_features_user.pbjson.dart b/packages/app_center_ratings_client/lib/src/generated/ratings_features_user.pbjson.dart index e4a07c4a6..4758cdaa7 100644 --- a/packages/app_center_ratings_client/lib/src/generated/ratings_features_user.pbjson.dart +++ b/packages/app_center_ratings_client/lib/src/generated/ratings_features_user.pbjson.dart @@ -37,19 +37,6 @@ const AuthenticateResponse$json = { final $typed_data.Uint8List authenticateResponseDescriptor = $convert.base64Decode( 'ChRBdXRoZW50aWNhdGVSZXNwb25zZRIUCgV0b2tlbhgBIAEoCVIFdG9rZW4='); -@$core.Deprecated('Use listMyVotesRequestDescriptor instead') -const ListMyVotesRequest$json = { - '1': 'ListMyVotesRequest', - '2': [ - {'1': 'snap_id_filter', '3': 1, '4': 1, '5': 9, '10': 'snapIdFilter'}, - ], -}; - -/// Descriptor for `ListMyVotesRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List listMyVotesRequestDescriptor = $convert.base64Decode( - 'ChJMaXN0TXlWb3Rlc1JlcXVlc3QSJAoOc25hcF9pZF9maWx0ZXIYASABKAlSDHNuYXBJZEZpbH' - 'Rlcg=='); - @$core.Deprecated('Use listMyVotesResponseDescriptor instead') const ListMyVotesResponse$json = { '1': 'ListMyVotesResponse', @@ -68,12 +55,14 @@ const GetSnapVotesRequest$json = { '1': 'GetSnapVotesRequest', '2': [ {'1': 'snap_id', '3': 1, '4': 1, '5': 9, '10': 'snapId'}, + {'1': 'snap_name', '3': 2, '4': 1, '5': 9, '10': 'snapName'}, ], }; /// Descriptor for `GetSnapVotesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getSnapVotesRequestDescriptor = $convert.base64Decode( - 'ChNHZXRTbmFwVm90ZXNSZXF1ZXN0EhcKB3NuYXBfaWQYASABKAlSBnNuYXBJZA=='); + 'ChNHZXRTbmFwVm90ZXNSZXF1ZXN0EhcKB3NuYXBfaWQYASABKAlSBnNuYXBJZBIbCglzbmFwX2' + '5hbWUYAiABKAlSCHNuYXBOYW1l'); @$core.Deprecated('Use getSnapVotesResponseDescriptor instead') const GetSnapVotesResponse$json = { @@ -114,11 +103,13 @@ const VoteRequest$json = { {'1': 'snap_id', '3': 1, '4': 1, '5': 9, '10': 'snapId'}, {'1': 'snap_revision', '3': 2, '4': 1, '5': 5, '10': 'snapRevision'}, {'1': 'vote_up', '3': 3, '4': 1, '5': 8, '10': 'voteUp'}, + {'1': 'snap_name', '3': 4, '4': 1, '5': 9, '10': 'snapName'}, ], }; /// Descriptor for `VoteRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List voteRequestDescriptor = $convert.base64Decode( 'CgtWb3RlUmVxdWVzdBIXCgdzbmFwX2lkGAEgASgJUgZzbmFwSWQSIwoNc25hcF9yZXZpc2lvbh' - 'gCIAEoBVIMc25hcFJldmlzaW9uEhcKB3ZvdGVfdXAYAyABKAhSBnZvdGVVcA=='); + 'gCIAEoBVIMc25hcFJldmlzaW9uEhcKB3ZvdGVfdXAYAyABKAhSBnZvdGVVcBIbCglzbmFwX25h' + 'bWUYBCABKAlSCHNuYXBOYW1l');