Skip to content

Commit

Permalink
chore: regenerate protobuf files
Browse files Browse the repository at this point in the history
  • Loading branch information
d-loose committed Dec 17, 2024
1 parent 5ccf6fd commit 6d2386f
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 66 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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
;

Expand Down Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<ListMyVotesRequest> createRepeated() => $pb.PbList<ListMyVotesRequest>();
@$core.pragma('dart2js:noInline')
static ListMyVotesRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ListMyVotesRequest>(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<Vote>? votes,
Expand Down Expand Up @@ -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();
Expand All @@ -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
;

Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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) {
Expand All @@ -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();
Expand All @@ -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
;

Expand Down Expand Up @@ -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);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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 = {
Expand Down Expand Up @@ -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');

0 comments on commit 6d2386f

Please sign in to comment.