Skip to content

Commit

Permalink
Remove data type from PaymentMethod protobuf message (#1011)
Browse files Browse the repository at this point in the history
* check pro user on vpn page

* check pro user on vpn page

* update PaymentMethod protobuf message

* update PaymentMethod protobuf message
  • Loading branch information
atavism authored Mar 11, 2024
1 parent 631fba0 commit b7abbb4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 29 deletions.
12 changes: 2 additions & 10 deletions lib/vpn/protos_shared/vpn.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -571,16 +571,12 @@ class Plan extends $pb.GeneratedMessage {
class PaymentProviders extends $pb.GeneratedMessage {
factory PaymentProviders({
$core.String? name,
$core.Map<$core.String, $core.String>? data,
$core.Iterable<$core.String>? logoUrls,
}) {
final $result = create();
if (name != null) {
$result.name = name;
}
if (data != null) {
$result.data.addAll(data);
}
if (logoUrls != null) {
$result.logoUrls.addAll(logoUrls);
}
Expand All @@ -592,8 +588,7 @@ class PaymentProviders extends $pb.GeneratedMessage {

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PaymentProviders', createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'name')
..m<$core.String, $core.String>(2, _omitFieldNames ? '' : 'data', entryClassName: 'PaymentProviders.DataEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS)
..pPS(3, _omitFieldNames ? '' : 'logoUrls', protoName: 'logoUrls')
..pPS(2, _omitFieldNames ? '' : 'logoUrls', protoName: 'logoUrls')
..hasRequiredFields = false
;

Expand Down Expand Up @@ -628,10 +623,7 @@ class PaymentProviders extends $pb.GeneratedMessage {
void clearName() => clearField(1);

@$pb.TagNumber(2)
$core.Map<$core.String, $core.String> get data => $_getMap(1);

@$pb.TagNumber(3)
$core.List<$core.String> get logoUrls => $_getList(2);
$core.List<$core.String> get logoUrls => $_getList(1);
}

class PaymentMethod extends $pb.GeneratedMessage {
Expand Down
20 changes: 3 additions & 17 deletions lib/vpn/protos_shared/vpn.pbjson.dart
Original file line number Diff line number Diff line change
Expand Up @@ -133,28 +133,14 @@ const PaymentProviders$json = {
'1': 'PaymentProviders',
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'data', '3': 2, '4': 3, '5': 11, '6': '.PaymentProviders.DataEntry', '10': 'data'},
{'1': 'logoUrls', '3': 3, '4': 3, '5': 9, '10': 'logoUrls'},
{'1': 'logoUrls', '3': 2, '4': 3, '5': 9, '10': 'logoUrls'},
],
'3': [PaymentProviders_DataEntry$json],
};

@$core.Deprecated('Use paymentProvidersDescriptor instead')
const PaymentProviders_DataEntry$json = {
'1': 'DataEntry',
'2': [
{'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
{'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'},
],
'7': {'7': true},
};

/// Descriptor for `PaymentProviders`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List paymentProvidersDescriptor = $convert.base64Decode(
'ChBQYXltZW50UHJvdmlkZXJzEhIKBG5hbWUYASABKAlSBG5hbWUSLwoEZGF0YRgCIAMoCzIbLl'
'BheW1lbnRQcm92aWRlcnMuRGF0YUVudHJ5UgRkYXRhEhoKCGxvZ29VcmxzGAMgAygJUghsb2dv'
'VXJscxo3CglEYXRhRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbH'
'VlOgI4AQ==');
'ChBQYXltZW50UHJvdmlkZXJzEhIKBG5hbWUYASABKAlSBG5hbWUSGgoIbG9nb1VybHMYAiADKA'
'lSCGxvZ29Vcmxz');

@$core.Deprecated('Use paymentMethodDescriptor instead')
const PaymentMethod$json = {
Expand Down
3 changes: 1 addition & 2 deletions protos_shared/vpn.proto
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ message Plan {

message PaymentProviders {
string name = 1;
map<string, string> data = 2;
repeated string logoUrls = 3;
repeated string logoUrls = 2;
}

message PaymentMethod {
Expand Down

0 comments on commit b7abbb4

Please sign in to comment.