From 36e11c206c775878b16e516c7898c3bfa8e9d7fb Mon Sep 17 00:00:00 2001 From: otsmr Date: Mon, 8 Dec 2025 00:06:45 +0100 Subject: [PATCH] add qr view #327 --- assets/images/default_avatar.png | Bin 0 -> 2693 bytes dependencies | 2 +- ios/Podfile | 2 +- ios/Podfile.lock | 65 +- .../protobuf/api/http/http_requests.pb.dart | 762 +++-- .../api/http/http_requests.pbenum.dart | 16 +- .../api/http/http_requests.pbjson.dart | 123 +- .../api/websocket/client_to_server.pb.dart | 2906 ++++++++++------- .../websocket/client_to_server.pbenum.dart | 16 +- .../websocket/client_to_server.pbjson.dart | 462 ++- .../protobuf/api/websocket/error.pb.dart | 18 +- .../protobuf/api/websocket/error.pbenum.dart | 134 +- .../protobuf/api/websocket/error.pbjson.dart | 16 +- .../api/websocket/server_to_client.pb.dart | 1968 +++++------ .../websocket/server_to_client.pbenum.dart | 54 +- .../websocket/server_to_client.pbjson.dart | 474 ++- .../protobuf/client/generated/backup.pb.dart | 179 +- .../client/generated/backup.pbenum.dart | 16 +- .../client/generated/backup.pbjson.dart | 31 +- .../protobuf/client/generated/groups.pb.dart | 272 +- .../client/generated/groups.pbenum.dart | 33 +- .../client/generated/groups.pbjson.dart | 59 +- .../client/generated/messages.pb.dart | 1693 +++++----- .../client/generated/messages.pbenum.dart | 187 +- .../client/generated/messages.pbjson.dart | 490 ++- .../generated/push_notification.pb.dart | 395 +-- .../generated/push_notification.pbenum.dart | 65 +- .../generated/push_notification.pbjson.dart | 63 +- .../protobuf/client/generated/qr.pb.dart | 228 ++ .../protobuf/client/generated/qr.pbenum.dart | 34 + .../protobuf/client/generated/qr.pbjson.dart | 80 + lib/src/model/protobuf/client/qr.proto | 19 + lib/src/utils/avatars.dart | 24 +- lib/src/utils/qr.dart | 47 + .../painters/barcode_detector_painter.dart | 10 +- lib/src/views/chats/chat_list.view.dart | 50 +- lib/src/views/public_profile.view.dart | 102 + pubspec.lock | 9 +- pubspec.yaml | 4 +- scripts/generate_proto.sh | 1 + 40 files changed, 6976 insertions(+), 4133 deletions(-) create mode 100644 assets/images/default_avatar.png create mode 100644 lib/src/model/protobuf/client/generated/qr.pb.dart create mode 100644 lib/src/model/protobuf/client/generated/qr.pbenum.dart create mode 100644 lib/src/model/protobuf/client/generated/qr.pbjson.dart create mode 100644 lib/src/model/protobuf/client/qr.proto create mode 100644 lib/src/utils/qr.dart create mode 100644 lib/src/views/public_profile.view.dart diff --git a/assets/images/default_avatar.png b/assets/images/default_avatar.png new file mode 100644 index 0000000000000000000000000000000000000000..d3260cbe68a618d44a0b0b82b8aa3764516e2d03 GIT binary patch literal 2693 zcmbuAdo)yQ8^C8!?zs##rU+4@k!u}FX3WUAO@p~pQS_mbsC-8qx#WHuMfS{yacxYD zln_Y@VGQOlZl#b^I=Z>^mE>%k*7?4*zO&9BXRSSZz0dRfp5ODnd+)U-k$`tlltait zAP_}I9M&BIfy#hCxQry2$^H(IArOfYf(y|e3?WNPkxP*z9uL(Rd90I367w9NT=s6v zBekZvE{9q8=4+m9mr0#WLN}Pqacj?{f%&f7gQ9F&8=KUT<<-fgc3mU&WP7%;sU2A$ zN$<*`c4w2?*>u5G3J42x=-mKGa20H%2-&1AfY!mH2(m$vCS+5(08$5w3Wh>9wF{th zutJJiRs6saR2SZ+I0Wq?GMH2v^oGfI~gaAdrA`5_(E*4n`Pz9hL0AZ?-MG-E; z)E_YQf8kXUWIz>F$fO9Ew!$ojU{-XUs{@;s#B41is;%jDtpD<+fj62=~0+o=ITC-MKMpjNiah;N~ zDojm%{RX%OV&f)Ft+0{_Z)|$_sJW%} zaa((bpi|h@-6Q(7w@=(ZFgP^)=c8leFD52my?!(G_P6PG?>~I}G&4Il|M@>( zzAk)Q{I0-z2L;axJ>u+u9Xl-3T>^ou&3DA2iExeSrsRuRXEmiibPxGR+cSKP6Dw03 zGXd)QF@4IUx0&&at%h`&F78cSW{G?6oeYCsCw=3iNj0g7b+R7rragV!{;nPCYD3TO zyXdrps`xZC^DUzL^TN#Mh(|MfyZ`EPM%D52i(jCYdJ<3U%d;`El9nHfllAOK(eoEPfSN0r z-l8;0&9U}t#Qc^@co*;2s_P#W$cD2|_85&c!ELOePQ`h?W#1WbPNkYDv~9%Uj=@C< zxy8t}CnBv~{SbtpOJ?Q{{@D3sLh&bMMXQ{st&Ihy<%A+rjwxEQ518Gj_;qxz|3^q_ zos!dqJE+1>p&YxZpAqwRa)`2`)6V&*z=YO@+~^C*0cgpIw}opKl`C?|Uh;3|dy^WJ z`E@v>Br#*!n0^a-OEX`;0$t@CAoRjjXZ1goY+u*Q+9z`^BC%iXI*Pxa-Uqo`-CMAr zGoXzOS3FYu*k43NxQj)+WF4^`eeM^W*zU$I6c10I+lV_GNj{6=MbO3arO!Ad2OaT3 z)s$WlBA@h#VR+z1tF}5ahFGQGE;7T}3;qang(rp_1oI;_$$&tuohHy&zJ{`&*Z^i$ zClOsH4*=da%~TB&bW@0o+nx@r-*N3n##>Kp!*Y=(KCuW~@HSYOwBGAuQ`t0S`Fezf)Ri1_;zrcJKtdK(rL&nCvN$$u?PcTNgac2g4liq3{oPs0a zPUw4ZRYXn>5i-Wc#8++g;2>pQ4FQPcw1(4kqs zrkj%+4`51XVJRZMMW542pA*A|9GWw;(%{sk5Jg(+=wVkv#XEy7d(7n50exB~mq+tM z$Ku{cw8`L+m&{A5vwy-D$Co_R&;A_Zb*Mp=U%J`X|1rxW_&^IHuBt>L=m;)Y9TR;6 zuIkmo7&VNOqL}K{Ch0Vh6lD2-TQcIUFKameD))X({B5f=Pvbq`&OOh)7FMx%PF;-` z6gX|w0xaHnmF>F0F1_8^I=vSNvu16@MDd=iTklW(K6JKMd$?I_V^4S6doxhCsLpr6 zHbC?t<}BlN5?>W*^u9daVqo4(W#=J9$NO`eV4)w_jB)vcP?*|Yn!K#x?mVA|A+~(% zxbbEV1VhoKG5b~R4NeNQ(TBA-a7<_h;MqlBJQdT9VWnDvOguh2QgQB``x_2jnF;TEqH#BIVj)2s?YMwEg}K(XQHCdR2u zuG1SixTz1LV^jGhS$1hxy7z;WO=2q>&5sM3>fs8N?9GJyPXj77uek0?N9HvR&svVp zsb+<1Rnk#+Cb!`0OZz<%MEZU_5)X5s+M{woh23e(9sGc8_Om1%-|rR9rSCpsR*n

Wa@iNKN2p zts9JcotrONr!w;Vb!56SP5oLhw4g2t52SO0N?_zIygZSttvxZlM|O|0_>i^F?t-c7 zuy7UeY3ng0b}r0%Os(K6fN#^~-9GbB14}A^IVB{ep@?Us3JSI;t7}GaU&~ 7.0.0) + - google_mlkit_commons (0.11.0): + - Flutter + - MLKitVision - GoogleAdsOnDeviceConversion (3.1.0): - GoogleUtilities/Environment (~> 8.1) - GoogleUtilities/Logger (~> 8.1) @@ -157,6 +162,16 @@ PODS: - GoogleDataTransport (10.1.0): - nanopb (~> 3.30910.0) - PromisesObjC (~> 2.4) + - GoogleMLKit/BarcodeScanning (7.0.0): + - GoogleMLKit/MLKitCore + - MLKitBarcodeScanning (~> 6.0.0) + - GoogleMLKit/MLKitCore (7.0.0): + - MLKitCommon (~> 12.0.0) + - GoogleToolboxForMac/Defines (4.2.1) + - GoogleToolboxForMac/Logger (4.2.1): + - GoogleToolboxForMac/Defines (= 4.2.1) + - "GoogleToolboxForMac/NSData+zlib (4.2.1)": + - GoogleToolboxForMac/Defines (= 4.2.1) - GoogleUtilities (8.1.0): - GoogleUtilities/AppDelegateSwizzler (= 8.1.0) - GoogleUtilities/Environment (= 8.1.0) @@ -197,6 +212,7 @@ PODS: - GoogleUtilities/UserDefaults (8.1.0): - GoogleUtilities/Logger - GoogleUtilities/Privacy + - GTMSessionFetcher/Core (3.5.0) - image_picker_ios (0.0.1): - Flutter - libwebp (1.5.0): @@ -217,6 +233,23 @@ PODS: - Mantle (2.2.0): - Mantle/extobjc (= 2.2.0) - Mantle/extobjc (2.2.0) + - MLImage (1.0.0-beta6) + - MLKitBarcodeScanning (6.0.0): + - MLKitCommon (~> 12.0) + - MLKitVision (~> 8.0) + - MLKitCommon (12.0.0): + - GoogleDataTransport (~> 10.0) + - GoogleToolboxForMac/Logger (< 5.0, >= 4.2.1) + - "GoogleToolboxForMac/NSData+zlib (< 5.0, >= 4.2.1)" + - GoogleUtilities/Logger (~> 8.0) + - GoogleUtilities/UserDefaults (~> 8.0) + - GTMSessionFetcher/Core (< 4.0, >= 3.3.2) + - MLKitVision (8.0.0): + - GoogleToolboxForMac/Logger (< 5.0, >= 4.2.1) + - "GoogleToolboxForMac/NSData+zlib (< 5.0, >= 4.2.1)" + - GTMSessionFetcher/Core (< 4.0, >= 3.3.2) + - MLImage (= 1.0.0-beta6) + - MLKitCommon (~> 12.0) - nanopb (3.30910.0): - nanopb/decode (= 3.30910.0) - nanopb/encode (= 3.30910.0) @@ -312,8 +345,9 @@ DEPENDENCIES: - flutter_local_notifications (from `.symlinks/plugins/flutter_local_notifications/ios`) - flutter_secure_storage_darwin (from `.symlinks/plugins/flutter_secure_storage_darwin/darwin`) - flutter_volume_controller (from `.symlinks/plugins/flutter_volume_controller/ios`) - - flutter_zxing (from `.symlinks/plugins/flutter_zxing/ios`) - gal (from `.symlinks/plugins/gal/darwin`) + - google_mlkit_barcode_scanning (from `.symlinks/plugins/google_mlkit_barcode_scanning/ios`) + - google_mlkit_commons (from `.symlinks/plugins/google_mlkit_commons/ios`) - GoogleUtilities - image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`) - local_auth_darwin (from `.symlinks/plugins/local_auth_darwin/darwin`) @@ -345,9 +379,16 @@ SPEC REPOS: - GoogleAdsOnDeviceConversion - GoogleAppMeasurement - GoogleDataTransport + - GoogleMLKit + - GoogleToolboxForMac - GoogleUtilities + - GTMSessionFetcher - libwebp - Mantle + - MLImage + - MLKitBarcodeScanning + - MLKitCommon + - MLKitVision - nanopb - PromisesObjC - ScreenProtectorKit @@ -393,10 +434,12 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/flutter_secure_storage_darwin/darwin" flutter_volume_controller: :path: ".symlinks/plugins/flutter_volume_controller/ios" - flutter_zxing: - :path: ".symlinks/plugins/flutter_zxing/ios" gal: :path: ".symlinks/plugins/gal/darwin" + google_mlkit_barcode_scanning: + :path: ".symlinks/plugins/google_mlkit_barcode_scanning/ios" + google_mlkit_commons: + :path: ".symlinks/plugins/google_mlkit_commons/ios" image_picker_ios: :path: ".symlinks/plugins/image_picker_ios/ios" local_auth_darwin: @@ -454,16 +497,24 @@ SPEC CHECKSUMS: flutter_local_notifications: a5a732f069baa862e728d839dd2ebb904737effb flutter_secure_storage_darwin: ce237a8775b39723566dc72571190a3769d70468 flutter_volume_controller: c2be490cb0487e8b88d0d9fc2b7e1c139a4ebccb - flutter_zxing: e8bcc43bd3056c70c271b732ed94e7a16fd62f93 gal: baecd024ebfd13c441269ca7404792a7152fde89 + google_mlkit_barcode_scanning: 8f5987f244a43fe1167689c548342a5174108159 + google_mlkit_commons: 2abe6a70e1824e431d16a51085cb475b672c8aab GoogleAdsOnDeviceConversion: e03a386840803ea7eef3fd22a061930142c039c1 GoogleAppMeasurement: 1e718274b7e015cefd846ac1fcf7820c70dc017d GoogleDataTransport: aae35b7ea0c09004c3797d53c8c41f66f219d6a7 + GoogleMLKit: eff9e23ec1d90ea4157a1ee2e32a4f610c5b3318 + GoogleToolboxForMac: d1a2cbf009c453f4d6ded37c105e2f67a32206d8 GoogleUtilities: 00c88b9a86066ef77f0da2fab05f65d7768ed8e1 + GTMSessionFetcher: 5aea5ba6bd522a239e236100971f10cb71b96ab6 image_picker_ios: e0ece4aa2a75771a7de3fa735d26d90817041326 libwebp: 02b23773aedb6ff1fd38cec7a77b81414c6842a8 local_auth_darwin: c3ee6cce0a8d56be34c8ccb66ba31f7f180aaebb Mantle: c5aa8794a29a022dfbbfc9799af95f477a69b62d + MLImage: 0ad1c5f50edd027672d8b26b0fee78a8b4a0fc56 + MLKitBarcodeScanning: 0a3064da0a7f49ac24ceb3cb46a5bc67496facd2 + MLKitCommon: 07c2c33ae5640e5380beaaa6e4b9c249a205542d + MLKitVision: 45e79d68845a2de77e2dd4d7f07947f0ed157b0e nanopb: fad817b59e0457d11a5dfbde799381cd727c1275 no_screenshot: 6d183496405a3ab709a67a54e5cd0f639e94729e objective_c: 89e720c30d716b036faf9c9684022048eee1eee2 @@ -487,6 +538,6 @@ SPEC CHECKSUMS: url_launcher_ios: 7a95fa5b60cc718a708b8f2966718e93db0cef1b video_player_avfoundation: dd410b52df6d2466a42d28550e33e4146928280a -PODFILE CHECKSUM: 47470fbd5b59affa461eaf943ac57acce81e0ee8 +PODFILE CHECKSUM: c0c524475498435108850efecde62ba98e081c25 COCOAPODS: 1.16.2 diff --git a/lib/src/model/protobuf/api/http/http_requests.pb.dart b/lib/src/model/protobuf/api/http/http_requests.pb.dart index cb5f517..7a55250 100644 --- a/lib/src/model/protobuf/api/http/http_requests.pb.dart +++ b/lib/src/model/protobuf/api/http/http_requests.pb.dart @@ -1,95 +1,101 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: api/http/http_requests.proto -// -// @dart = 2.12 +// Generated from api/http/http_requests.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names import 'dart:core' as $core; import 'package:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; +export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; + class TextMessage extends $pb.GeneratedMessage { factory TextMessage({ $fixnum.Int64? userId, $core.List<$core.int>? body, $core.List<$core.int>? pushData, }) { - final $result = create(); - if (userId != null) { - $result.userId = userId; - } - if (body != null) { - $result.body = body; - } - if (pushData != null) { - $result.pushData = pushData; - } - return $result; + final result = create(); + if (userId != null) result.userId = userId; + if (body != null) result.body = body; + if (pushData != null) result.pushData = pushData; + return result; } - TextMessage._() : super(); - factory TextMessage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory TextMessage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TextMessage', package: const $pb.PackageName(_omitMessageNames ? '' : 'http_requests'), createEmptyInstance: create) + TextMessage._(); + + factory TextMessage.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory TextMessage.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TextMessage', + package: const $pb.PackageName(_omitMessageNames ? '' : 'http_requests'), + createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'userId') - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'body', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'pushData', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'body', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'pushData', $pb.PbFieldType.OY) + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') TextMessage clone() => TextMessage()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TextMessage copyWith(void Function(TextMessage) updates) => super.copyWith((message) => updates(message as TextMessage)) as TextMessage; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + TextMessage copyWith(void Function(TextMessage) updates) => + super.copyWith((message) => updates(message as TextMessage)) + as TextMessage; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static TextMessage create() => TextMessage._(); + @$core.override TextMessage createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static TextMessage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static TextMessage getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static TextMessage? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get userId => $_getI64(0); @$pb.TagNumber(1) - set userId($fixnum.Int64 v) { $_setInt64(0, v); } + set userId($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasUserId() => $_has(0); @$pb.TagNumber(1) - void clearUserId() => clearField(1); + void clearUserId() => $_clearField(1); @$pb.TagNumber(2) $core.List<$core.int> get body => $_getN(1); @$pb.TagNumber(2) - set body($core.List<$core.int> v) { $_setBytes(1, v); } + set body($core.List<$core.int> value) => $_setBytes(1, value); @$pb.TagNumber(2) $core.bool hasBody() => $_has(1); @$pb.TagNumber(2) - void clearBody() => clearField(2); + void clearBody() => $_clearField(2); @$pb.TagNumber(3) $core.List<$core.int> get pushData => $_getN(2); @$pb.TagNumber(3) - set pushData($core.List<$core.int> v) { $_setBytes(2, v); } + set pushData($core.List<$core.int> value) => $_setBytes(2, value); @$pb.TagNumber(3) $core.bool hasPushData() => $_has(2); @$pb.TagNumber(3) - void clearPushData() => clearField(3); + void clearPushData() => $_clearField(3); } class UploadRequest extends $pb.GeneratedMessage { @@ -98,64 +104,71 @@ class UploadRequest extends $pb.GeneratedMessage { $core.Iterable<$core.List<$core.int>>? downloadTokens, $core.Iterable? messagesOnSuccess, }) { - final $result = create(); - if (encryptedData != null) { - $result.encryptedData = encryptedData; - } - if (downloadTokens != null) { - $result.downloadTokens.addAll(downloadTokens); - } - if (messagesOnSuccess != null) { - $result.messagesOnSuccess.addAll(messagesOnSuccess); - } - return $result; + final result = create(); + if (encryptedData != null) result.encryptedData = encryptedData; + if (downloadTokens != null) result.downloadTokens.addAll(downloadTokens); + if (messagesOnSuccess != null) + result.messagesOnSuccess.addAll(messagesOnSuccess); + return result; } - UploadRequest._() : super(); - factory UploadRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory UploadRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UploadRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'http_requests'), createEmptyInstance: create) - ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'encryptedData', $pb.PbFieldType.OY) - ..p<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'downloadTokens', $pb.PbFieldType.PY) - ..pc(3, _omitFieldNames ? '' : 'messagesOnSuccess', $pb.PbFieldType.PM, subBuilder: TextMessage.create) - ..hasRequiredFields = false - ; + UploadRequest._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory UploadRequest.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory UploadRequest.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UploadRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'http_requests'), + createEmptyInstance: create) + ..a<$core.List<$core.int>>( + 1, _omitFieldNames ? '' : 'encryptedData', $pb.PbFieldType.OY) + ..p<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'downloadTokens', $pb.PbFieldType.PY) + ..pc( + 3, _omitFieldNames ? '' : 'messagesOnSuccess', $pb.PbFieldType.PM, + subBuilder: TextMessage.create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') UploadRequest clone() => UploadRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - UploadRequest copyWith(void Function(UploadRequest) updates) => super.copyWith((message) => updates(message as UploadRequest)) as UploadRequest; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + UploadRequest copyWith(void Function(UploadRequest) updates) => + super.copyWith((message) => updates(message as UploadRequest)) + as UploadRequest; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static UploadRequest create() => UploadRequest._(); + @$core.override UploadRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static UploadRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static UploadRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static UploadRequest? _defaultInstance; @$pb.TagNumber(1) $core.List<$core.int> get encryptedData => $_getN(0); @$pb.TagNumber(1) - set encryptedData($core.List<$core.int> v) { $_setBytes(0, v); } + set encryptedData($core.List<$core.int> value) => $_setBytes(0, value); @$pb.TagNumber(1) $core.bool hasEncryptedData() => $_has(0); @$pb.TagNumber(1) - void clearEncryptedData() => clearField(1); + void clearEncryptedData() => $_clearField(1); @$pb.TagNumber(2) - $core.List<$core.List<$core.int>> get downloadTokens => $_getList(1); + $pb.PbList<$core.List<$core.int>> get downloadTokens => $_getList(1); @$pb.TagNumber(3) - $core.List get messagesOnSuccess => $_getList(2); + $pb.PbList get messagesOnSuccess => $_getList(2); } class UpdateGroupState_UpdateTBS extends $pb.GeneratedMessage { @@ -167,116 +180,123 @@ class UpdateGroupState_UpdateTBS extends $pb.GeneratedMessage { $core.List<$core.int>? addAdmin, $core.List<$core.int>? nonce, }) { - final $result = create(); - if (versionId != null) { - $result.versionId = versionId; - } - if (encryptedGroupState != null) { - $result.encryptedGroupState = encryptedGroupState; - } - if (publicKey != null) { - $result.publicKey = publicKey; - } - if (removeAdmin != null) { - $result.removeAdmin = removeAdmin; - } - if (addAdmin != null) { - $result.addAdmin = addAdmin; - } - if (nonce != null) { - $result.nonce = nonce; - } - return $result; + final result = create(); + if (versionId != null) result.versionId = versionId; + if (encryptedGroupState != null) + result.encryptedGroupState = encryptedGroupState; + if (publicKey != null) result.publicKey = publicKey; + if (removeAdmin != null) result.removeAdmin = removeAdmin; + if (addAdmin != null) result.addAdmin = addAdmin; + if (nonce != null) result.nonce = nonce; + return result; } - UpdateGroupState_UpdateTBS._() : super(); - factory UpdateGroupState_UpdateTBS.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory UpdateGroupState_UpdateTBS.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateGroupState.UpdateTBS', package: const $pb.PackageName(_omitMessageNames ? '' : 'http_requests'), createEmptyInstance: create) - ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'versionId', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'encryptedGroupState', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(4, _omitFieldNames ? '' : 'publicKey', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(5, _omitFieldNames ? '' : 'removeAdmin', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(6, _omitFieldNames ? '' : 'addAdmin', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(7, _omitFieldNames ? '' : 'nonce', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; + UpdateGroupState_UpdateTBS._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - UpdateGroupState_UpdateTBS clone() => UpdateGroupState_UpdateTBS()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - UpdateGroupState_UpdateTBS copyWith(void Function(UpdateGroupState_UpdateTBS) updates) => super.copyWith((message) => updates(message as UpdateGroupState_UpdateTBS)) as UpdateGroupState_UpdateTBS; + factory UpdateGroupState_UpdateTBS.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory UpdateGroupState_UpdateTBS.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateGroupState.UpdateTBS', + package: const $pb.PackageName(_omitMessageNames ? '' : 'http_requests'), + createEmptyInstance: create) + ..a<$fixnum.Int64>( + 1, _omitFieldNames ? '' : 'versionId', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'encryptedGroupState', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 4, _omitFieldNames ? '' : 'publicKey', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 5, _omitFieldNames ? '' : 'removeAdmin', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 6, _omitFieldNames ? '' : 'addAdmin', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 7, _omitFieldNames ? '' : 'nonce', $pb.PbFieldType.OY) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + UpdateGroupState_UpdateTBS clone() => + UpdateGroupState_UpdateTBS()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + UpdateGroupState_UpdateTBS copyWith( + void Function(UpdateGroupState_UpdateTBS) updates) => + super.copyWith( + (message) => updates(message as UpdateGroupState_UpdateTBS)) + as UpdateGroupState_UpdateTBS; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static UpdateGroupState_UpdateTBS create() => UpdateGroupState_UpdateTBS._(); + @$core.override UpdateGroupState_UpdateTBS createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static UpdateGroupState_UpdateTBS getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static UpdateGroupState_UpdateTBS getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static UpdateGroupState_UpdateTBS? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get versionId => $_getI64(0); @$pb.TagNumber(1) - set versionId($fixnum.Int64 v) { $_setInt64(0, v); } + set versionId($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasVersionId() => $_has(0); @$pb.TagNumber(1) - void clearVersionId() => clearField(1); + void clearVersionId() => $_clearField(1); @$pb.TagNumber(3) $core.List<$core.int> get encryptedGroupState => $_getN(1); @$pb.TagNumber(3) - set encryptedGroupState($core.List<$core.int> v) { $_setBytes(1, v); } + set encryptedGroupState($core.List<$core.int> value) => $_setBytes(1, value); @$pb.TagNumber(3) $core.bool hasEncryptedGroupState() => $_has(1); @$pb.TagNumber(3) - void clearEncryptedGroupState() => clearField(3); + void clearEncryptedGroupState() => $_clearField(3); @$pb.TagNumber(4) $core.List<$core.int> get publicKey => $_getN(2); @$pb.TagNumber(4) - set publicKey($core.List<$core.int> v) { $_setBytes(2, v); } + set publicKey($core.List<$core.int> value) => $_setBytes(2, value); @$pb.TagNumber(4) $core.bool hasPublicKey() => $_has(2); @$pb.TagNumber(4) - void clearPublicKey() => clearField(4); + void clearPublicKey() => $_clearField(4); /// public group key @$pb.TagNumber(5) $core.List<$core.int> get removeAdmin => $_getN(3); @$pb.TagNumber(5) - set removeAdmin($core.List<$core.int> v) { $_setBytes(3, v); } + set removeAdmin($core.List<$core.int> value) => $_setBytes(3, value); @$pb.TagNumber(5) $core.bool hasRemoveAdmin() => $_has(3); @$pb.TagNumber(5) - void clearRemoveAdmin() => clearField(5); + void clearRemoveAdmin() => $_clearField(5); @$pb.TagNumber(6) $core.List<$core.int> get addAdmin => $_getN(4); @$pb.TagNumber(6) - set addAdmin($core.List<$core.int> v) { $_setBytes(4, v); } + set addAdmin($core.List<$core.int> value) => $_setBytes(4, value); @$pb.TagNumber(6) $core.bool hasAddAdmin() => $_has(4); @$pb.TagNumber(6) - void clearAddAdmin() => clearField(6); + void clearAddAdmin() => $_clearField(6); @$pb.TagNumber(7) $core.List<$core.int> get nonce => $_getN(5); @$pb.TagNumber(7) - set nonce($core.List<$core.int> v) { $_setBytes(5, v); } + set nonce($core.List<$core.int> value) => $_setBytes(5, value); @$pb.TagNumber(7) $core.bool hasNonce() => $_has(5); @$pb.TagNumber(7) - void clearNonce() => clearField(7); + void clearNonce() => $_clearField(7); } /// plaintext message send to the server @@ -285,65 +305,71 @@ class UpdateGroupState extends $pb.GeneratedMessage { UpdateGroupState_UpdateTBS? update, $core.List<$core.int>? signature, }) { - final $result = create(); - if (update != null) { - $result.update = update; - } - if (signature != null) { - $result.signature = signature; - } - return $result; + final result = create(); + if (update != null) result.update = update; + if (signature != null) result.signature = signature; + return result; } - UpdateGroupState._() : super(); - factory UpdateGroupState.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory UpdateGroupState.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateGroupState', package: const $pb.PackageName(_omitMessageNames ? '' : 'http_requests'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'update', subBuilder: UpdateGroupState_UpdateTBS.create) - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'signature', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; + UpdateGroupState._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory UpdateGroupState.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory UpdateGroupState.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateGroupState', + package: const $pb.PackageName(_omitMessageNames ? '' : 'http_requests'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'update', + subBuilder: UpdateGroupState_UpdateTBS.create) + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'signature', $pb.PbFieldType.OY) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') UpdateGroupState clone() => UpdateGroupState()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - UpdateGroupState copyWith(void Function(UpdateGroupState) updates) => super.copyWith((message) => updates(message as UpdateGroupState)) as UpdateGroupState; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + UpdateGroupState copyWith(void Function(UpdateGroupState) updates) => + super.copyWith((message) => updates(message as UpdateGroupState)) + as UpdateGroupState; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static UpdateGroupState create() => UpdateGroupState._(); + @$core.override UpdateGroupState createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static UpdateGroupState getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static UpdateGroupState getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static UpdateGroupState? _defaultInstance; @$pb.TagNumber(1) UpdateGroupState_UpdateTBS get update => $_getN(0); @$pb.TagNumber(1) - set update(UpdateGroupState_UpdateTBS v) { setField(1, v); } + set update(UpdateGroupState_UpdateTBS value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasUpdate() => $_has(0); @$pb.TagNumber(1) - void clearUpdate() => clearField(1); + void clearUpdate() => $_clearField(1); @$pb.TagNumber(1) UpdateGroupState_UpdateTBS ensureUpdate() => $_ensure(0); @$pb.TagNumber(2) $core.List<$core.int> get signature => $_getN(1); @$pb.TagNumber(2) - set signature($core.List<$core.int> v) { $_setBytes(1, v); } + set signature($core.List<$core.int> value) => $_setBytes(1, value); @$pb.TagNumber(2) $core.bool hasSignature() => $_has(1); @$pb.TagNumber(2) - void clearSignature() => clearField(2); + void clearSignature() => $_clearField(2); } class NewGroupState extends $pb.GeneratedMessage { @@ -353,89 +379,94 @@ class NewGroupState extends $pb.GeneratedMessage { $core.List<$core.int>? encryptedGroupState, $core.List<$core.int>? publicKey, }) { - final $result = create(); - if (groupId != null) { - $result.groupId = groupId; - } - if (versionId != null) { - $result.versionId = versionId; - } - if (encryptedGroupState != null) { - $result.encryptedGroupState = encryptedGroupState; - } - if (publicKey != null) { - $result.publicKey = publicKey; - } - return $result; + final result = create(); + if (groupId != null) result.groupId = groupId; + if (versionId != null) result.versionId = versionId; + if (encryptedGroupState != null) + result.encryptedGroupState = encryptedGroupState; + if (publicKey != null) result.publicKey = publicKey; + return result; } - NewGroupState._() : super(); - factory NewGroupState.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory NewGroupState.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'NewGroupState', package: const $pb.PackageName(_omitMessageNames ? '' : 'http_requests'), createEmptyInstance: create) + NewGroupState._(); + + factory NewGroupState.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory NewGroupState.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'NewGroupState', + package: const $pb.PackageName(_omitMessageNames ? '' : 'http_requests'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'groupId') - ..a<$fixnum.Int64>(2, _omitFieldNames ? '' : 'versionId', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'encryptedGroupState', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(4, _omitFieldNames ? '' : 'publicKey', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; + ..a<$fixnum.Int64>( + 2, _omitFieldNames ? '' : 'versionId', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'encryptedGroupState', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 4, _omitFieldNames ? '' : 'publicKey', $pb.PbFieldType.OY) + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') NewGroupState clone() => NewGroupState()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - NewGroupState copyWith(void Function(NewGroupState) updates) => super.copyWith((message) => updates(message as NewGroupState)) as NewGroupState; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + NewGroupState copyWith(void Function(NewGroupState) updates) => + super.copyWith((message) => updates(message as NewGroupState)) + as NewGroupState; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static NewGroupState create() => NewGroupState._(); + @$core.override NewGroupState createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static NewGroupState getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static NewGroupState getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static NewGroupState? _defaultInstance; @$pb.TagNumber(1) $core.String get groupId => $_getSZ(0); @$pb.TagNumber(1) - set groupId($core.String v) { $_setString(0, v); } + set groupId($core.String value) => $_setString(0, value); @$pb.TagNumber(1) $core.bool hasGroupId() => $_has(0); @$pb.TagNumber(1) - void clearGroupId() => clearField(1); + void clearGroupId() => $_clearField(1); @$pb.TagNumber(2) $fixnum.Int64 get versionId => $_getI64(1); @$pb.TagNumber(2) - set versionId($fixnum.Int64 v) { $_setInt64(1, v); } + set versionId($fixnum.Int64 value) => $_setInt64(1, value); @$pb.TagNumber(2) $core.bool hasVersionId() => $_has(1); @$pb.TagNumber(2) - void clearVersionId() => clearField(2); + void clearVersionId() => $_clearField(2); @$pb.TagNumber(3) $core.List<$core.int> get encryptedGroupState => $_getN(2); @$pb.TagNumber(3) - set encryptedGroupState($core.List<$core.int> v) { $_setBytes(2, v); } + set encryptedGroupState($core.List<$core.int> value) => $_setBytes(2, value); @$pb.TagNumber(3) $core.bool hasEncryptedGroupState() => $_has(2); @$pb.TagNumber(3) - void clearEncryptedGroupState() => clearField(3); + void clearEncryptedGroupState() => $_clearField(3); @$pb.TagNumber(4) $core.List<$core.int> get publicKey => $_getN(3); @$pb.TagNumber(4) - set publicKey($core.List<$core.int> v) { $_setBytes(3, v); } + set publicKey($core.List<$core.int> value) => $_setBytes(3, value); @$pb.TagNumber(4) $core.bool hasPublicKey() => $_has(3); @$pb.TagNumber(4) - void clearPublicKey() => clearField(4); + void clearPublicKey() => $_clearField(4); } class AppendGroupState_AppendTBS extends $pb.GeneratedMessage { @@ -445,89 +476,97 @@ class AppendGroupState_AppendTBS extends $pb.GeneratedMessage { $core.String? groupId, $core.List<$core.int>? nonce, }) { - final $result = create(); - if (encryptedGroupStateAppend != null) { - $result.encryptedGroupStateAppend = encryptedGroupStateAppend; - } - if (publicKey != null) { - $result.publicKey = publicKey; - } - if (groupId != null) { - $result.groupId = groupId; - } - if (nonce != null) { - $result.nonce = nonce; - } - return $result; + final result = create(); + if (encryptedGroupStateAppend != null) + result.encryptedGroupStateAppend = encryptedGroupStateAppend; + if (publicKey != null) result.publicKey = publicKey; + if (groupId != null) result.groupId = groupId; + if (nonce != null) result.nonce = nonce; + return result; } - AppendGroupState_AppendTBS._() : super(); - factory AppendGroupState_AppendTBS.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory AppendGroupState_AppendTBS.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AppendGroupState.AppendTBS', package: const $pb.PackageName(_omitMessageNames ? '' : 'http_requests'), createEmptyInstance: create) - ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'encryptedGroupStateAppend', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'publicKey', $pb.PbFieldType.OY) + AppendGroupState_AppendTBS._(); + + factory AppendGroupState_AppendTBS.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory AppendGroupState_AppendTBS.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AppendGroupState.AppendTBS', + package: const $pb.PackageName(_omitMessageNames ? '' : 'http_requests'), + createEmptyInstance: create) + ..a<$core.List<$core.int>>(1, + _omitFieldNames ? '' : 'encryptedGroupStateAppend', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'publicKey', $pb.PbFieldType.OY) ..aOS(3, _omitFieldNames ? '' : 'groupId') - ..a<$core.List<$core.int>>(4, _omitFieldNames ? '' : 'nonce', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; + ..a<$core.List<$core.int>>( + 4, _omitFieldNames ? '' : 'nonce', $pb.PbFieldType.OY) + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - AppendGroupState_AppendTBS clone() => AppendGroupState_AppendTBS()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - AppendGroupState_AppendTBS copyWith(void Function(AppendGroupState_AppendTBS) updates) => super.copyWith((message) => updates(message as AppendGroupState_AppendTBS)) as AppendGroupState_AppendTBS; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + AppendGroupState_AppendTBS clone() => + AppendGroupState_AppendTBS()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + AppendGroupState_AppendTBS copyWith( + void Function(AppendGroupState_AppendTBS) updates) => + super.copyWith( + (message) => updates(message as AppendGroupState_AppendTBS)) + as AppendGroupState_AppendTBS; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static AppendGroupState_AppendTBS create() => AppendGroupState_AppendTBS._(); + @$core.override AppendGroupState_AppendTBS createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static AppendGroupState_AppendTBS getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static AppendGroupState_AppendTBS getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static AppendGroupState_AppendTBS? _defaultInstance; @$pb.TagNumber(1) $core.List<$core.int> get encryptedGroupStateAppend => $_getN(0); @$pb.TagNumber(1) - set encryptedGroupStateAppend($core.List<$core.int> v) { $_setBytes(0, v); } + set encryptedGroupStateAppend($core.List<$core.int> value) => + $_setBytes(0, value); @$pb.TagNumber(1) $core.bool hasEncryptedGroupStateAppend() => $_has(0); @$pb.TagNumber(1) - void clearEncryptedGroupStateAppend() => clearField(1); + void clearEncryptedGroupStateAppend() => $_clearField(1); @$pb.TagNumber(2) $core.List<$core.int> get publicKey => $_getN(1); @$pb.TagNumber(2) - set publicKey($core.List<$core.int> v) { $_setBytes(1, v); } + set publicKey($core.List<$core.int> value) => $_setBytes(1, value); @$pb.TagNumber(2) $core.bool hasPublicKey() => $_has(1); @$pb.TagNumber(2) - void clearPublicKey() => clearField(2); + void clearPublicKey() => $_clearField(2); @$pb.TagNumber(3) $core.String get groupId => $_getSZ(2); @$pb.TagNumber(3) - set groupId($core.String v) { $_setString(2, v); } + set groupId($core.String value) => $_setString(2, value); @$pb.TagNumber(3) $core.bool hasGroupId() => $_has(2); @$pb.TagNumber(3) - void clearGroupId() => clearField(3); + void clearGroupId() => $_clearField(3); @$pb.TagNumber(4) $core.List<$core.int> get nonce => $_getN(3); @$pb.TagNumber(4) - set nonce($core.List<$core.int> v) { $_setBytes(3, v); } + set nonce($core.List<$core.int> value) => $_setBytes(3, value); @$pb.TagNumber(4) $core.bool hasNonce() => $_has(3); @$pb.TagNumber(4) - void clearNonce() => clearField(4); + void clearNonce() => $_clearField(4); } class AppendGroupState extends $pb.GeneratedMessage { @@ -536,78 +575,84 @@ class AppendGroupState extends $pb.GeneratedMessage { AppendGroupState_AppendTBS? appendTBS, $fixnum.Int64? versionId, }) { - final $result = create(); - if (signature != null) { - $result.signature = signature; - } - if (appendTBS != null) { - $result.appendTBS = appendTBS; - } - if (versionId != null) { - $result.versionId = versionId; - } - return $result; + final result = create(); + if (signature != null) result.signature = signature; + if (appendTBS != null) result.appendTBS = appendTBS; + if (versionId != null) result.versionId = versionId; + return result; } - AppendGroupState._() : super(); - factory AppendGroupState.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory AppendGroupState.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AppendGroupState', package: const $pb.PackageName(_omitMessageNames ? '' : 'http_requests'), createEmptyInstance: create) - ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'signature', $pb.PbFieldType.OY) - ..aOM(2, _omitFieldNames ? '' : 'appendTBS', protoName: 'appendTBS', subBuilder: AppendGroupState_AppendTBS.create) - ..a<$fixnum.Int64>(3, _omitFieldNames ? '' : 'versionId', $pb.PbFieldType.OU6, protoName: 'versionId', defaultOrMaker: $fixnum.Int64.ZERO) - ..hasRequiredFields = false - ; + AppendGroupState._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory AppendGroupState.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory AppendGroupState.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AppendGroupState', + package: const $pb.PackageName(_omitMessageNames ? '' : 'http_requests'), + createEmptyInstance: create) + ..a<$core.List<$core.int>>( + 1, _omitFieldNames ? '' : 'signature', $pb.PbFieldType.OY) + ..aOM(2, _omitFieldNames ? '' : 'appendTBS', + protoName: 'appendTBS', subBuilder: AppendGroupState_AppendTBS.create) + ..a<$fixnum.Int64>( + 3, _omitFieldNames ? '' : 'versionId', $pb.PbFieldType.OU6, + protoName: 'versionId', defaultOrMaker: $fixnum.Int64.ZERO) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') AppendGroupState clone() => AppendGroupState()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - AppendGroupState copyWith(void Function(AppendGroupState) updates) => super.copyWith((message) => updates(message as AppendGroupState)) as AppendGroupState; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + AppendGroupState copyWith(void Function(AppendGroupState) updates) => + super.copyWith((message) => updates(message as AppendGroupState)) + as AppendGroupState; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static AppendGroupState create() => AppendGroupState._(); + @$core.override AppendGroupState createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static AppendGroupState getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static AppendGroupState getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static AppendGroupState? _defaultInstance; @$pb.TagNumber(1) $core.List<$core.int> get signature => $_getN(0); @$pb.TagNumber(1) - set signature($core.List<$core.int> v) { $_setBytes(0, v); } + set signature($core.List<$core.int> value) => $_setBytes(0, value); @$pb.TagNumber(1) $core.bool hasSignature() => $_has(0); @$pb.TagNumber(1) - void clearSignature() => clearField(1); + void clearSignature() => $_clearField(1); @$pb.TagNumber(2) AppendGroupState_AppendTBS get appendTBS => $_getN(1); @$pb.TagNumber(2) - set appendTBS(AppendGroupState_AppendTBS v) { setField(2, v); } + set appendTBS(AppendGroupState_AppendTBS value) => $_setField(2, value); @$pb.TagNumber(2) $core.bool hasAppendTBS() => $_has(1); @$pb.TagNumber(2) - void clearAppendTBS() => clearField(2); + void clearAppendTBS() => $_clearField(2); @$pb.TagNumber(2) AppendGroupState_AppendTBS ensureAppendTBS() => $_ensure(1); @$pb.TagNumber(3) $fixnum.Int64 get versionId => $_getI64(2); @$pb.TagNumber(3) - set versionId($fixnum.Int64 v) { $_setInt64(2, v); } + set versionId($fixnum.Int64 value) => $_setInt64(2, value); @$pb.TagNumber(3) $core.bool hasVersionId() => $_has(2); @$pb.TagNumber(3) - void clearVersionId() => clearField(3); + void clearVersionId() => $_clearField(3); } class GroupState extends $pb.GeneratedMessage { @@ -616,70 +661,77 @@ class GroupState extends $pb.GeneratedMessage { $core.List<$core.int>? encryptedGroupState, $core.Iterable? appendedGroupStates, }) { - final $result = create(); - if (versionId != null) { - $result.versionId = versionId; - } - if (encryptedGroupState != null) { - $result.encryptedGroupState = encryptedGroupState; - } - if (appendedGroupStates != null) { - $result.appendedGroupStates.addAll(appendedGroupStates); - } - return $result; + final result = create(); + if (versionId != null) result.versionId = versionId; + if (encryptedGroupState != null) + result.encryptedGroupState = encryptedGroupState; + if (appendedGroupStates != null) + result.appendedGroupStates.addAll(appendedGroupStates); + return result; } - GroupState._() : super(); - factory GroupState.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GroupState.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GroupState', package: const $pb.PackageName(_omitMessageNames ? '' : 'http_requests'), createEmptyInstance: create) - ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'versionId', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'encryptedGroupState', $pb.PbFieldType.OY) - ..pc(3, _omitFieldNames ? '' : 'appendedGroupStates', $pb.PbFieldType.PM, subBuilder: AppendGroupState.create) - ..hasRequiredFields = false - ; + GroupState._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory GroupState.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory GroupState.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GroupState', + package: const $pb.PackageName(_omitMessageNames ? '' : 'http_requests'), + createEmptyInstance: create) + ..a<$fixnum.Int64>( + 1, _omitFieldNames ? '' : 'versionId', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'encryptedGroupState', $pb.PbFieldType.OY) + ..pc( + 3, _omitFieldNames ? '' : 'appendedGroupStates', $pb.PbFieldType.PM, + subBuilder: AppendGroupState.create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') GroupState clone() => GroupState()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GroupState copyWith(void Function(GroupState) updates) => super.copyWith((message) => updates(message as GroupState)) as GroupState; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + GroupState copyWith(void Function(GroupState) updates) => + super.copyWith((message) => updates(message as GroupState)) as GroupState; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GroupState create() => GroupState._(); + @$core.override GroupState createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static GroupState getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GroupState getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GroupState? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get versionId => $_getI64(0); @$pb.TagNumber(1) - set versionId($fixnum.Int64 v) { $_setInt64(0, v); } + set versionId($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasVersionId() => $_has(0); @$pb.TagNumber(1) - void clearVersionId() => clearField(1); + void clearVersionId() => $_clearField(1); @$pb.TagNumber(2) $core.List<$core.int> get encryptedGroupState => $_getN(1); @$pb.TagNumber(2) - set encryptedGroupState($core.List<$core.int> v) { $_setBytes(1, v); } + set encryptedGroupState($core.List<$core.int> value) => $_setBytes(1, value); @$pb.TagNumber(2) $core.bool hasEncryptedGroupState() => $_has(1); @$pb.TagNumber(2) - void clearEncryptedGroupState() => clearField(2); + void clearEncryptedGroupState() => $_clearField(2); @$pb.TagNumber(3) - $core.List get appendedGroupStates => $_getList(2); + $pb.PbList get appendedGroupStates => $_getList(2); } /// this is just a database helper to store multiple appends @@ -687,46 +739,58 @@ class AppendGroupStateHelper extends $pb.GeneratedMessage { factory AppendGroupStateHelper({ $core.Iterable? appendedGroupStates, }) { - final $result = create(); - if (appendedGroupStates != null) { - $result.appendedGroupStates.addAll(appendedGroupStates); - } - return $result; + final result = create(); + if (appendedGroupStates != null) + result.appendedGroupStates.addAll(appendedGroupStates); + return result; } - AppendGroupStateHelper._() : super(); - factory AppendGroupStateHelper.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory AppendGroupStateHelper.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AppendGroupStateHelper', package: const $pb.PackageName(_omitMessageNames ? '' : 'http_requests'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'appendedGroupStates', $pb.PbFieldType.PM, subBuilder: AppendGroupState.create) - ..hasRequiredFields = false - ; + AppendGroupStateHelper._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - AppendGroupStateHelper clone() => AppendGroupStateHelper()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - AppendGroupStateHelper copyWith(void Function(AppendGroupStateHelper) updates) => super.copyWith((message) => updates(message as AppendGroupStateHelper)) as AppendGroupStateHelper; + factory AppendGroupStateHelper.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory AppendGroupStateHelper.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AppendGroupStateHelper', + package: const $pb.PackageName(_omitMessageNames ? '' : 'http_requests'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'appendedGroupStates', $pb.PbFieldType.PM, + subBuilder: AppendGroupState.create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + AppendGroupStateHelper clone() => + AppendGroupStateHelper()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + AppendGroupStateHelper copyWith( + void Function(AppendGroupStateHelper) updates) => + super.copyWith((message) => updates(message as AppendGroupStateHelper)) + as AppendGroupStateHelper; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static AppendGroupStateHelper create() => AppendGroupStateHelper._(); + @$core.override AppendGroupStateHelper createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static AppendGroupStateHelper getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static AppendGroupStateHelper getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static AppendGroupStateHelper? _defaultInstance; @$pb.TagNumber(1) - $core.List get appendedGroupStates => $_getList(0); + $pb.PbList get appendedGroupStates => $_getList(0); } - -const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/src/model/protobuf/api/http/http_requests.pbenum.dart b/lib/src/model/protobuf/api/http/http_requests.pbenum.dart index 32a9e2a..968f462 100644 --- a/lib/src/model/protobuf/api/http/http_requests.pbenum.dart +++ b/lib/src/model/protobuf/api/http/http_requests.pbenum.dart @@ -1,11 +1,11 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: api/http/http_requests.proto -// -// @dart = 2.12 +// Generated from api/http/http_requests.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import - +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names diff --git a/lib/src/model/protobuf/api/http/http_requests.pbjson.dart b/lib/src/model/protobuf/api/http/http_requests.pbjson.dart index c93b93c..d16c52d 100644 --- a/lib/src/model/protobuf/api/http/http_requests.pbjson.dart +++ b/lib/src/model/protobuf/api/http/http_requests.pbjson.dart @@ -1,13 +1,14 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: api/http/http_requests.proto -// -// @dart = 2.12 +// Generated from api/http/http_requests.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names, unused_import import 'dart:convert' as $convert; import 'dart:core' as $core; @@ -19,7 +20,15 @@ const TextMessage$json = { '2': [ {'1': 'user_id', '3': 1, '4': 1, '5': 3, '10': 'userId'}, {'1': 'body', '3': 2, '4': 1, '5': 12, '10': 'body'}, - {'1': 'push_data', '3': 3, '4': 1, '5': 12, '9': 0, '10': 'pushData', '17': true}, + { + '1': 'push_data', + '3': 3, + '4': 1, + '5': 12, + '9': 0, + '10': 'pushData', + '17': true + }, ], '8': [ {'1': '_push_data'}, @@ -37,7 +46,14 @@ const UploadRequest$json = { '2': [ {'1': 'encrypted_data', '3': 1, '4': 1, '5': 12, '10': 'encryptedData'}, {'1': 'download_tokens', '3': 2, '4': 3, '5': 12, '10': 'downloadTokens'}, - {'1': 'messages_on_success', '3': 3, '4': 3, '5': 11, '6': '.http_requests.TextMessage', '10': 'messagesOnSuccess'}, + { + '1': 'messages_on_success', + '3': 3, + '4': 3, + '5': 11, + '6': '.http_requests.TextMessage', + '10': 'messagesOnSuccess' + }, ], }; @@ -52,7 +68,14 @@ final $typed_data.Uint8List uploadRequestDescriptor = $convert.base64Decode( const UpdateGroupState$json = { '1': 'UpdateGroupState', '2': [ - {'1': 'update', '3': 1, '4': 1, '5': 11, '6': '.http_requests.UpdateGroupState.UpdateTBS', '10': 'update'}, + { + '1': 'update', + '3': 1, + '4': 1, + '5': 11, + '6': '.http_requests.UpdateGroupState.UpdateTBS', + '10': 'update' + }, {'1': 'signature', '3': 2, '4': 1, '5': 12, '10': 'signature'}, ], '3': [UpdateGroupState_UpdateTBS$json], @@ -63,10 +86,32 @@ const UpdateGroupState_UpdateTBS$json = { '1': 'UpdateTBS', '2': [ {'1': 'version_id', '3': 1, '4': 1, '5': 4, '10': 'versionId'}, - {'1': 'encrypted_group_state', '3': 3, '4': 1, '5': 12, '10': 'encryptedGroupState'}, + { + '1': 'encrypted_group_state', + '3': 3, + '4': 1, + '5': 12, + '10': 'encryptedGroupState' + }, {'1': 'public_key', '3': 4, '4': 1, '5': 12, '10': 'publicKey'}, - {'1': 'remove_admin', '3': 5, '4': 1, '5': 12, '9': 0, '10': 'removeAdmin', '17': true}, - {'1': 'add_admin', '3': 6, '4': 1, '5': 12, '9': 1, '10': 'addAdmin', '17': true}, + { + '1': 'remove_admin', + '3': 5, + '4': 1, + '5': 12, + '9': 0, + '10': 'removeAdmin', + '17': true + }, + { + '1': 'add_admin', + '3': 6, + '4': 1, + '5': 12, + '9': 1, + '10': 'addAdmin', + '17': true + }, {'1': 'nonce', '3': 7, '4': 1, '5': 12, '10': 'nonce'}, ], '8': [ @@ -91,7 +136,13 @@ const NewGroupState$json = { '2': [ {'1': 'group_id', '3': 1, '4': 1, '5': 9, '10': 'groupId'}, {'1': 'version_id', '3': 2, '4': 1, '5': 4, '10': 'versionId'}, - {'1': 'encrypted_group_state', '3': 3, '4': 1, '5': 12, '10': 'encryptedGroupState'}, + { + '1': 'encrypted_group_state', + '3': 3, + '4': 1, + '5': 12, + '10': 'encryptedGroupState' + }, {'1': 'public_key', '3': 4, '4': 1, '5': 12, '10': 'publicKey'}, ], }; @@ -107,7 +158,14 @@ const AppendGroupState$json = { '1': 'AppendGroupState', '2': [ {'1': 'signature', '3': 1, '4': 1, '5': 12, '10': 'signature'}, - {'1': 'appendTBS', '3': 2, '4': 1, '5': 11, '6': '.http_requests.AppendGroupState.AppendTBS', '10': 'appendTBS'}, + { + '1': 'appendTBS', + '3': 2, + '4': 1, + '5': 11, + '6': '.http_requests.AppendGroupState.AppendTBS', + '10': 'appendTBS' + }, {'1': 'versionId', '3': 3, '4': 1, '5': 4, '10': 'versionId'}, ], '3': [AppendGroupState_AppendTBS$json], @@ -117,7 +175,13 @@ const AppendGroupState$json = { const AppendGroupState_AppendTBS$json = { '1': 'AppendTBS', '2': [ - {'1': 'encrypted_group_state_append', '3': 1, '4': 1, '5': 12, '10': 'encryptedGroupStateAppend'}, + { + '1': 'encrypted_group_state_append', + '3': 1, + '4': 1, + '5': 12, + '10': 'encryptedGroupStateAppend' + }, {'1': 'public_key', '3': 2, '4': 1, '5': 12, '10': 'publicKey'}, {'1': 'group_id', '3': 3, '4': 1, '5': 9, '10': 'groupId'}, {'1': 'nonce', '3': 4, '4': 1, '5': 12, '10': 'nonce'}, @@ -138,8 +202,21 @@ const GroupState$json = { '1': 'GroupState', '2': [ {'1': 'version_id', '3': 1, '4': 1, '5': 4, '10': 'versionId'}, - {'1': 'encrypted_group_state', '3': 2, '4': 1, '5': 12, '10': 'encryptedGroupState'}, - {'1': 'appended_group_states', '3': 3, '4': 3, '5': 11, '6': '.http_requests.AppendGroupState', '10': 'appendedGroupStates'}, + { + '1': 'encrypted_group_state', + '3': 2, + '4': 1, + '5': 12, + '10': 'encryptedGroupState' + }, + { + '1': 'appended_group_states', + '3': 3, + '4': 3, + '5': 11, + '6': '.http_requests.AppendGroupState', + '10': 'appendedGroupStates' + }, ], }; @@ -154,7 +231,14 @@ final $typed_data.Uint8List groupStateDescriptor = $convert.base64Decode( const AppendGroupStateHelper$json = { '1': 'AppendGroupStateHelper', '2': [ - {'1': 'appended_group_states', '3': 1, '4': 3, '5': 11, '6': '.http_requests.AppendGroupState', '10': 'appendedGroupStates'}, + { + '1': 'appended_group_states', + '3': 1, + '4': 3, + '5': 11, + '6': '.http_requests.AppendGroupState', + '10': 'appendedGroupStates' + }, ], }; @@ -162,4 +246,3 @@ const AppendGroupStateHelper$json = { final $typed_data.Uint8List appendGroupStateHelperDescriptor = $convert.base64Decode( 'ChZBcHBlbmRHcm91cFN0YXRlSGVscGVyElMKFWFwcGVuZGVkX2dyb3VwX3N0YXRlcxgBIAMoCz' 'IfLmh0dHBfcmVxdWVzdHMuQXBwZW5kR3JvdXBTdGF0ZVITYXBwZW5kZWRHcm91cFN0YXRlcw=='); - diff --git a/lib/src/model/protobuf/api/websocket/client_to_server.pb.dart b/lib/src/model/protobuf/api/websocket/client_to_server.pb.dart index db2849b..3e3aca4 100644 --- a/lib/src/model/protobuf/api/websocket/client_to_server.pb.dart +++ b/lib/src/model/protobuf/api/websocket/client_to_server.pb.dart @@ -1,13 +1,14 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: api/websocket/client_to_server.proto -// -// @dart = 2.12 +// Generated from api/websocket/client_to_server.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names import 'dart:core' as $core; @@ -16,77 +17,79 @@ import 'package:protobuf/protobuf.dart' as $pb; import 'error.pbenum.dart' as $0; -enum ClientToServer_V { - v0, - notSet -} +export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; + +enum ClientToServer_V { v0, notSet } class ClientToServer extends $pb.GeneratedMessage { factory ClientToServer({ V0? v0, }) { - final $result = create(); - if (v0 != null) { - $result.v0 = v0; - } - return $result; + final result = create(); + if (v0 != null) result.v0 = v0; + return result; } - ClientToServer._() : super(); - factory ClientToServer.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ClientToServer.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + ClientToServer._(); + + factory ClientToServer.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ClientToServer.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); static const $core.Map<$core.int, ClientToServer_V> _ClientToServer_VByTag = { - 1 : ClientToServer_V.v0, - 0 : ClientToServer_V.notSet + 1: ClientToServer_V.v0, + 0: ClientToServer_V.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ClientToServer', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ClientToServer', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) ..oo(0, [1]) - ..aOM(1, _omitFieldNames ? '' : 'V0', protoName: 'V0', subBuilder: V0.create) - ..hasRequiredFields = false - ; + ..aOM(1, _omitFieldNames ? '' : 'V0', + protoName: 'V0', subBuilder: V0.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') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ClientToServer clone() => ClientToServer()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ClientToServer copyWith(void Function(ClientToServer) updates) => super.copyWith((message) => updates(message as ClientToServer)) as ClientToServer; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ClientToServer copyWith(void Function(ClientToServer) updates) => + super.copyWith((message) => updates(message as ClientToServer)) + as ClientToServer; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ClientToServer create() => ClientToServer._(); + @$core.override ClientToServer createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ClientToServer getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ClientToServer getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ClientToServer? _defaultInstance; ClientToServer_V whichV() => _ClientToServer_VByTag[$_whichOneof(0)]!; - void clearV() => clearField($_whichOneof(0)); + void clearV() => $_clearField($_whichOneof(0)); @$pb.TagNumber(1) V0 get v0 => $_getN(0); @$pb.TagNumber(1) - set v0(V0 v) { setField(1, v); } + set v0(V0 value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasV0() => $_has(0); @$pb.TagNumber(1) - void clearV0() => clearField(1); + void clearV0() => $_clearField(1); @$pb.TagNumber(1) V0 ensureV0() => $_ensure(0); } -enum V0_Kind { - handshake, - applicationdata, - response, - notSet -} +enum V0_Kind { handshake, applicationdata, response, notSet } class V0 extends $pb.GeneratedMessage { factory V0({ @@ -95,136 +98,149 @@ class V0 extends $pb.GeneratedMessage { ApplicationData? applicationdata, Response? response, }) { - final $result = create(); - if (seq != null) { - $result.seq = seq; - } - if (handshake != null) { - $result.handshake = handshake; - } - if (applicationdata != null) { - $result.applicationdata = applicationdata; - } - if (response != null) { - $result.response = response; - } - return $result; + final result = create(); + if (seq != null) result.seq = seq; + if (handshake != null) result.handshake = handshake; + if (applicationdata != null) result.applicationdata = applicationdata; + if (response != null) result.response = response; + return result; } - V0._() : super(); - factory V0.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory V0.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + V0._(); + + factory V0.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory V0.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); static const $core.Map<$core.int, V0_Kind> _V0_KindByTag = { - 2 : V0_Kind.handshake, - 3 : V0_Kind.applicationdata, - 4 : V0_Kind.response, - 0 : V0_Kind.notSet + 2: V0_Kind.handshake, + 3: V0_Kind.applicationdata, + 4: V0_Kind.response, + 0: V0_Kind.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'V0', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'V0', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) ..oo(0, [2, 3, 4]) - ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'seq', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..aOM(2, _omitFieldNames ? '' : 'handshake', subBuilder: Handshake.create) - ..aOM(3, _omitFieldNames ? '' : 'applicationdata', subBuilder: ApplicationData.create) - ..aOM(4, _omitFieldNames ? '' : 'response', subBuilder: Response.create) - ..hasRequiredFields = false - ; + ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'seq', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..aOM(2, _omitFieldNames ? '' : 'handshake', + subBuilder: Handshake.create) + ..aOM(3, _omitFieldNames ? '' : 'applicationdata', + subBuilder: ApplicationData.create) + ..aOM(4, _omitFieldNames ? '' : 'response', + subBuilder: Response.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') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') V0 clone() => V0()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - V0 copyWith(void Function(V0) updates) => super.copyWith((message) => updates(message as V0)) as V0; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + V0 copyWith(void Function(V0) updates) => + super.copyWith((message) => updates(message as V0)) as V0; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static V0 create() => V0._(); + @$core.override V0 createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static V0 getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static V0 getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static V0? _defaultInstance; V0_Kind whichKind() => _V0_KindByTag[$_whichOneof(0)]!; - void clearKind() => clearField($_whichOneof(0)); + void clearKind() => $_clearField($_whichOneof(0)); @$pb.TagNumber(1) $fixnum.Int64 get seq => $_getI64(0); @$pb.TagNumber(1) - set seq($fixnum.Int64 v) { $_setInt64(0, v); } + set seq($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasSeq() => $_has(0); @$pb.TagNumber(1) - void clearSeq() => clearField(1); + void clearSeq() => $_clearField(1); @$pb.TagNumber(2) Handshake get handshake => $_getN(1); @$pb.TagNumber(2) - set handshake(Handshake v) { setField(2, v); } + set handshake(Handshake value) => $_setField(2, value); @$pb.TagNumber(2) $core.bool hasHandshake() => $_has(1); @$pb.TagNumber(2) - void clearHandshake() => clearField(2); + void clearHandshake() => $_clearField(2); @$pb.TagNumber(2) Handshake ensureHandshake() => $_ensure(1); @$pb.TagNumber(3) ApplicationData get applicationdata => $_getN(2); @$pb.TagNumber(3) - set applicationdata(ApplicationData v) { setField(3, v); } + set applicationdata(ApplicationData value) => $_setField(3, value); @$pb.TagNumber(3) $core.bool hasApplicationdata() => $_has(2); @$pb.TagNumber(3) - void clearApplicationdata() => clearField(3); + void clearApplicationdata() => $_clearField(3); @$pb.TagNumber(3) ApplicationData ensureApplicationdata() => $_ensure(2); @$pb.TagNumber(4) Response get response => $_getN(3); @$pb.TagNumber(4) - set response(Response v) { setField(4, v); } + set response(Response value) => $_setField(4, value); @$pb.TagNumber(4) $core.bool hasResponse() => $_has(3); @$pb.TagNumber(4) - void clearResponse() => clearField(4); + void clearResponse() => $_clearField(4); @$pb.TagNumber(4) Response ensureResponse() => $_ensure(3); } class Handshake_RequestPOW extends $pb.GeneratedMessage { factory Handshake_RequestPOW() => create(); - Handshake_RequestPOW._() : super(); - factory Handshake_RequestPOW.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Handshake_RequestPOW.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Handshake.RequestPOW', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) - ..hasRequiredFields = false - ; + Handshake_RequestPOW._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - Handshake_RequestPOW clone() => Handshake_RequestPOW()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Handshake_RequestPOW copyWith(void Function(Handshake_RequestPOW) updates) => super.copyWith((message) => updates(message as Handshake_RequestPOW)) as Handshake_RequestPOW; + factory Handshake_RequestPOW.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Handshake_RequestPOW.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Handshake.RequestPOW', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Handshake_RequestPOW clone() => + Handshake_RequestPOW()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Handshake_RequestPOW copyWith(void Function(Handshake_RequestPOW) updates) => + super.copyWith((message) => updates(message as Handshake_RequestPOW)) + as Handshake_RequestPOW; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Handshake_RequestPOW create() => Handshake_RequestPOW._(); + @$core.override Handshake_RequestPOW createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Handshake_RequestPOW getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Handshake_RequestPOW getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Handshake_RequestPOW? _defaultInstance; } @@ -241,198 +257,204 @@ class Handshake_Register extends $pb.GeneratedMessage { $core.String? langCode, $fixnum.Int64? proofOfWork, }) { - final $result = create(); - if (username != null) { - $result.username = username; - } - if (inviteCode != null) { - $result.inviteCode = inviteCode; - } - if (publicIdentityKey != null) { - $result.publicIdentityKey = publicIdentityKey; - } - if (signedPrekey != null) { - $result.signedPrekey = signedPrekey; - } - if (signedPrekeySignature != null) { - $result.signedPrekeySignature = signedPrekeySignature; - } - if (signedPrekeyId != null) { - $result.signedPrekeyId = signedPrekeyId; - } - if (registrationId != null) { - $result.registrationId = registrationId; - } - if (isIos != null) { - $result.isIos = isIos; - } - if (langCode != null) { - $result.langCode = langCode; - } - if (proofOfWork != null) { - $result.proofOfWork = proofOfWork; - } - return $result; + final result = create(); + if (username != null) result.username = username; + if (inviteCode != null) result.inviteCode = inviteCode; + if (publicIdentityKey != null) result.publicIdentityKey = publicIdentityKey; + if (signedPrekey != null) result.signedPrekey = signedPrekey; + if (signedPrekeySignature != null) + result.signedPrekeySignature = signedPrekeySignature; + if (signedPrekeyId != null) result.signedPrekeyId = signedPrekeyId; + if (registrationId != null) result.registrationId = registrationId; + if (isIos != null) result.isIos = isIos; + if (langCode != null) result.langCode = langCode; + if (proofOfWork != null) result.proofOfWork = proofOfWork; + return result; } - Handshake_Register._() : super(); - factory Handshake_Register.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Handshake_Register.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Handshake.Register', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) + Handshake_Register._(); + + factory Handshake_Register.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Handshake_Register.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Handshake.Register', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'username') ..aOS(2, _omitFieldNames ? '' : 'inviteCode') - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'publicIdentityKey', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(4, _omitFieldNames ? '' : 'signedPrekey', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(5, _omitFieldNames ? '' : 'signedPrekeySignature', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'publicIdentityKey', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 4, _omitFieldNames ? '' : 'signedPrekey', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 5, _omitFieldNames ? '' : 'signedPrekeySignature', $pb.PbFieldType.OY) ..aInt64(6, _omitFieldNames ? '' : 'signedPrekeyId') ..aInt64(7, _omitFieldNames ? '' : 'registrationId') ..aOB(8, _omitFieldNames ? '' : 'isIos') ..aOS(9, _omitFieldNames ? '' : 'langCode') ..aInt64(10, _omitFieldNames ? '' : 'proofOfWork') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Handshake_Register clone() => Handshake_Register()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Handshake_Register copyWith(void Function(Handshake_Register) updates) => super.copyWith((message) => updates(message as Handshake_Register)) as Handshake_Register; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Handshake_Register copyWith(void Function(Handshake_Register) updates) => + super.copyWith((message) => updates(message as Handshake_Register)) + as Handshake_Register; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Handshake_Register create() => Handshake_Register._(); + @$core.override Handshake_Register createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Handshake_Register getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Handshake_Register getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Handshake_Register? _defaultInstance; @$pb.TagNumber(1) $core.String get username => $_getSZ(0); @$pb.TagNumber(1) - set username($core.String v) { $_setString(0, v); } + set username($core.String value) => $_setString(0, value); @$pb.TagNumber(1) $core.bool hasUsername() => $_has(0); @$pb.TagNumber(1) - void clearUsername() => clearField(1); + void clearUsername() => $_clearField(1); @$pb.TagNumber(2) $core.String get inviteCode => $_getSZ(1); @$pb.TagNumber(2) - set inviteCode($core.String v) { $_setString(1, v); } + set inviteCode($core.String value) => $_setString(1, value); @$pb.TagNumber(2) $core.bool hasInviteCode() => $_has(1); @$pb.TagNumber(2) - void clearInviteCode() => clearField(2); + void clearInviteCode() => $_clearField(2); @$pb.TagNumber(3) $core.List<$core.int> get publicIdentityKey => $_getN(2); @$pb.TagNumber(3) - set publicIdentityKey($core.List<$core.int> v) { $_setBytes(2, v); } + set publicIdentityKey($core.List<$core.int> value) => $_setBytes(2, value); @$pb.TagNumber(3) $core.bool hasPublicIdentityKey() => $_has(2); @$pb.TagNumber(3) - void clearPublicIdentityKey() => clearField(3); + void clearPublicIdentityKey() => $_clearField(3); @$pb.TagNumber(4) $core.List<$core.int> get signedPrekey => $_getN(3); @$pb.TagNumber(4) - set signedPrekey($core.List<$core.int> v) { $_setBytes(3, v); } + set signedPrekey($core.List<$core.int> value) => $_setBytes(3, value); @$pb.TagNumber(4) $core.bool hasSignedPrekey() => $_has(3); @$pb.TagNumber(4) - void clearSignedPrekey() => clearField(4); + void clearSignedPrekey() => $_clearField(4); @$pb.TagNumber(5) $core.List<$core.int> get signedPrekeySignature => $_getN(4); @$pb.TagNumber(5) - set signedPrekeySignature($core.List<$core.int> v) { $_setBytes(4, v); } + set signedPrekeySignature($core.List<$core.int> value) => + $_setBytes(4, value); @$pb.TagNumber(5) $core.bool hasSignedPrekeySignature() => $_has(4); @$pb.TagNumber(5) - void clearSignedPrekeySignature() => clearField(5); + void clearSignedPrekeySignature() => $_clearField(5); @$pb.TagNumber(6) $fixnum.Int64 get signedPrekeyId => $_getI64(5); @$pb.TagNumber(6) - set signedPrekeyId($fixnum.Int64 v) { $_setInt64(5, v); } + set signedPrekeyId($fixnum.Int64 value) => $_setInt64(5, value); @$pb.TagNumber(6) $core.bool hasSignedPrekeyId() => $_has(5); @$pb.TagNumber(6) - void clearSignedPrekeyId() => clearField(6); + void clearSignedPrekeyId() => $_clearField(6); @$pb.TagNumber(7) $fixnum.Int64 get registrationId => $_getI64(6); @$pb.TagNumber(7) - set registrationId($fixnum.Int64 v) { $_setInt64(6, v); } + set registrationId($fixnum.Int64 value) => $_setInt64(6, value); @$pb.TagNumber(7) $core.bool hasRegistrationId() => $_has(6); @$pb.TagNumber(7) - void clearRegistrationId() => clearField(7); + void clearRegistrationId() => $_clearField(7); @$pb.TagNumber(8) $core.bool get isIos => $_getBF(7); @$pb.TagNumber(8) - set isIos($core.bool v) { $_setBool(7, v); } + set isIos($core.bool value) => $_setBool(7, value); @$pb.TagNumber(8) $core.bool hasIsIos() => $_has(7); @$pb.TagNumber(8) - void clearIsIos() => clearField(8); + void clearIsIos() => $_clearField(8); @$pb.TagNumber(9) $core.String get langCode => $_getSZ(8); @$pb.TagNumber(9) - set langCode($core.String v) { $_setString(8, v); } + set langCode($core.String value) => $_setString(8, value); @$pb.TagNumber(9) $core.bool hasLangCode() => $_has(8); @$pb.TagNumber(9) - void clearLangCode() => clearField(9); + void clearLangCode() => $_clearField(9); @$pb.TagNumber(10) $fixnum.Int64 get proofOfWork => $_getI64(9); @$pb.TagNumber(10) - set proofOfWork($fixnum.Int64 v) { $_setInt64(9, v); } + set proofOfWork($fixnum.Int64 value) => $_setInt64(9, value); @$pb.TagNumber(10) $core.bool hasProofOfWork() => $_has(9); @$pb.TagNumber(10) - void clearProofOfWork() => clearField(10); + void clearProofOfWork() => $_clearField(10); } class Handshake_GetAuthChallenge extends $pb.GeneratedMessage { factory Handshake_GetAuthChallenge() => create(); - Handshake_GetAuthChallenge._() : super(); - factory Handshake_GetAuthChallenge.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Handshake_GetAuthChallenge.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Handshake.GetAuthChallenge', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) - ..hasRequiredFields = false - ; + Handshake_GetAuthChallenge._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - Handshake_GetAuthChallenge clone() => Handshake_GetAuthChallenge()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Handshake_GetAuthChallenge copyWith(void Function(Handshake_GetAuthChallenge) updates) => super.copyWith((message) => updates(message as Handshake_GetAuthChallenge)) as Handshake_GetAuthChallenge; + factory Handshake_GetAuthChallenge.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Handshake_GetAuthChallenge.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Handshake.GetAuthChallenge', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Handshake_GetAuthChallenge clone() => + Handshake_GetAuthChallenge()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Handshake_GetAuthChallenge copyWith( + void Function(Handshake_GetAuthChallenge) updates) => + super.copyWith( + (message) => updates(message as Handshake_GetAuthChallenge)) + as Handshake_GetAuthChallenge; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Handshake_GetAuthChallenge create() => Handshake_GetAuthChallenge._(); + @$core.override Handshake_GetAuthChallenge createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Handshake_GetAuthChallenge getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Handshake_GetAuthChallenge getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Handshake_GetAuthChallenge? _defaultInstance; } @@ -441,63 +463,71 @@ class Handshake_GetAuthToken extends $pb.GeneratedMessage { $fixnum.Int64? userId, $core.List<$core.int>? response, }) { - final $result = create(); - if (userId != null) { - $result.userId = userId; - } - if (response != null) { - $result.response = response; - } - return $result; + final result = create(); + if (userId != null) result.userId = userId; + if (response != null) result.response = response; + return result; } - Handshake_GetAuthToken._() : super(); - factory Handshake_GetAuthToken.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Handshake_GetAuthToken.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Handshake.GetAuthToken', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) + Handshake_GetAuthToken._(); + + factory Handshake_GetAuthToken.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Handshake_GetAuthToken.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Handshake.GetAuthToken', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'userId') - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'response', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'response', $pb.PbFieldType.OY) + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - Handshake_GetAuthToken clone() => Handshake_GetAuthToken()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Handshake_GetAuthToken copyWith(void Function(Handshake_GetAuthToken) updates) => super.copyWith((message) => updates(message as Handshake_GetAuthToken)) as Handshake_GetAuthToken; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Handshake_GetAuthToken clone() => + Handshake_GetAuthToken()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Handshake_GetAuthToken copyWith( + void Function(Handshake_GetAuthToken) updates) => + super.copyWith((message) => updates(message as Handshake_GetAuthToken)) + as Handshake_GetAuthToken; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Handshake_GetAuthToken create() => Handshake_GetAuthToken._(); + @$core.override Handshake_GetAuthToken createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Handshake_GetAuthToken getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Handshake_GetAuthToken getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Handshake_GetAuthToken? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get userId => $_getI64(0); @$pb.TagNumber(1) - set userId($fixnum.Int64 v) { $_setInt64(0, v); } + set userId($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasUserId() => $_has(0); @$pb.TagNumber(1) - void clearUserId() => clearField(1); + void clearUserId() => $_clearField(1); @$pb.TagNumber(2) $core.List<$core.int> get response => $_getN(1); @$pb.TagNumber(2) - set response($core.List<$core.int> v) { $_setBytes(1, v); } + set response($core.List<$core.int> value) => $_setBytes(1, value); @$pb.TagNumber(2) $core.bool hasResponse() => $_has(1); @$pb.TagNumber(2) - void clearResponse() => clearField(2); + void clearResponse() => $_clearField(2); } class Handshake_Authenticate extends $pb.GeneratedMessage { @@ -507,97 +537,101 @@ class Handshake_Authenticate extends $pb.GeneratedMessage { $core.String? appVersion, $fixnum.Int64? deviceId, }) { - final $result = create(); - if (userId != null) { - $result.userId = userId; - } - if (authToken != null) { - $result.authToken = authToken; - } - if (appVersion != null) { - $result.appVersion = appVersion; - } - if (deviceId != null) { - $result.deviceId = deviceId; - } - return $result; + final result = create(); + if (userId != null) result.userId = userId; + if (authToken != null) result.authToken = authToken; + if (appVersion != null) result.appVersion = appVersion; + if (deviceId != null) result.deviceId = deviceId; + return result; } - Handshake_Authenticate._() : super(); - factory Handshake_Authenticate.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Handshake_Authenticate.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Handshake.Authenticate', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) + Handshake_Authenticate._(); + + factory Handshake_Authenticate.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Handshake_Authenticate.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Handshake.Authenticate', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'userId') - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'authToken', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'authToken', $pb.PbFieldType.OY) ..aOS(3, _omitFieldNames ? '' : 'appVersion') ..aInt64(4, _omitFieldNames ? '' : 'deviceId') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - Handshake_Authenticate clone() => Handshake_Authenticate()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Handshake_Authenticate copyWith(void Function(Handshake_Authenticate) updates) => super.copyWith((message) => updates(message as Handshake_Authenticate)) as Handshake_Authenticate; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Handshake_Authenticate clone() => + Handshake_Authenticate()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Handshake_Authenticate copyWith( + void Function(Handshake_Authenticate) updates) => + super.copyWith((message) => updates(message as Handshake_Authenticate)) + as Handshake_Authenticate; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Handshake_Authenticate create() => Handshake_Authenticate._(); + @$core.override Handshake_Authenticate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Handshake_Authenticate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Handshake_Authenticate getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Handshake_Authenticate? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get userId => $_getI64(0); @$pb.TagNumber(1) - set userId($fixnum.Int64 v) { $_setInt64(0, v); } + set userId($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasUserId() => $_has(0); @$pb.TagNumber(1) - void clearUserId() => clearField(1); + void clearUserId() => $_clearField(1); @$pb.TagNumber(2) $core.List<$core.int> get authToken => $_getN(1); @$pb.TagNumber(2) - set authToken($core.List<$core.int> v) { $_setBytes(1, v); } + set authToken($core.List<$core.int> value) => $_setBytes(1, value); @$pb.TagNumber(2) $core.bool hasAuthToken() => $_has(1); @$pb.TagNumber(2) - void clearAuthToken() => clearField(2); + void clearAuthToken() => $_clearField(2); @$pb.TagNumber(3) $core.String get appVersion => $_getSZ(2); @$pb.TagNumber(3) - set appVersion($core.String v) { $_setString(2, v); } + set appVersion($core.String value) => $_setString(2, value); @$pb.TagNumber(3) $core.bool hasAppVersion() => $_has(2); @$pb.TagNumber(3) - void clearAppVersion() => clearField(3); + void clearAppVersion() => $_clearField(3); @$pb.TagNumber(4) $fixnum.Int64 get deviceId => $_getI64(3); @$pb.TagNumber(4) - set deviceId($fixnum.Int64 v) { $_setInt64(3, v); } + set deviceId($fixnum.Int64 value) => $_setInt64(3, value); @$pb.TagNumber(4) $core.bool hasDeviceId() => $_has(3); @$pb.TagNumber(4) - void clearDeviceId() => clearField(4); + void clearDeviceId() => $_clearField(4); } enum Handshake_Handshake { - register, - getAuthChallenge, - getAuthToken, - authenticate, - requestPOW, + register, + getAuthChallenge, + getAuthToken, + authenticate, + requestPOW, notSet } @@ -609,122 +643,129 @@ class Handshake extends $pb.GeneratedMessage { Handshake_Authenticate? authenticate, Handshake_RequestPOW? requestPOW, }) { - final $result = create(); - if (register != null) { - $result.register = register; - } - if (getAuthChallenge != null) { - $result.getAuthChallenge = getAuthChallenge; - } - if (getAuthToken != null) { - $result.getAuthToken = getAuthToken; - } - if (authenticate != null) { - $result.authenticate = authenticate; - } - if (requestPOW != null) { - $result.requestPOW = requestPOW; - } - return $result; + final result = create(); + if (register != null) result.register = register; + if (getAuthChallenge != null) result.getAuthChallenge = getAuthChallenge; + if (getAuthToken != null) result.getAuthToken = getAuthToken; + if (authenticate != null) result.authenticate = authenticate; + if (requestPOW != null) result.requestPOW = requestPOW; + return result; } - Handshake._() : super(); - factory Handshake.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Handshake.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static const $core.Map<$core.int, Handshake_Handshake> _Handshake_HandshakeByTag = { - 1 : Handshake_Handshake.register, - 2 : Handshake_Handshake.getAuthChallenge, - 3 : Handshake_Handshake.getAuthToken, - 4 : Handshake_Handshake.authenticate, - 5 : Handshake_Handshake.requestPOW, - 0 : Handshake_Handshake.notSet + Handshake._(); + + factory Handshake.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Handshake.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core.Map<$core.int, Handshake_Handshake> + _Handshake_HandshakeByTag = { + 1: Handshake_Handshake.register, + 2: Handshake_Handshake.getAuthChallenge, + 3: Handshake_Handshake.getAuthToken, + 4: Handshake_Handshake.authenticate, + 5: Handshake_Handshake.requestPOW, + 0: Handshake_Handshake.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Handshake', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Handshake', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) ..oo(0, [1, 2, 3, 4, 5]) - ..aOM(1, _omitFieldNames ? '' : 'register', subBuilder: Handshake_Register.create) - ..aOM(2, _omitFieldNames ? '' : 'getAuthChallenge', protoName: 'getAuthChallenge', subBuilder: Handshake_GetAuthChallenge.create) - ..aOM(3, _omitFieldNames ? '' : 'getAuthToken', protoName: 'getAuthToken', subBuilder: Handshake_GetAuthToken.create) - ..aOM(4, _omitFieldNames ? '' : 'authenticate', subBuilder: Handshake_Authenticate.create) - ..aOM(5, _omitFieldNames ? '' : 'requestPOW', protoName: 'requestPOW', subBuilder: Handshake_RequestPOW.create) - ..hasRequiredFields = false - ; + ..aOM(1, _omitFieldNames ? '' : 'register', + subBuilder: Handshake_Register.create) + ..aOM( + 2, _omitFieldNames ? '' : 'getAuthChallenge', + protoName: 'getAuthChallenge', + subBuilder: Handshake_GetAuthChallenge.create) + ..aOM(3, _omitFieldNames ? '' : 'getAuthToken', + protoName: 'getAuthToken', subBuilder: Handshake_GetAuthToken.create) + ..aOM(4, _omitFieldNames ? '' : 'authenticate', + subBuilder: Handshake_Authenticate.create) + ..aOM(5, _omitFieldNames ? '' : 'requestPOW', + protoName: 'requestPOW', subBuilder: Handshake_RequestPOW.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') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Handshake clone() => Handshake()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Handshake copyWith(void Function(Handshake) updates) => super.copyWith((message) => updates(message as Handshake)) as Handshake; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Handshake copyWith(void Function(Handshake) updates) => + super.copyWith((message) => updates(message as Handshake)) as Handshake; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Handshake create() => Handshake._(); + @$core.override Handshake createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Handshake getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Handshake getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Handshake? _defaultInstance; - Handshake_Handshake whichHandshake() => _Handshake_HandshakeByTag[$_whichOneof(0)]!; - void clearHandshake() => clearField($_whichOneof(0)); + Handshake_Handshake whichHandshake() => + _Handshake_HandshakeByTag[$_whichOneof(0)]!; + void clearHandshake() => $_clearField($_whichOneof(0)); @$pb.TagNumber(1) Handshake_Register get register => $_getN(0); @$pb.TagNumber(1) - set register(Handshake_Register v) { setField(1, v); } + set register(Handshake_Register value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasRegister() => $_has(0); @$pb.TagNumber(1) - void clearRegister() => clearField(1); + void clearRegister() => $_clearField(1); @$pb.TagNumber(1) Handshake_Register ensureRegister() => $_ensure(0); @$pb.TagNumber(2) Handshake_GetAuthChallenge get getAuthChallenge => $_getN(1); @$pb.TagNumber(2) - set getAuthChallenge(Handshake_GetAuthChallenge v) { setField(2, v); } + set getAuthChallenge(Handshake_GetAuthChallenge value) => + $_setField(2, value); @$pb.TagNumber(2) $core.bool hasGetAuthChallenge() => $_has(1); @$pb.TagNumber(2) - void clearGetAuthChallenge() => clearField(2); + void clearGetAuthChallenge() => $_clearField(2); @$pb.TagNumber(2) Handshake_GetAuthChallenge ensureGetAuthChallenge() => $_ensure(1); @$pb.TagNumber(3) Handshake_GetAuthToken get getAuthToken => $_getN(2); @$pb.TagNumber(3) - set getAuthToken(Handshake_GetAuthToken v) { setField(3, v); } + set getAuthToken(Handshake_GetAuthToken value) => $_setField(3, value); @$pb.TagNumber(3) $core.bool hasGetAuthToken() => $_has(2); @$pb.TagNumber(3) - void clearGetAuthToken() => clearField(3); + void clearGetAuthToken() => $_clearField(3); @$pb.TagNumber(3) Handshake_GetAuthToken ensureGetAuthToken() => $_ensure(2); @$pb.TagNumber(4) Handshake_Authenticate get authenticate => $_getN(3); @$pb.TagNumber(4) - set authenticate(Handshake_Authenticate v) { setField(4, v); } + set authenticate(Handshake_Authenticate value) => $_setField(4, value); @$pb.TagNumber(4) $core.bool hasAuthenticate() => $_has(3); @$pb.TagNumber(4) - void clearAuthenticate() => clearField(4); + void clearAuthenticate() => $_clearField(4); @$pb.TagNumber(4) Handshake_Authenticate ensureAuthenticate() => $_ensure(3); @$pb.TagNumber(5) Handshake_RequestPOW get requestPOW => $_getN(4); @$pb.TagNumber(5) - set requestPOW(Handshake_RequestPOW v) { setField(5, v); } + set requestPOW(Handshake_RequestPOW value) => $_setField(5, value); @$pb.TagNumber(5) $core.bool hasRequestPOW() => $_has(4); @$pb.TagNumber(5) - void clearRequestPOW() => clearField(5); + void clearRequestPOW() => $_clearField(5); @$pb.TagNumber(5) Handshake_RequestPOW ensureRequestPOW() => $_ensure(4); } @@ -735,326 +776,394 @@ class ApplicationData_TextMessage extends $pb.GeneratedMessage { $core.List<$core.int>? body, $core.List<$core.int>? pushData, }) { - final $result = create(); - if (userId != null) { - $result.userId = userId; - } - if (body != null) { - $result.body = body; - } - if (pushData != null) { - $result.pushData = pushData; - } - return $result; + final result = create(); + if (userId != null) result.userId = userId; + if (body != null) result.body = body; + if (pushData != null) result.pushData = pushData; + return result; } - ApplicationData_TextMessage._() : super(); - factory ApplicationData_TextMessage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ApplicationData_TextMessage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.TextMessage', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) + ApplicationData_TextMessage._(); + + factory ApplicationData_TextMessage.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ApplicationData_TextMessage.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApplicationData.TextMessage', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'userId') - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'body', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(4, _omitFieldNames ? '' : 'pushData', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'body', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 4, _omitFieldNames ? '' : 'pushData', $pb.PbFieldType.OY) + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ApplicationData_TextMessage clone() => ApplicationData_TextMessage()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ApplicationData_TextMessage copyWith(void Function(ApplicationData_TextMessage) updates) => super.copyWith((message) => updates(message as ApplicationData_TextMessage)) as ApplicationData_TextMessage; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_TextMessage clone() => + ApplicationData_TextMessage()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_TextMessage copyWith( + void Function(ApplicationData_TextMessage) updates) => + super.copyWith( + (message) => updates(message as ApplicationData_TextMessage)) + as ApplicationData_TextMessage; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_TextMessage create() => ApplicationData_TextMessage._(); + static ApplicationData_TextMessage create() => + ApplicationData_TextMessage._(); + @$core.override ApplicationData_TextMessage createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ApplicationData_TextMessage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ApplicationData_TextMessage getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ApplicationData_TextMessage? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get userId => $_getI64(0); @$pb.TagNumber(1) - set userId($fixnum.Int64 v) { $_setInt64(0, v); } + set userId($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasUserId() => $_has(0); @$pb.TagNumber(1) - void clearUserId() => clearField(1); + void clearUserId() => $_clearField(1); @$pb.TagNumber(3) $core.List<$core.int> get body => $_getN(1); @$pb.TagNumber(3) - set body($core.List<$core.int> v) { $_setBytes(1, v); } + set body($core.List<$core.int> value) => $_setBytes(1, value); @$pb.TagNumber(3) $core.bool hasBody() => $_has(1); @$pb.TagNumber(3) - void clearBody() => clearField(3); + void clearBody() => $_clearField(3); @$pb.TagNumber(4) $core.List<$core.int> get pushData => $_getN(2); @$pb.TagNumber(4) - set pushData($core.List<$core.int> v) { $_setBytes(2, v); } + set pushData($core.List<$core.int> value) => $_setBytes(2, value); @$pb.TagNumber(4) $core.bool hasPushData() => $_has(2); @$pb.TagNumber(4) - void clearPushData() => clearField(4); + void clearPushData() => $_clearField(4); } class ApplicationData_GetUserByUsername extends $pb.GeneratedMessage { factory ApplicationData_GetUserByUsername({ $core.String? username, }) { - final $result = create(); - if (username != null) { - $result.username = username; - } - return $result; + final result = create(); + if (username != null) result.username = username; + return result; } - ApplicationData_GetUserByUsername._() : super(); - factory ApplicationData_GetUserByUsername.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ApplicationData_GetUserByUsername.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.GetUserByUsername', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) + ApplicationData_GetUserByUsername._(); + + factory ApplicationData_GetUserByUsername.fromBuffer( + $core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ApplicationData_GetUserByUsername.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApplicationData.GetUserByUsername', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'username') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ApplicationData_GetUserByUsername clone() => ApplicationData_GetUserByUsername()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ApplicationData_GetUserByUsername copyWith(void Function(ApplicationData_GetUserByUsername) updates) => super.copyWith((message) => updates(message as ApplicationData_GetUserByUsername)) as ApplicationData_GetUserByUsername; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_GetUserByUsername clone() => + ApplicationData_GetUserByUsername()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_GetUserByUsername copyWith( + void Function(ApplicationData_GetUserByUsername) updates) => + super.copyWith((message) => + updates(message as ApplicationData_GetUserByUsername)) + as ApplicationData_GetUserByUsername; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_GetUserByUsername create() => ApplicationData_GetUserByUsername._(); + static ApplicationData_GetUserByUsername create() => + ApplicationData_GetUserByUsername._(); + @$core.override ApplicationData_GetUserByUsername createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ApplicationData_GetUserByUsername getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ApplicationData_GetUserByUsername getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor( + create); static ApplicationData_GetUserByUsername? _defaultInstance; @$pb.TagNumber(1) $core.String get username => $_getSZ(0); @$pb.TagNumber(1) - set username($core.String v) { $_setString(0, v); } + set username($core.String value) => $_setString(0, value); @$pb.TagNumber(1) $core.bool hasUsername() => $_has(0); @$pb.TagNumber(1) - void clearUsername() => clearField(1); + void clearUsername() => $_clearField(1); } class ApplicationData_ChangeUsername extends $pb.GeneratedMessage { factory ApplicationData_ChangeUsername({ $core.String? username, }) { - final $result = create(); - if (username != null) { - $result.username = username; - } - return $result; + final result = create(); + if (username != null) result.username = username; + return result; } - ApplicationData_ChangeUsername._() : super(); - factory ApplicationData_ChangeUsername.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ApplicationData_ChangeUsername.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.ChangeUsername', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) + ApplicationData_ChangeUsername._(); + + factory ApplicationData_ChangeUsername.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ApplicationData_ChangeUsername.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApplicationData.ChangeUsername', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'username') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ApplicationData_ChangeUsername clone() => ApplicationData_ChangeUsername()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ApplicationData_ChangeUsername copyWith(void Function(ApplicationData_ChangeUsername) updates) => super.copyWith((message) => updates(message as ApplicationData_ChangeUsername)) as ApplicationData_ChangeUsername; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_ChangeUsername clone() => + ApplicationData_ChangeUsername()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_ChangeUsername copyWith( + void Function(ApplicationData_ChangeUsername) updates) => + super.copyWith( + (message) => updates(message as ApplicationData_ChangeUsername)) + as ApplicationData_ChangeUsername; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_ChangeUsername create() => ApplicationData_ChangeUsername._(); + static ApplicationData_ChangeUsername create() => + ApplicationData_ChangeUsername._(); + @$core.override ApplicationData_ChangeUsername createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ApplicationData_ChangeUsername getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ApplicationData_ChangeUsername getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ApplicationData_ChangeUsername? _defaultInstance; @$pb.TagNumber(1) $core.String get username => $_getSZ(0); @$pb.TagNumber(1) - set username($core.String v) { $_setString(0, v); } + set username($core.String value) => $_setString(0, value); @$pb.TagNumber(1) $core.bool hasUsername() => $_has(0); @$pb.TagNumber(1) - void clearUsername() => clearField(1); + void clearUsername() => $_clearField(1); } class ApplicationData_UpdateGoogleFcmToken extends $pb.GeneratedMessage { factory ApplicationData_UpdateGoogleFcmToken({ $core.String? googleFcm, }) { - final $result = create(); - if (googleFcm != null) { - $result.googleFcm = googleFcm; - } - return $result; + final result = create(); + if (googleFcm != null) result.googleFcm = googleFcm; + return result; } - ApplicationData_UpdateGoogleFcmToken._() : super(); - factory ApplicationData_UpdateGoogleFcmToken.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ApplicationData_UpdateGoogleFcmToken.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.UpdateGoogleFcmToken', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) + ApplicationData_UpdateGoogleFcmToken._(); + + factory ApplicationData_UpdateGoogleFcmToken.fromBuffer( + $core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ApplicationData_UpdateGoogleFcmToken.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApplicationData.UpdateGoogleFcmToken', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'googleFcm') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ApplicationData_UpdateGoogleFcmToken clone() => ApplicationData_UpdateGoogleFcmToken()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ApplicationData_UpdateGoogleFcmToken copyWith(void Function(ApplicationData_UpdateGoogleFcmToken) updates) => super.copyWith((message) => updates(message as ApplicationData_UpdateGoogleFcmToken)) as ApplicationData_UpdateGoogleFcmToken; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_UpdateGoogleFcmToken clone() => + ApplicationData_UpdateGoogleFcmToken()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_UpdateGoogleFcmToken copyWith( + void Function(ApplicationData_UpdateGoogleFcmToken) updates) => + super.copyWith((message) => + updates(message as ApplicationData_UpdateGoogleFcmToken)) + as ApplicationData_UpdateGoogleFcmToken; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_UpdateGoogleFcmToken create() => ApplicationData_UpdateGoogleFcmToken._(); + static ApplicationData_UpdateGoogleFcmToken create() => + ApplicationData_UpdateGoogleFcmToken._(); + @$core.override ApplicationData_UpdateGoogleFcmToken createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ApplicationData_UpdateGoogleFcmToken getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ApplicationData_UpdateGoogleFcmToken getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< + ApplicationData_UpdateGoogleFcmToken>(create); static ApplicationData_UpdateGoogleFcmToken? _defaultInstance; @$pb.TagNumber(1) $core.String get googleFcm => $_getSZ(0); @$pb.TagNumber(1) - set googleFcm($core.String v) { $_setString(0, v); } + set googleFcm($core.String value) => $_setString(0, value); @$pb.TagNumber(1) $core.bool hasGoogleFcm() => $_has(0); @$pb.TagNumber(1) - void clearGoogleFcm() => clearField(1); + void clearGoogleFcm() => $_clearField(1); } class ApplicationData_GetUserById extends $pb.GeneratedMessage { factory ApplicationData_GetUserById({ $fixnum.Int64? userId, }) { - final $result = create(); - if (userId != null) { - $result.userId = userId; - } - return $result; + final result = create(); + if (userId != null) result.userId = userId; + return result; } - ApplicationData_GetUserById._() : super(); - factory ApplicationData_GetUserById.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ApplicationData_GetUserById.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.GetUserById', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) + ApplicationData_GetUserById._(); + + factory ApplicationData_GetUserById.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ApplicationData_GetUserById.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApplicationData.GetUserById', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'userId') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ApplicationData_GetUserById clone() => ApplicationData_GetUserById()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ApplicationData_GetUserById copyWith(void Function(ApplicationData_GetUserById) updates) => super.copyWith((message) => updates(message as ApplicationData_GetUserById)) as ApplicationData_GetUserById; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_GetUserById clone() => + ApplicationData_GetUserById()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_GetUserById copyWith( + void Function(ApplicationData_GetUserById) updates) => + super.copyWith( + (message) => updates(message as ApplicationData_GetUserById)) + as ApplicationData_GetUserById; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_GetUserById create() => ApplicationData_GetUserById._(); + static ApplicationData_GetUserById create() => + ApplicationData_GetUserById._(); + @$core.override ApplicationData_GetUserById createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ApplicationData_GetUserById getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ApplicationData_GetUserById getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ApplicationData_GetUserById? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get userId => $_getI64(0); @$pb.TagNumber(1) - set userId($fixnum.Int64 v) { $_setInt64(0, v); } + set userId($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasUserId() => $_has(0); @$pb.TagNumber(1) - void clearUserId() => clearField(1); + void clearUserId() => $_clearField(1); } class ApplicationData_RedeemVoucher extends $pb.GeneratedMessage { factory ApplicationData_RedeemVoucher({ $core.String? voucher, }) { - final $result = create(); - if (voucher != null) { - $result.voucher = voucher; - } - return $result; + final result = create(); + if (voucher != null) result.voucher = voucher; + return result; } - ApplicationData_RedeemVoucher._() : super(); - factory ApplicationData_RedeemVoucher.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ApplicationData_RedeemVoucher.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.RedeemVoucher', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) + ApplicationData_RedeemVoucher._(); + + factory ApplicationData_RedeemVoucher.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ApplicationData_RedeemVoucher.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApplicationData.RedeemVoucher', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'voucher') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ApplicationData_RedeemVoucher clone() => ApplicationData_RedeemVoucher()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ApplicationData_RedeemVoucher copyWith(void Function(ApplicationData_RedeemVoucher) updates) => super.copyWith((message) => updates(message as ApplicationData_RedeemVoucher)) as ApplicationData_RedeemVoucher; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_RedeemVoucher clone() => + ApplicationData_RedeemVoucher()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_RedeemVoucher copyWith( + void Function(ApplicationData_RedeemVoucher) updates) => + super.copyWith( + (message) => updates(message as ApplicationData_RedeemVoucher)) + as ApplicationData_RedeemVoucher; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_RedeemVoucher create() => ApplicationData_RedeemVoucher._(); + static ApplicationData_RedeemVoucher create() => + ApplicationData_RedeemVoucher._(); + @$core.override ApplicationData_RedeemVoucher createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ApplicationData_RedeemVoucher getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ApplicationData_RedeemVoucher getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ApplicationData_RedeemVoucher? _defaultInstance; @$pb.TagNumber(1) $core.String get voucher => $_getSZ(0); @$pb.TagNumber(1) - set voucher($core.String v) { $_setString(0, v); } + set voucher($core.String value) => $_setString(0, value); @$pb.TagNumber(1) $core.bool hasVoucher() => $_has(0); @$pb.TagNumber(1) - void clearVoucher() => clearField(1); + void clearVoucher() => $_clearField(1); } class ApplicationData_SwitchToPayedPlan extends $pb.GeneratedMessage { @@ -1063,335 +1172,439 @@ class ApplicationData_SwitchToPayedPlan extends $pb.GeneratedMessage { $core.bool? payMonthly, $core.bool? autoRenewal, }) { - final $result = create(); - if (planId != null) { - $result.planId = planId; - } - if (payMonthly != null) { - $result.payMonthly = payMonthly; - } - if (autoRenewal != null) { - $result.autoRenewal = autoRenewal; - } - return $result; + final result = create(); + if (planId != null) result.planId = planId; + if (payMonthly != null) result.payMonthly = payMonthly; + if (autoRenewal != null) result.autoRenewal = autoRenewal; + return result; } - ApplicationData_SwitchToPayedPlan._() : super(); - factory ApplicationData_SwitchToPayedPlan.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ApplicationData_SwitchToPayedPlan.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.SwitchToPayedPlan', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) + ApplicationData_SwitchToPayedPlan._(); + + factory ApplicationData_SwitchToPayedPlan.fromBuffer( + $core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ApplicationData_SwitchToPayedPlan.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApplicationData.SwitchToPayedPlan', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'planId') ..aOB(2, _omitFieldNames ? '' : 'payMonthly') ..aOB(3, _omitFieldNames ? '' : 'autoRenewal') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ApplicationData_SwitchToPayedPlan clone() => ApplicationData_SwitchToPayedPlan()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ApplicationData_SwitchToPayedPlan copyWith(void Function(ApplicationData_SwitchToPayedPlan) updates) => super.copyWith((message) => updates(message as ApplicationData_SwitchToPayedPlan)) as ApplicationData_SwitchToPayedPlan; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_SwitchToPayedPlan clone() => + ApplicationData_SwitchToPayedPlan()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_SwitchToPayedPlan copyWith( + void Function(ApplicationData_SwitchToPayedPlan) updates) => + super.copyWith((message) => + updates(message as ApplicationData_SwitchToPayedPlan)) + as ApplicationData_SwitchToPayedPlan; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_SwitchToPayedPlan create() => ApplicationData_SwitchToPayedPlan._(); + static ApplicationData_SwitchToPayedPlan create() => + ApplicationData_SwitchToPayedPlan._(); + @$core.override ApplicationData_SwitchToPayedPlan createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ApplicationData_SwitchToPayedPlan getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ApplicationData_SwitchToPayedPlan getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor( + create); static ApplicationData_SwitchToPayedPlan? _defaultInstance; @$pb.TagNumber(1) $core.String get planId => $_getSZ(0); @$pb.TagNumber(1) - set planId($core.String v) { $_setString(0, v); } + set planId($core.String value) => $_setString(0, value); @$pb.TagNumber(1) $core.bool hasPlanId() => $_has(0); @$pb.TagNumber(1) - void clearPlanId() => clearField(1); + void clearPlanId() => $_clearField(1); @$pb.TagNumber(2) $core.bool get payMonthly => $_getBF(1); @$pb.TagNumber(2) - set payMonthly($core.bool v) { $_setBool(1, v); } + set payMonthly($core.bool value) => $_setBool(1, value); @$pb.TagNumber(2) $core.bool hasPayMonthly() => $_has(1); @$pb.TagNumber(2) - void clearPayMonthly() => clearField(2); + void clearPayMonthly() => $_clearField(2); @$pb.TagNumber(3) $core.bool get autoRenewal => $_getBF(2); @$pb.TagNumber(3) - set autoRenewal($core.bool v) { $_setBool(2, v); } + set autoRenewal($core.bool value) => $_setBool(2, value); @$pb.TagNumber(3) $core.bool hasAutoRenewal() => $_has(2); @$pb.TagNumber(3) - void clearAutoRenewal() => clearField(3); + void clearAutoRenewal() => $_clearField(3); } class ApplicationData_UpdatePlanOptions extends $pb.GeneratedMessage { factory ApplicationData_UpdatePlanOptions({ $core.bool? autoRenewal, }) { - final $result = create(); - if (autoRenewal != null) { - $result.autoRenewal = autoRenewal; - } - return $result; + final result = create(); + if (autoRenewal != null) result.autoRenewal = autoRenewal; + return result; } - ApplicationData_UpdatePlanOptions._() : super(); - factory ApplicationData_UpdatePlanOptions.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ApplicationData_UpdatePlanOptions.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.UpdatePlanOptions', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) + ApplicationData_UpdatePlanOptions._(); + + factory ApplicationData_UpdatePlanOptions.fromBuffer( + $core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ApplicationData_UpdatePlanOptions.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApplicationData.UpdatePlanOptions', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) ..aOB(1, _omitFieldNames ? '' : 'autoRenewal') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ApplicationData_UpdatePlanOptions clone() => ApplicationData_UpdatePlanOptions()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ApplicationData_UpdatePlanOptions copyWith(void Function(ApplicationData_UpdatePlanOptions) updates) => super.copyWith((message) => updates(message as ApplicationData_UpdatePlanOptions)) as ApplicationData_UpdatePlanOptions; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_UpdatePlanOptions clone() => + ApplicationData_UpdatePlanOptions()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_UpdatePlanOptions copyWith( + void Function(ApplicationData_UpdatePlanOptions) updates) => + super.copyWith((message) => + updates(message as ApplicationData_UpdatePlanOptions)) + as ApplicationData_UpdatePlanOptions; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_UpdatePlanOptions create() => ApplicationData_UpdatePlanOptions._(); + static ApplicationData_UpdatePlanOptions create() => + ApplicationData_UpdatePlanOptions._(); + @$core.override ApplicationData_UpdatePlanOptions createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ApplicationData_UpdatePlanOptions getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ApplicationData_UpdatePlanOptions getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor( + create); static ApplicationData_UpdatePlanOptions? _defaultInstance; @$pb.TagNumber(1) $core.bool get autoRenewal => $_getBF(0); @$pb.TagNumber(1) - set autoRenewal($core.bool v) { $_setBool(0, v); } + set autoRenewal($core.bool value) => $_setBool(0, value); @$pb.TagNumber(1) $core.bool hasAutoRenewal() => $_has(0); @$pb.TagNumber(1) - void clearAutoRenewal() => clearField(1); + void clearAutoRenewal() => $_clearField(1); } class ApplicationData_CreateVoucher extends $pb.GeneratedMessage { factory ApplicationData_CreateVoucher({ $core.int? valueCents, }) { - final $result = create(); - if (valueCents != null) { - $result.valueCents = valueCents; - } - return $result; + final result = create(); + if (valueCents != null) result.valueCents = valueCents; + return result; } - ApplicationData_CreateVoucher._() : super(); - factory ApplicationData_CreateVoucher.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ApplicationData_CreateVoucher.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.CreateVoucher', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) + ApplicationData_CreateVoucher._(); + + factory ApplicationData_CreateVoucher.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ApplicationData_CreateVoucher.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApplicationData.CreateVoucher', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'valueCents', $pb.PbFieldType.OU3) - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ApplicationData_CreateVoucher clone() => ApplicationData_CreateVoucher()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ApplicationData_CreateVoucher copyWith(void Function(ApplicationData_CreateVoucher) updates) => super.copyWith((message) => updates(message as ApplicationData_CreateVoucher)) as ApplicationData_CreateVoucher; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_CreateVoucher clone() => + ApplicationData_CreateVoucher()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_CreateVoucher copyWith( + void Function(ApplicationData_CreateVoucher) updates) => + super.copyWith( + (message) => updates(message as ApplicationData_CreateVoucher)) + as ApplicationData_CreateVoucher; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_CreateVoucher create() => ApplicationData_CreateVoucher._(); + static ApplicationData_CreateVoucher create() => + ApplicationData_CreateVoucher._(); + @$core.override ApplicationData_CreateVoucher createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ApplicationData_CreateVoucher getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ApplicationData_CreateVoucher getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ApplicationData_CreateVoucher? _defaultInstance; @$pb.TagNumber(1) $core.int get valueCents => $_getIZ(0); @$pb.TagNumber(1) - set valueCents($core.int v) { $_setUnsignedInt32(0, v); } + set valueCents($core.int value) => $_setUnsignedInt32(0, value); @$pb.TagNumber(1) $core.bool hasValueCents() => $_has(0); @$pb.TagNumber(1) - void clearValueCents() => clearField(1); + void clearValueCents() => $_clearField(1); } class ApplicationData_GetLocation extends $pb.GeneratedMessage { factory ApplicationData_GetLocation() => create(); - ApplicationData_GetLocation._() : super(); - factory ApplicationData_GetLocation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ApplicationData_GetLocation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.GetLocation', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) - ..hasRequiredFields = false - ; + ApplicationData_GetLocation._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ApplicationData_GetLocation clone() => ApplicationData_GetLocation()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ApplicationData_GetLocation copyWith(void Function(ApplicationData_GetLocation) updates) => super.copyWith((message) => updates(message as ApplicationData_GetLocation)) as ApplicationData_GetLocation; + factory ApplicationData_GetLocation.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ApplicationData_GetLocation.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApplicationData.GetLocation', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_GetLocation clone() => + ApplicationData_GetLocation()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_GetLocation copyWith( + void Function(ApplicationData_GetLocation) updates) => + super.copyWith( + (message) => updates(message as ApplicationData_GetLocation)) + as ApplicationData_GetLocation; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_GetLocation create() => ApplicationData_GetLocation._(); + static ApplicationData_GetLocation create() => + ApplicationData_GetLocation._(); + @$core.override ApplicationData_GetLocation createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ApplicationData_GetLocation getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ApplicationData_GetLocation getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ApplicationData_GetLocation? _defaultInstance; } class ApplicationData_GetVouchers extends $pb.GeneratedMessage { factory ApplicationData_GetVouchers() => create(); - ApplicationData_GetVouchers._() : super(); - factory ApplicationData_GetVouchers.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ApplicationData_GetVouchers.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.GetVouchers', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) - ..hasRequiredFields = false - ; + ApplicationData_GetVouchers._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ApplicationData_GetVouchers clone() => ApplicationData_GetVouchers()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ApplicationData_GetVouchers copyWith(void Function(ApplicationData_GetVouchers) updates) => super.copyWith((message) => updates(message as ApplicationData_GetVouchers)) as ApplicationData_GetVouchers; + factory ApplicationData_GetVouchers.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ApplicationData_GetVouchers.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApplicationData.GetVouchers', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_GetVouchers clone() => + ApplicationData_GetVouchers()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_GetVouchers copyWith( + void Function(ApplicationData_GetVouchers) updates) => + super.copyWith( + (message) => updates(message as ApplicationData_GetVouchers)) + as ApplicationData_GetVouchers; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_GetVouchers create() => ApplicationData_GetVouchers._(); + static ApplicationData_GetVouchers create() => + ApplicationData_GetVouchers._(); + @$core.override ApplicationData_GetVouchers createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ApplicationData_GetVouchers getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ApplicationData_GetVouchers getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ApplicationData_GetVouchers? _defaultInstance; } class ApplicationData_GetAvailablePlans extends $pb.GeneratedMessage { factory ApplicationData_GetAvailablePlans() => create(); - ApplicationData_GetAvailablePlans._() : super(); - factory ApplicationData_GetAvailablePlans.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ApplicationData_GetAvailablePlans.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.GetAvailablePlans', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) - ..hasRequiredFields = false - ; + ApplicationData_GetAvailablePlans._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ApplicationData_GetAvailablePlans clone() => ApplicationData_GetAvailablePlans()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ApplicationData_GetAvailablePlans copyWith(void Function(ApplicationData_GetAvailablePlans) updates) => super.copyWith((message) => updates(message as ApplicationData_GetAvailablePlans)) as ApplicationData_GetAvailablePlans; + factory ApplicationData_GetAvailablePlans.fromBuffer( + $core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ApplicationData_GetAvailablePlans.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApplicationData.GetAvailablePlans', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_GetAvailablePlans clone() => + ApplicationData_GetAvailablePlans()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_GetAvailablePlans copyWith( + void Function(ApplicationData_GetAvailablePlans) updates) => + super.copyWith((message) => + updates(message as ApplicationData_GetAvailablePlans)) + as ApplicationData_GetAvailablePlans; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_GetAvailablePlans create() => ApplicationData_GetAvailablePlans._(); + static ApplicationData_GetAvailablePlans create() => + ApplicationData_GetAvailablePlans._(); + @$core.override ApplicationData_GetAvailablePlans createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ApplicationData_GetAvailablePlans getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ApplicationData_GetAvailablePlans getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor( + create); static ApplicationData_GetAvailablePlans? _defaultInstance; } class ApplicationData_GetAddAccountsInvites extends $pb.GeneratedMessage { factory ApplicationData_GetAddAccountsInvites() => create(); - ApplicationData_GetAddAccountsInvites._() : super(); - factory ApplicationData_GetAddAccountsInvites.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ApplicationData_GetAddAccountsInvites.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.GetAddAccountsInvites', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) - ..hasRequiredFields = false - ; + ApplicationData_GetAddAccountsInvites._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ApplicationData_GetAddAccountsInvites clone() => ApplicationData_GetAddAccountsInvites()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ApplicationData_GetAddAccountsInvites copyWith(void Function(ApplicationData_GetAddAccountsInvites) updates) => super.copyWith((message) => updates(message as ApplicationData_GetAddAccountsInvites)) as ApplicationData_GetAddAccountsInvites; + factory ApplicationData_GetAddAccountsInvites.fromBuffer( + $core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ApplicationData_GetAddAccountsInvites.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApplicationData.GetAddAccountsInvites', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_GetAddAccountsInvites clone() => + ApplicationData_GetAddAccountsInvites()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_GetAddAccountsInvites copyWith( + void Function(ApplicationData_GetAddAccountsInvites) updates) => + super.copyWith((message) => + updates(message as ApplicationData_GetAddAccountsInvites)) + as ApplicationData_GetAddAccountsInvites; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_GetAddAccountsInvites create() => ApplicationData_GetAddAccountsInvites._(); + static ApplicationData_GetAddAccountsInvites create() => + ApplicationData_GetAddAccountsInvites._(); + @$core.override ApplicationData_GetAddAccountsInvites createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ApplicationData_GetAddAccountsInvites getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ApplicationData_GetAddAccountsInvites getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< + ApplicationData_GetAddAccountsInvites>(create); static ApplicationData_GetAddAccountsInvites? _defaultInstance; } class ApplicationData_GetCurrentPlanInfos extends $pb.GeneratedMessage { factory ApplicationData_GetCurrentPlanInfos() => create(); - ApplicationData_GetCurrentPlanInfos._() : super(); - factory ApplicationData_GetCurrentPlanInfos.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ApplicationData_GetCurrentPlanInfos.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.GetCurrentPlanInfos', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) - ..hasRequiredFields = false - ; + ApplicationData_GetCurrentPlanInfos._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ApplicationData_GetCurrentPlanInfos clone() => ApplicationData_GetCurrentPlanInfos()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ApplicationData_GetCurrentPlanInfos copyWith(void Function(ApplicationData_GetCurrentPlanInfos) updates) => super.copyWith((message) => updates(message as ApplicationData_GetCurrentPlanInfos)) as ApplicationData_GetCurrentPlanInfos; + factory ApplicationData_GetCurrentPlanInfos.fromBuffer( + $core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ApplicationData_GetCurrentPlanInfos.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApplicationData.GetCurrentPlanInfos', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_GetCurrentPlanInfos clone() => + ApplicationData_GetCurrentPlanInfos()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_GetCurrentPlanInfos copyWith( + void Function(ApplicationData_GetCurrentPlanInfos) updates) => + super.copyWith((message) => + updates(message as ApplicationData_GetCurrentPlanInfos)) + as ApplicationData_GetCurrentPlanInfos; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_GetCurrentPlanInfos create() => ApplicationData_GetCurrentPlanInfos._(); + static ApplicationData_GetCurrentPlanInfos create() => + ApplicationData_GetCurrentPlanInfos._(); + @$core.override ApplicationData_GetCurrentPlanInfos createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ApplicationData_GetCurrentPlanInfos getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ApplicationData_GetCurrentPlanInfos getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< + ApplicationData_GetCurrentPlanInfos>(create); static ApplicationData_GetCurrentPlanInfos? _defaultInstance; } @@ -1399,200 +1612,252 @@ class ApplicationData_RedeemAdditionalCode extends $pb.GeneratedMessage { factory ApplicationData_RedeemAdditionalCode({ $core.String? inviteCode, }) { - final $result = create(); - if (inviteCode != null) { - $result.inviteCode = inviteCode; - } - return $result; + final result = create(); + if (inviteCode != null) result.inviteCode = inviteCode; + return result; } - ApplicationData_RedeemAdditionalCode._() : super(); - factory ApplicationData_RedeemAdditionalCode.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ApplicationData_RedeemAdditionalCode.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.RedeemAdditionalCode', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) + ApplicationData_RedeemAdditionalCode._(); + + factory ApplicationData_RedeemAdditionalCode.fromBuffer( + $core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ApplicationData_RedeemAdditionalCode.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApplicationData.RedeemAdditionalCode', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) ..aOS(2, _omitFieldNames ? '' : 'inviteCode') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ApplicationData_RedeemAdditionalCode clone() => ApplicationData_RedeemAdditionalCode()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ApplicationData_RedeemAdditionalCode copyWith(void Function(ApplicationData_RedeemAdditionalCode) updates) => super.copyWith((message) => updates(message as ApplicationData_RedeemAdditionalCode)) as ApplicationData_RedeemAdditionalCode; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_RedeemAdditionalCode clone() => + ApplicationData_RedeemAdditionalCode()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_RedeemAdditionalCode copyWith( + void Function(ApplicationData_RedeemAdditionalCode) updates) => + super.copyWith((message) => + updates(message as ApplicationData_RedeemAdditionalCode)) + as ApplicationData_RedeemAdditionalCode; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_RedeemAdditionalCode create() => ApplicationData_RedeemAdditionalCode._(); + static ApplicationData_RedeemAdditionalCode create() => + ApplicationData_RedeemAdditionalCode._(); + @$core.override ApplicationData_RedeemAdditionalCode createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ApplicationData_RedeemAdditionalCode getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ApplicationData_RedeemAdditionalCode getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< + ApplicationData_RedeemAdditionalCode>(create); static ApplicationData_RedeemAdditionalCode? _defaultInstance; @$pb.TagNumber(2) $core.String get inviteCode => $_getSZ(0); @$pb.TagNumber(2) - set inviteCode($core.String v) { $_setString(0, v); } + set inviteCode($core.String value) => $_setString(0, value); @$pb.TagNumber(2) $core.bool hasInviteCode() => $_has(0); @$pb.TagNumber(2) - void clearInviteCode() => clearField(2); + void clearInviteCode() => $_clearField(2); } class ApplicationData_RemoveAdditionalUser extends $pb.GeneratedMessage { factory ApplicationData_RemoveAdditionalUser({ $fixnum.Int64? userId, }) { - final $result = create(); - if (userId != null) { - $result.userId = userId; - } - return $result; + final result = create(); + if (userId != null) result.userId = userId; + return result; } - ApplicationData_RemoveAdditionalUser._() : super(); - factory ApplicationData_RemoveAdditionalUser.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ApplicationData_RemoveAdditionalUser.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.RemoveAdditionalUser', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) + ApplicationData_RemoveAdditionalUser._(); + + factory ApplicationData_RemoveAdditionalUser.fromBuffer( + $core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ApplicationData_RemoveAdditionalUser.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApplicationData.RemoveAdditionalUser', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'userId') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ApplicationData_RemoveAdditionalUser clone() => ApplicationData_RemoveAdditionalUser()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ApplicationData_RemoveAdditionalUser copyWith(void Function(ApplicationData_RemoveAdditionalUser) updates) => super.copyWith((message) => updates(message as ApplicationData_RemoveAdditionalUser)) as ApplicationData_RemoveAdditionalUser; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_RemoveAdditionalUser clone() => + ApplicationData_RemoveAdditionalUser()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_RemoveAdditionalUser copyWith( + void Function(ApplicationData_RemoveAdditionalUser) updates) => + super.copyWith((message) => + updates(message as ApplicationData_RemoveAdditionalUser)) + as ApplicationData_RemoveAdditionalUser; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_RemoveAdditionalUser create() => ApplicationData_RemoveAdditionalUser._(); + static ApplicationData_RemoveAdditionalUser create() => + ApplicationData_RemoveAdditionalUser._(); + @$core.override ApplicationData_RemoveAdditionalUser createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ApplicationData_RemoveAdditionalUser getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ApplicationData_RemoveAdditionalUser getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< + ApplicationData_RemoveAdditionalUser>(create); static ApplicationData_RemoveAdditionalUser? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get userId => $_getI64(0); @$pb.TagNumber(1) - set userId($fixnum.Int64 v) { $_setInt64(0, v); } + set userId($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasUserId() => $_has(0); @$pb.TagNumber(1) - void clearUserId() => clearField(1); + void clearUserId() => $_clearField(1); } class ApplicationData_GetPrekeysByUserId extends $pb.GeneratedMessage { factory ApplicationData_GetPrekeysByUserId({ $fixnum.Int64? userId, }) { - final $result = create(); - if (userId != null) { - $result.userId = userId; - } - return $result; + final result = create(); + if (userId != null) result.userId = userId; + return result; } - ApplicationData_GetPrekeysByUserId._() : super(); - factory ApplicationData_GetPrekeysByUserId.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ApplicationData_GetPrekeysByUserId.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.GetPrekeysByUserId', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) + ApplicationData_GetPrekeysByUserId._(); + + factory ApplicationData_GetPrekeysByUserId.fromBuffer( + $core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ApplicationData_GetPrekeysByUserId.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApplicationData.GetPrekeysByUserId', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'userId') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ApplicationData_GetPrekeysByUserId clone() => ApplicationData_GetPrekeysByUserId()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ApplicationData_GetPrekeysByUserId copyWith(void Function(ApplicationData_GetPrekeysByUserId) updates) => super.copyWith((message) => updates(message as ApplicationData_GetPrekeysByUserId)) as ApplicationData_GetPrekeysByUserId; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_GetPrekeysByUserId clone() => + ApplicationData_GetPrekeysByUserId()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_GetPrekeysByUserId copyWith( + void Function(ApplicationData_GetPrekeysByUserId) updates) => + super.copyWith((message) => + updates(message as ApplicationData_GetPrekeysByUserId)) + as ApplicationData_GetPrekeysByUserId; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_GetPrekeysByUserId create() => ApplicationData_GetPrekeysByUserId._(); + static ApplicationData_GetPrekeysByUserId create() => + ApplicationData_GetPrekeysByUserId._(); + @$core.override ApplicationData_GetPrekeysByUserId createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ApplicationData_GetPrekeysByUserId getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ApplicationData_GetPrekeysByUserId getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor( + create); static ApplicationData_GetPrekeysByUserId? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get userId => $_getI64(0); @$pb.TagNumber(1) - set userId($fixnum.Int64 v) { $_setInt64(0, v); } + set userId($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasUserId() => $_has(0); @$pb.TagNumber(1) - void clearUserId() => clearField(1); + void clearUserId() => $_clearField(1); } class ApplicationData_GetSignedPreKeyByUserId extends $pb.GeneratedMessage { factory ApplicationData_GetSignedPreKeyByUserId({ $fixnum.Int64? userId, }) { - final $result = create(); - if (userId != null) { - $result.userId = userId; - } - return $result; + final result = create(); + if (userId != null) result.userId = userId; + return result; } - ApplicationData_GetSignedPreKeyByUserId._() : super(); - factory ApplicationData_GetSignedPreKeyByUserId.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ApplicationData_GetSignedPreKeyByUserId.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.GetSignedPreKeyByUserId', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) + ApplicationData_GetSignedPreKeyByUserId._(); + + factory ApplicationData_GetSignedPreKeyByUserId.fromBuffer( + $core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ApplicationData_GetSignedPreKeyByUserId.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApplicationData.GetSignedPreKeyByUserId', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'userId') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ApplicationData_GetSignedPreKeyByUserId clone() => ApplicationData_GetSignedPreKeyByUserId()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ApplicationData_GetSignedPreKeyByUserId copyWith(void Function(ApplicationData_GetSignedPreKeyByUserId) updates) => super.copyWith((message) => updates(message as ApplicationData_GetSignedPreKeyByUserId)) as ApplicationData_GetSignedPreKeyByUserId; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_GetSignedPreKeyByUserId clone() => + ApplicationData_GetSignedPreKeyByUserId()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_GetSignedPreKeyByUserId copyWith( + void Function(ApplicationData_GetSignedPreKeyByUserId) updates) => + super.copyWith((message) => + updates(message as ApplicationData_GetSignedPreKeyByUserId)) + as ApplicationData_GetSignedPreKeyByUserId; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_GetSignedPreKeyByUserId create() => ApplicationData_GetSignedPreKeyByUserId._(); + static ApplicationData_GetSignedPreKeyByUserId create() => + ApplicationData_GetSignedPreKeyByUserId._(); + @$core.override ApplicationData_GetSignedPreKeyByUserId createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ApplicationData_GetSignedPreKeyByUserId getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ApplicationData_GetSignedPreKeyByUserId getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< + ApplicationData_GetSignedPreKeyByUserId>(create); static ApplicationData_GetSignedPreKeyByUserId? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get userId => $_getI64(0); @$pb.TagNumber(1) - set userId($fixnum.Int64 v) { $_setInt64(0, v); } + set userId($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasUserId() => $_has(0); @$pb.TagNumber(1) - void clearUserId() => clearField(1); + void clearUserId() => $_clearField(1); } class ApplicationData_UpdateSignedPreKey extends $pb.GeneratedMessage { @@ -1601,126 +1866,151 @@ class ApplicationData_UpdateSignedPreKey extends $pb.GeneratedMessage { $core.List<$core.int>? signedPrekey, $core.List<$core.int>? signedPrekeySignature, }) { - final $result = create(); - if (signedPrekeyId != null) { - $result.signedPrekeyId = signedPrekeyId; - } - if (signedPrekey != null) { - $result.signedPrekey = signedPrekey; - } - if (signedPrekeySignature != null) { - $result.signedPrekeySignature = signedPrekeySignature; - } - return $result; + final result = create(); + if (signedPrekeyId != null) result.signedPrekeyId = signedPrekeyId; + if (signedPrekey != null) result.signedPrekey = signedPrekey; + if (signedPrekeySignature != null) + result.signedPrekeySignature = signedPrekeySignature; + return result; } - ApplicationData_UpdateSignedPreKey._() : super(); - factory ApplicationData_UpdateSignedPreKey.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ApplicationData_UpdateSignedPreKey.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.UpdateSignedPreKey', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) + ApplicationData_UpdateSignedPreKey._(); + + factory ApplicationData_UpdateSignedPreKey.fromBuffer( + $core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ApplicationData_UpdateSignedPreKey.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApplicationData.UpdateSignedPreKey', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'signedPrekeyId') - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'signedPrekey', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'signedPrekeySignature', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'signedPrekey', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'signedPrekeySignature', $pb.PbFieldType.OY) + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ApplicationData_UpdateSignedPreKey clone() => ApplicationData_UpdateSignedPreKey()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ApplicationData_UpdateSignedPreKey copyWith(void Function(ApplicationData_UpdateSignedPreKey) updates) => super.copyWith((message) => updates(message as ApplicationData_UpdateSignedPreKey)) as ApplicationData_UpdateSignedPreKey; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_UpdateSignedPreKey clone() => + ApplicationData_UpdateSignedPreKey()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_UpdateSignedPreKey copyWith( + void Function(ApplicationData_UpdateSignedPreKey) updates) => + super.copyWith((message) => + updates(message as ApplicationData_UpdateSignedPreKey)) + as ApplicationData_UpdateSignedPreKey; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_UpdateSignedPreKey create() => ApplicationData_UpdateSignedPreKey._(); + static ApplicationData_UpdateSignedPreKey create() => + ApplicationData_UpdateSignedPreKey._(); + @$core.override ApplicationData_UpdateSignedPreKey createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ApplicationData_UpdateSignedPreKey getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ApplicationData_UpdateSignedPreKey getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor( + create); static ApplicationData_UpdateSignedPreKey? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get signedPrekeyId => $_getI64(0); @$pb.TagNumber(1) - set signedPrekeyId($fixnum.Int64 v) { $_setInt64(0, v); } + set signedPrekeyId($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasSignedPrekeyId() => $_has(0); @$pb.TagNumber(1) - void clearSignedPrekeyId() => clearField(1); + void clearSignedPrekeyId() => $_clearField(1); @$pb.TagNumber(2) $core.List<$core.int> get signedPrekey => $_getN(1); @$pb.TagNumber(2) - set signedPrekey($core.List<$core.int> v) { $_setBytes(1, v); } + set signedPrekey($core.List<$core.int> value) => $_setBytes(1, value); @$pb.TagNumber(2) $core.bool hasSignedPrekey() => $_has(1); @$pb.TagNumber(2) - void clearSignedPrekey() => clearField(2); + void clearSignedPrekey() => $_clearField(2); @$pb.TagNumber(3) $core.List<$core.int> get signedPrekeySignature => $_getN(2); @$pb.TagNumber(3) - set signedPrekeySignature($core.List<$core.int> v) { $_setBytes(2, v); } + set signedPrekeySignature($core.List<$core.int> value) => + $_setBytes(2, value); @$pb.TagNumber(3) $core.bool hasSignedPrekeySignature() => $_has(2); @$pb.TagNumber(3) - void clearSignedPrekeySignature() => clearField(3); + void clearSignedPrekeySignature() => $_clearField(3); } class ApplicationData_DownloadDone extends $pb.GeneratedMessage { factory ApplicationData_DownloadDone({ $core.List<$core.int>? downloadToken, }) { - final $result = create(); - if (downloadToken != null) { - $result.downloadToken = downloadToken; - } - return $result; + final result = create(); + if (downloadToken != null) result.downloadToken = downloadToken; + return result; } - ApplicationData_DownloadDone._() : super(); - factory ApplicationData_DownloadDone.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ApplicationData_DownloadDone.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.DownloadDone', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) - ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'downloadToken', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; + ApplicationData_DownloadDone._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ApplicationData_DownloadDone clone() => ApplicationData_DownloadDone()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ApplicationData_DownloadDone copyWith(void Function(ApplicationData_DownloadDone) updates) => super.copyWith((message) => updates(message as ApplicationData_DownloadDone)) as ApplicationData_DownloadDone; + factory ApplicationData_DownloadDone.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ApplicationData_DownloadDone.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApplicationData.DownloadDone', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) + ..a<$core.List<$core.int>>( + 1, _omitFieldNames ? '' : 'downloadToken', $pb.PbFieldType.OY) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_DownloadDone clone() => + ApplicationData_DownloadDone()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_DownloadDone copyWith( + void Function(ApplicationData_DownloadDone) updates) => + super.copyWith( + (message) => updates(message as ApplicationData_DownloadDone)) + as ApplicationData_DownloadDone; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_DownloadDone create() => ApplicationData_DownloadDone._(); + static ApplicationData_DownloadDone create() => + ApplicationData_DownloadDone._(); + @$core.override ApplicationData_DownloadDone createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ApplicationData_DownloadDone getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ApplicationData_DownloadDone getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ApplicationData_DownloadDone? _defaultInstance; @$pb.TagNumber(1) $core.List<$core.int> get downloadToken => $_getN(0); @$pb.TagNumber(1) - set downloadToken($core.List<$core.int> v) { $_setBytes(0, v); } + set downloadToken($core.List<$core.int> value) => $_setBytes(0, value); @$pb.TagNumber(1) $core.bool hasDownloadToken() => $_has(0); @$pb.TagNumber(1) - void clearDownloadToken() => clearField(1); + void clearDownloadToken() => $_clearField(1); } class ApplicationData_ReportUser extends $pb.GeneratedMessage { @@ -1728,120 +2018,141 @@ class ApplicationData_ReportUser extends $pb.GeneratedMessage { $fixnum.Int64? reportedUserId, $core.String? reason, }) { - final $result = create(); - if (reportedUserId != null) { - $result.reportedUserId = reportedUserId; - } - if (reason != null) { - $result.reason = reason; - } - return $result; + final result = create(); + if (reportedUserId != null) result.reportedUserId = reportedUserId; + if (reason != null) result.reason = reason; + return result; } - ApplicationData_ReportUser._() : super(); - factory ApplicationData_ReportUser.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ApplicationData_ReportUser.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.ReportUser', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) + ApplicationData_ReportUser._(); + + factory ApplicationData_ReportUser.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ApplicationData_ReportUser.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApplicationData.ReportUser', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'reportedUserId') ..aOS(2, _omitFieldNames ? '' : 'reason') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ApplicationData_ReportUser clone() => ApplicationData_ReportUser()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ApplicationData_ReportUser copyWith(void Function(ApplicationData_ReportUser) updates) => super.copyWith((message) => updates(message as ApplicationData_ReportUser)) as ApplicationData_ReportUser; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_ReportUser clone() => + ApplicationData_ReportUser()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_ReportUser copyWith( + void Function(ApplicationData_ReportUser) updates) => + super.copyWith( + (message) => updates(message as ApplicationData_ReportUser)) + as ApplicationData_ReportUser; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ApplicationData_ReportUser create() => ApplicationData_ReportUser._(); + @$core.override ApplicationData_ReportUser createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ApplicationData_ReportUser getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ApplicationData_ReportUser getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ApplicationData_ReportUser? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get reportedUserId => $_getI64(0); @$pb.TagNumber(1) - set reportedUserId($fixnum.Int64 v) { $_setInt64(0, v); } + set reportedUserId($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasReportedUserId() => $_has(0); @$pb.TagNumber(1) - void clearReportedUserId() => clearField(1); + void clearReportedUserId() => $_clearField(1); @$pb.TagNumber(2) $core.String get reason => $_getSZ(1); @$pb.TagNumber(2) - set reason($core.String v) { $_setString(1, v); } + set reason($core.String value) => $_setString(1, value); @$pb.TagNumber(2) $core.bool hasReason() => $_has(1); @$pb.TagNumber(2) - void clearReason() => clearField(2); + void clearReason() => $_clearField(2); } class ApplicationData_DeleteAccount extends $pb.GeneratedMessage { factory ApplicationData_DeleteAccount() => create(); - ApplicationData_DeleteAccount._() : super(); - factory ApplicationData_DeleteAccount.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ApplicationData_DeleteAccount.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.DeleteAccount', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) - ..hasRequiredFields = false - ; + ApplicationData_DeleteAccount._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ApplicationData_DeleteAccount clone() => ApplicationData_DeleteAccount()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ApplicationData_DeleteAccount copyWith(void Function(ApplicationData_DeleteAccount) updates) => super.copyWith((message) => updates(message as ApplicationData_DeleteAccount)) as ApplicationData_DeleteAccount; + factory ApplicationData_DeleteAccount.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ApplicationData_DeleteAccount.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApplicationData.DeleteAccount', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_DeleteAccount clone() => + ApplicationData_DeleteAccount()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData_DeleteAccount copyWith( + void Function(ApplicationData_DeleteAccount) updates) => + super.copyWith( + (message) => updates(message as ApplicationData_DeleteAccount)) + as ApplicationData_DeleteAccount; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_DeleteAccount create() => ApplicationData_DeleteAccount._(); + static ApplicationData_DeleteAccount create() => + ApplicationData_DeleteAccount._(); + @$core.override ApplicationData_DeleteAccount createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ApplicationData_DeleteAccount getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ApplicationData_DeleteAccount getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ApplicationData_DeleteAccount? _defaultInstance; } enum ApplicationData_ApplicationData { - textMessage, - getUserByUsername, - getPrekeysByUserId, - getUserById, - updateGoogleFcmToken, - getLocation, - getCurrentPlanInfos, - redeemVoucher, - getAvailablePlans, - createVoucher, - getVouchers, - switchtoPayedPlan, - getAddaccountsInvites, - redeemAdditionalCode, - removeAdditionalUser, - updatePlanOptions, - downloadDone, - getSignedPrekeyByUserid, - updateSignedPrekey, - deleteAccount, - reportUser, - changeUsername, + textMessage, + getUserByUsername, + getPrekeysByUserId, + getUserById, + updateGoogleFcmToken, + getLocation, + getCurrentPlanInfos, + redeemVoucher, + getAvailablePlans, + createVoucher, + getVouchers, + switchtoPayedPlan, + getAddaccountsInvites, + redeemAdditionalCode, + removeAdditionalUser, + updatePlanOptions, + downloadDone, + getSignedPrekeyByUserid, + updateSignedPrekey, + deleteAccount, + reportUser, + changeUsername, notSet } @@ -1870,394 +2181,475 @@ class ApplicationData extends $pb.GeneratedMessage { ApplicationData_ReportUser? reportUser, ApplicationData_ChangeUsername? changeUsername, }) { - final $result = create(); - if (textMessage != null) { - $result.textMessage = textMessage; - } - if (getUserByUsername != null) { - $result.getUserByUsername = getUserByUsername; - } - if (getPrekeysByUserId != null) { - $result.getPrekeysByUserId = getPrekeysByUserId; - } - if (getUserById != null) { - $result.getUserById = getUserById; - } - if (updateGoogleFcmToken != null) { - $result.updateGoogleFcmToken = updateGoogleFcmToken; - } - if (getLocation != null) { - $result.getLocation = getLocation; - } - if (getCurrentPlanInfos != null) { - $result.getCurrentPlanInfos = getCurrentPlanInfos; - } - if (redeemVoucher != null) { - $result.redeemVoucher = redeemVoucher; - } - if (getAvailablePlans != null) { - $result.getAvailablePlans = getAvailablePlans; - } - if (createVoucher != null) { - $result.createVoucher = createVoucher; - } - if (getVouchers != null) { - $result.getVouchers = getVouchers; - } - if (switchtoPayedPlan != null) { - $result.switchtoPayedPlan = switchtoPayedPlan; - } - if (getAddaccountsInvites != null) { - $result.getAddaccountsInvites = getAddaccountsInvites; - } - if (redeemAdditionalCode != null) { - $result.redeemAdditionalCode = redeemAdditionalCode; - } - if (removeAdditionalUser != null) { - $result.removeAdditionalUser = removeAdditionalUser; - } - if (updatePlanOptions != null) { - $result.updatePlanOptions = updatePlanOptions; - } - if (downloadDone != null) { - $result.downloadDone = downloadDone; - } - if (getSignedPrekeyByUserid != null) { - $result.getSignedPrekeyByUserid = getSignedPrekeyByUserid; - } - if (updateSignedPrekey != null) { - $result.updateSignedPrekey = updateSignedPrekey; - } - if (deleteAccount != null) { - $result.deleteAccount = deleteAccount; - } - if (reportUser != null) { - $result.reportUser = reportUser; - } - if (changeUsername != null) { - $result.changeUsername = changeUsername; - } - return $result; + final result = create(); + if (textMessage != null) result.textMessage = textMessage; + if (getUserByUsername != null) result.getUserByUsername = getUserByUsername; + if (getPrekeysByUserId != null) + result.getPrekeysByUserId = getPrekeysByUserId; + if (getUserById != null) result.getUserById = getUserById; + if (updateGoogleFcmToken != null) + result.updateGoogleFcmToken = updateGoogleFcmToken; + if (getLocation != null) result.getLocation = getLocation; + if (getCurrentPlanInfos != null) + result.getCurrentPlanInfos = getCurrentPlanInfos; + if (redeemVoucher != null) result.redeemVoucher = redeemVoucher; + if (getAvailablePlans != null) result.getAvailablePlans = getAvailablePlans; + if (createVoucher != null) result.createVoucher = createVoucher; + if (getVouchers != null) result.getVouchers = getVouchers; + if (switchtoPayedPlan != null) result.switchtoPayedPlan = switchtoPayedPlan; + if (getAddaccountsInvites != null) + result.getAddaccountsInvites = getAddaccountsInvites; + if (redeemAdditionalCode != null) + result.redeemAdditionalCode = redeemAdditionalCode; + if (removeAdditionalUser != null) + result.removeAdditionalUser = removeAdditionalUser; + if (updatePlanOptions != null) result.updatePlanOptions = updatePlanOptions; + if (downloadDone != null) result.downloadDone = downloadDone; + if (getSignedPrekeyByUserid != null) + result.getSignedPrekeyByUserid = getSignedPrekeyByUserid; + if (updateSignedPrekey != null) + result.updateSignedPrekey = updateSignedPrekey; + if (deleteAccount != null) result.deleteAccount = deleteAccount; + if (reportUser != null) result.reportUser = reportUser; + if (changeUsername != null) result.changeUsername = changeUsername; + return result; } - ApplicationData._() : super(); - factory ApplicationData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ApplicationData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static const $core.Map<$core.int, ApplicationData_ApplicationData> _ApplicationData_ApplicationDataByTag = { - 1 : ApplicationData_ApplicationData.textMessage, - 2 : ApplicationData_ApplicationData.getUserByUsername, - 3 : ApplicationData_ApplicationData.getPrekeysByUserId, - 6 : ApplicationData_ApplicationData.getUserById, - 8 : ApplicationData_ApplicationData.updateGoogleFcmToken, - 9 : ApplicationData_ApplicationData.getLocation, - 10 : ApplicationData_ApplicationData.getCurrentPlanInfos, - 11 : ApplicationData_ApplicationData.redeemVoucher, - 12 : ApplicationData_ApplicationData.getAvailablePlans, - 13 : ApplicationData_ApplicationData.createVoucher, - 14 : ApplicationData_ApplicationData.getVouchers, - 15 : ApplicationData_ApplicationData.switchtoPayedPlan, - 16 : ApplicationData_ApplicationData.getAddaccountsInvites, - 17 : ApplicationData_ApplicationData.redeemAdditionalCode, - 18 : ApplicationData_ApplicationData.removeAdditionalUser, - 19 : ApplicationData_ApplicationData.updatePlanOptions, - 20 : ApplicationData_ApplicationData.downloadDone, - 22 : ApplicationData_ApplicationData.getSignedPrekeyByUserid, - 23 : ApplicationData_ApplicationData.updateSignedPrekey, - 24 : ApplicationData_ApplicationData.deleteAccount, - 25 : ApplicationData_ApplicationData.reportUser, - 26 : ApplicationData_ApplicationData.changeUsername, - 0 : ApplicationData_ApplicationData.notSet + ApplicationData._(); + + factory ApplicationData.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ApplicationData.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core.Map<$core.int, ApplicationData_ApplicationData> + _ApplicationData_ApplicationDataByTag = { + 1: ApplicationData_ApplicationData.textMessage, + 2: ApplicationData_ApplicationData.getUserByUsername, + 3: ApplicationData_ApplicationData.getPrekeysByUserId, + 6: ApplicationData_ApplicationData.getUserById, + 8: ApplicationData_ApplicationData.updateGoogleFcmToken, + 9: ApplicationData_ApplicationData.getLocation, + 10: ApplicationData_ApplicationData.getCurrentPlanInfos, + 11: ApplicationData_ApplicationData.redeemVoucher, + 12: ApplicationData_ApplicationData.getAvailablePlans, + 13: ApplicationData_ApplicationData.createVoucher, + 14: ApplicationData_ApplicationData.getVouchers, + 15: ApplicationData_ApplicationData.switchtoPayedPlan, + 16: ApplicationData_ApplicationData.getAddaccountsInvites, + 17: ApplicationData_ApplicationData.redeemAdditionalCode, + 18: ApplicationData_ApplicationData.removeAdditionalUser, + 19: ApplicationData_ApplicationData.updatePlanOptions, + 20: ApplicationData_ApplicationData.downloadDone, + 22: ApplicationData_ApplicationData.getSignedPrekeyByUserid, + 23: ApplicationData_ApplicationData.updateSignedPrekey, + 24: ApplicationData_ApplicationData.deleteAccount, + 25: ApplicationData_ApplicationData.reportUser, + 26: ApplicationData_ApplicationData.changeUsername, + 0: ApplicationData_ApplicationData.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) - ..oo(0, [1, 2, 3, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 23, 24, 25, 26]) - ..aOM(1, _omitFieldNames ? '' : 'textMessage', protoName: 'textMessage', subBuilder: ApplicationData_TextMessage.create) - ..aOM(2, _omitFieldNames ? '' : 'getUserByUsername', protoName: 'getUserByUsername', subBuilder: ApplicationData_GetUserByUsername.create) - ..aOM(3, _omitFieldNames ? '' : 'getPrekeysByUserId', protoName: 'getPrekeysByUserId', subBuilder: ApplicationData_GetPrekeysByUserId.create) - ..aOM(6, _omitFieldNames ? '' : 'getUserById', protoName: 'getUserById', subBuilder: ApplicationData_GetUserById.create) - ..aOM(8, _omitFieldNames ? '' : 'updateGoogleFcmToken', protoName: 'updateGoogleFcmToken', subBuilder: ApplicationData_UpdateGoogleFcmToken.create) - ..aOM(9, _omitFieldNames ? '' : 'getLocation', protoName: 'getLocation', subBuilder: ApplicationData_GetLocation.create) - ..aOM(10, _omitFieldNames ? '' : 'getCurrentPlanInfos', protoName: 'getCurrentPlanInfos', subBuilder: ApplicationData_GetCurrentPlanInfos.create) - ..aOM(11, _omitFieldNames ? '' : 'redeemVoucher', protoName: 'redeemVoucher', subBuilder: ApplicationData_RedeemVoucher.create) - ..aOM(12, _omitFieldNames ? '' : 'getAvailablePlans', protoName: 'getAvailablePlans', subBuilder: ApplicationData_GetAvailablePlans.create) - ..aOM(13, _omitFieldNames ? '' : 'createVoucher', protoName: 'createVoucher', subBuilder: ApplicationData_CreateVoucher.create) - ..aOM(14, _omitFieldNames ? '' : 'getVouchers', protoName: 'getVouchers', subBuilder: ApplicationData_GetVouchers.create) - ..aOM(15, _omitFieldNames ? '' : 'switchtoPayedPlan', protoName: 'switchtoPayedPlan', subBuilder: ApplicationData_SwitchToPayedPlan.create) - ..aOM(16, _omitFieldNames ? '' : 'getAddaccountsInvites', protoName: 'getAddaccountsInvites', subBuilder: ApplicationData_GetAddAccountsInvites.create) - ..aOM(17, _omitFieldNames ? '' : 'redeemAdditionalCode', protoName: 'redeemAdditionalCode', subBuilder: ApplicationData_RedeemAdditionalCode.create) - ..aOM(18, _omitFieldNames ? '' : 'removeAdditionalUser', protoName: 'removeAdditionalUser', subBuilder: ApplicationData_RemoveAdditionalUser.create) - ..aOM(19, _omitFieldNames ? '' : 'updatePlanOptions', protoName: 'updatePlanOptions', subBuilder: ApplicationData_UpdatePlanOptions.create) - ..aOM(20, _omitFieldNames ? '' : 'downloadDone', protoName: 'downloadDone', subBuilder: ApplicationData_DownloadDone.create) - ..aOM(22, _omitFieldNames ? '' : 'getSignedPrekeyByUserid', protoName: 'getSignedPrekeyByUserid', subBuilder: ApplicationData_GetSignedPreKeyByUserId.create) - ..aOM(23, _omitFieldNames ? '' : 'updateSignedPrekey', protoName: 'updateSignedPrekey', subBuilder: ApplicationData_UpdateSignedPreKey.create) - ..aOM(24, _omitFieldNames ? '' : 'deleteAccount', protoName: 'deleteAccount', subBuilder: ApplicationData_DeleteAccount.create) - ..aOM(25, _omitFieldNames ? '' : 'reportUser', protoName: 'reportUser', subBuilder: ApplicationData_ReportUser.create) - ..aOM(26, _omitFieldNames ? '' : 'changeUsername', protoName: 'changeUsername', subBuilder: ApplicationData_ChangeUsername.create) - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApplicationData', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) + ..oo(0, [ + 1, + 2, + 3, + 6, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 22, + 23, + 24, + 25, + 26 + ]) + ..aOM(1, _omitFieldNames ? '' : 'textMessage', + protoName: 'textMessage', + subBuilder: ApplicationData_TextMessage.create) + ..aOM( + 2, _omitFieldNames ? '' : 'getUserByUsername', + protoName: 'getUserByUsername', + subBuilder: ApplicationData_GetUserByUsername.create) + ..aOM( + 3, _omitFieldNames ? '' : 'getPrekeysByUserId', + protoName: 'getPrekeysByUserId', + subBuilder: ApplicationData_GetPrekeysByUserId.create) + ..aOM(6, _omitFieldNames ? '' : 'getUserById', + protoName: 'getUserById', + subBuilder: ApplicationData_GetUserById.create) + ..aOM( + 8, _omitFieldNames ? '' : 'updateGoogleFcmToken', + protoName: 'updateGoogleFcmToken', + subBuilder: ApplicationData_UpdateGoogleFcmToken.create) + ..aOM(9, _omitFieldNames ? '' : 'getLocation', + protoName: 'getLocation', + subBuilder: ApplicationData_GetLocation.create) + ..aOM( + 10, _omitFieldNames ? '' : 'getCurrentPlanInfos', + protoName: 'getCurrentPlanInfos', + subBuilder: ApplicationData_GetCurrentPlanInfos.create) + ..aOM( + 11, _omitFieldNames ? '' : 'redeemVoucher', + protoName: 'redeemVoucher', + subBuilder: ApplicationData_RedeemVoucher.create) + ..aOM( + 12, _omitFieldNames ? '' : 'getAvailablePlans', + protoName: 'getAvailablePlans', + subBuilder: ApplicationData_GetAvailablePlans.create) + ..aOM( + 13, _omitFieldNames ? '' : 'createVoucher', + protoName: 'createVoucher', + subBuilder: ApplicationData_CreateVoucher.create) + ..aOM(14, _omitFieldNames ? '' : 'getVouchers', + protoName: 'getVouchers', + subBuilder: ApplicationData_GetVouchers.create) + ..aOM( + 15, _omitFieldNames ? '' : 'switchtoPayedPlan', + protoName: 'switchtoPayedPlan', + subBuilder: ApplicationData_SwitchToPayedPlan.create) + ..aOM( + 16, _omitFieldNames ? '' : 'getAddaccountsInvites', + protoName: 'getAddaccountsInvites', + subBuilder: ApplicationData_GetAddAccountsInvites.create) + ..aOM( + 17, _omitFieldNames ? '' : 'redeemAdditionalCode', + protoName: 'redeemAdditionalCode', + subBuilder: ApplicationData_RedeemAdditionalCode.create) + ..aOM( + 18, _omitFieldNames ? '' : 'removeAdditionalUser', + protoName: 'removeAdditionalUser', + subBuilder: ApplicationData_RemoveAdditionalUser.create) + ..aOM( + 19, _omitFieldNames ? '' : 'updatePlanOptions', + protoName: 'updatePlanOptions', + subBuilder: ApplicationData_UpdatePlanOptions.create) + ..aOM( + 20, _omitFieldNames ? '' : 'downloadDone', + protoName: 'downloadDone', + subBuilder: ApplicationData_DownloadDone.create) + ..aOM( + 22, _omitFieldNames ? '' : 'getSignedPrekeyByUserid', + protoName: 'getSignedPrekeyByUserid', + subBuilder: ApplicationData_GetSignedPreKeyByUserId.create) + ..aOM( + 23, _omitFieldNames ? '' : 'updateSignedPrekey', + protoName: 'updateSignedPrekey', + subBuilder: ApplicationData_UpdateSignedPreKey.create) + ..aOM( + 24, _omitFieldNames ? '' : 'deleteAccount', + protoName: 'deleteAccount', + subBuilder: ApplicationData_DeleteAccount.create) + ..aOM(25, _omitFieldNames ? '' : 'reportUser', + protoName: 'reportUser', subBuilder: ApplicationData_ReportUser.create) + ..aOM( + 26, _omitFieldNames ? '' : 'changeUsername', + protoName: 'changeUsername', + subBuilder: ApplicationData_ChangeUsername.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') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ApplicationData clone() => ApplicationData()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ApplicationData copyWith(void Function(ApplicationData) updates) => super.copyWith((message) => updates(message as ApplicationData)) as ApplicationData; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ApplicationData copyWith(void Function(ApplicationData) updates) => + super.copyWith((message) => updates(message as ApplicationData)) + as ApplicationData; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ApplicationData create() => ApplicationData._(); + @$core.override ApplicationData createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ApplicationData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ApplicationData getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ApplicationData? _defaultInstance; - ApplicationData_ApplicationData whichApplicationData() => _ApplicationData_ApplicationDataByTag[$_whichOneof(0)]!; - void clearApplicationData() => clearField($_whichOneof(0)); + ApplicationData_ApplicationData whichApplicationData() => + _ApplicationData_ApplicationDataByTag[$_whichOneof(0)]!; + void clearApplicationData() => $_clearField($_whichOneof(0)); @$pb.TagNumber(1) ApplicationData_TextMessage get textMessage => $_getN(0); @$pb.TagNumber(1) - set textMessage(ApplicationData_TextMessage v) { setField(1, v); } + set textMessage(ApplicationData_TextMessage value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasTextMessage() => $_has(0); @$pb.TagNumber(1) - void clearTextMessage() => clearField(1); + void clearTextMessage() => $_clearField(1); @$pb.TagNumber(1) ApplicationData_TextMessage ensureTextMessage() => $_ensure(0); @$pb.TagNumber(2) ApplicationData_GetUserByUsername get getUserByUsername => $_getN(1); @$pb.TagNumber(2) - set getUserByUsername(ApplicationData_GetUserByUsername v) { setField(2, v); } + set getUserByUsername(ApplicationData_GetUserByUsername value) => + $_setField(2, value); @$pb.TagNumber(2) $core.bool hasGetUserByUsername() => $_has(1); @$pb.TagNumber(2) - void clearGetUserByUsername() => clearField(2); + void clearGetUserByUsername() => $_clearField(2); @$pb.TagNumber(2) ApplicationData_GetUserByUsername ensureGetUserByUsername() => $_ensure(1); @$pb.TagNumber(3) ApplicationData_GetPrekeysByUserId get getPrekeysByUserId => $_getN(2); @$pb.TagNumber(3) - set getPrekeysByUserId(ApplicationData_GetPrekeysByUserId v) { setField(3, v); } + set getPrekeysByUserId(ApplicationData_GetPrekeysByUserId value) => + $_setField(3, value); @$pb.TagNumber(3) $core.bool hasGetPrekeysByUserId() => $_has(2); @$pb.TagNumber(3) - void clearGetPrekeysByUserId() => clearField(3); + void clearGetPrekeysByUserId() => $_clearField(3); @$pb.TagNumber(3) ApplicationData_GetPrekeysByUserId ensureGetPrekeysByUserId() => $_ensure(2); @$pb.TagNumber(6) ApplicationData_GetUserById get getUserById => $_getN(3); @$pb.TagNumber(6) - set getUserById(ApplicationData_GetUserById v) { setField(6, v); } + set getUserById(ApplicationData_GetUserById value) => $_setField(6, value); @$pb.TagNumber(6) $core.bool hasGetUserById() => $_has(3); @$pb.TagNumber(6) - void clearGetUserById() => clearField(6); + void clearGetUserById() => $_clearField(6); @$pb.TagNumber(6) ApplicationData_GetUserById ensureGetUserById() => $_ensure(3); @$pb.TagNumber(8) ApplicationData_UpdateGoogleFcmToken get updateGoogleFcmToken => $_getN(4); @$pb.TagNumber(8) - set updateGoogleFcmToken(ApplicationData_UpdateGoogleFcmToken v) { setField(8, v); } + set updateGoogleFcmToken(ApplicationData_UpdateGoogleFcmToken value) => + $_setField(8, value); @$pb.TagNumber(8) $core.bool hasUpdateGoogleFcmToken() => $_has(4); @$pb.TagNumber(8) - void clearUpdateGoogleFcmToken() => clearField(8); + void clearUpdateGoogleFcmToken() => $_clearField(8); @$pb.TagNumber(8) - ApplicationData_UpdateGoogleFcmToken ensureUpdateGoogleFcmToken() => $_ensure(4); + ApplicationData_UpdateGoogleFcmToken ensureUpdateGoogleFcmToken() => + $_ensure(4); @$pb.TagNumber(9) ApplicationData_GetLocation get getLocation => $_getN(5); @$pb.TagNumber(9) - set getLocation(ApplicationData_GetLocation v) { setField(9, v); } + set getLocation(ApplicationData_GetLocation value) => $_setField(9, value); @$pb.TagNumber(9) $core.bool hasGetLocation() => $_has(5); @$pb.TagNumber(9) - void clearGetLocation() => clearField(9); + void clearGetLocation() => $_clearField(9); @$pb.TagNumber(9) ApplicationData_GetLocation ensureGetLocation() => $_ensure(5); @$pb.TagNumber(10) ApplicationData_GetCurrentPlanInfos get getCurrentPlanInfos => $_getN(6); @$pb.TagNumber(10) - set getCurrentPlanInfos(ApplicationData_GetCurrentPlanInfos v) { setField(10, v); } + set getCurrentPlanInfos(ApplicationData_GetCurrentPlanInfos value) => + $_setField(10, value); @$pb.TagNumber(10) $core.bool hasGetCurrentPlanInfos() => $_has(6); @$pb.TagNumber(10) - void clearGetCurrentPlanInfos() => clearField(10); + void clearGetCurrentPlanInfos() => $_clearField(10); @$pb.TagNumber(10) - ApplicationData_GetCurrentPlanInfos ensureGetCurrentPlanInfos() => $_ensure(6); + ApplicationData_GetCurrentPlanInfos ensureGetCurrentPlanInfos() => + $_ensure(6); @$pb.TagNumber(11) ApplicationData_RedeemVoucher get redeemVoucher => $_getN(7); @$pb.TagNumber(11) - set redeemVoucher(ApplicationData_RedeemVoucher v) { setField(11, v); } + set redeemVoucher(ApplicationData_RedeemVoucher value) => + $_setField(11, value); @$pb.TagNumber(11) $core.bool hasRedeemVoucher() => $_has(7); @$pb.TagNumber(11) - void clearRedeemVoucher() => clearField(11); + void clearRedeemVoucher() => $_clearField(11); @$pb.TagNumber(11) ApplicationData_RedeemVoucher ensureRedeemVoucher() => $_ensure(7); @$pb.TagNumber(12) ApplicationData_GetAvailablePlans get getAvailablePlans => $_getN(8); @$pb.TagNumber(12) - set getAvailablePlans(ApplicationData_GetAvailablePlans v) { setField(12, v); } + set getAvailablePlans(ApplicationData_GetAvailablePlans value) => + $_setField(12, value); @$pb.TagNumber(12) $core.bool hasGetAvailablePlans() => $_has(8); @$pb.TagNumber(12) - void clearGetAvailablePlans() => clearField(12); + void clearGetAvailablePlans() => $_clearField(12); @$pb.TagNumber(12) ApplicationData_GetAvailablePlans ensureGetAvailablePlans() => $_ensure(8); @$pb.TagNumber(13) ApplicationData_CreateVoucher get createVoucher => $_getN(9); @$pb.TagNumber(13) - set createVoucher(ApplicationData_CreateVoucher v) { setField(13, v); } + set createVoucher(ApplicationData_CreateVoucher value) => + $_setField(13, value); @$pb.TagNumber(13) $core.bool hasCreateVoucher() => $_has(9); @$pb.TagNumber(13) - void clearCreateVoucher() => clearField(13); + void clearCreateVoucher() => $_clearField(13); @$pb.TagNumber(13) ApplicationData_CreateVoucher ensureCreateVoucher() => $_ensure(9); @$pb.TagNumber(14) ApplicationData_GetVouchers get getVouchers => $_getN(10); @$pb.TagNumber(14) - set getVouchers(ApplicationData_GetVouchers v) { setField(14, v); } + set getVouchers(ApplicationData_GetVouchers value) => $_setField(14, value); @$pb.TagNumber(14) $core.bool hasGetVouchers() => $_has(10); @$pb.TagNumber(14) - void clearGetVouchers() => clearField(14); + void clearGetVouchers() => $_clearField(14); @$pb.TagNumber(14) ApplicationData_GetVouchers ensureGetVouchers() => $_ensure(10); @$pb.TagNumber(15) ApplicationData_SwitchToPayedPlan get switchtoPayedPlan => $_getN(11); @$pb.TagNumber(15) - set switchtoPayedPlan(ApplicationData_SwitchToPayedPlan v) { setField(15, v); } + set switchtoPayedPlan(ApplicationData_SwitchToPayedPlan value) => + $_setField(15, value); @$pb.TagNumber(15) $core.bool hasSwitchtoPayedPlan() => $_has(11); @$pb.TagNumber(15) - void clearSwitchtoPayedPlan() => clearField(15); + void clearSwitchtoPayedPlan() => $_clearField(15); @$pb.TagNumber(15) ApplicationData_SwitchToPayedPlan ensureSwitchtoPayedPlan() => $_ensure(11); @$pb.TagNumber(16) ApplicationData_GetAddAccountsInvites get getAddaccountsInvites => $_getN(12); @$pb.TagNumber(16) - set getAddaccountsInvites(ApplicationData_GetAddAccountsInvites v) { setField(16, v); } + set getAddaccountsInvites(ApplicationData_GetAddAccountsInvites value) => + $_setField(16, value); @$pb.TagNumber(16) $core.bool hasGetAddaccountsInvites() => $_has(12); @$pb.TagNumber(16) - void clearGetAddaccountsInvites() => clearField(16); + void clearGetAddaccountsInvites() => $_clearField(16); @$pb.TagNumber(16) - ApplicationData_GetAddAccountsInvites ensureGetAddaccountsInvites() => $_ensure(12); + ApplicationData_GetAddAccountsInvites ensureGetAddaccountsInvites() => + $_ensure(12); @$pb.TagNumber(17) ApplicationData_RedeemAdditionalCode get redeemAdditionalCode => $_getN(13); @$pb.TagNumber(17) - set redeemAdditionalCode(ApplicationData_RedeemAdditionalCode v) { setField(17, v); } + set redeemAdditionalCode(ApplicationData_RedeemAdditionalCode value) => + $_setField(17, value); @$pb.TagNumber(17) $core.bool hasRedeemAdditionalCode() => $_has(13); @$pb.TagNumber(17) - void clearRedeemAdditionalCode() => clearField(17); + void clearRedeemAdditionalCode() => $_clearField(17); @$pb.TagNumber(17) - ApplicationData_RedeemAdditionalCode ensureRedeemAdditionalCode() => $_ensure(13); + ApplicationData_RedeemAdditionalCode ensureRedeemAdditionalCode() => + $_ensure(13); @$pb.TagNumber(18) ApplicationData_RemoveAdditionalUser get removeAdditionalUser => $_getN(14); @$pb.TagNumber(18) - set removeAdditionalUser(ApplicationData_RemoveAdditionalUser v) { setField(18, v); } + set removeAdditionalUser(ApplicationData_RemoveAdditionalUser value) => + $_setField(18, value); @$pb.TagNumber(18) $core.bool hasRemoveAdditionalUser() => $_has(14); @$pb.TagNumber(18) - void clearRemoveAdditionalUser() => clearField(18); + void clearRemoveAdditionalUser() => $_clearField(18); @$pb.TagNumber(18) - ApplicationData_RemoveAdditionalUser ensureRemoveAdditionalUser() => $_ensure(14); + ApplicationData_RemoveAdditionalUser ensureRemoveAdditionalUser() => + $_ensure(14); @$pb.TagNumber(19) ApplicationData_UpdatePlanOptions get updatePlanOptions => $_getN(15); @$pb.TagNumber(19) - set updatePlanOptions(ApplicationData_UpdatePlanOptions v) { setField(19, v); } + set updatePlanOptions(ApplicationData_UpdatePlanOptions value) => + $_setField(19, value); @$pb.TagNumber(19) $core.bool hasUpdatePlanOptions() => $_has(15); @$pb.TagNumber(19) - void clearUpdatePlanOptions() => clearField(19); + void clearUpdatePlanOptions() => $_clearField(19); @$pb.TagNumber(19) ApplicationData_UpdatePlanOptions ensureUpdatePlanOptions() => $_ensure(15); @$pb.TagNumber(20) ApplicationData_DownloadDone get downloadDone => $_getN(16); @$pb.TagNumber(20) - set downloadDone(ApplicationData_DownloadDone v) { setField(20, v); } + set downloadDone(ApplicationData_DownloadDone value) => $_setField(20, value); @$pb.TagNumber(20) $core.bool hasDownloadDone() => $_has(16); @$pb.TagNumber(20) - void clearDownloadDone() => clearField(20); + void clearDownloadDone() => $_clearField(20); @$pb.TagNumber(20) ApplicationData_DownloadDone ensureDownloadDone() => $_ensure(16); @$pb.TagNumber(22) - ApplicationData_GetSignedPreKeyByUserId get getSignedPrekeyByUserid => $_getN(17); + ApplicationData_GetSignedPreKeyByUserId get getSignedPrekeyByUserid => + $_getN(17); @$pb.TagNumber(22) - set getSignedPrekeyByUserid(ApplicationData_GetSignedPreKeyByUserId v) { setField(22, v); } + set getSignedPrekeyByUserid(ApplicationData_GetSignedPreKeyByUserId value) => + $_setField(22, value); @$pb.TagNumber(22) $core.bool hasGetSignedPrekeyByUserid() => $_has(17); @$pb.TagNumber(22) - void clearGetSignedPrekeyByUserid() => clearField(22); + void clearGetSignedPrekeyByUserid() => $_clearField(22); @$pb.TagNumber(22) - ApplicationData_GetSignedPreKeyByUserId ensureGetSignedPrekeyByUserid() => $_ensure(17); + ApplicationData_GetSignedPreKeyByUserId ensureGetSignedPrekeyByUserid() => + $_ensure(17); @$pb.TagNumber(23) ApplicationData_UpdateSignedPreKey get updateSignedPrekey => $_getN(18); @$pb.TagNumber(23) - set updateSignedPrekey(ApplicationData_UpdateSignedPreKey v) { setField(23, v); } + set updateSignedPrekey(ApplicationData_UpdateSignedPreKey value) => + $_setField(23, value); @$pb.TagNumber(23) $core.bool hasUpdateSignedPrekey() => $_has(18); @$pb.TagNumber(23) - void clearUpdateSignedPrekey() => clearField(23); + void clearUpdateSignedPrekey() => $_clearField(23); @$pb.TagNumber(23) ApplicationData_UpdateSignedPreKey ensureUpdateSignedPrekey() => $_ensure(18); @$pb.TagNumber(24) ApplicationData_DeleteAccount get deleteAccount => $_getN(19); @$pb.TagNumber(24) - set deleteAccount(ApplicationData_DeleteAccount v) { setField(24, v); } + set deleteAccount(ApplicationData_DeleteAccount value) => + $_setField(24, value); @$pb.TagNumber(24) $core.bool hasDeleteAccount() => $_has(19); @$pb.TagNumber(24) - void clearDeleteAccount() => clearField(24); + void clearDeleteAccount() => $_clearField(24); @$pb.TagNumber(24) ApplicationData_DeleteAccount ensureDeleteAccount() => $_ensure(19); @$pb.TagNumber(25) ApplicationData_ReportUser get reportUser => $_getN(20); @$pb.TagNumber(25) - set reportUser(ApplicationData_ReportUser v) { setField(25, v); } + set reportUser(ApplicationData_ReportUser value) => $_setField(25, value); @$pb.TagNumber(25) $core.bool hasReportUser() => $_has(20); @$pb.TagNumber(25) - void clearReportUser() => clearField(25); + void clearReportUser() => $_clearField(25); @$pb.TagNumber(25) ApplicationData_ReportUser ensureReportUser() => $_ensure(20); @$pb.TagNumber(26) ApplicationData_ChangeUsername get changeUsername => $_getN(21); @$pb.TagNumber(26) - set changeUsername(ApplicationData_ChangeUsername v) { setField(26, v); } + set changeUsername(ApplicationData_ChangeUsername value) => + $_setField(26, value); @$pb.TagNumber(26) $core.bool hasChangeUsername() => $_has(21); @$pb.TagNumber(26) - void clearChangeUsername() => clearField(26); + void clearChangeUsername() => $_clearField(26); @$pb.TagNumber(26) ApplicationData_ChangeUsername ensureChangeUsername() => $_ensure(21); } @@ -2267,271 +2659,293 @@ class Response_PreKey extends $pb.GeneratedMessage { $fixnum.Int64? id, $core.List<$core.int>? prekey, }) { - final $result = create(); - if (id != null) { - $result.id = id; - } - if (prekey != null) { - $result.prekey = prekey; - } - return $result; + final result = create(); + if (id != null) result.id = id; + if (prekey != null) result.prekey = prekey; + return result; } - Response_PreKey._() : super(); - factory Response_PreKey.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Response_PreKey.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Response.PreKey', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) + Response_PreKey._(); + + factory Response_PreKey.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Response_PreKey.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Response.PreKey', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'id') - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'prekey', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'prekey', $pb.PbFieldType.OY) + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Response_PreKey clone() => Response_PreKey()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Response_PreKey copyWith(void Function(Response_PreKey) updates) => super.copyWith((message) => updates(message as Response_PreKey)) as Response_PreKey; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_PreKey copyWith(void Function(Response_PreKey) updates) => + super.copyWith((message) => updates(message as Response_PreKey)) + as Response_PreKey; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_PreKey create() => Response_PreKey._(); + @$core.override Response_PreKey createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Response_PreKey getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Response_PreKey getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Response_PreKey? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get id => $_getI64(0); @$pb.TagNumber(1) - set id($fixnum.Int64 v) { $_setInt64(0, v); } + set id($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasId() => $_has(0); @$pb.TagNumber(1) - void clearId() => clearField(1); + void clearId() => $_clearField(1); @$pb.TagNumber(2) $core.List<$core.int> get prekey => $_getN(1); @$pb.TagNumber(2) - set prekey($core.List<$core.int> v) { $_setBytes(1, v); } + set prekey($core.List<$core.int> value) => $_setBytes(1, value); @$pb.TagNumber(2) $core.bool hasPrekey() => $_has(1); @$pb.TagNumber(2) - void clearPrekey() => clearField(2); + void clearPrekey() => $_clearField(2); } class Response_Prekeys extends $pb.GeneratedMessage { factory Response_Prekeys({ $core.Iterable? prekeys, }) { - final $result = create(); - if (prekeys != null) { - $result.prekeys.addAll(prekeys); - } - return $result; + final result = create(); + if (prekeys != null) result.prekeys.addAll(prekeys); + return result; } - Response_Prekeys._() : super(); - factory Response_Prekeys.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Response_Prekeys.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Response.Prekeys', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'prekeys', $pb.PbFieldType.PM, subBuilder: Response_PreKey.create) - ..hasRequiredFields = false - ; + Response_Prekeys._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory Response_Prekeys.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Response_Prekeys.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Response.Prekeys', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'prekeys', $pb.PbFieldType.PM, + subBuilder: Response_PreKey.create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Response_Prekeys clone() => Response_Prekeys()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Response_Prekeys copyWith(void Function(Response_Prekeys) updates) => super.copyWith((message) => updates(message as Response_Prekeys)) as Response_Prekeys; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_Prekeys copyWith(void Function(Response_Prekeys) updates) => + super.copyWith((message) => updates(message as Response_Prekeys)) + as Response_Prekeys; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_Prekeys create() => Response_Prekeys._(); + @$core.override Response_Prekeys createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Response_Prekeys getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Response_Prekeys getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Response_Prekeys? _defaultInstance; @$pb.TagNumber(1) - $core.List get prekeys => $_getList(0); + $pb.PbList get prekeys => $_getList(0); } -enum Response_Ok_Ok { - none, - prekeys, - notSet -} +enum Response_Ok_Ok { none, prekeys, notSet } class Response_Ok extends $pb.GeneratedMessage { factory Response_Ok({ $core.bool? none, Response_Prekeys? prekeys, }) { - final $result = create(); - if (none != null) { - $result.none = none; - } - if (prekeys != null) { - $result.prekeys = prekeys; - } - return $result; + final result = create(); + if (none != null) result.none = none; + if (prekeys != null) result.prekeys = prekeys; + return result; } - Response_Ok._() : super(); - factory Response_Ok.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Response_Ok.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + Response_Ok._(); + + factory Response_Ok.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Response_Ok.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); static const $core.Map<$core.int, Response_Ok_Ok> _Response_Ok_OkByTag = { - 1 : Response_Ok_Ok.none, - 2 : Response_Ok_Ok.prekeys, - 0 : Response_Ok_Ok.notSet + 1: Response_Ok_Ok.none, + 2: Response_Ok_Ok.prekeys, + 0: Response_Ok_Ok.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Response.Ok', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Response.Ok', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) ..oo(0, [1, 2]) ..aOB(1, _omitFieldNames ? '' : 'None', protoName: 'None') - ..aOM(2, _omitFieldNames ? '' : 'prekeys', subBuilder: Response_Prekeys.create) - ..hasRequiredFields = false - ; + ..aOM(2, _omitFieldNames ? '' : 'prekeys', + subBuilder: Response_Prekeys.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') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Response_Ok clone() => Response_Ok()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Response_Ok copyWith(void Function(Response_Ok) updates) => super.copyWith((message) => updates(message as Response_Ok)) as Response_Ok; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_Ok copyWith(void Function(Response_Ok) updates) => + super.copyWith((message) => updates(message as Response_Ok)) + as Response_Ok; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_Ok create() => Response_Ok._(); + @$core.override Response_Ok createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Response_Ok getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Response_Ok getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Response_Ok? _defaultInstance; Response_Ok_Ok whichOk() => _Response_Ok_OkByTag[$_whichOneof(0)]!; - void clearOk() => clearField($_whichOneof(0)); + void clearOk() => $_clearField($_whichOneof(0)); @$pb.TagNumber(1) $core.bool get none => $_getBF(0); @$pb.TagNumber(1) - set none($core.bool v) { $_setBool(0, v); } + set none($core.bool value) => $_setBool(0, value); @$pb.TagNumber(1) $core.bool hasNone() => $_has(0); @$pb.TagNumber(1) - void clearNone() => clearField(1); + void clearNone() => $_clearField(1); @$pb.TagNumber(2) Response_Prekeys get prekeys => $_getN(1); @$pb.TagNumber(2) - set prekeys(Response_Prekeys v) { setField(2, v); } + set prekeys(Response_Prekeys value) => $_setField(2, value); @$pb.TagNumber(2) $core.bool hasPrekeys() => $_has(1); @$pb.TagNumber(2) - void clearPrekeys() => clearField(2); + void clearPrekeys() => $_clearField(2); @$pb.TagNumber(2) Response_Prekeys ensurePrekeys() => $_ensure(1); } -enum Response_Response { - ok, - error, - notSet -} +enum Response_Response { ok, error, notSet } class Response extends $pb.GeneratedMessage { factory Response({ Response_Ok? ok, $0.ErrorCode? error, }) { - final $result = create(); - if (ok != null) { - $result.ok = ok; - } - if (error != null) { - $result.error = error; - } - return $result; + final result = create(); + if (ok != null) result.ok = ok; + if (error != null) result.error = error; + return result; } - Response._() : super(); - factory Response.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Response.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static const $core.Map<$core.int, Response_Response> _Response_ResponseByTag = { - 1 : Response_Response.ok, - 2 : Response_Response.error, - 0 : Response_Response.notSet + Response._(); + + factory Response.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Response.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core.Map<$core.int, Response_Response> _Response_ResponseByTag = + { + 1: Response_Response.ok, + 2: Response_Response.error, + 0: Response_Response.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Response', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Response', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), + createEmptyInstance: create) ..oo(0, [1, 2]) - ..aOM(1, _omitFieldNames ? '' : 'ok', subBuilder: Response_Ok.create) - ..e<$0.ErrorCode>(2, _omitFieldNames ? '' : 'error', $pb.PbFieldType.OE, defaultOrMaker: $0.ErrorCode.Unknown, valueOf: $0.ErrorCode.valueOf, enumValues: $0.ErrorCode.values) - ..hasRequiredFields = false - ; + ..aOM(1, _omitFieldNames ? '' : 'ok', + subBuilder: Response_Ok.create) + ..e<$0.ErrorCode>(2, _omitFieldNames ? '' : 'error', $pb.PbFieldType.OE, + defaultOrMaker: $0.ErrorCode.Unknown, + valueOf: $0.ErrorCode.valueOf, + enumValues: $0.ErrorCode.values) + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Response clone() => Response()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Response copyWith(void Function(Response) updates) => super.copyWith((message) => updates(message as Response)) as Response; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response copyWith(void Function(Response) updates) => + super.copyWith((message) => updates(message as Response)) as Response; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response create() => Response._(); + @$core.override Response createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Response getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Response getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Response? _defaultInstance; - Response_Response whichResponse() => _Response_ResponseByTag[$_whichOneof(0)]!; - void clearResponse() => clearField($_whichOneof(0)); + Response_Response whichResponse() => + _Response_ResponseByTag[$_whichOneof(0)]!; + void clearResponse() => $_clearField($_whichOneof(0)); @$pb.TagNumber(1) Response_Ok get ok => $_getN(0); @$pb.TagNumber(1) - set ok(Response_Ok v) { setField(1, v); } + set ok(Response_Ok value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasOk() => $_has(0); @$pb.TagNumber(1) - void clearOk() => clearField(1); + void clearOk() => $_clearField(1); @$pb.TagNumber(1) Response_Ok ensureOk() => $_ensure(0); @$pb.TagNumber(2) $0.ErrorCode get error => $_getN(1); @$pb.TagNumber(2) - set error($0.ErrorCode v) { setField(2, v); } + set error($0.ErrorCode value) => $_setField(2, value); @$pb.TagNumber(2) $core.bool hasError() => $_has(1); @$pb.TagNumber(2) - void clearError() => clearField(2); + void clearError() => $_clearField(2); } - -const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/src/model/protobuf/api/websocket/client_to_server.pbenum.dart b/lib/src/model/protobuf/api/websocket/client_to_server.pbenum.dart index b555299..69f2c04 100644 --- a/lib/src/model/protobuf/api/websocket/client_to_server.pbenum.dart +++ b/lib/src/model/protobuf/api/websocket/client_to_server.pbenum.dart @@ -1,11 +1,11 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: api/websocket/client_to_server.proto -// -// @dart = 2.12 +// Generated from api/websocket/client_to_server.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import - +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names diff --git a/lib/src/model/protobuf/api/websocket/client_to_server.pbjson.dart b/lib/src/model/protobuf/api/websocket/client_to_server.pbjson.dart index b6cfd08..63581df 100644 --- a/lib/src/model/protobuf/api/websocket/client_to_server.pbjson.dart +++ b/lib/src/model/protobuf/api/websocket/client_to_server.pbjson.dart @@ -1,13 +1,14 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: api/websocket/client_to_server.proto -// -// @dart = 2.12 +// Generated from api/websocket/client_to_server.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names, unused_import import 'dart:convert' as $convert; import 'dart:core' as $core; @@ -17,7 +18,15 @@ import 'dart:typed_data' as $typed_data; const ClientToServer$json = { '1': 'ClientToServer', '2': [ - {'1': 'V0', '3': 1, '4': 1, '5': 11, '6': '.client_to_server.V0', '9': 0, '10': 'V0'}, + { + '1': 'V0', + '3': 1, + '4': 1, + '5': 11, + '6': '.client_to_server.V0', + '9': 0, + '10': 'V0' + }, ], '8': [ {'1': 'v'}, @@ -34,9 +43,33 @@ const V0$json = { '1': 'V0', '2': [ {'1': 'seq', '3': 1, '4': 1, '5': 4, '10': 'seq'}, - {'1': 'handshake', '3': 2, '4': 1, '5': 11, '6': '.client_to_server.Handshake', '9': 0, '10': 'handshake'}, - {'1': 'applicationdata', '3': 3, '4': 1, '5': 11, '6': '.client_to_server.ApplicationData', '9': 0, '10': 'applicationdata'}, - {'1': 'response', '3': 4, '4': 1, '5': 11, '6': '.client_to_server.Response', '9': 0, '10': 'response'}, + { + '1': 'handshake', + '3': 2, + '4': 1, + '5': 11, + '6': '.client_to_server.Handshake', + '9': 0, + '10': 'handshake' + }, + { + '1': 'applicationdata', + '3': 3, + '4': 1, + '5': 11, + '6': '.client_to_server.ApplicationData', + '9': 0, + '10': 'applicationdata' + }, + { + '1': 'response', + '3': 4, + '4': 1, + '5': 11, + '6': '.client_to_server.Response', + '9': 0, + '10': 'response' + }, ], '8': [ {'1': 'Kind'}, @@ -55,13 +88,59 @@ final $typed_data.Uint8List v0Descriptor = $convert.base64Decode( const Handshake$json = { '1': 'Handshake', '2': [ - {'1': 'register', '3': 1, '4': 1, '5': 11, '6': '.client_to_server.Handshake.Register', '9': 0, '10': 'register'}, - {'1': 'getAuthChallenge', '3': 2, '4': 1, '5': 11, '6': '.client_to_server.Handshake.GetAuthChallenge', '9': 0, '10': 'getAuthChallenge'}, - {'1': 'getAuthToken', '3': 3, '4': 1, '5': 11, '6': '.client_to_server.Handshake.GetAuthToken', '9': 0, '10': 'getAuthToken'}, - {'1': 'authenticate', '3': 4, '4': 1, '5': 11, '6': '.client_to_server.Handshake.Authenticate', '9': 0, '10': 'authenticate'}, - {'1': 'requestPOW', '3': 5, '4': 1, '5': 11, '6': '.client_to_server.Handshake.RequestPOW', '9': 0, '10': 'requestPOW'}, + { + '1': 'register', + '3': 1, + '4': 1, + '5': 11, + '6': '.client_to_server.Handshake.Register', + '9': 0, + '10': 'register' + }, + { + '1': 'getAuthChallenge', + '3': 2, + '4': 1, + '5': 11, + '6': '.client_to_server.Handshake.GetAuthChallenge', + '9': 0, + '10': 'getAuthChallenge' + }, + { + '1': 'getAuthToken', + '3': 3, + '4': 1, + '5': 11, + '6': '.client_to_server.Handshake.GetAuthToken', + '9': 0, + '10': 'getAuthToken' + }, + { + '1': 'authenticate', + '3': 4, + '4': 1, + '5': 11, + '6': '.client_to_server.Handshake.Authenticate', + '9': 0, + '10': 'authenticate' + }, + { + '1': 'requestPOW', + '3': 5, + '4': 1, + '5': 11, + '6': '.client_to_server.Handshake.RequestPOW', + '9': 0, + '10': 'requestPOW' + }, + ], + '3': [ + Handshake_RequestPOW$json, + Handshake_Register$json, + Handshake_GetAuthChallenge$json, + Handshake_GetAuthToken$json, + Handshake_Authenticate$json ], - '3': [Handshake_RequestPOW$json, Handshake_Register$json, Handshake_GetAuthChallenge$json, Handshake_GetAuthToken$json, Handshake_Authenticate$json], '8': [ {'1': 'Handshake'}, ], @@ -77,10 +156,30 @@ const Handshake_Register$json = { '1': 'Register', '2': [ {'1': 'username', '3': 1, '4': 1, '5': 9, '10': 'username'}, - {'1': 'invite_code', '3': 2, '4': 1, '5': 9, '9': 0, '10': 'inviteCode', '17': true}, - {'1': 'public_identity_key', '3': 3, '4': 1, '5': 12, '10': 'publicIdentityKey'}, + { + '1': 'invite_code', + '3': 2, + '4': 1, + '5': 9, + '9': 0, + '10': 'inviteCode', + '17': true + }, + { + '1': 'public_identity_key', + '3': 3, + '4': 1, + '5': 12, + '10': 'publicIdentityKey' + }, {'1': 'signed_prekey', '3': 4, '4': 1, '5': 12, '10': 'signedPrekey'}, - {'1': 'signed_prekey_signature', '3': 5, '4': 1, '5': 12, '10': 'signedPrekeySignature'}, + { + '1': 'signed_prekey_signature', + '3': 5, + '4': 1, + '5': 12, + '10': 'signedPrekeySignature' + }, {'1': 'signed_prekey_id', '3': 6, '4': 1, '5': 3, '10': 'signedPrekeyId'}, {'1': 'registration_id', '3': 7, '4': 1, '5': 3, '10': 'registrationId'}, {'1': 'is_ios', '3': 8, '4': 1, '5': 8, '10': 'isIos'}, @@ -112,8 +211,24 @@ const Handshake_Authenticate$json = { '2': [ {'1': 'user_id', '3': 1, '4': 1, '5': 3, '10': 'userId'}, {'1': 'auth_token', '3': 2, '4': 1, '5': 12, '10': 'authToken'}, - {'1': 'app_version', '3': 3, '4': 1, '5': 9, '9': 0, '10': 'appVersion', '17': true}, - {'1': 'device_id', '3': 4, '4': 1, '5': 3, '9': 1, '10': 'deviceId', '17': true}, + { + '1': 'app_version', + '3': 3, + '4': 1, + '5': 9, + '9': 0, + '10': 'appVersion', + '17': true + }, + { + '1': 'device_id', + '3': 4, + '4': 1, + '5': 3, + '9': 1, + '10': 'deviceId', + '17': true + }, ], '8': [ {'1': '_app_version'}, @@ -148,30 +263,229 @@ final $typed_data.Uint8List handshakeDescriptor = $convert.base64Decode( const ApplicationData$json = { '1': 'ApplicationData', '2': [ - {'1': 'textMessage', '3': 1, '4': 1, '5': 11, '6': '.client_to_server.ApplicationData.TextMessage', '9': 0, '10': 'textMessage'}, - {'1': 'getUserByUsername', '3': 2, '4': 1, '5': 11, '6': '.client_to_server.ApplicationData.GetUserByUsername', '9': 0, '10': 'getUserByUsername'}, - {'1': 'getPrekeysByUserId', '3': 3, '4': 1, '5': 11, '6': '.client_to_server.ApplicationData.GetPrekeysByUserId', '9': 0, '10': 'getPrekeysByUserId'}, - {'1': 'getUserById', '3': 6, '4': 1, '5': 11, '6': '.client_to_server.ApplicationData.GetUserById', '9': 0, '10': 'getUserById'}, - {'1': 'updateGoogleFcmToken', '3': 8, '4': 1, '5': 11, '6': '.client_to_server.ApplicationData.UpdateGoogleFcmToken', '9': 0, '10': 'updateGoogleFcmToken'}, - {'1': 'getLocation', '3': 9, '4': 1, '5': 11, '6': '.client_to_server.ApplicationData.GetLocation', '9': 0, '10': 'getLocation'}, - {'1': 'getCurrentPlanInfos', '3': 10, '4': 1, '5': 11, '6': '.client_to_server.ApplicationData.GetCurrentPlanInfos', '9': 0, '10': 'getCurrentPlanInfos'}, - {'1': 'redeemVoucher', '3': 11, '4': 1, '5': 11, '6': '.client_to_server.ApplicationData.RedeemVoucher', '9': 0, '10': 'redeemVoucher'}, - {'1': 'getAvailablePlans', '3': 12, '4': 1, '5': 11, '6': '.client_to_server.ApplicationData.GetAvailablePlans', '9': 0, '10': 'getAvailablePlans'}, - {'1': 'createVoucher', '3': 13, '4': 1, '5': 11, '6': '.client_to_server.ApplicationData.CreateVoucher', '9': 0, '10': 'createVoucher'}, - {'1': 'getVouchers', '3': 14, '4': 1, '5': 11, '6': '.client_to_server.ApplicationData.GetVouchers', '9': 0, '10': 'getVouchers'}, - {'1': 'switchtoPayedPlan', '3': 15, '4': 1, '5': 11, '6': '.client_to_server.ApplicationData.SwitchToPayedPlan', '9': 0, '10': 'switchtoPayedPlan'}, - {'1': 'getAddaccountsInvites', '3': 16, '4': 1, '5': 11, '6': '.client_to_server.ApplicationData.GetAddAccountsInvites', '9': 0, '10': 'getAddaccountsInvites'}, - {'1': 'redeemAdditionalCode', '3': 17, '4': 1, '5': 11, '6': '.client_to_server.ApplicationData.RedeemAdditionalCode', '9': 0, '10': 'redeemAdditionalCode'}, - {'1': 'removeAdditionalUser', '3': 18, '4': 1, '5': 11, '6': '.client_to_server.ApplicationData.RemoveAdditionalUser', '9': 0, '10': 'removeAdditionalUser'}, - {'1': 'updatePlanOptions', '3': 19, '4': 1, '5': 11, '6': '.client_to_server.ApplicationData.UpdatePlanOptions', '9': 0, '10': 'updatePlanOptions'}, - {'1': 'downloadDone', '3': 20, '4': 1, '5': 11, '6': '.client_to_server.ApplicationData.DownloadDone', '9': 0, '10': 'downloadDone'}, - {'1': 'getSignedPrekeyByUserid', '3': 22, '4': 1, '5': 11, '6': '.client_to_server.ApplicationData.GetSignedPreKeyByUserId', '9': 0, '10': 'getSignedPrekeyByUserid'}, - {'1': 'updateSignedPrekey', '3': 23, '4': 1, '5': 11, '6': '.client_to_server.ApplicationData.UpdateSignedPreKey', '9': 0, '10': 'updateSignedPrekey'}, - {'1': 'deleteAccount', '3': 24, '4': 1, '5': 11, '6': '.client_to_server.ApplicationData.DeleteAccount', '9': 0, '10': 'deleteAccount'}, - {'1': 'reportUser', '3': 25, '4': 1, '5': 11, '6': '.client_to_server.ApplicationData.ReportUser', '9': 0, '10': 'reportUser'}, - {'1': 'changeUsername', '3': 26, '4': 1, '5': 11, '6': '.client_to_server.ApplicationData.ChangeUsername', '9': 0, '10': 'changeUsername'}, + { + '1': 'textMessage', + '3': 1, + '4': 1, + '5': 11, + '6': '.client_to_server.ApplicationData.TextMessage', + '9': 0, + '10': 'textMessage' + }, + { + '1': 'getUserByUsername', + '3': 2, + '4': 1, + '5': 11, + '6': '.client_to_server.ApplicationData.GetUserByUsername', + '9': 0, + '10': 'getUserByUsername' + }, + { + '1': 'getPrekeysByUserId', + '3': 3, + '4': 1, + '5': 11, + '6': '.client_to_server.ApplicationData.GetPrekeysByUserId', + '9': 0, + '10': 'getPrekeysByUserId' + }, + { + '1': 'getUserById', + '3': 6, + '4': 1, + '5': 11, + '6': '.client_to_server.ApplicationData.GetUserById', + '9': 0, + '10': 'getUserById' + }, + { + '1': 'updateGoogleFcmToken', + '3': 8, + '4': 1, + '5': 11, + '6': '.client_to_server.ApplicationData.UpdateGoogleFcmToken', + '9': 0, + '10': 'updateGoogleFcmToken' + }, + { + '1': 'getLocation', + '3': 9, + '4': 1, + '5': 11, + '6': '.client_to_server.ApplicationData.GetLocation', + '9': 0, + '10': 'getLocation' + }, + { + '1': 'getCurrentPlanInfos', + '3': 10, + '4': 1, + '5': 11, + '6': '.client_to_server.ApplicationData.GetCurrentPlanInfos', + '9': 0, + '10': 'getCurrentPlanInfos' + }, + { + '1': 'redeemVoucher', + '3': 11, + '4': 1, + '5': 11, + '6': '.client_to_server.ApplicationData.RedeemVoucher', + '9': 0, + '10': 'redeemVoucher' + }, + { + '1': 'getAvailablePlans', + '3': 12, + '4': 1, + '5': 11, + '6': '.client_to_server.ApplicationData.GetAvailablePlans', + '9': 0, + '10': 'getAvailablePlans' + }, + { + '1': 'createVoucher', + '3': 13, + '4': 1, + '5': 11, + '6': '.client_to_server.ApplicationData.CreateVoucher', + '9': 0, + '10': 'createVoucher' + }, + { + '1': 'getVouchers', + '3': 14, + '4': 1, + '5': 11, + '6': '.client_to_server.ApplicationData.GetVouchers', + '9': 0, + '10': 'getVouchers' + }, + { + '1': 'switchtoPayedPlan', + '3': 15, + '4': 1, + '5': 11, + '6': '.client_to_server.ApplicationData.SwitchToPayedPlan', + '9': 0, + '10': 'switchtoPayedPlan' + }, + { + '1': 'getAddaccountsInvites', + '3': 16, + '4': 1, + '5': 11, + '6': '.client_to_server.ApplicationData.GetAddAccountsInvites', + '9': 0, + '10': 'getAddaccountsInvites' + }, + { + '1': 'redeemAdditionalCode', + '3': 17, + '4': 1, + '5': 11, + '6': '.client_to_server.ApplicationData.RedeemAdditionalCode', + '9': 0, + '10': 'redeemAdditionalCode' + }, + { + '1': 'removeAdditionalUser', + '3': 18, + '4': 1, + '5': 11, + '6': '.client_to_server.ApplicationData.RemoveAdditionalUser', + '9': 0, + '10': 'removeAdditionalUser' + }, + { + '1': 'updatePlanOptions', + '3': 19, + '4': 1, + '5': 11, + '6': '.client_to_server.ApplicationData.UpdatePlanOptions', + '9': 0, + '10': 'updatePlanOptions' + }, + { + '1': 'downloadDone', + '3': 20, + '4': 1, + '5': 11, + '6': '.client_to_server.ApplicationData.DownloadDone', + '9': 0, + '10': 'downloadDone' + }, + { + '1': 'getSignedPrekeyByUserid', + '3': 22, + '4': 1, + '5': 11, + '6': '.client_to_server.ApplicationData.GetSignedPreKeyByUserId', + '9': 0, + '10': 'getSignedPrekeyByUserid' + }, + { + '1': 'updateSignedPrekey', + '3': 23, + '4': 1, + '5': 11, + '6': '.client_to_server.ApplicationData.UpdateSignedPreKey', + '9': 0, + '10': 'updateSignedPrekey' + }, + { + '1': 'deleteAccount', + '3': 24, + '4': 1, + '5': 11, + '6': '.client_to_server.ApplicationData.DeleteAccount', + '9': 0, + '10': 'deleteAccount' + }, + { + '1': 'reportUser', + '3': 25, + '4': 1, + '5': 11, + '6': '.client_to_server.ApplicationData.ReportUser', + '9': 0, + '10': 'reportUser' + }, + { + '1': 'changeUsername', + '3': 26, + '4': 1, + '5': 11, + '6': '.client_to_server.ApplicationData.ChangeUsername', + '9': 0, + '10': 'changeUsername' + }, + ], + '3': [ + ApplicationData_TextMessage$json, + ApplicationData_GetUserByUsername$json, + ApplicationData_ChangeUsername$json, + ApplicationData_UpdateGoogleFcmToken$json, + ApplicationData_GetUserById$json, + ApplicationData_RedeemVoucher$json, + ApplicationData_SwitchToPayedPlan$json, + ApplicationData_UpdatePlanOptions$json, + ApplicationData_CreateVoucher$json, + ApplicationData_GetLocation$json, + ApplicationData_GetVouchers$json, + ApplicationData_GetAvailablePlans$json, + ApplicationData_GetAddAccountsInvites$json, + ApplicationData_GetCurrentPlanInfos$json, + ApplicationData_RedeemAdditionalCode$json, + ApplicationData_RemoveAdditionalUser$json, + ApplicationData_GetPrekeysByUserId$json, + ApplicationData_GetSignedPreKeyByUserId$json, + ApplicationData_UpdateSignedPreKey$json, + ApplicationData_DownloadDone$json, + ApplicationData_ReportUser$json, + ApplicationData_DeleteAccount$json ], - '3': [ApplicationData_TextMessage$json, ApplicationData_GetUserByUsername$json, ApplicationData_ChangeUsername$json, ApplicationData_UpdateGoogleFcmToken$json, ApplicationData_GetUserById$json, ApplicationData_RedeemVoucher$json, ApplicationData_SwitchToPayedPlan$json, ApplicationData_UpdatePlanOptions$json, ApplicationData_CreateVoucher$json, ApplicationData_GetLocation$json, ApplicationData_GetVouchers$json, ApplicationData_GetAvailablePlans$json, ApplicationData_GetAddAccountsInvites$json, ApplicationData_GetCurrentPlanInfos$json, ApplicationData_RedeemAdditionalCode$json, ApplicationData_RemoveAdditionalUser$json, ApplicationData_GetPrekeysByUserId$json, ApplicationData_GetSignedPreKeyByUserId$json, ApplicationData_UpdateSignedPreKey$json, ApplicationData_DownloadDone$json, ApplicationData_ReportUser$json, ApplicationData_DeleteAccount$json], '8': [ {'1': 'ApplicationData'}, ], @@ -183,7 +497,15 @@ const ApplicationData_TextMessage$json = { '2': [ {'1': 'user_id', '3': 1, '4': 1, '5': 3, '10': 'userId'}, {'1': 'body', '3': 3, '4': 1, '5': 12, '10': 'body'}, - {'1': 'push_data', '3': 4, '4': 1, '5': 12, '9': 0, '10': 'pushData', '17': true}, + { + '1': 'push_data', + '3': 4, + '4': 1, + '5': 12, + '9': 0, + '10': 'pushData', + '17': true + }, ], '8': [ {'1': '_push_data'}, @@ -319,7 +641,13 @@ const ApplicationData_UpdateSignedPreKey$json = { '2': [ {'1': 'signed_prekey_id', '3': 1, '4': 1, '5': 3, '10': 'signedPrekeyId'}, {'1': 'signed_prekey', '3': 2, '4': 1, '5': 12, '10': 'signedPrekey'}, - {'1': 'signed_prekey_signature', '3': 3, '4': 1, '5': 12, '10': 'signedPrekeySignature'}, + { + '1': 'signed_prekey_signature', + '3': 3, + '4': 1, + '5': 12, + '10': 'signedPrekeySignature' + }, ], }; @@ -413,8 +741,24 @@ final $typed_data.Uint8List applicationDataDescriptor = $convert.base64Decode( const Response$json = { '1': 'Response', '2': [ - {'1': 'ok', '3': 1, '4': 1, '5': 11, '6': '.client_to_server.Response.Ok', '9': 0, '10': 'ok'}, - {'1': 'error', '3': 2, '4': 1, '5': 14, '6': '.error.ErrorCode', '9': 0, '10': 'error'}, + { + '1': 'ok', + '3': 1, + '4': 1, + '5': 11, + '6': '.client_to_server.Response.Ok', + '9': 0, + '10': 'ok' + }, + { + '1': 'error', + '3': 2, + '4': 1, + '5': 14, + '6': '.error.ErrorCode', + '9': 0, + '10': 'error' + }, ], '3': [Response_PreKey$json, Response_Prekeys$json, Response_Ok$json], '8': [ @@ -435,7 +779,14 @@ const Response_PreKey$json = { const Response_Prekeys$json = { '1': 'Prekeys', '2': [ - {'1': 'prekeys', '3': 1, '4': 3, '5': 11, '6': '.client_to_server.Response.PreKey', '10': 'prekeys'}, + { + '1': 'prekeys', + '3': 1, + '4': 3, + '5': 11, + '6': '.client_to_server.Response.PreKey', + '10': 'prekeys' + }, ], }; @@ -444,7 +795,15 @@ const Response_Ok$json = { '1': 'Ok', '2': [ {'1': 'None', '3': 1, '4': 1, '5': 8, '9': 0, '10': 'None'}, - {'1': 'prekeys', '3': 2, '4': 1, '5': 11, '6': '.client_to_server.Response.Prekeys', '9': 0, '10': 'prekeys'}, + { + '1': 'prekeys', + '3': 2, + '4': 1, + '5': 11, + '6': '.client_to_server.Response.Prekeys', + '9': 0, + '10': 'prekeys' + }, ], '8': [ {'1': 'Ok'}, @@ -459,4 +818,3 @@ final $typed_data.Uint8List responseDescriptor = $convert.base64Decode( 'ByZWtleXMYASADKAsyIS5jbGllbnRfdG9fc2VydmVyLlJlc3BvbnNlLlByZUtleVIHcHJla2V5' 'cxpgCgJPaxIUCgROb25lGAEgASgISABSBE5vbmUSPgoHcHJla2V5cxgCIAEoCzIiLmNsaWVudF' '90b19zZXJ2ZXIuUmVzcG9uc2UuUHJla2V5c0gAUgdwcmVrZXlzQgQKAk9rQgoKCFJlc3BvbnNl'); - diff --git a/lib/src/model/protobuf/api/websocket/error.pb.dart b/lib/src/model/protobuf/api/websocket/error.pb.dart index 803db3c..8bb10e0 100644 --- a/lib/src/model/protobuf/api/websocket/error.pb.dart +++ b/lib/src/model/protobuf/api/websocket/error.pb.dart @@ -1,15 +1,17 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: api/websocket/error.proto -// -// @dart = 2.12 +// Generated from api/websocket/error.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names import 'dart:core' as $core; -export 'error.pbenum.dart'; +export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; +export 'error.pbenum.dart'; diff --git a/lib/src/model/protobuf/api/websocket/error.pbenum.dart b/lib/src/model/protobuf/api/websocket/error.pbenum.dart index 1c5331e..83a8518 100644 --- a/lib/src/model/protobuf/api/websocket/error.pbenum.dart +++ b/lib/src/model/protobuf/api/websocket/error.pbenum.dart @@ -1,57 +1,94 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: api/websocket/error.proto -// -// @dart = 2.12 +// Generated from api/websocket/error.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; class ErrorCode extends $pb.ProtobufEnum { - static const ErrorCode Unknown = ErrorCode._(0, _omitEnumNames ? '' : 'Unknown'); - static const ErrorCode BadRequest = ErrorCode._(400, _omitEnumNames ? '' : 'BadRequest'); - static const ErrorCode TooManyRequests = ErrorCode._(429, _omitEnumNames ? '' : 'TooManyRequests'); - static const ErrorCode InternalError = ErrorCode._(500, _omitEnumNames ? '' : 'InternalError'); - static const ErrorCode InvalidInvitationCode = ErrorCode._(1002, _omitEnumNames ? '' : 'InvalidInvitationCode'); - static const ErrorCode UsernameAlreadyTaken = ErrorCode._(1003, _omitEnumNames ? '' : 'UsernameAlreadyTaken'); - static const ErrorCode SignatureNotValid = ErrorCode._(1004, _omitEnumNames ? '' : 'SignatureNotValid'); - static const ErrorCode UsernameNotFound = ErrorCode._(1005, _omitEnumNames ? '' : 'UsernameNotFound'); - static const ErrorCode UsernameNotValid = ErrorCode._(1006, _omitEnumNames ? '' : 'UsernameNotValid'); - static const ErrorCode InvalidPublicKey = ErrorCode._(1007, _omitEnumNames ? '' : 'InvalidPublicKey'); - static const ErrorCode SessionAlreadyAuthenticated = ErrorCode._(1008, _omitEnumNames ? '' : 'SessionAlreadyAuthenticated'); - static const ErrorCode SessionNotAuthenticated = ErrorCode._(1009, _omitEnumNames ? '' : 'SessionNotAuthenticated'); - static const ErrorCode OnlyOneSessionAllowed = ErrorCode._(1010, _omitEnumNames ? '' : 'OnlyOneSessionAllowed'); - static const ErrorCode UploadLimitReached = ErrorCode._(1011, _omitEnumNames ? '' : 'UploadLimitReached'); - static const ErrorCode InvalidUpdateToken = ErrorCode._(1012, _omitEnumNames ? '' : 'InvalidUpdateToken'); - static const ErrorCode InvalidOffset = ErrorCode._(1013, _omitEnumNames ? '' : 'InvalidOffset'); - static const ErrorCode InvalidGoogleFcmToken = ErrorCode._(1014, _omitEnumNames ? '' : 'InvalidGoogleFcmToken'); - static const ErrorCode UploadTokenIsBlocked = ErrorCode._(1015, _omitEnumNames ? '' : 'UploadTokenIsBlocked'); - static const ErrorCode UploadChecksumInvalid = ErrorCode._(1016, _omitEnumNames ? '' : 'UploadChecksumInvalid'); - static const ErrorCode InvalidDownloadToken = ErrorCode._(1017, _omitEnumNames ? '' : 'InvalidDownloadToken'); - static const ErrorCode ApiEndpointNotFound = ErrorCode._(1018, _omitEnumNames ? '' : 'ApiEndpointNotFound'); - static const ErrorCode AuthTokenNotValid = ErrorCode._(1019, _omitEnumNames ? '' : 'AuthTokenNotValid'); - static const ErrorCode InvalidPreKeys = ErrorCode._(1020, _omitEnumNames ? '' : 'InvalidPreKeys'); - static const ErrorCode VoucherInValid = ErrorCode._(1021, _omitEnumNames ? '' : 'VoucherInValid'); - static const ErrorCode PlanNotAllowed = ErrorCode._(1022, _omitEnumNames ? '' : 'PlanNotAllowed'); - static const ErrorCode PlanLimitReached = ErrorCode._(1023, _omitEnumNames ? '' : 'PlanLimitReached'); - static const ErrorCode NotEnoughCredit = ErrorCode._(1024, _omitEnumNames ? '' : 'NotEnoughCredit'); - static const ErrorCode PlanDowngrade = ErrorCode._(1025, _omitEnumNames ? '' : 'PlanDowngrade'); - static const ErrorCode PlanUpgradeNotYearly = ErrorCode._(1026, _omitEnumNames ? '' : 'PlanUpgradeNotYearly'); - static const ErrorCode InvalidSignedPreKey = ErrorCode._(1027, _omitEnumNames ? '' : 'InvalidSignedPreKey'); - static const ErrorCode UserIdNotFound = ErrorCode._(1028, _omitEnumNames ? '' : 'UserIdNotFound'); - static const ErrorCode UserIdAlreadyTaken = ErrorCode._(1029, _omitEnumNames ? '' : 'UserIdAlreadyTaken'); - static const ErrorCode AppVersionOutdated = ErrorCode._(1030, _omitEnumNames ? '' : 'AppVersionOutdated'); - static const ErrorCode NewDeviceRegistered = ErrorCode._(1031, _omitEnumNames ? '' : 'NewDeviceRegistered'); - static const ErrorCode InvalidProofOfWork = ErrorCode._(1032, _omitEnumNames ? '' : 'InvalidProofOfWork'); - static const ErrorCode RegistrationDisabled = ErrorCode._(1033, _omitEnumNames ? '' : 'RegistrationDisabled'); + static const ErrorCode Unknown = + ErrorCode._(0, _omitEnumNames ? '' : 'Unknown'); + static const ErrorCode BadRequest = + ErrorCode._(400, _omitEnumNames ? '' : 'BadRequest'); + static const ErrorCode TooManyRequests = + ErrorCode._(429, _omitEnumNames ? '' : 'TooManyRequests'); + static const ErrorCode InternalError = + ErrorCode._(500, _omitEnumNames ? '' : 'InternalError'); + static const ErrorCode InvalidInvitationCode = + ErrorCode._(1002, _omitEnumNames ? '' : 'InvalidInvitationCode'); + static const ErrorCode UsernameAlreadyTaken = + ErrorCode._(1003, _omitEnumNames ? '' : 'UsernameAlreadyTaken'); + static const ErrorCode SignatureNotValid = + ErrorCode._(1004, _omitEnumNames ? '' : 'SignatureNotValid'); + static const ErrorCode UsernameNotFound = + ErrorCode._(1005, _omitEnumNames ? '' : 'UsernameNotFound'); + static const ErrorCode UsernameNotValid = + ErrorCode._(1006, _omitEnumNames ? '' : 'UsernameNotValid'); + static const ErrorCode InvalidPublicKey = + ErrorCode._(1007, _omitEnumNames ? '' : 'InvalidPublicKey'); + static const ErrorCode SessionAlreadyAuthenticated = + ErrorCode._(1008, _omitEnumNames ? '' : 'SessionAlreadyAuthenticated'); + static const ErrorCode SessionNotAuthenticated = + ErrorCode._(1009, _omitEnumNames ? '' : 'SessionNotAuthenticated'); + static const ErrorCode OnlyOneSessionAllowed = + ErrorCode._(1010, _omitEnumNames ? '' : 'OnlyOneSessionAllowed'); + static const ErrorCode UploadLimitReached = + ErrorCode._(1011, _omitEnumNames ? '' : 'UploadLimitReached'); + static const ErrorCode InvalidUpdateToken = + ErrorCode._(1012, _omitEnumNames ? '' : 'InvalidUpdateToken'); + static const ErrorCode InvalidOffset = + ErrorCode._(1013, _omitEnumNames ? '' : 'InvalidOffset'); + static const ErrorCode InvalidGoogleFcmToken = + ErrorCode._(1014, _omitEnumNames ? '' : 'InvalidGoogleFcmToken'); + static const ErrorCode UploadTokenIsBlocked = + ErrorCode._(1015, _omitEnumNames ? '' : 'UploadTokenIsBlocked'); + static const ErrorCode UploadChecksumInvalid = + ErrorCode._(1016, _omitEnumNames ? '' : 'UploadChecksumInvalid'); + static const ErrorCode InvalidDownloadToken = + ErrorCode._(1017, _omitEnumNames ? '' : 'InvalidDownloadToken'); + static const ErrorCode ApiEndpointNotFound = + ErrorCode._(1018, _omitEnumNames ? '' : 'ApiEndpointNotFound'); + static const ErrorCode AuthTokenNotValid = + ErrorCode._(1019, _omitEnumNames ? '' : 'AuthTokenNotValid'); + static const ErrorCode InvalidPreKeys = + ErrorCode._(1020, _omitEnumNames ? '' : 'InvalidPreKeys'); + static const ErrorCode VoucherInValid = + ErrorCode._(1021, _omitEnumNames ? '' : 'VoucherInValid'); + static const ErrorCode PlanNotAllowed = + ErrorCode._(1022, _omitEnumNames ? '' : 'PlanNotAllowed'); + static const ErrorCode PlanLimitReached = + ErrorCode._(1023, _omitEnumNames ? '' : 'PlanLimitReached'); + static const ErrorCode NotEnoughCredit = + ErrorCode._(1024, _omitEnumNames ? '' : 'NotEnoughCredit'); + static const ErrorCode PlanDowngrade = + ErrorCode._(1025, _omitEnumNames ? '' : 'PlanDowngrade'); + static const ErrorCode PlanUpgradeNotYearly = + ErrorCode._(1026, _omitEnumNames ? '' : 'PlanUpgradeNotYearly'); + static const ErrorCode InvalidSignedPreKey = + ErrorCode._(1027, _omitEnumNames ? '' : 'InvalidSignedPreKey'); + static const ErrorCode UserIdNotFound = + ErrorCode._(1028, _omitEnumNames ? '' : 'UserIdNotFound'); + static const ErrorCode UserIdAlreadyTaken = + ErrorCode._(1029, _omitEnumNames ? '' : 'UserIdAlreadyTaken'); + static const ErrorCode AppVersionOutdated = + ErrorCode._(1030, _omitEnumNames ? '' : 'AppVersionOutdated'); + static const ErrorCode NewDeviceRegistered = + ErrorCode._(1031, _omitEnumNames ? '' : 'NewDeviceRegistered'); + static const ErrorCode InvalidProofOfWork = + ErrorCode._(1032, _omitEnumNames ? '' : 'InvalidProofOfWork'); + static const ErrorCode RegistrationDisabled = + ErrorCode._(1033, _omitEnumNames ? '' : 'RegistrationDisabled'); - static const $core.List values = [ + static const $core.List values = [ Unknown, BadRequest, TooManyRequests, @@ -90,11 +127,12 @@ class ErrorCode extends $pb.ProtobufEnum { RegistrationDisabled, ]; - static final $core.Map<$core.int, ErrorCode> _byValue = $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, ErrorCode> _byValue = + $pb.ProtobufEnum.initByValue(values); static ErrorCode? valueOf($core.int value) => _byValue[value]; - const ErrorCode._($core.int v, $core.String n) : super(v, n); + const ErrorCode._(super.value, super.name); } - -const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); +const $core.bool _omitEnumNames = + $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/lib/src/model/protobuf/api/websocket/error.pbjson.dart b/lib/src/model/protobuf/api/websocket/error.pbjson.dart index 2e937dd..13a2e18 100644 --- a/lib/src/model/protobuf/api/websocket/error.pbjson.dart +++ b/lib/src/model/protobuf/api/websocket/error.pbjson.dart @@ -1,13 +1,14 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: api/websocket/error.proto -// -// @dart = 2.12 +// Generated from api/websocket/error.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names, unused_import import 'dart:convert' as $convert; import 'dart:core' as $core; @@ -74,4 +75,3 @@ final $typed_data.Uint8List errorCodeDescriptor = $convert.base64Decode( 'duZWRQcmVLZXkQgwgSEwoOVXNlcklkTm90Rm91bmQQhAgSFwoSVXNlcklkQWxyZWFkeVRha2Vu' 'EIUIEhcKEkFwcFZlcnNpb25PdXRkYXRlZBCGCBIYChNOZXdEZXZpY2VSZWdpc3RlcmVkEIcIEh' 'cKEkludmFsaWRQcm9vZk9mV29yaxCICBIZChRSZWdpc3RyYXRpb25EaXNhYmxlZBCJCA=='); - diff --git a/lib/src/model/protobuf/api/websocket/server_to_client.pb.dart b/lib/src/model/protobuf/api/websocket/server_to_client.pb.dart index 381c100..20ca9f5 100644 --- a/lib/src/model/protobuf/api/websocket/server_to_client.pb.dart +++ b/lib/src/model/protobuf/api/websocket/server_to_client.pb.dart @@ -1,13 +1,14 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: api/websocket/server_to_client.proto -// -// @dart = 2.12 +// Generated from api/websocket/server_to_client.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names import 'dart:core' as $core; @@ -17,80 +18,81 @@ import 'package:protobuf/protobuf.dart' as $pb; import 'error.pbenum.dart' as $0; import 'server_to_client.pbenum.dart'; +export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; + export 'server_to_client.pbenum.dart'; -enum ServerToClient_V { - v0, - notSet -} +enum ServerToClient_V { v0, notSet } class ServerToClient extends $pb.GeneratedMessage { factory ServerToClient({ V0? v0, }) { - final $result = create(); - if (v0 != null) { - $result.v0 = v0; - } - return $result; + final result = create(); + if (v0 != null) result.v0 = v0; + return result; } - ServerToClient._() : super(); - factory ServerToClient.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ServerToClient.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + ServerToClient._(); + + factory ServerToClient.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory ServerToClient.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); static const $core.Map<$core.int, ServerToClient_V> _ServerToClient_VByTag = { - 1 : ServerToClient_V.v0, - 0 : ServerToClient_V.notSet + 1: ServerToClient_V.v0, + 0: ServerToClient_V.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ServerToClient', package: const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ServerToClient', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), + createEmptyInstance: create) ..oo(0, [1]) - ..aOM(1, _omitFieldNames ? '' : 'V0', protoName: 'V0', subBuilder: V0.create) - ..hasRequiredFields = false - ; + ..aOM(1, _omitFieldNames ? '' : 'V0', + protoName: 'V0', subBuilder: V0.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') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ServerToClient clone() => ServerToClient()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ServerToClient copyWith(void Function(ServerToClient) updates) => super.copyWith((message) => updates(message as ServerToClient)) as ServerToClient; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + ServerToClient copyWith(void Function(ServerToClient) updates) => + super.copyWith((message) => updates(message as ServerToClient)) + as ServerToClient; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ServerToClient create() => ServerToClient._(); + @$core.override ServerToClient createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ServerToClient getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ServerToClient getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ServerToClient? _defaultInstance; ServerToClient_V whichV() => _ServerToClient_VByTag[$_whichOneof(0)]!; - void clearV() => clearField($_whichOneof(0)); + void clearV() => $_clearField($_whichOneof(0)); @$pb.TagNumber(1) V0 get v0 => $_getN(0); @$pb.TagNumber(1) - set v0(V0 v) { setField(1, v); } + set v0(V0 value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasV0() => $_has(0); @$pb.TagNumber(1) - void clearV0() => clearField(1); + void clearV0() => $_clearField(1); @$pb.TagNumber(1) V0 ensureV0() => $_ensure(0); } -enum V0_Kind { - response, - newMessage, - requestNewPreKeys, - error, - notSet -} +enum V0_Kind { response, newMessage, requestNewPreKeys, error, notSet } class V0 extends $pb.GeneratedMessage { factory V0({ @@ -100,117 +102,121 @@ class V0 extends $pb.GeneratedMessage { $core.bool? requestNewPreKeys, $0.ErrorCode? error, }) { - final $result = create(); - if (seq != null) { - $result.seq = seq; - } - if (response != null) { - $result.response = response; - } - if (newMessage != null) { - $result.newMessage = newMessage; - } - if (requestNewPreKeys != null) { - $result.requestNewPreKeys = requestNewPreKeys; - } - if (error != null) { - $result.error = error; - } - return $result; + final result = create(); + if (seq != null) result.seq = seq; + if (response != null) result.response = response; + if (newMessage != null) result.newMessage = newMessage; + if (requestNewPreKeys != null) result.requestNewPreKeys = requestNewPreKeys; + if (error != null) result.error = error; + return result; } - V0._() : super(); - factory V0.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory V0.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + V0._(); + + factory V0.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory V0.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); static const $core.Map<$core.int, V0_Kind> _V0_KindByTag = { - 2 : V0_Kind.response, - 3 : V0_Kind.newMessage, - 4 : V0_Kind.requestNewPreKeys, - 6 : V0_Kind.error, - 0 : V0_Kind.notSet + 2: V0_Kind.response, + 3: V0_Kind.newMessage, + 4: V0_Kind.requestNewPreKeys, + 6: V0_Kind.error, + 0: V0_Kind.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'V0', package: const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'V0', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), + createEmptyInstance: create) ..oo(0, [2, 3, 4, 6]) - ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'seq', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..aOM(2, _omitFieldNames ? '' : 'response', subBuilder: Response.create) - ..aOM(3, _omitFieldNames ? '' : 'newMessage', protoName: 'newMessage', subBuilder: NewMessage.create) - ..aOB(4, _omitFieldNames ? '' : 'RequestNewPreKeys', protoName: 'RequestNewPreKeys') - ..e<$0.ErrorCode>(6, _omitFieldNames ? '' : 'error', $pb.PbFieldType.OE, defaultOrMaker: $0.ErrorCode.Unknown, valueOf: $0.ErrorCode.valueOf, enumValues: $0.ErrorCode.values) - ..hasRequiredFields = false - ; + ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'seq', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..aOM(2, _omitFieldNames ? '' : 'response', + subBuilder: Response.create) + ..aOM(3, _omitFieldNames ? '' : 'newMessage', + protoName: 'newMessage', subBuilder: NewMessage.create) + ..aOB(4, _omitFieldNames ? '' : 'RequestNewPreKeys', + protoName: 'RequestNewPreKeys') + ..e<$0.ErrorCode>(6, _omitFieldNames ? '' : 'error', $pb.PbFieldType.OE, + defaultOrMaker: $0.ErrorCode.Unknown, + valueOf: $0.ErrorCode.valueOf, + enumValues: $0.ErrorCode.values) + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') V0 clone() => V0()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - V0 copyWith(void Function(V0) updates) => super.copyWith((message) => updates(message as V0)) as V0; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + V0 copyWith(void Function(V0) updates) => + super.copyWith((message) => updates(message as V0)) as V0; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static V0 create() => V0._(); + @$core.override V0 createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static V0 getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static V0 getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static V0? _defaultInstance; V0_Kind whichKind() => _V0_KindByTag[$_whichOneof(0)]!; - void clearKind() => clearField($_whichOneof(0)); + void clearKind() => $_clearField($_whichOneof(0)); @$pb.TagNumber(1) $fixnum.Int64 get seq => $_getI64(0); @$pb.TagNumber(1) - set seq($fixnum.Int64 v) { $_setInt64(0, v); } + set seq($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasSeq() => $_has(0); @$pb.TagNumber(1) - void clearSeq() => clearField(1); + void clearSeq() => $_clearField(1); @$pb.TagNumber(2) Response get response => $_getN(1); @$pb.TagNumber(2) - set response(Response v) { setField(2, v); } + set response(Response value) => $_setField(2, value); @$pb.TagNumber(2) $core.bool hasResponse() => $_has(1); @$pb.TagNumber(2) - void clearResponse() => clearField(2); + void clearResponse() => $_clearField(2); @$pb.TagNumber(2) Response ensureResponse() => $_ensure(1); @$pb.TagNumber(3) NewMessage get newMessage => $_getN(2); @$pb.TagNumber(3) - set newMessage(NewMessage v) { setField(3, v); } + set newMessage(NewMessage value) => $_setField(3, value); @$pb.TagNumber(3) $core.bool hasNewMessage() => $_has(2); @$pb.TagNumber(3) - void clearNewMessage() => clearField(3); + void clearNewMessage() => $_clearField(3); @$pb.TagNumber(3) NewMessage ensureNewMessage() => $_ensure(2); @$pb.TagNumber(4) $core.bool get requestNewPreKeys => $_getBF(3); @$pb.TagNumber(4) - set requestNewPreKeys($core.bool v) { $_setBool(3, v); } + set requestNewPreKeys($core.bool value) => $_setBool(3, value); @$pb.TagNumber(4) $core.bool hasRequestNewPreKeys() => $_has(3); @$pb.TagNumber(4) - void clearRequestNewPreKeys() => clearField(4); + void clearRequestNewPreKeys() => $_clearField(4); @$pb.TagNumber(6) $0.ErrorCode get error => $_getN(4); @$pb.TagNumber(6) - set error($0.ErrorCode v) { setField(6, v); } + set error($0.ErrorCode value) => $_setField(6, value); @$pb.TagNumber(6) $core.bool hasError() => $_has(4); @$pb.TagNumber(6) - void clearError() => clearField(6); + void clearError() => $_clearField(6); } class NewMessage extends $pb.GeneratedMessage { @@ -218,113 +224,126 @@ class NewMessage extends $pb.GeneratedMessage { $core.List<$core.int>? body, $fixnum.Int64? fromUserId, }) { - final $result = create(); - if (body != null) { - $result.body = body; - } - if (fromUserId != null) { - $result.fromUserId = fromUserId; - } - return $result; + final result = create(); + if (body != null) result.body = body; + if (fromUserId != null) result.fromUserId = fromUserId; + return result; } - NewMessage._() : super(); - factory NewMessage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory NewMessage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'NewMessage', package: const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), createEmptyInstance: create) - ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'body', $pb.PbFieldType.OY) + NewMessage._(); + + factory NewMessage.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory NewMessage.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'NewMessage', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), + createEmptyInstance: create) + ..a<$core.List<$core.int>>( + 1, _omitFieldNames ? '' : 'body', $pb.PbFieldType.OY) ..aInt64(2, _omitFieldNames ? '' : 'fromUserId') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') NewMessage clone() => NewMessage()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - NewMessage copyWith(void Function(NewMessage) updates) => super.copyWith((message) => updates(message as NewMessage)) as NewMessage; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + NewMessage copyWith(void Function(NewMessage) updates) => + super.copyWith((message) => updates(message as NewMessage)) as NewMessage; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static NewMessage create() => NewMessage._(); + @$core.override NewMessage createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static NewMessage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static NewMessage getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static NewMessage? _defaultInstance; @$pb.TagNumber(1) $core.List<$core.int> get body => $_getN(0); @$pb.TagNumber(1) - set body($core.List<$core.int> v) { $_setBytes(0, v); } + set body($core.List<$core.int> value) => $_setBytes(0, value); @$pb.TagNumber(1) $core.bool hasBody() => $_has(0); @$pb.TagNumber(1) - void clearBody() => clearField(1); + void clearBody() => $_clearField(1); @$pb.TagNumber(2) $fixnum.Int64 get fromUserId => $_getI64(1); @$pb.TagNumber(2) - set fromUserId($fixnum.Int64 v) { $_setInt64(1, v); } + set fromUserId($fixnum.Int64 value) => $_setInt64(1, value); @$pb.TagNumber(2) $core.bool hasFromUserId() => $_has(1); @$pb.TagNumber(2) - void clearFromUserId() => clearField(2); + void clearFromUserId() => $_clearField(2); } class Response_Authenticated extends $pb.GeneratedMessage { factory Response_Authenticated({ $core.String? plan, }) { - final $result = create(); - if (plan != null) { - $result.plan = plan; - } - return $result; + final result = create(); + if (plan != null) result.plan = plan; + return result; } - Response_Authenticated._() : super(); - factory Response_Authenticated.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Response_Authenticated.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Response.Authenticated', package: const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), createEmptyInstance: create) + Response_Authenticated._(); + + factory Response_Authenticated.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Response_Authenticated.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Response.Authenticated', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'plan') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - Response_Authenticated clone() => Response_Authenticated()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Response_Authenticated copyWith(void Function(Response_Authenticated) updates) => super.copyWith((message) => updates(message as Response_Authenticated)) as Response_Authenticated; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_Authenticated clone() => + Response_Authenticated()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_Authenticated copyWith( + void Function(Response_Authenticated) updates) => + super.copyWith((message) => updates(message as Response_Authenticated)) + as Response_Authenticated; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_Authenticated create() => Response_Authenticated._(); + @$core.override Response_Authenticated createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Response_Authenticated getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Response_Authenticated getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Response_Authenticated? _defaultInstance; @$pb.TagNumber(1) $core.String get plan => $_getSZ(0); @$pb.TagNumber(1) - set plan($core.String v) { $_setString(0, v); } + set plan($core.String value) => $_setString(0, value); @$pb.TagNumber(1) $core.bool hasPlan() => $_has(0); @$pb.TagNumber(1) - void clearPlan() => clearField(1); + void clearPlan() => $_clearField(1); } class Response_Plan extends $pb.GeneratedMessage { @@ -340,44 +359,41 @@ class Response_Plan extends $pb.GeneratedMessage { $core.bool? allowedToSendTextMessages, $core.bool? isAdditionalAccount, }) { - final $result = create(); - if (planId != null) { - $result.planId = planId; - } - if (uploadSizeLimit != null) { - $result.uploadSizeLimit = uploadSizeLimit; - } - if (dailyMediaUploadLimit != null) { - $result.dailyMediaUploadLimit = dailyMediaUploadLimit; - } - if (maximalUploadSizeOfSingleMediaSize != null) { - $result.maximalUploadSizeOfSingleMediaSize = maximalUploadSizeOfSingleMediaSize; - } - if (additionalPlusAccounts != null) { - $result.additionalPlusAccounts = additionalPlusAccounts; - } - if (additionalFreeAccounts != null) { - $result.additionalFreeAccounts = additionalFreeAccounts; - } - if (monthlyCostsCent != null) { - $result.monthlyCostsCent = monthlyCostsCent; - } - if (yearlyCostsCent != null) { - $result.yearlyCostsCent = yearlyCostsCent; - } - if (allowedToSendTextMessages != null) { - $result.allowedToSendTextMessages = allowedToSendTextMessages; - } - if (isAdditionalAccount != null) { - $result.isAdditionalAccount = isAdditionalAccount; - } - return $result; + final result = create(); + if (planId != null) result.planId = planId; + if (uploadSizeLimit != null) result.uploadSizeLimit = uploadSizeLimit; + if (dailyMediaUploadLimit != null) + result.dailyMediaUploadLimit = dailyMediaUploadLimit; + if (maximalUploadSizeOfSingleMediaSize != null) + result.maximalUploadSizeOfSingleMediaSize = + maximalUploadSizeOfSingleMediaSize; + if (additionalPlusAccounts != null) + result.additionalPlusAccounts = additionalPlusAccounts; + if (additionalFreeAccounts != null) + result.additionalFreeAccounts = additionalFreeAccounts; + if (monthlyCostsCent != null) result.monthlyCostsCent = monthlyCostsCent; + if (yearlyCostsCent != null) result.yearlyCostsCent = yearlyCostsCent; + if (allowedToSendTextMessages != null) + result.allowedToSendTextMessages = allowedToSendTextMessages; + if (isAdditionalAccount != null) + result.isAdditionalAccount = isAdditionalAccount; + return result; } - Response_Plan._() : super(); - factory Response_Plan.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Response_Plan.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Response.Plan', package: const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), createEmptyInstance: create) + Response_Plan._(); + + factory Response_Plan.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Response_Plan.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Response.Plan', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'planId') ..aInt64(2, _omitFieldNames ? '' : 'uploadSizeLimit') ..aInt64(3, _omitFieldNames ? '' : 'dailyMediaUploadLimit') @@ -388,163 +404,171 @@ class Response_Plan extends $pb.GeneratedMessage { ..aInt64(8, _omitFieldNames ? '' : 'yearlyCostsCent') ..aOB(9, _omitFieldNames ? '' : 'allowedToSendTextMessages') ..aOB(10, _omitFieldNames ? '' : 'isAdditionalAccount') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Response_Plan clone() => Response_Plan()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Response_Plan copyWith(void Function(Response_Plan) updates) => super.copyWith((message) => updates(message as Response_Plan)) as Response_Plan; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_Plan copyWith(void Function(Response_Plan) updates) => + super.copyWith((message) => updates(message as Response_Plan)) + as Response_Plan; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_Plan create() => Response_Plan._(); + @$core.override Response_Plan createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Response_Plan getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Response_Plan getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Response_Plan? _defaultInstance; @$pb.TagNumber(1) $core.String get planId => $_getSZ(0); @$pb.TagNumber(1) - set planId($core.String v) { $_setString(0, v); } + set planId($core.String value) => $_setString(0, value); @$pb.TagNumber(1) $core.bool hasPlanId() => $_has(0); @$pb.TagNumber(1) - void clearPlanId() => clearField(1); + void clearPlanId() => $_clearField(1); @$pb.TagNumber(2) $fixnum.Int64 get uploadSizeLimit => $_getI64(1); @$pb.TagNumber(2) - set uploadSizeLimit($fixnum.Int64 v) { $_setInt64(1, v); } + set uploadSizeLimit($fixnum.Int64 value) => $_setInt64(1, value); @$pb.TagNumber(2) $core.bool hasUploadSizeLimit() => $_has(1); @$pb.TagNumber(2) - void clearUploadSizeLimit() => clearField(2); + void clearUploadSizeLimit() => $_clearField(2); @$pb.TagNumber(3) $fixnum.Int64 get dailyMediaUploadLimit => $_getI64(2); @$pb.TagNumber(3) - set dailyMediaUploadLimit($fixnum.Int64 v) { $_setInt64(2, v); } + set dailyMediaUploadLimit($fixnum.Int64 value) => $_setInt64(2, value); @$pb.TagNumber(3) $core.bool hasDailyMediaUploadLimit() => $_has(2); @$pb.TagNumber(3) - void clearDailyMediaUploadLimit() => clearField(3); + void clearDailyMediaUploadLimit() => $_clearField(3); @$pb.TagNumber(4) $fixnum.Int64 get maximalUploadSizeOfSingleMediaSize => $_getI64(3); @$pb.TagNumber(4) - set maximalUploadSizeOfSingleMediaSize($fixnum.Int64 v) { $_setInt64(3, v); } + set maximalUploadSizeOfSingleMediaSize($fixnum.Int64 value) => + $_setInt64(3, value); @$pb.TagNumber(4) $core.bool hasMaximalUploadSizeOfSingleMediaSize() => $_has(3); @$pb.TagNumber(4) - void clearMaximalUploadSizeOfSingleMediaSize() => clearField(4); + void clearMaximalUploadSizeOfSingleMediaSize() => $_clearField(4); @$pb.TagNumber(5) $fixnum.Int64 get additionalPlusAccounts => $_getI64(4); @$pb.TagNumber(5) - set additionalPlusAccounts($fixnum.Int64 v) { $_setInt64(4, v); } + set additionalPlusAccounts($fixnum.Int64 value) => $_setInt64(4, value); @$pb.TagNumber(5) $core.bool hasAdditionalPlusAccounts() => $_has(4); @$pb.TagNumber(5) - void clearAdditionalPlusAccounts() => clearField(5); + void clearAdditionalPlusAccounts() => $_clearField(5); @$pb.TagNumber(6) $fixnum.Int64 get additionalFreeAccounts => $_getI64(5); @$pb.TagNumber(6) - set additionalFreeAccounts($fixnum.Int64 v) { $_setInt64(5, v); } + set additionalFreeAccounts($fixnum.Int64 value) => $_setInt64(5, value); @$pb.TagNumber(6) $core.bool hasAdditionalFreeAccounts() => $_has(5); @$pb.TagNumber(6) - void clearAdditionalFreeAccounts() => clearField(6); + void clearAdditionalFreeAccounts() => $_clearField(6); @$pb.TagNumber(7) $fixnum.Int64 get monthlyCostsCent => $_getI64(6); @$pb.TagNumber(7) - set monthlyCostsCent($fixnum.Int64 v) { $_setInt64(6, v); } + set monthlyCostsCent($fixnum.Int64 value) => $_setInt64(6, value); @$pb.TagNumber(7) $core.bool hasMonthlyCostsCent() => $_has(6); @$pb.TagNumber(7) - void clearMonthlyCostsCent() => clearField(7); + void clearMonthlyCostsCent() => $_clearField(7); @$pb.TagNumber(8) $fixnum.Int64 get yearlyCostsCent => $_getI64(7); @$pb.TagNumber(8) - set yearlyCostsCent($fixnum.Int64 v) { $_setInt64(7, v); } + set yearlyCostsCent($fixnum.Int64 value) => $_setInt64(7, value); @$pb.TagNumber(8) $core.bool hasYearlyCostsCent() => $_has(7); @$pb.TagNumber(8) - void clearYearlyCostsCent() => clearField(8); + void clearYearlyCostsCent() => $_clearField(8); @$pb.TagNumber(9) $core.bool get allowedToSendTextMessages => $_getBF(8); @$pb.TagNumber(9) - set allowedToSendTextMessages($core.bool v) { $_setBool(8, v); } + set allowedToSendTextMessages($core.bool value) => $_setBool(8, value); @$pb.TagNumber(9) $core.bool hasAllowedToSendTextMessages() => $_has(8); @$pb.TagNumber(9) - void clearAllowedToSendTextMessages() => clearField(9); + void clearAllowedToSendTextMessages() => $_clearField(9); @$pb.TagNumber(10) $core.bool get isAdditionalAccount => $_getBF(9); @$pb.TagNumber(10) - set isAdditionalAccount($core.bool v) { $_setBool(9, v); } + set isAdditionalAccount($core.bool value) => $_setBool(9, value); @$pb.TagNumber(10) $core.bool hasIsAdditionalAccount() => $_has(9); @$pb.TagNumber(10) - void clearIsAdditionalAccount() => clearField(10); + void clearIsAdditionalAccount() => $_clearField(10); } class Response_Plans extends $pb.GeneratedMessage { factory Response_Plans({ $core.Iterable? plans, }) { - final $result = create(); - if (plans != null) { - $result.plans.addAll(plans); - } - return $result; + final result = create(); + if (plans != null) result.plans.addAll(plans); + return result; } - Response_Plans._() : super(); - factory Response_Plans.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Response_Plans.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Response.Plans', package: const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'plans', $pb.PbFieldType.PM, subBuilder: Response_Plan.create) - ..hasRequiredFields = false - ; + Response_Plans._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory Response_Plans.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Response_Plans.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Response.Plans', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'plans', $pb.PbFieldType.PM, + subBuilder: Response_Plan.create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Response_Plans clone() => Response_Plans()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Response_Plans copyWith(void Function(Response_Plans) updates) => super.copyWith((message) => updates(message as Response_Plans)) as Response_Plans; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_Plans copyWith(void Function(Response_Plans) updates) => + super.copyWith((message) => updates(message as Response_Plans)) + as Response_Plans; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_Plans create() => Response_Plans._(); + @$core.override Response_Plans createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Response_Plans getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Response_Plans getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Response_Plans? _defaultInstance; @$pb.TagNumber(1) - $core.List get plans => $_getList(0); + $pb.PbList get plans => $_getList(0); } class Response_AddAccountsInvite extends $pb.GeneratedMessage { @@ -552,107 +576,128 @@ class Response_AddAccountsInvite extends $pb.GeneratedMessage { $core.String? planId, $core.String? inviteCode, }) { - final $result = create(); - if (planId != null) { - $result.planId = planId; - } - if (inviteCode != null) { - $result.inviteCode = inviteCode; - } - return $result; + final result = create(); + if (planId != null) result.planId = planId; + if (inviteCode != null) result.inviteCode = inviteCode; + return result; } - Response_AddAccountsInvite._() : super(); - factory Response_AddAccountsInvite.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Response_AddAccountsInvite.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Response.AddAccountsInvite', package: const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), createEmptyInstance: create) + Response_AddAccountsInvite._(); + + factory Response_AddAccountsInvite.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Response_AddAccountsInvite.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Response.AddAccountsInvite', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'planId') ..aOS(2, _omitFieldNames ? '' : 'inviteCode') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - Response_AddAccountsInvite clone() => Response_AddAccountsInvite()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Response_AddAccountsInvite copyWith(void Function(Response_AddAccountsInvite) updates) => super.copyWith((message) => updates(message as Response_AddAccountsInvite)) as Response_AddAccountsInvite; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_AddAccountsInvite clone() => + Response_AddAccountsInvite()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_AddAccountsInvite copyWith( + void Function(Response_AddAccountsInvite) updates) => + super.copyWith( + (message) => updates(message as Response_AddAccountsInvite)) + as Response_AddAccountsInvite; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_AddAccountsInvite create() => Response_AddAccountsInvite._(); + @$core.override Response_AddAccountsInvite createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Response_AddAccountsInvite getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Response_AddAccountsInvite getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Response_AddAccountsInvite? _defaultInstance; @$pb.TagNumber(1) $core.String get planId => $_getSZ(0); @$pb.TagNumber(1) - set planId($core.String v) { $_setString(0, v); } + set planId($core.String value) => $_setString(0, value); @$pb.TagNumber(1) $core.bool hasPlanId() => $_has(0); @$pb.TagNumber(1) - void clearPlanId() => clearField(1); + void clearPlanId() => $_clearField(1); @$pb.TagNumber(2) $core.String get inviteCode => $_getSZ(1); @$pb.TagNumber(2) - set inviteCode($core.String v) { $_setString(1, v); } + set inviteCode($core.String value) => $_setString(1, value); @$pb.TagNumber(2) $core.bool hasInviteCode() => $_has(1); @$pb.TagNumber(2) - void clearInviteCode() => clearField(2); + void clearInviteCode() => $_clearField(2); } class Response_AddAccountsInvites extends $pb.GeneratedMessage { factory Response_AddAccountsInvites({ $core.Iterable? invites, }) { - final $result = create(); - if (invites != null) { - $result.invites.addAll(invites); - } - return $result; + final result = create(); + if (invites != null) result.invites.addAll(invites); + return result; } - Response_AddAccountsInvites._() : super(); - factory Response_AddAccountsInvites.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Response_AddAccountsInvites.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Response.AddAccountsInvites', package: const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'invites', $pb.PbFieldType.PM, subBuilder: Response_AddAccountsInvite.create) - ..hasRequiredFields = false - ; + Response_AddAccountsInvites._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - Response_AddAccountsInvites clone() => Response_AddAccountsInvites()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Response_AddAccountsInvites copyWith(void Function(Response_AddAccountsInvites) updates) => super.copyWith((message) => updates(message as Response_AddAccountsInvites)) as Response_AddAccountsInvites; + factory Response_AddAccountsInvites.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Response_AddAccountsInvites.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Response.AddAccountsInvites', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'invites', $pb.PbFieldType.PM, + subBuilder: Response_AddAccountsInvite.create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_AddAccountsInvites clone() => + Response_AddAccountsInvites()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_AddAccountsInvites copyWith( + void Function(Response_AddAccountsInvites) updates) => + super.copyWith( + (message) => updates(message as Response_AddAccountsInvites)) + as Response_AddAccountsInvites; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static Response_AddAccountsInvites create() => Response_AddAccountsInvites._(); + static Response_AddAccountsInvites create() => + Response_AddAccountsInvites._(); + @$core.override Response_AddAccountsInvites createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Response_AddAccountsInvites getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Response_AddAccountsInvites getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Response_AddAccountsInvites? _defaultInstance; @$pb.TagNumber(1) - $core.List get invites => $_getList(0); + $pb.PbList get invites => $_getList(0); } class Response_Transaction extends $pb.GeneratedMessage { @@ -661,67 +706,76 @@ class Response_Transaction extends $pb.GeneratedMessage { Response_TransactionTypes? transactionType, $fixnum.Int64? createdAtUnixTimestamp, }) { - final $result = create(); - if (depositCents != null) { - $result.depositCents = depositCents; - } - if (transactionType != null) { - $result.transactionType = transactionType; - } - if (createdAtUnixTimestamp != null) { - $result.createdAtUnixTimestamp = createdAtUnixTimestamp; - } - return $result; + final result = create(); + if (depositCents != null) result.depositCents = depositCents; + if (transactionType != null) result.transactionType = transactionType; + if (createdAtUnixTimestamp != null) + result.createdAtUnixTimestamp = createdAtUnixTimestamp; + return result; } - Response_Transaction._() : super(); - factory Response_Transaction.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Response_Transaction.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Response.Transaction', package: const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), createEmptyInstance: create) + Response_Transaction._(); + + factory Response_Transaction.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Response_Transaction.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Response.Transaction', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), + createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'depositCents') - ..e(2, _omitFieldNames ? '' : 'transactionType', $pb.PbFieldType.OE, defaultOrMaker: Response_TransactionTypes.Refund, valueOf: Response_TransactionTypes.valueOf, enumValues: Response_TransactionTypes.values) + ..e( + 2, _omitFieldNames ? '' : 'transactionType', $pb.PbFieldType.OE, + defaultOrMaker: Response_TransactionTypes.Refund, + valueOf: Response_TransactionTypes.valueOf, + enumValues: Response_TransactionTypes.values) ..aInt64(3, _omitFieldNames ? '' : 'createdAtUnixTimestamp') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - Response_Transaction clone() => Response_Transaction()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Response_Transaction copyWith(void Function(Response_Transaction) updates) => super.copyWith((message) => updates(message as Response_Transaction)) as Response_Transaction; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_Transaction clone() => + Response_Transaction()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_Transaction copyWith(void Function(Response_Transaction) updates) => + super.copyWith((message) => updates(message as Response_Transaction)) + as Response_Transaction; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_Transaction create() => Response_Transaction._(); + @$core.override Response_Transaction createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Response_Transaction getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Response_Transaction getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Response_Transaction? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get depositCents => $_getI64(0); @$pb.TagNumber(1) - set depositCents($fixnum.Int64 v) { $_setInt64(0, v); } + set depositCents($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasDepositCents() => $_has(0); @$pb.TagNumber(1) - void clearDepositCents() => clearField(1); + void clearDepositCents() => $_clearField(1); @$pb.TagNumber(2) Response_TransactionTypes get transactionType => $_getN(1); @$pb.TagNumber(2) - set transactionType(Response_TransactionTypes v) { setField(2, v); } + set transactionType(Response_TransactionTypes value) => $_setField(2, value); @$pb.TagNumber(2) $core.bool hasTransactionType() => $_has(1); @$pb.TagNumber(2) - void clearTransactionType() => clearField(2); + void clearTransactionType() => $_clearField(2); /// Represents seconds of UTC time since Unix epoch /// 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to @@ -729,11 +783,11 @@ class Response_Transaction extends $pb.GeneratedMessage { @$pb.TagNumber(3) $fixnum.Int64 get createdAtUnixTimestamp => $_getI64(2); @$pb.TagNumber(3) - set createdAtUnixTimestamp($fixnum.Int64 v) { $_setInt64(2, v); } + set createdAtUnixTimestamp($fixnum.Int64 value) => $_setInt64(2, value); @$pb.TagNumber(3) $core.bool hasCreatedAtUnixTimestamp() => $_has(2); @$pb.TagNumber(3) - void clearCreatedAtUnixTimestamp() => clearField(3); + void clearCreatedAtUnixTimestamp() => $_clearField(3); } class Response_AdditionalAccount extends $pb.GeneratedMessage { @@ -741,63 +795,71 @@ class Response_AdditionalAccount extends $pb.GeneratedMessage { $fixnum.Int64? userId, $core.String? planId, }) { - final $result = create(); - if (userId != null) { - $result.userId = userId; - } - if (planId != null) { - $result.planId = planId; - } - return $result; + final result = create(); + if (userId != null) result.userId = userId; + if (planId != null) result.planId = planId; + return result; } - Response_AdditionalAccount._() : super(); - factory Response_AdditionalAccount.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Response_AdditionalAccount.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Response.AdditionalAccount', package: const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), createEmptyInstance: create) + Response_AdditionalAccount._(); + + factory Response_AdditionalAccount.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Response_AdditionalAccount.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Response.AdditionalAccount', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), + createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'userId') ..aOS(3, _omitFieldNames ? '' : 'planId') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - Response_AdditionalAccount clone() => Response_AdditionalAccount()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Response_AdditionalAccount copyWith(void Function(Response_AdditionalAccount) updates) => super.copyWith((message) => updates(message as Response_AdditionalAccount)) as Response_AdditionalAccount; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_AdditionalAccount clone() => + Response_AdditionalAccount()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_AdditionalAccount copyWith( + void Function(Response_AdditionalAccount) updates) => + super.copyWith( + (message) => updates(message as Response_AdditionalAccount)) + as Response_AdditionalAccount; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_AdditionalAccount create() => Response_AdditionalAccount._(); + @$core.override Response_AdditionalAccount createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Response_AdditionalAccount getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Response_AdditionalAccount getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Response_AdditionalAccount? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get userId => $_getI64(0); @$pb.TagNumber(1) - set userId($fixnum.Int64 v) { $_setInt64(0, v); } + set userId($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasUserId() => $_has(0); @$pb.TagNumber(1) - void clearUserId() => clearField(1); + void clearUserId() => $_clearField(1); @$pb.TagNumber(3) $core.String get planId => $_getSZ(1); @$pb.TagNumber(3) - set planId($core.String v) { $_setString(1, v); } + set planId($core.String value) => $_setString(1, value); @$pb.TagNumber(3) $core.bool hasPlanId() => $_has(1); @$pb.TagNumber(3) - void clearPlanId() => clearField(3); + void clearPlanId() => $_clearField(3); } class Response_Voucher extends $pb.GeneratedMessage { @@ -808,146 +870,155 @@ class Response_Voucher extends $pb.GeneratedMessage { $core.bool? requested, $fixnum.Int64? createdAtUnixTimestamp, }) { - final $result = create(); - if (voucherId != null) { - $result.voucherId = voucherId; - } - if (valueCents != null) { - $result.valueCents = valueCents; - } - if (redeemed != null) { - $result.redeemed = redeemed; - } - if (requested != null) { - $result.requested = requested; - } - if (createdAtUnixTimestamp != null) { - $result.createdAtUnixTimestamp = createdAtUnixTimestamp; - } - return $result; + final result = create(); + if (voucherId != null) result.voucherId = voucherId; + if (valueCents != null) result.valueCents = valueCents; + if (redeemed != null) result.redeemed = redeemed; + if (requested != null) result.requested = requested; + if (createdAtUnixTimestamp != null) + result.createdAtUnixTimestamp = createdAtUnixTimestamp; + return result; } - Response_Voucher._() : super(); - factory Response_Voucher.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Response_Voucher.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Response.Voucher', package: const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), createEmptyInstance: create) + Response_Voucher._(); + + factory Response_Voucher.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Response_Voucher.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Response.Voucher', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'voucherId') ..aInt64(2, _omitFieldNames ? '' : 'valueCents') ..aOB(3, _omitFieldNames ? '' : 'redeemed') ..aOB(4, _omitFieldNames ? '' : 'requested') ..aInt64(5, _omitFieldNames ? '' : 'createdAtUnixTimestamp') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Response_Voucher clone() => Response_Voucher()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Response_Voucher copyWith(void Function(Response_Voucher) updates) => super.copyWith((message) => updates(message as Response_Voucher)) as Response_Voucher; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_Voucher copyWith(void Function(Response_Voucher) updates) => + super.copyWith((message) => updates(message as Response_Voucher)) + as Response_Voucher; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_Voucher create() => Response_Voucher._(); + @$core.override Response_Voucher createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Response_Voucher getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Response_Voucher getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Response_Voucher? _defaultInstance; @$pb.TagNumber(1) $core.String get voucherId => $_getSZ(0); @$pb.TagNumber(1) - set voucherId($core.String v) { $_setString(0, v); } + set voucherId($core.String value) => $_setString(0, value); @$pb.TagNumber(1) $core.bool hasVoucherId() => $_has(0); @$pb.TagNumber(1) - void clearVoucherId() => clearField(1); + void clearVoucherId() => $_clearField(1); @$pb.TagNumber(2) $fixnum.Int64 get valueCents => $_getI64(1); @$pb.TagNumber(2) - set valueCents($fixnum.Int64 v) { $_setInt64(1, v); } + set valueCents($fixnum.Int64 value) => $_setInt64(1, value); @$pb.TagNumber(2) $core.bool hasValueCents() => $_has(1); @$pb.TagNumber(2) - void clearValueCents() => clearField(2); + void clearValueCents() => $_clearField(2); @$pb.TagNumber(3) $core.bool get redeemed => $_getBF(2); @$pb.TagNumber(3) - set redeemed($core.bool v) { $_setBool(2, v); } + set redeemed($core.bool value) => $_setBool(2, value); @$pb.TagNumber(3) $core.bool hasRedeemed() => $_has(2); @$pb.TagNumber(3) - void clearRedeemed() => clearField(3); + void clearRedeemed() => $_clearField(3); @$pb.TagNumber(4) $core.bool get requested => $_getBF(3); @$pb.TagNumber(4) - set requested($core.bool v) { $_setBool(3, v); } + set requested($core.bool value) => $_setBool(3, value); @$pb.TagNumber(4) $core.bool hasRequested() => $_has(3); @$pb.TagNumber(4) - void clearRequested() => clearField(4); + void clearRequested() => $_clearField(4); @$pb.TagNumber(5) $fixnum.Int64 get createdAtUnixTimestamp => $_getI64(4); @$pb.TagNumber(5) - set createdAtUnixTimestamp($fixnum.Int64 v) { $_setInt64(4, v); } + set createdAtUnixTimestamp($fixnum.Int64 value) => $_setInt64(4, value); @$pb.TagNumber(5) $core.bool hasCreatedAtUnixTimestamp() => $_has(4); @$pb.TagNumber(5) - void clearCreatedAtUnixTimestamp() => clearField(5); + void clearCreatedAtUnixTimestamp() => $_clearField(5); } class Response_Vouchers extends $pb.GeneratedMessage { factory Response_Vouchers({ $core.Iterable? vouchers, }) { - final $result = create(); - if (vouchers != null) { - $result.vouchers.addAll(vouchers); - } - return $result; + final result = create(); + if (vouchers != null) result.vouchers.addAll(vouchers); + return result; } - Response_Vouchers._() : super(); - factory Response_Vouchers.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Response_Vouchers.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Response.Vouchers', package: const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'vouchers', $pb.PbFieldType.PM, subBuilder: Response_Voucher.create) - ..hasRequiredFields = false - ; + Response_Vouchers._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory Response_Vouchers.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Response_Vouchers.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Response.Vouchers', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'vouchers', $pb.PbFieldType.PM, + subBuilder: Response_Voucher.create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Response_Vouchers clone() => Response_Vouchers()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Response_Vouchers copyWith(void Function(Response_Vouchers) updates) => super.copyWith((message) => updates(message as Response_Vouchers)) as Response_Vouchers; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_Vouchers copyWith(void Function(Response_Vouchers) updates) => + super.copyWith((message) => updates(message as Response_Vouchers)) + as Response_Vouchers; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_Vouchers create() => Response_Vouchers._(); + @$core.override Response_Vouchers createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Response_Vouchers getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Response_Vouchers getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Response_Vouchers? _defaultInstance; @$pb.TagNumber(1) - $core.List get vouchers => $_getList(0); + $pb.PbList get vouchers => $_getList(0); } class Response_PlanBallance extends $pb.GeneratedMessage { @@ -961,129 +1032,133 @@ class Response_PlanBallance extends $pb.GeneratedMessage { $core.bool? autoRenewal, $fixnum.Int64? additionalAccountOwnerId, }) { - final $result = create(); - if (usedDailyMediaUploadLimit != null) { - $result.usedDailyMediaUploadLimit = usedDailyMediaUploadLimit; - } - if (usedUploadMediaSizeLimit != null) { - $result.usedUploadMediaSizeLimit = usedUploadMediaSizeLimit; - } - if (paymentPeriodDays != null) { - $result.paymentPeriodDays = paymentPeriodDays; - } - if (lastPaymentDoneUnixTimestamp != null) { - $result.lastPaymentDoneUnixTimestamp = lastPaymentDoneUnixTimestamp; - } - if (transactions != null) { - $result.transactions.addAll(transactions); - } - if (additionalAccounts != null) { - $result.additionalAccounts.addAll(additionalAccounts); - } - if (autoRenewal != null) { - $result.autoRenewal = autoRenewal; - } - if (additionalAccountOwnerId != null) { - $result.additionalAccountOwnerId = additionalAccountOwnerId; - } - return $result; + final result = create(); + if (usedDailyMediaUploadLimit != null) + result.usedDailyMediaUploadLimit = usedDailyMediaUploadLimit; + if (usedUploadMediaSizeLimit != null) + result.usedUploadMediaSizeLimit = usedUploadMediaSizeLimit; + if (paymentPeriodDays != null) result.paymentPeriodDays = paymentPeriodDays; + if (lastPaymentDoneUnixTimestamp != null) + result.lastPaymentDoneUnixTimestamp = lastPaymentDoneUnixTimestamp; + if (transactions != null) result.transactions.addAll(transactions); + if (additionalAccounts != null) + result.additionalAccounts.addAll(additionalAccounts); + if (autoRenewal != null) result.autoRenewal = autoRenewal; + if (additionalAccountOwnerId != null) + result.additionalAccountOwnerId = additionalAccountOwnerId; + return result; } - Response_PlanBallance._() : super(); - factory Response_PlanBallance.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Response_PlanBallance.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Response.PlanBallance', package: const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), createEmptyInstance: create) + Response_PlanBallance._(); + + factory Response_PlanBallance.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Response_PlanBallance.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Response.PlanBallance', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), + createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'usedDailyMediaUploadLimit') ..aInt64(2, _omitFieldNames ? '' : 'usedUploadMediaSizeLimit') ..aInt64(3, _omitFieldNames ? '' : 'paymentPeriodDays') ..aInt64(4, _omitFieldNames ? '' : 'lastPaymentDoneUnixTimestamp') - ..pc(5, _omitFieldNames ? '' : 'transactions', $pb.PbFieldType.PM, subBuilder: Response_Transaction.create) - ..pc(6, _omitFieldNames ? '' : 'additionalAccounts', $pb.PbFieldType.PM, subBuilder: Response_AdditionalAccount.create) + ..pc( + 5, _omitFieldNames ? '' : 'transactions', $pb.PbFieldType.PM, + subBuilder: Response_Transaction.create) + ..pc( + 6, _omitFieldNames ? '' : 'additionalAccounts', $pb.PbFieldType.PM, + subBuilder: Response_AdditionalAccount.create) ..aOB(7, _omitFieldNames ? '' : 'autoRenewal') ..aInt64(8, _omitFieldNames ? '' : 'additionalAccountOwnerId') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - Response_PlanBallance clone() => Response_PlanBallance()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Response_PlanBallance copyWith(void Function(Response_PlanBallance) updates) => super.copyWith((message) => updates(message as Response_PlanBallance)) as Response_PlanBallance; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_PlanBallance clone() => + Response_PlanBallance()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_PlanBallance copyWith( + void Function(Response_PlanBallance) updates) => + super.copyWith((message) => updates(message as Response_PlanBallance)) + as Response_PlanBallance; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_PlanBallance create() => Response_PlanBallance._(); + @$core.override Response_PlanBallance createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Response_PlanBallance getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Response_PlanBallance getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Response_PlanBallance? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get usedDailyMediaUploadLimit => $_getI64(0); @$pb.TagNumber(1) - set usedDailyMediaUploadLimit($fixnum.Int64 v) { $_setInt64(0, v); } + set usedDailyMediaUploadLimit($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasUsedDailyMediaUploadLimit() => $_has(0); @$pb.TagNumber(1) - void clearUsedDailyMediaUploadLimit() => clearField(1); + void clearUsedDailyMediaUploadLimit() => $_clearField(1); @$pb.TagNumber(2) $fixnum.Int64 get usedUploadMediaSizeLimit => $_getI64(1); @$pb.TagNumber(2) - set usedUploadMediaSizeLimit($fixnum.Int64 v) { $_setInt64(1, v); } + set usedUploadMediaSizeLimit($fixnum.Int64 value) => $_setInt64(1, value); @$pb.TagNumber(2) $core.bool hasUsedUploadMediaSizeLimit() => $_has(1); @$pb.TagNumber(2) - void clearUsedUploadMediaSizeLimit() => clearField(2); + void clearUsedUploadMediaSizeLimit() => $_clearField(2); @$pb.TagNumber(3) $fixnum.Int64 get paymentPeriodDays => $_getI64(2); @$pb.TagNumber(3) - set paymentPeriodDays($fixnum.Int64 v) { $_setInt64(2, v); } + set paymentPeriodDays($fixnum.Int64 value) => $_setInt64(2, value); @$pb.TagNumber(3) $core.bool hasPaymentPeriodDays() => $_has(2); @$pb.TagNumber(3) - void clearPaymentPeriodDays() => clearField(3); + void clearPaymentPeriodDays() => $_clearField(3); @$pb.TagNumber(4) $fixnum.Int64 get lastPaymentDoneUnixTimestamp => $_getI64(3); @$pb.TagNumber(4) - set lastPaymentDoneUnixTimestamp($fixnum.Int64 v) { $_setInt64(3, v); } + set lastPaymentDoneUnixTimestamp($fixnum.Int64 value) => $_setInt64(3, value); @$pb.TagNumber(4) $core.bool hasLastPaymentDoneUnixTimestamp() => $_has(3); @$pb.TagNumber(4) - void clearLastPaymentDoneUnixTimestamp() => clearField(4); + void clearLastPaymentDoneUnixTimestamp() => $_clearField(4); @$pb.TagNumber(5) - $core.List get transactions => $_getList(4); + $pb.PbList get transactions => $_getList(4); @$pb.TagNumber(6) - $core.List get additionalAccounts => $_getList(5); + $pb.PbList get additionalAccounts => $_getList(5); @$pb.TagNumber(7) $core.bool get autoRenewal => $_getBF(6); @$pb.TagNumber(7) - set autoRenewal($core.bool v) { $_setBool(6, v); } + set autoRenewal($core.bool value) => $_setBool(6, value); @$pb.TagNumber(7) $core.bool hasAutoRenewal() => $_has(6); @$pb.TagNumber(7) - void clearAutoRenewal() => clearField(7); + void clearAutoRenewal() => $_clearField(7); @$pb.TagNumber(8) $fixnum.Int64 get additionalAccountOwnerId => $_getI64(7); @$pb.TagNumber(8) - set additionalAccountOwnerId($fixnum.Int64 v) { $_setInt64(7, v); } + set additionalAccountOwnerId($fixnum.Int64 value) => $_setInt64(7, value); @$pb.TagNumber(8) $core.bool hasAdditionalAccountOwnerId() => $_has(7); @$pb.TagNumber(8) - void clearAdditionalAccountOwnerId() => clearField(8); + void clearAdditionalAccountOwnerId() => $_clearField(8); } class Response_Location extends $pb.GeneratedMessage { @@ -1092,76 +1167,79 @@ class Response_Location extends $pb.GeneratedMessage { $core.String? region, $core.String? city, }) { - final $result = create(); - if (county != null) { - $result.county = county; - } - if (region != null) { - $result.region = region; - } - if (city != null) { - $result.city = city; - } - return $result; + final result = create(); + if (county != null) result.county = county; + if (region != null) result.region = region; + if (city != null) result.city = city; + return result; } - Response_Location._() : super(); - factory Response_Location.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Response_Location.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Response.Location', package: const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), createEmptyInstance: create) + Response_Location._(); + + factory Response_Location.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Response_Location.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Response.Location', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'county') ..aOS(2, _omitFieldNames ? '' : 'region') ..aOS(3, _omitFieldNames ? '' : 'city') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Response_Location clone() => Response_Location()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Response_Location copyWith(void Function(Response_Location) updates) => super.copyWith((message) => updates(message as Response_Location)) as Response_Location; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_Location copyWith(void Function(Response_Location) updates) => + super.copyWith((message) => updates(message as Response_Location)) + as Response_Location; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_Location create() => Response_Location._(); + @$core.override Response_Location createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Response_Location getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Response_Location getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Response_Location? _defaultInstance; @$pb.TagNumber(1) $core.String get county => $_getSZ(0); @$pb.TagNumber(1) - set county($core.String v) { $_setString(0, v); } + set county($core.String value) => $_setString(0, value); @$pb.TagNumber(1) $core.bool hasCounty() => $_has(0); @$pb.TagNumber(1) - void clearCounty() => clearField(1); + void clearCounty() => $_clearField(1); @$pb.TagNumber(2) $core.String get region => $_getSZ(1); @$pb.TagNumber(2) - set region($core.String v) { $_setString(1, v); } + set region($core.String value) => $_setString(1, value); @$pb.TagNumber(2) $core.bool hasRegion() => $_has(1); @$pb.TagNumber(2) - void clearRegion() => clearField(2); + void clearRegion() => $_clearField(2); @$pb.TagNumber(3) $core.String get city => $_getSZ(2); @$pb.TagNumber(3) - set city($core.String v) { $_setString(2, v); } + set city($core.String value) => $_setString(2, value); @$pb.TagNumber(3) $core.bool hasCity() => $_has(2); @$pb.TagNumber(3) - void clearCity() => clearField(3); + void clearCity() => $_clearField(3); } class Response_PreKey extends $pb.GeneratedMessage { @@ -1169,63 +1247,69 @@ class Response_PreKey extends $pb.GeneratedMessage { $fixnum.Int64? id, $core.List<$core.int>? prekey, }) { - final $result = create(); - if (id != null) { - $result.id = id; - } - if (prekey != null) { - $result.prekey = prekey; - } - return $result; + final result = create(); + if (id != null) result.id = id; + if (prekey != null) result.prekey = prekey; + return result; } - Response_PreKey._() : super(); - factory Response_PreKey.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Response_PreKey.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Response.PreKey', package: const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), createEmptyInstance: create) + Response_PreKey._(); + + factory Response_PreKey.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Response_PreKey.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Response.PreKey', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), + createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'id') - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'prekey', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'prekey', $pb.PbFieldType.OY) + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Response_PreKey clone() => Response_PreKey()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Response_PreKey copyWith(void Function(Response_PreKey) updates) => super.copyWith((message) => updates(message as Response_PreKey)) as Response_PreKey; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_PreKey copyWith(void Function(Response_PreKey) updates) => + super.copyWith((message) => updates(message as Response_PreKey)) + as Response_PreKey; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_PreKey create() => Response_PreKey._(); + @$core.override Response_PreKey createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Response_PreKey getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Response_PreKey getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Response_PreKey? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get id => $_getI64(0); @$pb.TagNumber(1) - set id($fixnum.Int64 v) { $_setInt64(0, v); } + set id($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasId() => $_has(0); @$pb.TagNumber(1) - void clearId() => clearField(1); + void clearId() => $_clearField(1); @$pb.TagNumber(2) $core.List<$core.int> get prekey => $_getN(1); @$pb.TagNumber(2) - set prekey($core.List<$core.int> v) { $_setBytes(1, v); } + set prekey($core.List<$core.int> value) => $_setBytes(1, value); @$pb.TagNumber(2) $core.bool hasPrekey() => $_has(1); @$pb.TagNumber(2) - void clearPrekey() => clearField(2); + void clearPrekey() => $_clearField(2); } class Response_SignedPreKey extends $pb.GeneratedMessage { @@ -1234,76 +1318,85 @@ class Response_SignedPreKey extends $pb.GeneratedMessage { $core.List<$core.int>? signedPrekey, $core.List<$core.int>? signedPrekeySignature, }) { - final $result = create(); - if (signedPrekeyId != null) { - $result.signedPrekeyId = signedPrekeyId; - } - if (signedPrekey != null) { - $result.signedPrekey = signedPrekey; - } - if (signedPrekeySignature != null) { - $result.signedPrekeySignature = signedPrekeySignature; - } - return $result; + final result = create(); + if (signedPrekeyId != null) result.signedPrekeyId = signedPrekeyId; + if (signedPrekey != null) result.signedPrekey = signedPrekey; + if (signedPrekeySignature != null) + result.signedPrekeySignature = signedPrekeySignature; + return result; } - Response_SignedPreKey._() : super(); - factory Response_SignedPreKey.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Response_SignedPreKey.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Response.SignedPreKey', package: const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), createEmptyInstance: create) + Response_SignedPreKey._(); + + factory Response_SignedPreKey.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Response_SignedPreKey.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Response.SignedPreKey', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), + createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'signedPrekeyId') - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'signedPrekey', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'signedPrekeySignature', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'signedPrekey', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'signedPrekeySignature', $pb.PbFieldType.OY) + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - Response_SignedPreKey clone() => Response_SignedPreKey()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Response_SignedPreKey copyWith(void Function(Response_SignedPreKey) updates) => super.copyWith((message) => updates(message as Response_SignedPreKey)) as Response_SignedPreKey; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_SignedPreKey clone() => + Response_SignedPreKey()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_SignedPreKey copyWith( + void Function(Response_SignedPreKey) updates) => + super.copyWith((message) => updates(message as Response_SignedPreKey)) + as Response_SignedPreKey; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_SignedPreKey create() => Response_SignedPreKey._(); + @$core.override Response_SignedPreKey createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Response_SignedPreKey getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Response_SignedPreKey getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Response_SignedPreKey? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get signedPrekeyId => $_getI64(0); @$pb.TagNumber(1) - set signedPrekeyId($fixnum.Int64 v) { $_setInt64(0, v); } + set signedPrekeyId($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasSignedPrekeyId() => $_has(0); @$pb.TagNumber(1) - void clearSignedPrekeyId() => clearField(1); + void clearSignedPrekeyId() => $_clearField(1); @$pb.TagNumber(2) $core.List<$core.int> get signedPrekey => $_getN(1); @$pb.TagNumber(2) - set signedPrekey($core.List<$core.int> v) { $_setBytes(1, v); } + set signedPrekey($core.List<$core.int> value) => $_setBytes(1, value); @$pb.TagNumber(2) $core.bool hasSignedPrekey() => $_has(1); @$pb.TagNumber(2) - void clearSignedPrekey() => clearField(2); + void clearSignedPrekey() => $_clearField(2); @$pb.TagNumber(3) $core.List<$core.int> get signedPrekeySignature => $_getN(2); @$pb.TagNumber(3) - set signedPrekeySignature($core.List<$core.int> v) { $_setBytes(2, v); } + set signedPrekeySignature($core.List<$core.int> value) => + $_setBytes(2, value); @$pb.TagNumber(3) $core.bool hasSignedPrekeySignature() => $_has(2); @$pb.TagNumber(3) - void clearSignedPrekeySignature() => clearField(3); + void clearSignedPrekeySignature() => $_clearField(3); } class Response_UserData extends $pb.GeneratedMessage { @@ -1316,122 +1409,125 @@ class Response_UserData extends $pb.GeneratedMessage { $fixnum.Int64? signedPrekeyId, $core.List<$core.int>? username, }) { - final $result = create(); - if (userId != null) { - $result.userId = userId; - } - if (prekeys != null) { - $result.prekeys.addAll(prekeys); - } - if (publicIdentityKey != null) { - $result.publicIdentityKey = publicIdentityKey; - } - if (signedPrekey != null) { - $result.signedPrekey = signedPrekey; - } - if (signedPrekeySignature != null) { - $result.signedPrekeySignature = signedPrekeySignature; - } - if (signedPrekeyId != null) { - $result.signedPrekeyId = signedPrekeyId; - } - if (username != null) { - $result.username = username; - } - return $result; + final result = create(); + if (userId != null) result.userId = userId; + if (prekeys != null) result.prekeys.addAll(prekeys); + if (publicIdentityKey != null) result.publicIdentityKey = publicIdentityKey; + if (signedPrekey != null) result.signedPrekey = signedPrekey; + if (signedPrekeySignature != null) + result.signedPrekeySignature = signedPrekeySignature; + if (signedPrekeyId != null) result.signedPrekeyId = signedPrekeyId; + if (username != null) result.username = username; + return result; } - Response_UserData._() : super(); - factory Response_UserData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Response_UserData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Response.UserData', package: const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), createEmptyInstance: create) + Response_UserData._(); + + factory Response_UserData.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Response_UserData.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Response.UserData', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), + createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'userId') - ..pc(2, _omitFieldNames ? '' : 'prekeys', $pb.PbFieldType.PM, subBuilder: Response_PreKey.create) - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'publicIdentityKey', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(4, _omitFieldNames ? '' : 'signedPrekey', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(5, _omitFieldNames ? '' : 'signedPrekeySignature', $pb.PbFieldType.OY) + ..pc( + 2, _omitFieldNames ? '' : 'prekeys', $pb.PbFieldType.PM, + subBuilder: Response_PreKey.create) + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'publicIdentityKey', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 4, _omitFieldNames ? '' : 'signedPrekey', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 5, _omitFieldNames ? '' : 'signedPrekeySignature', $pb.PbFieldType.OY) ..aInt64(6, _omitFieldNames ? '' : 'signedPrekeyId') - ..a<$core.List<$core.int>>(7, _omitFieldNames ? '' : 'username', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; + ..a<$core.List<$core.int>>( + 7, _omitFieldNames ? '' : 'username', $pb.PbFieldType.OY) + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Response_UserData clone() => Response_UserData()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Response_UserData copyWith(void Function(Response_UserData) updates) => super.copyWith((message) => updates(message as Response_UserData)) as Response_UserData; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_UserData copyWith(void Function(Response_UserData) updates) => + super.copyWith((message) => updates(message as Response_UserData)) + as Response_UserData; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_UserData create() => Response_UserData._(); + @$core.override Response_UserData createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Response_UserData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Response_UserData getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Response_UserData? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get userId => $_getI64(0); @$pb.TagNumber(1) - set userId($fixnum.Int64 v) { $_setInt64(0, v); } + set userId($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasUserId() => $_has(0); @$pb.TagNumber(1) - void clearUserId() => clearField(1); + void clearUserId() => $_clearField(1); @$pb.TagNumber(2) - $core.List get prekeys => $_getList(1); + $pb.PbList get prekeys => $_getList(1); @$pb.TagNumber(3) $core.List<$core.int> get publicIdentityKey => $_getN(2); @$pb.TagNumber(3) - set publicIdentityKey($core.List<$core.int> v) { $_setBytes(2, v); } + set publicIdentityKey($core.List<$core.int> value) => $_setBytes(2, value); @$pb.TagNumber(3) $core.bool hasPublicIdentityKey() => $_has(2); @$pb.TagNumber(3) - void clearPublicIdentityKey() => clearField(3); + void clearPublicIdentityKey() => $_clearField(3); @$pb.TagNumber(4) $core.List<$core.int> get signedPrekey => $_getN(3); @$pb.TagNumber(4) - set signedPrekey($core.List<$core.int> v) { $_setBytes(3, v); } + set signedPrekey($core.List<$core.int> value) => $_setBytes(3, value); @$pb.TagNumber(4) $core.bool hasSignedPrekey() => $_has(3); @$pb.TagNumber(4) - void clearSignedPrekey() => clearField(4); + void clearSignedPrekey() => $_clearField(4); @$pb.TagNumber(5) $core.List<$core.int> get signedPrekeySignature => $_getN(4); @$pb.TagNumber(5) - set signedPrekeySignature($core.List<$core.int> v) { $_setBytes(4, v); } + set signedPrekeySignature($core.List<$core.int> value) => + $_setBytes(4, value); @$pb.TagNumber(5) $core.bool hasSignedPrekeySignature() => $_has(4); @$pb.TagNumber(5) - void clearSignedPrekeySignature() => clearField(5); + void clearSignedPrekeySignature() => $_clearField(5); @$pb.TagNumber(6) $fixnum.Int64 get signedPrekeyId => $_getI64(5); @$pb.TagNumber(6) - set signedPrekeyId($fixnum.Int64 v) { $_setInt64(5, v); } + set signedPrekeyId($fixnum.Int64 value) => $_setInt64(5, value); @$pb.TagNumber(6) $core.bool hasSignedPrekeyId() => $_has(5); @$pb.TagNumber(6) - void clearSignedPrekeyId() => clearField(6); + void clearSignedPrekeyId() => $_clearField(6); @$pb.TagNumber(7) $core.List<$core.int> get username => $_getN(6); @$pb.TagNumber(7) - set username($core.List<$core.int> v) { $_setBytes(6, v); } + set username($core.List<$core.int> value) => $_setBytes(6, value); @$pb.TagNumber(7) $core.bool hasUsername() => $_has(6); @$pb.TagNumber(7) - void clearUsername() => clearField(7); + void clearUsername() => $_clearField(7); } class Response_UploadToken extends $pb.GeneratedMessage { @@ -1439,101 +1535,119 @@ class Response_UploadToken extends $pb.GeneratedMessage { $core.List<$core.int>? uploadToken, $core.Iterable<$core.List<$core.int>>? downloadTokens, }) { - final $result = create(); - if (uploadToken != null) { - $result.uploadToken = uploadToken; - } - if (downloadTokens != null) { - $result.downloadTokens.addAll(downloadTokens); - } - return $result; + final result = create(); + if (uploadToken != null) result.uploadToken = uploadToken; + if (downloadTokens != null) result.downloadTokens.addAll(downloadTokens); + return result; } - Response_UploadToken._() : super(); - factory Response_UploadToken.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Response_UploadToken.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Response.UploadToken', package: const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), createEmptyInstance: create) - ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'uploadToken', $pb.PbFieldType.OY) - ..p<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'downloadTokens', $pb.PbFieldType.PY) - ..hasRequiredFields = false - ; + Response_UploadToken._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - Response_UploadToken clone() => Response_UploadToken()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Response_UploadToken copyWith(void Function(Response_UploadToken) updates) => super.copyWith((message) => updates(message as Response_UploadToken)) as Response_UploadToken; + factory Response_UploadToken.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Response_UploadToken.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Response.UploadToken', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), + createEmptyInstance: create) + ..a<$core.List<$core.int>>( + 1, _omitFieldNames ? '' : 'uploadToken', $pb.PbFieldType.OY) + ..p<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'downloadTokens', $pb.PbFieldType.PY) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_UploadToken clone() => + Response_UploadToken()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_UploadToken copyWith(void Function(Response_UploadToken) updates) => + super.copyWith((message) => updates(message as Response_UploadToken)) + as Response_UploadToken; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_UploadToken create() => Response_UploadToken._(); + @$core.override Response_UploadToken createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Response_UploadToken getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Response_UploadToken getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Response_UploadToken? _defaultInstance; @$pb.TagNumber(1) $core.List<$core.int> get uploadToken => $_getN(0); @$pb.TagNumber(1) - set uploadToken($core.List<$core.int> v) { $_setBytes(0, v); } + set uploadToken($core.List<$core.int> value) => $_setBytes(0, value); @$pb.TagNumber(1) $core.bool hasUploadToken() => $_has(0); @$pb.TagNumber(1) - void clearUploadToken() => clearField(1); + void clearUploadToken() => $_clearField(1); @$pb.TagNumber(2) - $core.List<$core.List<$core.int>> get downloadTokens => $_getList(1); + $pb.PbList<$core.List<$core.int>> get downloadTokens => $_getList(1); } class Response_DownloadTokens extends $pb.GeneratedMessage { factory Response_DownloadTokens({ $core.Iterable<$core.List<$core.int>>? downloadTokens, }) { - final $result = create(); - if (downloadTokens != null) { - $result.downloadTokens.addAll(downloadTokens); - } - return $result; + final result = create(); + if (downloadTokens != null) result.downloadTokens.addAll(downloadTokens); + return result; } - Response_DownloadTokens._() : super(); - factory Response_DownloadTokens.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Response_DownloadTokens.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Response.DownloadTokens', package: const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), createEmptyInstance: create) - ..p<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'downloadTokens', $pb.PbFieldType.PY) - ..hasRequiredFields = false - ; + Response_DownloadTokens._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - Response_DownloadTokens clone() => Response_DownloadTokens()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Response_DownloadTokens copyWith(void Function(Response_DownloadTokens) updates) => super.copyWith((message) => updates(message as Response_DownloadTokens)) as Response_DownloadTokens; + factory Response_DownloadTokens.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Response_DownloadTokens.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Response.DownloadTokens', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), + createEmptyInstance: create) + ..p<$core.List<$core.int>>( + 1, _omitFieldNames ? '' : 'downloadTokens', $pb.PbFieldType.PY) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_DownloadTokens clone() => + Response_DownloadTokens()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_DownloadTokens copyWith( + void Function(Response_DownloadTokens) updates) => + super.copyWith((message) => updates(message as Response_DownloadTokens)) + as Response_DownloadTokens; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_DownloadTokens create() => Response_DownloadTokens._(); + @$core.override Response_DownloadTokens createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Response_DownloadTokens getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Response_DownloadTokens getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Response_DownloadTokens? _defaultInstance; @$pb.TagNumber(1) - $core.List<$core.List<$core.int>> get downloadTokens => $_getList(0); + $pb.PbList<$core.List<$core.int>> get downloadTokens => $_getList(0); } class Response_ProofOfWork extends $pb.GeneratedMessage { @@ -1541,81 +1655,87 @@ class Response_ProofOfWork extends $pb.GeneratedMessage { $core.String? prefix, $fixnum.Int64? difficulty, }) { - final $result = create(); - if (prefix != null) { - $result.prefix = prefix; - } - if (difficulty != null) { - $result.difficulty = difficulty; - } - return $result; + final result = create(); + if (prefix != null) result.prefix = prefix; + if (difficulty != null) result.difficulty = difficulty; + return result; } - Response_ProofOfWork._() : super(); - factory Response_ProofOfWork.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Response_ProofOfWork.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Response.ProofOfWork', package: const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), createEmptyInstance: create) + Response_ProofOfWork._(); + + factory Response_ProofOfWork.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Response_ProofOfWork.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Response.ProofOfWork', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'prefix') ..aInt64(2, _omitFieldNames ? '' : 'difficulty') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - Response_ProofOfWork clone() => Response_ProofOfWork()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Response_ProofOfWork copyWith(void Function(Response_ProofOfWork) updates) => super.copyWith((message) => updates(message as Response_ProofOfWork)) as Response_ProofOfWork; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_ProofOfWork clone() => + Response_ProofOfWork()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_ProofOfWork copyWith(void Function(Response_ProofOfWork) updates) => + super.copyWith((message) => updates(message as Response_ProofOfWork)) + as Response_ProofOfWork; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_ProofOfWork create() => Response_ProofOfWork._(); + @$core.override Response_ProofOfWork createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Response_ProofOfWork getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Response_ProofOfWork getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Response_ProofOfWork? _defaultInstance; @$pb.TagNumber(1) $core.String get prefix => $_getSZ(0); @$pb.TagNumber(1) - set prefix($core.String v) { $_setString(0, v); } + set prefix($core.String value) => $_setString(0, value); @$pb.TagNumber(1) $core.bool hasPrefix() => $_has(0); @$pb.TagNumber(1) - void clearPrefix() => clearField(1); + void clearPrefix() => $_clearField(1); @$pb.TagNumber(2) $fixnum.Int64 get difficulty => $_getI64(1); @$pb.TagNumber(2) - set difficulty($fixnum.Int64 v) { $_setInt64(1, v); } + set difficulty($fixnum.Int64 value) => $_setInt64(1, value); @$pb.TagNumber(2) $core.bool hasDifficulty() => $_has(1); @$pb.TagNumber(2) - void clearDifficulty() => clearField(2); + void clearDifficulty() => $_clearField(2); } enum Response_Ok_Ok { - none, - userid, - authchallenge, - uploadtoken, - userdata, - authtoken, - location, - authenticated, - plans, - planballance, - vouchers, - addaccountsinvites, - downloadtokens, - signedprekey, - proofOfWork, + none, + userid, + authchallenge, + uploadtoken, + userdata, + authtoken, + location, + authenticated, + plans, + planballance, + vouchers, + addaccountsinvites, + downloadtokens, + signedprekey, + proofOfWork, notSet } @@ -1637,359 +1757,359 @@ class Response_Ok extends $pb.GeneratedMessage { Response_SignedPreKey? signedprekey, Response_ProofOfWork? proofOfWork, }) { - final $result = create(); - if (none != null) { - $result.none = none; - } - if (userid != null) { - $result.userid = userid; - } - if (authchallenge != null) { - $result.authchallenge = authchallenge; - } - if (uploadtoken != null) { - $result.uploadtoken = uploadtoken; - } - if (userdata != null) { - $result.userdata = userdata; - } - if (authtoken != null) { - $result.authtoken = authtoken; - } - if (location != null) { - $result.location = location; - } - if (authenticated != null) { - $result.authenticated = authenticated; - } - if (plans != null) { - $result.plans = plans; - } - if (planballance != null) { - $result.planballance = planballance; - } - if (vouchers != null) { - $result.vouchers = vouchers; - } - if (addaccountsinvites != null) { - $result.addaccountsinvites = addaccountsinvites; - } - if (downloadtokens != null) { - $result.downloadtokens = downloadtokens; - } - if (signedprekey != null) { - $result.signedprekey = signedprekey; - } - if (proofOfWork != null) { - $result.proofOfWork = proofOfWork; - } - return $result; + final result = create(); + if (none != null) result.none = none; + if (userid != null) result.userid = userid; + if (authchallenge != null) result.authchallenge = authchallenge; + if (uploadtoken != null) result.uploadtoken = uploadtoken; + if (userdata != null) result.userdata = userdata; + if (authtoken != null) result.authtoken = authtoken; + if (location != null) result.location = location; + if (authenticated != null) result.authenticated = authenticated; + if (plans != null) result.plans = plans; + if (planballance != null) result.planballance = planballance; + if (vouchers != null) result.vouchers = vouchers; + if (addaccountsinvites != null) + result.addaccountsinvites = addaccountsinvites; + if (downloadtokens != null) result.downloadtokens = downloadtokens; + if (signedprekey != null) result.signedprekey = signedprekey; + if (proofOfWork != null) result.proofOfWork = proofOfWork; + return result; } - Response_Ok._() : super(); - factory Response_Ok.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Response_Ok.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + Response_Ok._(); + + factory Response_Ok.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Response_Ok.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); static const $core.Map<$core.int, Response_Ok_Ok> _Response_Ok_OkByTag = { - 1 : Response_Ok_Ok.none, - 2 : Response_Ok_Ok.userid, - 3 : Response_Ok_Ok.authchallenge, - 4 : Response_Ok_Ok.uploadtoken, - 5 : Response_Ok_Ok.userdata, - 6 : Response_Ok_Ok.authtoken, - 7 : Response_Ok_Ok.location, - 8 : Response_Ok_Ok.authenticated, - 9 : Response_Ok_Ok.plans, - 10 : Response_Ok_Ok.planballance, - 11 : Response_Ok_Ok.vouchers, - 12 : Response_Ok_Ok.addaccountsinvites, - 13 : Response_Ok_Ok.downloadtokens, - 14 : Response_Ok_Ok.signedprekey, - 15 : Response_Ok_Ok.proofOfWork, - 0 : Response_Ok_Ok.notSet + 1: Response_Ok_Ok.none, + 2: Response_Ok_Ok.userid, + 3: Response_Ok_Ok.authchallenge, + 4: Response_Ok_Ok.uploadtoken, + 5: Response_Ok_Ok.userdata, + 6: Response_Ok_Ok.authtoken, + 7: Response_Ok_Ok.location, + 8: Response_Ok_Ok.authenticated, + 9: Response_Ok_Ok.plans, + 10: Response_Ok_Ok.planballance, + 11: Response_Ok_Ok.vouchers, + 12: Response_Ok_Ok.addaccountsinvites, + 13: Response_Ok_Ok.downloadtokens, + 14: Response_Ok_Ok.signedprekey, + 15: Response_Ok_Ok.proofOfWork, + 0: Response_Ok_Ok.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Response.Ok', package: const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Response.Ok', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), + createEmptyInstance: create) ..oo(0, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]) ..aOB(1, _omitFieldNames ? '' : 'None', protoName: 'None') ..aInt64(2, _omitFieldNames ? '' : 'userid') - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'authchallenge', $pb.PbFieldType.OY) - ..aOM(4, _omitFieldNames ? '' : 'uploadtoken', subBuilder: Response_UploadToken.create) - ..aOM(5, _omitFieldNames ? '' : 'userdata', subBuilder: Response_UserData.create) - ..a<$core.List<$core.int>>(6, _omitFieldNames ? '' : 'authtoken', $pb.PbFieldType.OY) - ..aOM(7, _omitFieldNames ? '' : 'location', subBuilder: Response_Location.create) - ..aOM(8, _omitFieldNames ? '' : 'authenticated', subBuilder: Response_Authenticated.create) - ..aOM(9, _omitFieldNames ? '' : 'plans', subBuilder: Response_Plans.create) - ..aOM(10, _omitFieldNames ? '' : 'planballance', subBuilder: Response_PlanBallance.create) - ..aOM(11, _omitFieldNames ? '' : 'vouchers', subBuilder: Response_Vouchers.create) - ..aOM(12, _omitFieldNames ? '' : 'addaccountsinvites', subBuilder: Response_AddAccountsInvites.create) - ..aOM(13, _omitFieldNames ? '' : 'downloadtokens', subBuilder: Response_DownloadTokens.create) - ..aOM(14, _omitFieldNames ? '' : 'signedprekey', subBuilder: Response_SignedPreKey.create) - ..aOM(15, _omitFieldNames ? '' : 'proofOfWork', protoName: 'proofOfWork', subBuilder: Response_ProofOfWork.create) - ..hasRequiredFields = false - ; + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'authchallenge', $pb.PbFieldType.OY) + ..aOM(4, _omitFieldNames ? '' : 'uploadtoken', + subBuilder: Response_UploadToken.create) + ..aOM(5, _omitFieldNames ? '' : 'userdata', + subBuilder: Response_UserData.create) + ..a<$core.List<$core.int>>( + 6, _omitFieldNames ? '' : 'authtoken', $pb.PbFieldType.OY) + ..aOM(7, _omitFieldNames ? '' : 'location', + subBuilder: Response_Location.create) + ..aOM(8, _omitFieldNames ? '' : 'authenticated', + subBuilder: Response_Authenticated.create) + ..aOM(9, _omitFieldNames ? '' : 'plans', + subBuilder: Response_Plans.create) + ..aOM(10, _omitFieldNames ? '' : 'planballance', + subBuilder: Response_PlanBallance.create) + ..aOM(11, _omitFieldNames ? '' : 'vouchers', + subBuilder: Response_Vouchers.create) + ..aOM( + 12, _omitFieldNames ? '' : 'addaccountsinvites', + subBuilder: Response_AddAccountsInvites.create) + ..aOM(13, _omitFieldNames ? '' : 'downloadtokens', + subBuilder: Response_DownloadTokens.create) + ..aOM(14, _omitFieldNames ? '' : 'signedprekey', + subBuilder: Response_SignedPreKey.create) + ..aOM(15, _omitFieldNames ? '' : 'proofOfWork', + protoName: 'proofOfWork', subBuilder: Response_ProofOfWork.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') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Response_Ok clone() => Response_Ok()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Response_Ok copyWith(void Function(Response_Ok) updates) => super.copyWith((message) => updates(message as Response_Ok)) as Response_Ok; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response_Ok copyWith(void Function(Response_Ok) updates) => + super.copyWith((message) => updates(message as Response_Ok)) + as Response_Ok; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_Ok create() => Response_Ok._(); + @$core.override Response_Ok createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Response_Ok getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Response_Ok getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Response_Ok? _defaultInstance; Response_Ok_Ok whichOk() => _Response_Ok_OkByTag[$_whichOneof(0)]!; - void clearOk() => clearField($_whichOneof(0)); + void clearOk() => $_clearField($_whichOneof(0)); @$pb.TagNumber(1) $core.bool get none => $_getBF(0); @$pb.TagNumber(1) - set none($core.bool v) { $_setBool(0, v); } + set none($core.bool value) => $_setBool(0, value); @$pb.TagNumber(1) $core.bool hasNone() => $_has(0); @$pb.TagNumber(1) - void clearNone() => clearField(1); + void clearNone() => $_clearField(1); @$pb.TagNumber(2) $fixnum.Int64 get userid => $_getI64(1); @$pb.TagNumber(2) - set userid($fixnum.Int64 v) { $_setInt64(1, v); } + set userid($fixnum.Int64 value) => $_setInt64(1, value); @$pb.TagNumber(2) $core.bool hasUserid() => $_has(1); @$pb.TagNumber(2) - void clearUserid() => clearField(2); + void clearUserid() => $_clearField(2); @$pb.TagNumber(3) $core.List<$core.int> get authchallenge => $_getN(2); @$pb.TagNumber(3) - set authchallenge($core.List<$core.int> v) { $_setBytes(2, v); } + set authchallenge($core.List<$core.int> value) => $_setBytes(2, value); @$pb.TagNumber(3) $core.bool hasAuthchallenge() => $_has(2); @$pb.TagNumber(3) - void clearAuthchallenge() => clearField(3); + void clearAuthchallenge() => $_clearField(3); @$pb.TagNumber(4) Response_UploadToken get uploadtoken => $_getN(3); @$pb.TagNumber(4) - set uploadtoken(Response_UploadToken v) { setField(4, v); } + set uploadtoken(Response_UploadToken value) => $_setField(4, value); @$pb.TagNumber(4) $core.bool hasUploadtoken() => $_has(3); @$pb.TagNumber(4) - void clearUploadtoken() => clearField(4); + void clearUploadtoken() => $_clearField(4); @$pb.TagNumber(4) Response_UploadToken ensureUploadtoken() => $_ensure(3); @$pb.TagNumber(5) Response_UserData get userdata => $_getN(4); @$pb.TagNumber(5) - set userdata(Response_UserData v) { setField(5, v); } + set userdata(Response_UserData value) => $_setField(5, value); @$pb.TagNumber(5) $core.bool hasUserdata() => $_has(4); @$pb.TagNumber(5) - void clearUserdata() => clearField(5); + void clearUserdata() => $_clearField(5); @$pb.TagNumber(5) Response_UserData ensureUserdata() => $_ensure(4); @$pb.TagNumber(6) $core.List<$core.int> get authtoken => $_getN(5); @$pb.TagNumber(6) - set authtoken($core.List<$core.int> v) { $_setBytes(5, v); } + set authtoken($core.List<$core.int> value) => $_setBytes(5, value); @$pb.TagNumber(6) $core.bool hasAuthtoken() => $_has(5); @$pb.TagNumber(6) - void clearAuthtoken() => clearField(6); + void clearAuthtoken() => $_clearField(6); @$pb.TagNumber(7) Response_Location get location => $_getN(6); @$pb.TagNumber(7) - set location(Response_Location v) { setField(7, v); } + set location(Response_Location value) => $_setField(7, value); @$pb.TagNumber(7) $core.bool hasLocation() => $_has(6); @$pb.TagNumber(7) - void clearLocation() => clearField(7); + void clearLocation() => $_clearField(7); @$pb.TagNumber(7) Response_Location ensureLocation() => $_ensure(6); @$pb.TagNumber(8) Response_Authenticated get authenticated => $_getN(7); @$pb.TagNumber(8) - set authenticated(Response_Authenticated v) { setField(8, v); } + set authenticated(Response_Authenticated value) => $_setField(8, value); @$pb.TagNumber(8) $core.bool hasAuthenticated() => $_has(7); @$pb.TagNumber(8) - void clearAuthenticated() => clearField(8); + void clearAuthenticated() => $_clearField(8); @$pb.TagNumber(8) Response_Authenticated ensureAuthenticated() => $_ensure(7); @$pb.TagNumber(9) Response_Plans get plans => $_getN(8); @$pb.TagNumber(9) - set plans(Response_Plans v) { setField(9, v); } + set plans(Response_Plans value) => $_setField(9, value); @$pb.TagNumber(9) $core.bool hasPlans() => $_has(8); @$pb.TagNumber(9) - void clearPlans() => clearField(9); + void clearPlans() => $_clearField(9); @$pb.TagNumber(9) Response_Plans ensurePlans() => $_ensure(8); @$pb.TagNumber(10) Response_PlanBallance get planballance => $_getN(9); @$pb.TagNumber(10) - set planballance(Response_PlanBallance v) { setField(10, v); } + set planballance(Response_PlanBallance value) => $_setField(10, value); @$pb.TagNumber(10) $core.bool hasPlanballance() => $_has(9); @$pb.TagNumber(10) - void clearPlanballance() => clearField(10); + void clearPlanballance() => $_clearField(10); @$pb.TagNumber(10) Response_PlanBallance ensurePlanballance() => $_ensure(9); @$pb.TagNumber(11) Response_Vouchers get vouchers => $_getN(10); @$pb.TagNumber(11) - set vouchers(Response_Vouchers v) { setField(11, v); } + set vouchers(Response_Vouchers value) => $_setField(11, value); @$pb.TagNumber(11) $core.bool hasVouchers() => $_has(10); @$pb.TagNumber(11) - void clearVouchers() => clearField(11); + void clearVouchers() => $_clearField(11); @$pb.TagNumber(11) Response_Vouchers ensureVouchers() => $_ensure(10); @$pb.TagNumber(12) Response_AddAccountsInvites get addaccountsinvites => $_getN(11); @$pb.TagNumber(12) - set addaccountsinvites(Response_AddAccountsInvites v) { setField(12, v); } + set addaccountsinvites(Response_AddAccountsInvites value) => + $_setField(12, value); @$pb.TagNumber(12) $core.bool hasAddaccountsinvites() => $_has(11); @$pb.TagNumber(12) - void clearAddaccountsinvites() => clearField(12); + void clearAddaccountsinvites() => $_clearField(12); @$pb.TagNumber(12) Response_AddAccountsInvites ensureAddaccountsinvites() => $_ensure(11); @$pb.TagNumber(13) Response_DownloadTokens get downloadtokens => $_getN(12); @$pb.TagNumber(13) - set downloadtokens(Response_DownloadTokens v) { setField(13, v); } + set downloadtokens(Response_DownloadTokens value) => $_setField(13, value); @$pb.TagNumber(13) $core.bool hasDownloadtokens() => $_has(12); @$pb.TagNumber(13) - void clearDownloadtokens() => clearField(13); + void clearDownloadtokens() => $_clearField(13); @$pb.TagNumber(13) Response_DownloadTokens ensureDownloadtokens() => $_ensure(12); @$pb.TagNumber(14) Response_SignedPreKey get signedprekey => $_getN(13); @$pb.TagNumber(14) - set signedprekey(Response_SignedPreKey v) { setField(14, v); } + set signedprekey(Response_SignedPreKey value) => $_setField(14, value); @$pb.TagNumber(14) $core.bool hasSignedprekey() => $_has(13); @$pb.TagNumber(14) - void clearSignedprekey() => clearField(14); + void clearSignedprekey() => $_clearField(14); @$pb.TagNumber(14) Response_SignedPreKey ensureSignedprekey() => $_ensure(13); @$pb.TagNumber(15) Response_ProofOfWork get proofOfWork => $_getN(14); @$pb.TagNumber(15) - set proofOfWork(Response_ProofOfWork v) { setField(15, v); } + set proofOfWork(Response_ProofOfWork value) => $_setField(15, value); @$pb.TagNumber(15) $core.bool hasProofOfWork() => $_has(14); @$pb.TagNumber(15) - void clearProofOfWork() => clearField(15); + void clearProofOfWork() => $_clearField(15); @$pb.TagNumber(15) Response_ProofOfWork ensureProofOfWork() => $_ensure(14); } -enum Response_Response { - ok, - error, - notSet -} +enum Response_Response { ok, error, notSet } class Response extends $pb.GeneratedMessage { factory Response({ Response_Ok? ok, $0.ErrorCode? error, }) { - final $result = create(); - if (ok != null) { - $result.ok = ok; - } - if (error != null) { - $result.error = error; - } - return $result; + final result = create(); + if (ok != null) result.ok = ok; + if (error != null) result.error = error; + return result; } - Response._() : super(); - factory Response.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Response.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static const $core.Map<$core.int, Response_Response> _Response_ResponseByTag = { - 1 : Response_Response.ok, - 2 : Response_Response.error, - 0 : Response_Response.notSet + Response._(); + + factory Response.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Response.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static const $core.Map<$core.int, Response_Response> _Response_ResponseByTag = + { + 1: Response_Response.ok, + 2: Response_Response.error, + 0: Response_Response.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Response', package: const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Response', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'server_to_client'), + createEmptyInstance: create) ..oo(0, [1, 2]) - ..aOM(1, _omitFieldNames ? '' : 'ok', subBuilder: Response_Ok.create) - ..e<$0.ErrorCode>(2, _omitFieldNames ? '' : 'error', $pb.PbFieldType.OE, defaultOrMaker: $0.ErrorCode.Unknown, valueOf: $0.ErrorCode.valueOf, enumValues: $0.ErrorCode.values) - ..hasRequiredFields = false - ; + ..aOM(1, _omitFieldNames ? '' : 'ok', + subBuilder: Response_Ok.create) + ..e<$0.ErrorCode>(2, _omitFieldNames ? '' : 'error', $pb.PbFieldType.OE, + defaultOrMaker: $0.ErrorCode.Unknown, + valueOf: $0.ErrorCode.valueOf, + enumValues: $0.ErrorCode.values) + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Response clone() => Response()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Response copyWith(void Function(Response) updates) => super.copyWith((message) => updates(message as Response)) as Response; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Response copyWith(void Function(Response) updates) => + super.copyWith((message) => updates(message as Response)) as Response; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response create() => Response._(); + @$core.override Response createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Response getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Response getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Response? _defaultInstance; - Response_Response whichResponse() => _Response_ResponseByTag[$_whichOneof(0)]!; - void clearResponse() => clearField($_whichOneof(0)); + Response_Response whichResponse() => + _Response_ResponseByTag[$_whichOneof(0)]!; + void clearResponse() => $_clearField($_whichOneof(0)); @$pb.TagNumber(1) Response_Ok get ok => $_getN(0); @$pb.TagNumber(1) - set ok(Response_Ok v) { setField(1, v); } + set ok(Response_Ok value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasOk() => $_has(0); @$pb.TagNumber(1) - void clearOk() => clearField(1); + void clearOk() => $_clearField(1); @$pb.TagNumber(1) Response_Ok ensureOk() => $_ensure(0); @$pb.TagNumber(2) $0.ErrorCode get error => $_getN(1); @$pb.TagNumber(2) - set error($0.ErrorCode v) { setField(2, v); } + set error($0.ErrorCode value) => $_setField(2, value); @$pb.TagNumber(2) $core.bool hasError() => $_has(1); @$pb.TagNumber(2) - void clearError() => clearField(2); + void clearError() => $_clearField(2); } - -const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/src/model/protobuf/api/websocket/server_to_client.pbenum.dart b/lib/src/model/protobuf/api/websocket/server_to_client.pbenum.dart index 936b601..768895f 100644 --- a/lib/src/model/protobuf/api/websocket/server_to_client.pbenum.dart +++ b/lib/src/model/protobuf/api/websocket/server_to_client.pbenum.dart @@ -1,29 +1,39 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: api/websocket/server_to_client.proto -// -// @dart = 2.12 +// Generated from api/websocket/server_to_client.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; class Response_TransactionTypes extends $pb.ProtobufEnum { - static const Response_TransactionTypes Refund = Response_TransactionTypes._(0, _omitEnumNames ? '' : 'Refund'); - static const Response_TransactionTypes VoucherRedeemed = Response_TransactionTypes._(1, _omitEnumNames ? '' : 'VoucherRedeemed'); - static const Response_TransactionTypes VoucherCreated = Response_TransactionTypes._(2, _omitEnumNames ? '' : 'VoucherCreated'); - static const Response_TransactionTypes Cash = Response_TransactionTypes._(3, _omitEnumNames ? '' : 'Cash'); - static const Response_TransactionTypes PlanUpgrade = Response_TransactionTypes._(4, _omitEnumNames ? '' : 'PlanUpgrade'); - static const Response_TransactionTypes Unknown = Response_TransactionTypes._(5, _omitEnumNames ? '' : 'Unknown'); - static const Response_TransactionTypes ThanksForTesting = Response_TransactionTypes._(6, _omitEnumNames ? '' : 'ThanksForTesting'); - static const Response_TransactionTypes AutoRenewal = Response_TransactionTypes._(7, _omitEnumNames ? '' : 'AutoRenewal'); + static const Response_TransactionTypes Refund = + Response_TransactionTypes._(0, _omitEnumNames ? '' : 'Refund'); + static const Response_TransactionTypes VoucherRedeemed = + Response_TransactionTypes._(1, _omitEnumNames ? '' : 'VoucherRedeemed'); + static const Response_TransactionTypes VoucherCreated = + Response_TransactionTypes._(2, _omitEnumNames ? '' : 'VoucherCreated'); + static const Response_TransactionTypes Cash = + Response_TransactionTypes._(3, _omitEnumNames ? '' : 'Cash'); + static const Response_TransactionTypes PlanUpgrade = + Response_TransactionTypes._(4, _omitEnumNames ? '' : 'PlanUpgrade'); + static const Response_TransactionTypes Unknown = + Response_TransactionTypes._(5, _omitEnumNames ? '' : 'Unknown'); + static const Response_TransactionTypes ThanksForTesting = + Response_TransactionTypes._(6, _omitEnumNames ? '' : 'ThanksForTesting'); + static const Response_TransactionTypes AutoRenewal = + Response_TransactionTypes._(7, _omitEnumNames ? '' : 'AutoRenewal'); - static const $core.List values = [ + static const $core.List values = + [ Refund, VoucherRedeemed, VoucherCreated, @@ -34,11 +44,13 @@ class Response_TransactionTypes extends $pb.ProtobufEnum { AutoRenewal, ]; - static final $core.Map<$core.int, Response_TransactionTypes> _byValue = $pb.ProtobufEnum.initByValue(values); - static Response_TransactionTypes? valueOf($core.int value) => _byValue[value]; + static final $core.List _byValue = + $pb.ProtobufEnum.$_initByValueList(values, 7); + static Response_TransactionTypes? valueOf($core.int value) => + value < 0 || value >= _byValue.length ? null : _byValue[value]; - const Response_TransactionTypes._($core.int v, $core.String n) : super(v, n); + const Response_TransactionTypes._(super.value, super.name); } - -const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); +const $core.bool _omitEnumNames = + $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/lib/src/model/protobuf/api/websocket/server_to_client.pbjson.dart b/lib/src/model/protobuf/api/websocket/server_to_client.pbjson.dart index 441503e..4533f22 100644 --- a/lib/src/model/protobuf/api/websocket/server_to_client.pbjson.dart +++ b/lib/src/model/protobuf/api/websocket/server_to_client.pbjson.dart @@ -1,13 +1,14 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: api/websocket/server_to_client.proto -// -// @dart = 2.12 +// Generated from api/websocket/server_to_client.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names, unused_import import 'dart:convert' as $convert; import 'dart:core' as $core; @@ -17,7 +18,15 @@ import 'dart:typed_data' as $typed_data; const ServerToClient$json = { '1': 'ServerToClient', '2': [ - {'1': 'V0', '3': 1, '4': 1, '5': 11, '6': '.server_to_client.V0', '9': 0, '10': 'V0'}, + { + '1': 'V0', + '3': 1, + '4': 1, + '5': 11, + '6': '.server_to_client.V0', + '9': 0, + '10': 'V0' + }, ], '8': [ {'1': 'v'}, @@ -34,10 +43,41 @@ const V0$json = { '1': 'V0', '2': [ {'1': 'seq', '3': 1, '4': 1, '5': 4, '10': 'seq'}, - {'1': 'response', '3': 2, '4': 1, '5': 11, '6': '.server_to_client.Response', '9': 0, '10': 'response'}, - {'1': 'newMessage', '3': 3, '4': 1, '5': 11, '6': '.server_to_client.NewMessage', '9': 0, '10': 'newMessage'}, - {'1': 'RequestNewPreKeys', '3': 4, '4': 1, '5': 8, '9': 0, '10': 'RequestNewPreKeys'}, - {'1': 'error', '3': 6, '4': 1, '5': 14, '6': '.error.ErrorCode', '9': 0, '10': 'error'}, + { + '1': 'response', + '3': 2, + '4': 1, + '5': 11, + '6': '.server_to_client.Response', + '9': 0, + '10': 'response' + }, + { + '1': 'newMessage', + '3': 3, + '4': 1, + '5': 11, + '6': '.server_to_client.NewMessage', + '9': 0, + '10': 'newMessage' + }, + { + '1': 'RequestNewPreKeys', + '3': 4, + '4': 1, + '5': 8, + '9': 0, + '10': 'RequestNewPreKeys' + }, + { + '1': 'error', + '3': 6, + '4': 1, + '5': 14, + '6': '.error.ErrorCode', + '9': 0, + '10': 'error' + }, ], '8': [ {'1': 'Kind'}, @@ -70,10 +110,45 @@ final $typed_data.Uint8List newMessageDescriptor = $convert.base64Decode( const Response$json = { '1': 'Response', '2': [ - {'1': 'ok', '3': 1, '4': 1, '5': 11, '6': '.server_to_client.Response.Ok', '9': 0, '10': 'ok'}, - {'1': 'error', '3': 2, '4': 1, '5': 14, '6': '.error.ErrorCode', '9': 0, '10': 'error'}, + { + '1': 'ok', + '3': 1, + '4': 1, + '5': 11, + '6': '.server_to_client.Response.Ok', + '9': 0, + '10': 'ok' + }, + { + '1': 'error', + '3': 2, + '4': 1, + '5': 14, + '6': '.error.ErrorCode', + '9': 0, + '10': 'error' + }, + ], + '3': [ + Response_Authenticated$json, + Response_Plan$json, + Response_Plans$json, + Response_AddAccountsInvite$json, + Response_AddAccountsInvites$json, + Response_Transaction$json, + Response_AdditionalAccount$json, + Response_Voucher$json, + Response_Vouchers$json, + Response_PlanBallance$json, + Response_Location$json, + Response_PreKey$json, + Response_SignedPreKey$json, + Response_UserData$json, + Response_UploadToken$json, + Response_DownloadTokens$json, + Response_ProofOfWork$json, + Response_Ok$json ], - '3': [Response_Authenticated$json, Response_Plan$json, Response_Plans$json, Response_AddAccountsInvite$json, Response_AddAccountsInvites$json, Response_Transaction$json, Response_AdditionalAccount$json, Response_Voucher$json, Response_Vouchers$json, Response_PlanBallance$json, Response_Location$json, Response_PreKey$json, Response_SignedPreKey$json, Response_UserData$json, Response_UploadToken$json, Response_DownloadTokens$json, Response_ProofOfWork$json, Response_Ok$json], '4': [Response_TransactionTypes$json], '8': [ {'1': 'Response'}, @@ -94,14 +169,56 @@ const Response_Plan$json = { '2': [ {'1': 'plan_id', '3': 1, '4': 1, '5': 9, '10': 'planId'}, {'1': 'upload_size_limit', '3': 2, '4': 1, '5': 3, '10': 'uploadSizeLimit'}, - {'1': 'daily_media_upload_limit', '3': 3, '4': 1, '5': 3, '10': 'dailyMediaUploadLimit'}, - {'1': 'maximal_upload_size_of_single_media_size', '3': 4, '4': 1, '5': 3, '10': 'maximalUploadSizeOfSingleMediaSize'}, - {'1': 'additional_plus_accounts', '3': 5, '4': 1, '5': 3, '10': 'additionalPlusAccounts'}, - {'1': 'additional_free_accounts', '3': 6, '4': 1, '5': 3, '10': 'additionalFreeAccounts'}, - {'1': 'monthly_costs_cent', '3': 7, '4': 1, '5': 3, '10': 'monthlyCostsCent'}, + { + '1': 'daily_media_upload_limit', + '3': 3, + '4': 1, + '5': 3, + '10': 'dailyMediaUploadLimit' + }, + { + '1': 'maximal_upload_size_of_single_media_size', + '3': 4, + '4': 1, + '5': 3, + '10': 'maximalUploadSizeOfSingleMediaSize' + }, + { + '1': 'additional_plus_accounts', + '3': 5, + '4': 1, + '5': 3, + '10': 'additionalPlusAccounts' + }, + { + '1': 'additional_free_accounts', + '3': 6, + '4': 1, + '5': 3, + '10': 'additionalFreeAccounts' + }, + { + '1': 'monthly_costs_cent', + '3': 7, + '4': 1, + '5': 3, + '10': 'monthlyCostsCent' + }, {'1': 'yearly_costs_cent', '3': 8, '4': 1, '5': 3, '10': 'yearlyCostsCent'}, - {'1': 'allowed_to_send_text_messages', '3': 9, '4': 1, '5': 8, '10': 'allowedToSendTextMessages'}, - {'1': 'is_additional_account', '3': 10, '4': 1, '5': 8, '10': 'isAdditionalAccount'}, + { + '1': 'allowed_to_send_text_messages', + '3': 9, + '4': 1, + '5': 8, + '10': 'allowedToSendTextMessages' + }, + { + '1': 'is_additional_account', + '3': 10, + '4': 1, + '5': 8, + '10': 'isAdditionalAccount' + }, ], }; @@ -109,7 +226,14 @@ const Response_Plan$json = { const Response_Plans$json = { '1': 'Plans', '2': [ - {'1': 'plans', '3': 1, '4': 3, '5': 11, '6': '.server_to_client.Response.Plan', '10': 'plans'}, + { + '1': 'plans', + '3': 1, + '4': 3, + '5': 11, + '6': '.server_to_client.Response.Plan', + '10': 'plans' + }, ], }; @@ -126,7 +250,14 @@ const Response_AddAccountsInvite$json = { const Response_AddAccountsInvites$json = { '1': 'AddAccountsInvites', '2': [ - {'1': 'invites', '3': 1, '4': 3, '5': 11, '6': '.server_to_client.Response.AddAccountsInvite', '10': 'invites'}, + { + '1': 'invites', + '3': 1, + '4': 3, + '5': 11, + '6': '.server_to_client.Response.AddAccountsInvite', + '10': 'invites' + }, ], }; @@ -135,8 +266,21 @@ const Response_Transaction$json = { '1': 'Transaction', '2': [ {'1': 'deposit_cents', '3': 1, '4': 1, '5': 3, '10': 'depositCents'}, - {'1': 'transaction_type', '3': 2, '4': 1, '5': 14, '6': '.server_to_client.Response.TransactionTypes', '10': 'transactionType'}, - {'1': 'created_at_unix_timestamp', '3': 3, '4': 1, '5': 3, '10': 'createdAtUnixTimestamp'}, + { + '1': 'transaction_type', + '3': 2, + '4': 1, + '5': 14, + '6': '.server_to_client.Response.TransactionTypes', + '10': 'transactionType' + }, + { + '1': 'created_at_unix_timestamp', + '3': 3, + '4': 1, + '5': 3, + '10': 'createdAtUnixTimestamp' + }, ], }; @@ -157,7 +301,13 @@ const Response_Voucher$json = { {'1': 'value_cents', '3': 2, '4': 1, '5': 3, '10': 'valueCents'}, {'1': 'redeemed', '3': 3, '4': 1, '5': 8, '10': 'redeemed'}, {'1': 'requested', '3': 4, '4': 1, '5': 8, '10': 'requested'}, - {'1': 'created_at_unix_timestamp', '3': 5, '4': 1, '5': 3, '10': 'createdAtUnixTimestamp'}, + { + '1': 'created_at_unix_timestamp', + '3': 5, + '4': 1, + '5': 3, + '10': 'createdAtUnixTimestamp' + }, ], }; @@ -165,7 +315,14 @@ const Response_Voucher$json = { const Response_Vouchers$json = { '1': 'Vouchers', '2': [ - {'1': 'vouchers', '3': 1, '4': 3, '5': 11, '6': '.server_to_client.Response.Voucher', '10': 'vouchers'}, + { + '1': 'vouchers', + '3': 1, + '4': 3, + '5': 11, + '6': '.server_to_client.Response.Voucher', + '10': 'vouchers' + }, ], }; @@ -173,14 +330,72 @@ const Response_Vouchers$json = { const Response_PlanBallance$json = { '1': 'PlanBallance', '2': [ - {'1': 'used_daily_media_upload_limit', '3': 1, '4': 1, '5': 3, '10': 'usedDailyMediaUploadLimit'}, - {'1': 'used_upload_media_size_limit', '3': 2, '4': 1, '5': 3, '10': 'usedUploadMediaSizeLimit'}, - {'1': 'payment_period_days', '3': 3, '4': 1, '5': 3, '9': 0, '10': 'paymentPeriodDays', '17': true}, - {'1': 'last_payment_done_unix_timestamp', '3': 4, '4': 1, '5': 3, '9': 1, '10': 'lastPaymentDoneUnixTimestamp', '17': true}, - {'1': 'transactions', '3': 5, '4': 3, '5': 11, '6': '.server_to_client.Response.Transaction', '10': 'transactions'}, - {'1': 'additional_accounts', '3': 6, '4': 3, '5': 11, '6': '.server_to_client.Response.AdditionalAccount', '10': 'additionalAccounts'}, - {'1': 'auto_renewal', '3': 7, '4': 1, '5': 8, '9': 2, '10': 'autoRenewal', '17': true}, - {'1': 'additional_account_owner_id', '3': 8, '4': 1, '5': 3, '9': 3, '10': 'additionalAccountOwnerId', '17': true}, + { + '1': 'used_daily_media_upload_limit', + '3': 1, + '4': 1, + '5': 3, + '10': 'usedDailyMediaUploadLimit' + }, + { + '1': 'used_upload_media_size_limit', + '3': 2, + '4': 1, + '5': 3, + '10': 'usedUploadMediaSizeLimit' + }, + { + '1': 'payment_period_days', + '3': 3, + '4': 1, + '5': 3, + '9': 0, + '10': 'paymentPeriodDays', + '17': true + }, + { + '1': 'last_payment_done_unix_timestamp', + '3': 4, + '4': 1, + '5': 3, + '9': 1, + '10': 'lastPaymentDoneUnixTimestamp', + '17': true + }, + { + '1': 'transactions', + '3': 5, + '4': 3, + '5': 11, + '6': '.server_to_client.Response.Transaction', + '10': 'transactions' + }, + { + '1': 'additional_accounts', + '3': 6, + '4': 3, + '5': 11, + '6': '.server_to_client.Response.AdditionalAccount', + '10': 'additionalAccounts' + }, + { + '1': 'auto_renewal', + '3': 7, + '4': 1, + '5': 8, + '9': 2, + '10': 'autoRenewal', + '17': true + }, + { + '1': 'additional_account_owner_id', + '3': 8, + '4': 1, + '5': 3, + '9': 3, + '10': 'additionalAccountOwnerId', + '17': true + }, ], '8': [ {'1': '_payment_period_days'}, @@ -215,7 +430,13 @@ const Response_SignedPreKey$json = { '2': [ {'1': 'signed_prekey_id', '3': 1, '4': 1, '5': 3, '10': 'signedPrekeyId'}, {'1': 'signed_prekey', '3': 2, '4': 1, '5': 12, '10': 'signedPrekey'}, - {'1': 'signed_prekey_signature', '3': 3, '4': 1, '5': 12, '10': 'signedPrekeySignature'}, + { + '1': 'signed_prekey_signature', + '3': 3, + '4': 1, + '5': 12, + '10': 'signedPrekeySignature' + }, ], }; @@ -224,12 +445,59 @@ const Response_UserData$json = { '1': 'UserData', '2': [ {'1': 'user_id', '3': 1, '4': 1, '5': 3, '10': 'userId'}, - {'1': 'prekeys', '3': 2, '4': 3, '5': 11, '6': '.server_to_client.Response.PreKey', '10': 'prekeys'}, - {'1': 'username', '3': 7, '4': 1, '5': 12, '9': 0, '10': 'username', '17': true}, - {'1': 'public_identity_key', '3': 3, '4': 1, '5': 12, '9': 1, '10': 'publicIdentityKey', '17': true}, - {'1': 'signed_prekey', '3': 4, '4': 1, '5': 12, '9': 2, '10': 'signedPrekey', '17': true}, - {'1': 'signed_prekey_signature', '3': 5, '4': 1, '5': 12, '9': 3, '10': 'signedPrekeySignature', '17': true}, - {'1': 'signed_prekey_id', '3': 6, '4': 1, '5': 3, '9': 4, '10': 'signedPrekeyId', '17': true}, + { + '1': 'prekeys', + '3': 2, + '4': 3, + '5': 11, + '6': '.server_to_client.Response.PreKey', + '10': 'prekeys' + }, + { + '1': 'username', + '3': 7, + '4': 1, + '5': 12, + '9': 0, + '10': 'username', + '17': true + }, + { + '1': 'public_identity_key', + '3': 3, + '4': 1, + '5': 12, + '9': 1, + '10': 'publicIdentityKey', + '17': true + }, + { + '1': 'signed_prekey', + '3': 4, + '4': 1, + '5': 12, + '9': 2, + '10': 'signedPrekey', + '17': true + }, + { + '1': 'signed_prekey_signature', + '3': 5, + '4': 1, + '5': 12, + '9': 3, + '10': 'signedPrekeySignature', + '17': true + }, + { + '1': 'signed_prekey_id', + '3': 6, + '4': 1, + '5': 3, + '9': 4, + '10': 'signedPrekeyId', + '17': true + }, ], '8': [ {'1': '_username'}, @@ -272,19 +540,114 @@ const Response_Ok$json = { '2': [ {'1': 'None', '3': 1, '4': 1, '5': 8, '9': 0, '10': 'None'}, {'1': 'userid', '3': 2, '4': 1, '5': 3, '9': 0, '10': 'userid'}, - {'1': 'authchallenge', '3': 3, '4': 1, '5': 12, '9': 0, '10': 'authchallenge'}, - {'1': 'uploadtoken', '3': 4, '4': 1, '5': 11, '6': '.server_to_client.Response.UploadToken', '9': 0, '10': 'uploadtoken'}, - {'1': 'userdata', '3': 5, '4': 1, '5': 11, '6': '.server_to_client.Response.UserData', '9': 0, '10': 'userdata'}, + { + '1': 'authchallenge', + '3': 3, + '4': 1, + '5': 12, + '9': 0, + '10': 'authchallenge' + }, + { + '1': 'uploadtoken', + '3': 4, + '4': 1, + '5': 11, + '6': '.server_to_client.Response.UploadToken', + '9': 0, + '10': 'uploadtoken' + }, + { + '1': 'userdata', + '3': 5, + '4': 1, + '5': 11, + '6': '.server_to_client.Response.UserData', + '9': 0, + '10': 'userdata' + }, {'1': 'authtoken', '3': 6, '4': 1, '5': 12, '9': 0, '10': 'authtoken'}, - {'1': 'location', '3': 7, '4': 1, '5': 11, '6': '.server_to_client.Response.Location', '9': 0, '10': 'location'}, - {'1': 'authenticated', '3': 8, '4': 1, '5': 11, '6': '.server_to_client.Response.Authenticated', '9': 0, '10': 'authenticated'}, - {'1': 'plans', '3': 9, '4': 1, '5': 11, '6': '.server_to_client.Response.Plans', '9': 0, '10': 'plans'}, - {'1': 'planballance', '3': 10, '4': 1, '5': 11, '6': '.server_to_client.Response.PlanBallance', '9': 0, '10': 'planballance'}, - {'1': 'vouchers', '3': 11, '4': 1, '5': 11, '6': '.server_to_client.Response.Vouchers', '9': 0, '10': 'vouchers'}, - {'1': 'addaccountsinvites', '3': 12, '4': 1, '5': 11, '6': '.server_to_client.Response.AddAccountsInvites', '9': 0, '10': 'addaccountsinvites'}, - {'1': 'downloadtokens', '3': 13, '4': 1, '5': 11, '6': '.server_to_client.Response.DownloadTokens', '9': 0, '10': 'downloadtokens'}, - {'1': 'signedprekey', '3': 14, '4': 1, '5': 11, '6': '.server_to_client.Response.SignedPreKey', '9': 0, '10': 'signedprekey'}, - {'1': 'proofOfWork', '3': 15, '4': 1, '5': 11, '6': '.server_to_client.Response.ProofOfWork', '9': 0, '10': 'proofOfWork'}, + { + '1': 'location', + '3': 7, + '4': 1, + '5': 11, + '6': '.server_to_client.Response.Location', + '9': 0, + '10': 'location' + }, + { + '1': 'authenticated', + '3': 8, + '4': 1, + '5': 11, + '6': '.server_to_client.Response.Authenticated', + '9': 0, + '10': 'authenticated' + }, + { + '1': 'plans', + '3': 9, + '4': 1, + '5': 11, + '6': '.server_to_client.Response.Plans', + '9': 0, + '10': 'plans' + }, + { + '1': 'planballance', + '3': 10, + '4': 1, + '5': 11, + '6': '.server_to_client.Response.PlanBallance', + '9': 0, + '10': 'planballance' + }, + { + '1': 'vouchers', + '3': 11, + '4': 1, + '5': 11, + '6': '.server_to_client.Response.Vouchers', + '9': 0, + '10': 'vouchers' + }, + { + '1': 'addaccountsinvites', + '3': 12, + '4': 1, + '5': 11, + '6': '.server_to_client.Response.AddAccountsInvites', + '9': 0, + '10': 'addaccountsinvites' + }, + { + '1': 'downloadtokens', + '3': 13, + '4': 1, + '5': 11, + '6': '.server_to_client.Response.DownloadTokens', + '9': 0, + '10': 'downloadtokens' + }, + { + '1': 'signedprekey', + '3': 14, + '4': 1, + '5': 11, + '6': '.server_to_client.Response.SignedPreKey', + '9': 0, + '10': 'signedprekey' + }, + { + '1': 'proofOfWork', + '3': 15, + '4': 1, + '5': 11, + '6': '.server_to_client.Response.ProofOfWork', + '9': 0, + '10': 'proofOfWork' + }, ], '8': [ {'1': 'Ok'}, @@ -384,4 +747,3 @@ final $typed_data.Uint8List responseDescriptor = $convert.base64Decode( 'lwZXMSCgoGUmVmdW5kEAASEwoPVm91Y2hlclJlZGVlbWVkEAESEgoOVm91Y2hlckNyZWF0ZWQQ' 'AhIICgRDYXNoEAMSDwoLUGxhblVwZ3JhZGUQBBILCgdVbmtub3duEAUSFAoQVGhhbmtzRm9yVG' 'VzdGluZxAGEg8KC0F1dG9SZW5ld2FsEAdCCgoIUmVzcG9uc2U='); - diff --git a/lib/src/model/protobuf/client/generated/backup.pb.dart b/lib/src/model/protobuf/client/generated/backup.pb.dart index 5b93197..7f8b114 100644 --- a/lib/src/model/protobuf/client/generated/backup.pb.dart +++ b/lib/src/model/protobuf/client/generated/backup.pb.dart @@ -1,80 +1,91 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: backup.proto -// -// @dart = 2.12 +// Generated from backup.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; +export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; + class TwonlySafeBackupContent extends $pb.GeneratedMessage { factory TwonlySafeBackupContent({ $core.String? secureStorageJson, $core.List<$core.int>? twonlyDatabase, }) { - final $result = create(); - if (secureStorageJson != null) { - $result.secureStorageJson = secureStorageJson; - } - if (twonlyDatabase != null) { - $result.twonlyDatabase = twonlyDatabase; - } - return $result; + final result = create(); + if (secureStorageJson != null) result.secureStorageJson = secureStorageJson; + if (twonlyDatabase != null) result.twonlyDatabase = twonlyDatabase; + return result; } - TwonlySafeBackupContent._() : super(); - factory TwonlySafeBackupContent.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory TwonlySafeBackupContent.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TwonlySafeBackupContent', createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'secureStorageJson', protoName: 'secureStorageJson') - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'twonlyDatabase', $pb.PbFieldType.OY, protoName: 'twonlyDatabase') - ..hasRequiredFields = false - ; + TwonlySafeBackupContent._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - TwonlySafeBackupContent clone() => TwonlySafeBackupContent()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TwonlySafeBackupContent copyWith(void Function(TwonlySafeBackupContent) updates) => super.copyWith((message) => updates(message as TwonlySafeBackupContent)) as TwonlySafeBackupContent; + factory TwonlySafeBackupContent.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory TwonlySafeBackupContent.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TwonlySafeBackupContent', + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'secureStorageJson', + protoName: 'secureStorageJson') + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'twonlyDatabase', $pb.PbFieldType.OY, + protoName: 'twonlyDatabase') + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + TwonlySafeBackupContent clone() => + TwonlySafeBackupContent()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + TwonlySafeBackupContent copyWith( + void Function(TwonlySafeBackupContent) updates) => + super.copyWith((message) => updates(message as TwonlySafeBackupContent)) + as TwonlySafeBackupContent; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static TwonlySafeBackupContent create() => TwonlySafeBackupContent._(); + @$core.override TwonlySafeBackupContent createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static TwonlySafeBackupContent getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static TwonlySafeBackupContent getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static TwonlySafeBackupContent? _defaultInstance; @$pb.TagNumber(1) $core.String get secureStorageJson => $_getSZ(0); @$pb.TagNumber(1) - set secureStorageJson($core.String v) { $_setString(0, v); } + set secureStorageJson($core.String value) => $_setString(0, value); @$pb.TagNumber(1) $core.bool hasSecureStorageJson() => $_has(0); @$pb.TagNumber(1) - void clearSecureStorageJson() => clearField(1); + void clearSecureStorageJson() => $_clearField(1); @$pb.TagNumber(2) $core.List<$core.int> get twonlyDatabase => $_getN(1); @$pb.TagNumber(2) - set twonlyDatabase($core.List<$core.int> v) { $_setBytes(1, v); } + set twonlyDatabase($core.List<$core.int> value) => $_setBytes(1, value); @$pb.TagNumber(2) $core.bool hasTwonlyDatabase() => $_has(1); @$pb.TagNumber(2) - void clearTwonlyDatabase() => clearField(2); + void clearTwonlyDatabase() => $_clearField(2); } class TwonlySafeBackupEncrypted extends $pb.GeneratedMessage { @@ -83,78 +94,86 @@ class TwonlySafeBackupEncrypted extends $pb.GeneratedMessage { $core.List<$core.int>? nonce, $core.List<$core.int>? cipherText, }) { - final $result = create(); - if (mac != null) { - $result.mac = mac; - } - if (nonce != null) { - $result.nonce = nonce; - } - if (cipherText != null) { - $result.cipherText = cipherText; - } - return $result; + final result = create(); + if (mac != null) result.mac = mac; + if (nonce != null) result.nonce = nonce; + if (cipherText != null) result.cipherText = cipherText; + return result; } - TwonlySafeBackupEncrypted._() : super(); - factory TwonlySafeBackupEncrypted.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory TwonlySafeBackupEncrypted.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TwonlySafeBackupEncrypted', createEmptyInstance: create) - ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'mac', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'nonce', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'cipherText', $pb.PbFieldType.OY, protoName: 'cipherText') - ..hasRequiredFields = false - ; + TwonlySafeBackupEncrypted._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - TwonlySafeBackupEncrypted clone() => TwonlySafeBackupEncrypted()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TwonlySafeBackupEncrypted copyWith(void Function(TwonlySafeBackupEncrypted) updates) => super.copyWith((message) => updates(message as TwonlySafeBackupEncrypted)) as TwonlySafeBackupEncrypted; + factory TwonlySafeBackupEncrypted.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory TwonlySafeBackupEncrypted.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TwonlySafeBackupEncrypted', + createEmptyInstance: create) + ..a<$core.List<$core.int>>( + 1, _omitFieldNames ? '' : 'mac', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'nonce', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'cipherText', $pb.PbFieldType.OY, + protoName: 'cipherText') + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + TwonlySafeBackupEncrypted clone() => + TwonlySafeBackupEncrypted()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + TwonlySafeBackupEncrypted copyWith( + void Function(TwonlySafeBackupEncrypted) updates) => + super.copyWith((message) => updates(message as TwonlySafeBackupEncrypted)) + as TwonlySafeBackupEncrypted; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static TwonlySafeBackupEncrypted create() => TwonlySafeBackupEncrypted._(); + @$core.override TwonlySafeBackupEncrypted createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static TwonlySafeBackupEncrypted getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static TwonlySafeBackupEncrypted getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static TwonlySafeBackupEncrypted? _defaultInstance; @$pb.TagNumber(1) $core.List<$core.int> get mac => $_getN(0); @$pb.TagNumber(1) - set mac($core.List<$core.int> v) { $_setBytes(0, v); } + set mac($core.List<$core.int> value) => $_setBytes(0, value); @$pb.TagNumber(1) $core.bool hasMac() => $_has(0); @$pb.TagNumber(1) - void clearMac() => clearField(1); + void clearMac() => $_clearField(1); @$pb.TagNumber(2) $core.List<$core.int> get nonce => $_getN(1); @$pb.TagNumber(2) - set nonce($core.List<$core.int> v) { $_setBytes(1, v); } + set nonce($core.List<$core.int> value) => $_setBytes(1, value); @$pb.TagNumber(2) $core.bool hasNonce() => $_has(1); @$pb.TagNumber(2) - void clearNonce() => clearField(2); + void clearNonce() => $_clearField(2); @$pb.TagNumber(3) $core.List<$core.int> get cipherText => $_getN(2); @$pb.TagNumber(3) - set cipherText($core.List<$core.int> v) { $_setBytes(2, v); } + set cipherText($core.List<$core.int> value) => $_setBytes(2, value); @$pb.TagNumber(3) $core.bool hasCipherText() => $_has(2); @$pb.TagNumber(3) - void clearCipherText() => clearField(3); + void clearCipherText() => $_clearField(3); } - -const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/src/model/protobuf/client/generated/backup.pbenum.dart b/lib/src/model/protobuf/client/generated/backup.pbenum.dart index 184bdfe..1477730 100644 --- a/lib/src/model/protobuf/client/generated/backup.pbenum.dart +++ b/lib/src/model/protobuf/client/generated/backup.pbenum.dart @@ -1,11 +1,11 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: backup.proto -// -// @dart = 2.12 +// Generated from backup.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import - +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names diff --git a/lib/src/model/protobuf/client/generated/backup.pbjson.dart b/lib/src/model/protobuf/client/generated/backup.pbjson.dart index 75b1e3d..d084021 100644 --- a/lib/src/model/protobuf/client/generated/backup.pbjson.dart +++ b/lib/src/model/protobuf/client/generated/backup.pbjson.dart @@ -1,13 +1,14 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: backup.proto -// -// @dart = 2.12 +// Generated from backup.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names, unused_import import 'dart:convert' as $convert; import 'dart:core' as $core; @@ -17,7 +18,13 @@ import 'dart:typed_data' as $typed_data; const TwonlySafeBackupContent$json = { '1': 'TwonlySafeBackupContent', '2': [ - {'1': 'secureStorageJson', '3': 1, '4': 1, '5': 9, '10': 'secureStorageJson'}, + { + '1': 'secureStorageJson', + '3': 1, + '4': 1, + '5': 9, + '10': 'secureStorageJson' + }, {'1': 'twonlyDatabase', '3': 2, '4': 1, '5': 12, '10': 'twonlyDatabase'}, ], }; @@ -38,7 +45,7 @@ const TwonlySafeBackupEncrypted$json = { }; /// Descriptor for `TwonlySafeBackupEncrypted`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List twonlySafeBackupEncryptedDescriptor = $convert.base64Decode( - 'ChlUd29ubHlTYWZlQmFja3VwRW5jcnlwdGVkEhAKA21hYxgBIAEoDFIDbWFjEhQKBW5vbmNlGA' - 'IgASgMUgVub25jZRIeCgpjaXBoZXJUZXh0GAMgASgMUgpjaXBoZXJUZXh0'); - +final $typed_data.Uint8List twonlySafeBackupEncryptedDescriptor = + $convert.base64Decode( + 'ChlUd29ubHlTYWZlQmFja3VwRW5jcnlwdGVkEhAKA21hYxgBIAEoDFIDbWFjEhQKBW5vbmNlGA' + 'IgASgMUgVub25jZRIeCgpjaXBoZXJUZXh0GAMgASgMUgpjaXBoZXJUZXh0'); diff --git a/lib/src/model/protobuf/client/generated/groups.pb.dart b/lib/src/model/protobuf/client/generated/groups.pb.dart index 1be9b98..96883f4 100644 --- a/lib/src/model/protobuf/client/generated/groups.pb.dart +++ b/lib/src/model/protobuf/client/generated/groups.pb.dart @@ -1,13 +1,14 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: groups.proto -// -// @dart = 2.12 +// Generated from groups.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names import 'dart:core' as $core; @@ -16,6 +17,8 @@ import 'package:protobuf/protobuf.dart' as $pb; import 'groups.pbenum.dart'; +export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; + export 'groups.pbenum.dart'; /// Stored encrypted on the server in the members columns. @@ -27,140 +30,157 @@ class EncryptedGroupState extends $pb.GeneratedMessage { $fixnum.Int64? deleteMessagesAfterMilliseconds, $core.List<$core.int>? padding, }) { - final $result = create(); - if (memberIds != null) { - $result.memberIds.addAll(memberIds); - } - if (adminIds != null) { - $result.adminIds.addAll(adminIds); - } - if (groupName != null) { - $result.groupName = groupName; - } - if (deleteMessagesAfterMilliseconds != null) { - $result.deleteMessagesAfterMilliseconds = deleteMessagesAfterMilliseconds; - } - if (padding != null) { - $result.padding = padding; - } - return $result; + final result = create(); + if (memberIds != null) result.memberIds.addAll(memberIds); + if (adminIds != null) result.adminIds.addAll(adminIds); + if (groupName != null) result.groupName = groupName; + if (deleteMessagesAfterMilliseconds != null) + result.deleteMessagesAfterMilliseconds = deleteMessagesAfterMilliseconds; + if (padding != null) result.padding = padding; + return result; } - EncryptedGroupState._() : super(); - factory EncryptedGroupState.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory EncryptedGroupState.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EncryptedGroupState', createEmptyInstance: create) - ..p<$fixnum.Int64>(1, _omitFieldNames ? '' : 'memberIds', $pb.PbFieldType.K6, protoName: 'memberIds') - ..p<$fixnum.Int64>(2, _omitFieldNames ? '' : 'adminIds', $pb.PbFieldType.K6, protoName: 'adminIds') + EncryptedGroupState._(); + + factory EncryptedGroupState.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory EncryptedGroupState.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EncryptedGroupState', + createEmptyInstance: create) + ..p<$fixnum.Int64>( + 1, _omitFieldNames ? '' : 'memberIds', $pb.PbFieldType.K6, + protoName: 'memberIds') + ..p<$fixnum.Int64>(2, _omitFieldNames ? '' : 'adminIds', $pb.PbFieldType.K6, + protoName: 'adminIds') ..aOS(3, _omitFieldNames ? '' : 'groupName', protoName: 'groupName') - ..aInt64(4, _omitFieldNames ? '' : 'deleteMessagesAfterMilliseconds', protoName: 'deleteMessagesAfterMilliseconds') - ..a<$core.List<$core.int>>(5, _omitFieldNames ? '' : 'padding', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; + ..aInt64(4, _omitFieldNames ? '' : 'deleteMessagesAfterMilliseconds', + protoName: 'deleteMessagesAfterMilliseconds') + ..a<$core.List<$core.int>>( + 5, _omitFieldNames ? '' : 'padding', $pb.PbFieldType.OY) + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') EncryptedGroupState clone() => EncryptedGroupState()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - EncryptedGroupState copyWith(void Function(EncryptedGroupState) updates) => super.copyWith((message) => updates(message as EncryptedGroupState)) as EncryptedGroupState; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedGroupState copyWith(void Function(EncryptedGroupState) updates) => + super.copyWith((message) => updates(message as EncryptedGroupState)) + as EncryptedGroupState; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static EncryptedGroupState create() => EncryptedGroupState._(); + @$core.override EncryptedGroupState createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static EncryptedGroupState getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static EncryptedGroupState getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static EncryptedGroupState? _defaultInstance; @$pb.TagNumber(1) - $core.List<$fixnum.Int64> get memberIds => $_getList(0); + $pb.PbList<$fixnum.Int64> get memberIds => $_getList(0); @$pb.TagNumber(2) - $core.List<$fixnum.Int64> get adminIds => $_getList(1); + $pb.PbList<$fixnum.Int64> get adminIds => $_getList(1); @$pb.TagNumber(3) $core.String get groupName => $_getSZ(2); @$pb.TagNumber(3) - set groupName($core.String v) { $_setString(2, v); } + set groupName($core.String value) => $_setString(2, value); @$pb.TagNumber(3) $core.bool hasGroupName() => $_has(2); @$pb.TagNumber(3) - void clearGroupName() => clearField(3); + void clearGroupName() => $_clearField(3); @$pb.TagNumber(4) $fixnum.Int64 get deleteMessagesAfterMilliseconds => $_getI64(3); @$pb.TagNumber(4) - set deleteMessagesAfterMilliseconds($fixnum.Int64 v) { $_setInt64(3, v); } + set deleteMessagesAfterMilliseconds($fixnum.Int64 value) => + $_setInt64(3, value); @$pb.TagNumber(4) $core.bool hasDeleteMessagesAfterMilliseconds() => $_has(3); @$pb.TagNumber(4) - void clearDeleteMessagesAfterMilliseconds() => clearField(4); + void clearDeleteMessagesAfterMilliseconds() => $_clearField(4); @$pb.TagNumber(5) $core.List<$core.int> get padding => $_getN(4); @$pb.TagNumber(5) - set padding($core.List<$core.int> v) { $_setBytes(4, v); } + set padding($core.List<$core.int> value) => $_setBytes(4, value); @$pb.TagNumber(5) $core.bool hasPadding() => $_has(4); @$pb.TagNumber(5) - void clearPadding() => clearField(5); + void clearPadding() => $_clearField(5); } class EncryptedAppendedGroupState extends $pb.GeneratedMessage { factory EncryptedAppendedGroupState({ EncryptedAppendedGroupState_Type? type, }) { - final $result = create(); - if (type != null) { - $result.type = type; - } - return $result; + final result = create(); + if (type != null) result.type = type; + return result; } - EncryptedAppendedGroupState._() : super(); - factory EncryptedAppendedGroupState.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory EncryptedAppendedGroupState.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EncryptedAppendedGroupState', createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: EncryptedAppendedGroupState_Type.LEFT_GROUP, valueOf: EncryptedAppendedGroupState_Type.valueOf, enumValues: EncryptedAppendedGroupState_Type.values) - ..hasRequiredFields = false - ; + EncryptedAppendedGroupState._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - EncryptedAppendedGroupState clone() => EncryptedAppendedGroupState()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - EncryptedAppendedGroupState copyWith(void Function(EncryptedAppendedGroupState) updates) => super.copyWith((message) => updates(message as EncryptedAppendedGroupState)) as EncryptedAppendedGroupState; + factory EncryptedAppendedGroupState.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory EncryptedAppendedGroupState.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EncryptedAppendedGroupState', + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, + defaultOrMaker: EncryptedAppendedGroupState_Type.LEFT_GROUP, + valueOf: EncryptedAppendedGroupState_Type.valueOf, + enumValues: EncryptedAppendedGroupState_Type.values) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedAppendedGroupState clone() => + EncryptedAppendedGroupState()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedAppendedGroupState copyWith( + void Function(EncryptedAppendedGroupState) updates) => + super.copyWith( + (message) => updates(message as EncryptedAppendedGroupState)) + as EncryptedAppendedGroupState; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static EncryptedAppendedGroupState create() => EncryptedAppendedGroupState._(); + static EncryptedAppendedGroupState create() => + EncryptedAppendedGroupState._(); + @$core.override EncryptedAppendedGroupState createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static EncryptedAppendedGroupState getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static EncryptedAppendedGroupState getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static EncryptedAppendedGroupState? _defaultInstance; @$pb.TagNumber(1) EncryptedAppendedGroupState_Type get type => $_getN(0); @$pb.TagNumber(1) - set type(EncryptedAppendedGroupState_Type v) { setField(1, v); } + set type(EncryptedAppendedGroupState_Type value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasType() => $_has(0); @$pb.TagNumber(1) - void clearType() => clearField(1); + void clearType() => $_clearField(1); } class EncryptedGroupStateEnvelop extends $pb.GeneratedMessage { @@ -169,78 +189,88 @@ class EncryptedGroupStateEnvelop extends $pb.GeneratedMessage { $core.List<$core.int>? encryptedGroupState, $core.List<$core.int>? mac, }) { - final $result = create(); - if (nonce != null) { - $result.nonce = nonce; - } - if (encryptedGroupState != null) { - $result.encryptedGroupState = encryptedGroupState; - } - if (mac != null) { - $result.mac = mac; - } - return $result; + final result = create(); + if (nonce != null) result.nonce = nonce; + if (encryptedGroupState != null) + result.encryptedGroupState = encryptedGroupState; + if (mac != null) result.mac = mac; + return result; } - EncryptedGroupStateEnvelop._() : super(); - factory EncryptedGroupStateEnvelop.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory EncryptedGroupStateEnvelop.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EncryptedGroupStateEnvelop', createEmptyInstance: create) - ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'nonce', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'encryptedGroupState', $pb.PbFieldType.OY, protoName: 'encryptedGroupState') - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'mac', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; + EncryptedGroupStateEnvelop._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - EncryptedGroupStateEnvelop clone() => EncryptedGroupStateEnvelop()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - EncryptedGroupStateEnvelop copyWith(void Function(EncryptedGroupStateEnvelop) updates) => super.copyWith((message) => updates(message as EncryptedGroupStateEnvelop)) as EncryptedGroupStateEnvelop; + factory EncryptedGroupStateEnvelop.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory EncryptedGroupStateEnvelop.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EncryptedGroupStateEnvelop', + createEmptyInstance: create) + ..a<$core.List<$core.int>>( + 1, _omitFieldNames ? '' : 'nonce', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'encryptedGroupState', $pb.PbFieldType.OY, + protoName: 'encryptedGroupState') + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'mac', $pb.PbFieldType.OY) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedGroupStateEnvelop clone() => + EncryptedGroupStateEnvelop()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedGroupStateEnvelop copyWith( + void Function(EncryptedGroupStateEnvelop) updates) => + super.copyWith( + (message) => updates(message as EncryptedGroupStateEnvelop)) + as EncryptedGroupStateEnvelop; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static EncryptedGroupStateEnvelop create() => EncryptedGroupStateEnvelop._(); + @$core.override EncryptedGroupStateEnvelop createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static EncryptedGroupStateEnvelop getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static EncryptedGroupStateEnvelop getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static EncryptedGroupStateEnvelop? _defaultInstance; @$pb.TagNumber(1) $core.List<$core.int> get nonce => $_getN(0); @$pb.TagNumber(1) - set nonce($core.List<$core.int> v) { $_setBytes(0, v); } + set nonce($core.List<$core.int> value) => $_setBytes(0, value); @$pb.TagNumber(1) $core.bool hasNonce() => $_has(0); @$pb.TagNumber(1) - void clearNonce() => clearField(1); + void clearNonce() => $_clearField(1); @$pb.TagNumber(2) $core.List<$core.int> get encryptedGroupState => $_getN(1); @$pb.TagNumber(2) - set encryptedGroupState($core.List<$core.int> v) { $_setBytes(1, v); } + set encryptedGroupState($core.List<$core.int> value) => $_setBytes(1, value); @$pb.TagNumber(2) $core.bool hasEncryptedGroupState() => $_has(1); @$pb.TagNumber(2) - void clearEncryptedGroupState() => clearField(2); + void clearEncryptedGroupState() => $_clearField(2); @$pb.TagNumber(3) $core.List<$core.int> get mac => $_getN(2); @$pb.TagNumber(3) - set mac($core.List<$core.int> v) { $_setBytes(2, v); } + set mac($core.List<$core.int> value) => $_setBytes(2, value); @$pb.TagNumber(3) $core.bool hasMac() => $_has(2); @$pb.TagNumber(3) - void clearMac() => clearField(3); + void clearMac() => $_clearField(3); } - -const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/src/model/protobuf/client/generated/groups.pbenum.dart b/lib/src/model/protobuf/client/generated/groups.pbenum.dart index 69a0e68..f96c116 100644 --- a/lib/src/model/protobuf/client/generated/groups.pbenum.dart +++ b/lib/src/model/protobuf/client/generated/groups.pbenum.dart @@ -1,30 +1,35 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: groups.proto -// -// @dart = 2.12 +// Generated from groups.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; class EncryptedAppendedGroupState_Type extends $pb.ProtobufEnum { - static const EncryptedAppendedGroupState_Type LEFT_GROUP = EncryptedAppendedGroupState_Type._(0, _omitEnumNames ? '' : 'LEFT_GROUP'); + static const EncryptedAppendedGroupState_Type LEFT_GROUP = + EncryptedAppendedGroupState_Type._(0, _omitEnumNames ? '' : 'LEFT_GROUP'); - static const $core.List values = [ + static const $core.List values = + [ LEFT_GROUP, ]; - static final $core.Map<$core.int, EncryptedAppendedGroupState_Type> _byValue = $pb.ProtobufEnum.initByValue(values); - static EncryptedAppendedGroupState_Type? valueOf($core.int value) => _byValue[value]; + static final $core.List _byValue = + $pb.ProtobufEnum.$_initByValueList(values, 0); + static EncryptedAppendedGroupState_Type? valueOf($core.int value) => + value < 0 || value >= _byValue.length ? null : _byValue[value]; - const EncryptedAppendedGroupState_Type._($core.int v, $core.String n) : super(v, n); + const EncryptedAppendedGroupState_Type._(super.value, super.name); } - -const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); +const $core.bool _omitEnumNames = + $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/lib/src/model/protobuf/client/generated/groups.pbjson.dart b/lib/src/model/protobuf/client/generated/groups.pbjson.dart index 1d81d71..7fa61ef 100644 --- a/lib/src/model/protobuf/client/generated/groups.pbjson.dart +++ b/lib/src/model/protobuf/client/generated/groups.pbjson.dart @@ -1,13 +1,14 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: groups.proto -// -// @dart = 2.12 +// Generated from groups.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names, unused_import import 'dart:convert' as $convert; import 'dart:core' as $core; @@ -20,7 +21,15 @@ const EncryptedGroupState$json = { {'1': 'memberIds', '3': 1, '4': 3, '5': 3, '10': 'memberIds'}, {'1': 'adminIds', '3': 2, '4': 3, '5': 3, '10': 'adminIds'}, {'1': 'groupName', '3': 3, '4': 1, '5': 9, '10': 'groupName'}, - {'1': 'deleteMessagesAfterMilliseconds', '3': 4, '4': 1, '5': 3, '9': 0, '10': 'deleteMessagesAfterMilliseconds', '17': true}, + { + '1': 'deleteMessagesAfterMilliseconds', + '3': 4, + '4': 1, + '5': 3, + '9': 0, + '10': 'deleteMessagesAfterMilliseconds', + '17': true + }, {'1': 'padding', '3': 5, '4': 1, '5': 12, '10': 'padding'}, ], '8': [ @@ -40,7 +49,14 @@ final $typed_data.Uint8List encryptedGroupStateDescriptor = $convert.base64Decod const EncryptedAppendedGroupState$json = { '1': 'EncryptedAppendedGroupState', '2': [ - {'1': 'type', '3': 1, '4': 1, '5': 14, '6': '.EncryptedAppendedGroupState.Type', '10': 'type'}, + { + '1': 'type', + '3': 1, + '4': 1, + '5': 14, + '6': '.EncryptedAppendedGroupState.Type', + '10': 'type' + }, ], '4': [EncryptedAppendedGroupState_Type$json], }; @@ -54,23 +70,30 @@ const EncryptedAppendedGroupState_Type$json = { }; /// Descriptor for `EncryptedAppendedGroupState`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List encryptedAppendedGroupStateDescriptor = $convert.base64Decode( - 'ChtFbmNyeXB0ZWRBcHBlbmRlZEdyb3VwU3RhdGUSNQoEdHlwZRgBIAEoDjIhLkVuY3J5cHRlZE' - 'FwcGVuZGVkR3JvdXBTdGF0ZS5UeXBlUgR0eXBlIhYKBFR5cGUSDgoKTEVGVF9HUk9VUBAA'); +final $typed_data.Uint8List encryptedAppendedGroupStateDescriptor = + $convert.base64Decode( + 'ChtFbmNyeXB0ZWRBcHBlbmRlZEdyb3VwU3RhdGUSNQoEdHlwZRgBIAEoDjIhLkVuY3J5cHRlZE' + 'FwcGVuZGVkR3JvdXBTdGF0ZS5UeXBlUgR0eXBlIhYKBFR5cGUSDgoKTEVGVF9HUk9VUBAA'); @$core.Deprecated('Use encryptedGroupStateEnvelopDescriptor instead') const EncryptedGroupStateEnvelop$json = { '1': 'EncryptedGroupStateEnvelop', '2': [ {'1': 'nonce', '3': 1, '4': 1, '5': 12, '10': 'nonce'}, - {'1': 'encryptedGroupState', '3': 2, '4': 1, '5': 12, '10': 'encryptedGroupState'}, + { + '1': 'encryptedGroupState', + '3': 2, + '4': 1, + '5': 12, + '10': 'encryptedGroupState' + }, {'1': 'mac', '3': 3, '4': 1, '5': 12, '10': 'mac'}, ], }; /// Descriptor for `EncryptedGroupStateEnvelop`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List encryptedGroupStateEnvelopDescriptor = $convert.base64Decode( - 'ChpFbmNyeXB0ZWRHcm91cFN0YXRlRW52ZWxvcBIUCgVub25jZRgBIAEoDFIFbm9uY2USMAoTZW' - '5jcnlwdGVkR3JvdXBTdGF0ZRgCIAEoDFITZW5jcnlwdGVkR3JvdXBTdGF0ZRIQCgNtYWMYAyAB' - 'KAxSA21hYw=='); - +final $typed_data.Uint8List encryptedGroupStateEnvelopDescriptor = + $convert.base64Decode( + 'ChpFbmNyeXB0ZWRHcm91cFN0YXRlRW52ZWxvcBIUCgVub25jZRgBIAEoDFIFbm9uY2USMAoTZW' + '5jcnlwdGVkR3JvdXBTdGF0ZRgCIAEoDFITZW5jcnlwdGVkR3JvdXBTdGF0ZRIQCgNtYWMYAyAB' + 'KAxSA21hYw=='); diff --git a/lib/src/model/protobuf/client/generated/messages.pb.dart b/lib/src/model/protobuf/client/generated/messages.pb.dart index 3babd94..662a9e9 100644 --- a/lib/src/model/protobuf/client/generated/messages.pb.dart +++ b/lib/src/model/protobuf/client/generated/messages.pb.dart @@ -1,13 +1,14 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: messages.proto -// -// @dart = 2.12 +// Generated from messages.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names import 'dart:core' as $core; @@ -16,6 +17,8 @@ import 'package:protobuf/protobuf.dart' as $pb; import 'messages.pbenum.dart'; +export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; + export 'messages.pbenum.dart'; class Message extends $pb.GeneratedMessage { @@ -25,122 +28,138 @@ class Message extends $pb.GeneratedMessage { $core.List<$core.int>? encryptedContent, PlaintextContent? plaintextContent, }) { - final $result = create(); - if (type != null) { - $result.type = type; - } - if (receiptId != null) { - $result.receiptId = receiptId; - } - if (encryptedContent != null) { - $result.encryptedContent = encryptedContent; - } - if (plaintextContent != null) { - $result.plaintextContent = plaintextContent; - } - return $result; + final result = create(); + if (type != null) result.type = type; + if (receiptId != null) result.receiptId = receiptId; + if (encryptedContent != null) result.encryptedContent = encryptedContent; + if (plaintextContent != null) result.plaintextContent = plaintextContent; + return result; } - Message._() : super(); - factory Message.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Message.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Message', createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: Message_Type.SENDER_DELIVERY_RECEIPT, valueOf: Message_Type.valueOf, enumValues: Message_Type.values) + Message._(); + + factory Message.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory Message.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Message', + createEmptyInstance: create) + ..e(1, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, + defaultOrMaker: Message_Type.SENDER_DELIVERY_RECEIPT, + valueOf: Message_Type.valueOf, + enumValues: Message_Type.values) ..aOS(2, _omitFieldNames ? '' : 'receiptId', protoName: 'receiptId') - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'encryptedContent', $pb.PbFieldType.OY, protoName: 'encryptedContent') - ..aOM(4, _omitFieldNames ? '' : 'plaintextContent', protoName: 'plaintextContent', subBuilder: PlaintextContent.create) - ..hasRequiredFields = false - ; + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'encryptedContent', $pb.PbFieldType.OY, + protoName: 'encryptedContent') + ..aOM(4, _omitFieldNames ? '' : 'plaintextContent', + protoName: 'plaintextContent', subBuilder: PlaintextContent.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') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Message clone() => Message()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Message copyWith(void Function(Message) updates) => super.copyWith((message) => updates(message as Message)) as Message; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + Message copyWith(void Function(Message) updates) => + super.copyWith((message) => updates(message as Message)) as Message; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Message create() => Message._(); + @$core.override Message createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Message getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Message getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Message? _defaultInstance; @$pb.TagNumber(1) Message_Type get type => $_getN(0); @$pb.TagNumber(1) - set type(Message_Type v) { setField(1, v); } + set type(Message_Type value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasType() => $_has(0); @$pb.TagNumber(1) - void clearType() => clearField(1); + void clearType() => $_clearField(1); @$pb.TagNumber(2) $core.String get receiptId => $_getSZ(1); @$pb.TagNumber(2) - set receiptId($core.String v) { $_setString(1, v); } + set receiptId($core.String value) => $_setString(1, value); @$pb.TagNumber(2) $core.bool hasReceiptId() => $_has(1); @$pb.TagNumber(2) - void clearReceiptId() => clearField(2); + void clearReceiptId() => $_clearField(2); @$pb.TagNumber(3) $core.List<$core.int> get encryptedContent => $_getN(2); @$pb.TagNumber(3) - set encryptedContent($core.List<$core.int> v) { $_setBytes(2, v); } + set encryptedContent($core.List<$core.int> value) => $_setBytes(2, value); @$pb.TagNumber(3) $core.bool hasEncryptedContent() => $_has(2); @$pb.TagNumber(3) - void clearEncryptedContent() => clearField(3); + void clearEncryptedContent() => $_clearField(3); @$pb.TagNumber(4) PlaintextContent get plaintextContent => $_getN(3); @$pb.TagNumber(4) - set plaintextContent(PlaintextContent v) { setField(4, v); } + set plaintextContent(PlaintextContent value) => $_setField(4, value); @$pb.TagNumber(4) $core.bool hasPlaintextContent() => $_has(3); @$pb.TagNumber(4) - void clearPlaintextContent() => clearField(4); + void clearPlaintextContent() => $_clearField(4); @$pb.TagNumber(4) PlaintextContent ensurePlaintextContent() => $_ensure(3); } class PlaintextContent_RetryErrorMessage extends $pb.GeneratedMessage { factory PlaintextContent_RetryErrorMessage() => create(); - PlaintextContent_RetryErrorMessage._() : super(); - factory PlaintextContent_RetryErrorMessage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PlaintextContent_RetryErrorMessage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PlaintextContent.RetryErrorMessage', createEmptyInstance: create) - ..hasRequiredFields = false - ; + PlaintextContent_RetryErrorMessage._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - PlaintextContent_RetryErrorMessage clone() => PlaintextContent_RetryErrorMessage()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PlaintextContent_RetryErrorMessage copyWith(void Function(PlaintextContent_RetryErrorMessage) updates) => super.copyWith((message) => updates(message as PlaintextContent_RetryErrorMessage)) as PlaintextContent_RetryErrorMessage; + factory PlaintextContent_RetryErrorMessage.fromBuffer( + $core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory PlaintextContent_RetryErrorMessage.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PlaintextContent.RetryErrorMessage', + createEmptyInstance: create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + PlaintextContent_RetryErrorMessage clone() => + PlaintextContent_RetryErrorMessage()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + PlaintextContent_RetryErrorMessage copyWith( + void Function(PlaintextContent_RetryErrorMessage) updates) => + super.copyWith((message) => + updates(message as PlaintextContent_RetryErrorMessage)) + as PlaintextContent_RetryErrorMessage; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static PlaintextContent_RetryErrorMessage create() => PlaintextContent_RetryErrorMessage._(); + static PlaintextContent_RetryErrorMessage create() => + PlaintextContent_RetryErrorMessage._(); + @$core.override PlaintextContent_RetryErrorMessage createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PlaintextContent_RetryErrorMessage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PlaintextContent_RetryErrorMessage getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor( + create); static PlaintextContent_RetryErrorMessage? _defaultInstance; } @@ -148,50 +167,66 @@ class PlaintextContent_DecryptionErrorMessage extends $pb.GeneratedMessage { factory PlaintextContent_DecryptionErrorMessage({ PlaintextContent_DecryptionErrorMessage_Type? type, }) { - final $result = create(); - if (type != null) { - $result.type = type; - } - return $result; + final result = create(); + if (type != null) result.type = type; + return result; } - PlaintextContent_DecryptionErrorMessage._() : super(); - factory PlaintextContent_DecryptionErrorMessage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PlaintextContent_DecryptionErrorMessage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PlaintextContent.DecryptionErrorMessage', createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: PlaintextContent_DecryptionErrorMessage_Type.UNKNOWN, valueOf: PlaintextContent_DecryptionErrorMessage_Type.valueOf, enumValues: PlaintextContent_DecryptionErrorMessage_Type.values) - ..hasRequiredFields = false - ; + PlaintextContent_DecryptionErrorMessage._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - PlaintextContent_DecryptionErrorMessage clone() => PlaintextContent_DecryptionErrorMessage()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PlaintextContent_DecryptionErrorMessage copyWith(void Function(PlaintextContent_DecryptionErrorMessage) updates) => super.copyWith((message) => updates(message as PlaintextContent_DecryptionErrorMessage)) as PlaintextContent_DecryptionErrorMessage; + factory PlaintextContent_DecryptionErrorMessage.fromBuffer( + $core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory PlaintextContent_DecryptionErrorMessage.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PlaintextContent.DecryptionErrorMessage', + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, + defaultOrMaker: PlaintextContent_DecryptionErrorMessage_Type.UNKNOWN, + valueOf: PlaintextContent_DecryptionErrorMessage_Type.valueOf, + enumValues: PlaintextContent_DecryptionErrorMessage_Type.values) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + PlaintextContent_DecryptionErrorMessage clone() => + PlaintextContent_DecryptionErrorMessage()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + PlaintextContent_DecryptionErrorMessage copyWith( + void Function(PlaintextContent_DecryptionErrorMessage) updates) => + super.copyWith((message) => + updates(message as PlaintextContent_DecryptionErrorMessage)) + as PlaintextContent_DecryptionErrorMessage; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static PlaintextContent_DecryptionErrorMessage create() => PlaintextContent_DecryptionErrorMessage._(); + static PlaintextContent_DecryptionErrorMessage create() => + PlaintextContent_DecryptionErrorMessage._(); + @$core.override PlaintextContent_DecryptionErrorMessage createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PlaintextContent_DecryptionErrorMessage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PlaintextContent_DecryptionErrorMessage getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< + PlaintextContent_DecryptionErrorMessage>(create); static PlaintextContent_DecryptionErrorMessage? _defaultInstance; @$pb.TagNumber(1) PlaintextContent_DecryptionErrorMessage_Type get type => $_getN(0); @$pb.TagNumber(1) - set type(PlaintextContent_DecryptionErrorMessage_Type v) { setField(1, v); } + set type(PlaintextContent_DecryptionErrorMessage_Type value) => + $_setField(1, value); @$pb.TagNumber(1) $core.bool hasType() => $_has(0); @$pb.TagNumber(1) - void clearType() => clearField(1); + void clearType() => $_clearField(1); } class PlaintextContent extends $pb.GeneratedMessage { @@ -199,65 +234,79 @@ class PlaintextContent extends $pb.GeneratedMessage { PlaintextContent_DecryptionErrorMessage? decryptionErrorMessage, PlaintextContent_RetryErrorMessage? retryControlError, }) { - final $result = create(); - if (decryptionErrorMessage != null) { - $result.decryptionErrorMessage = decryptionErrorMessage; - } - if (retryControlError != null) { - $result.retryControlError = retryControlError; - } - return $result; + final result = create(); + if (decryptionErrorMessage != null) + result.decryptionErrorMessage = decryptionErrorMessage; + if (retryControlError != null) result.retryControlError = retryControlError; + return result; } - PlaintextContent._() : super(); - factory PlaintextContent.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PlaintextContent.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PlaintextContent', createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'decryptionErrorMessage', protoName: 'decryptionErrorMessage', subBuilder: PlaintextContent_DecryptionErrorMessage.create) - ..aOM(2, _omitFieldNames ? '' : 'retryControlError', protoName: 'retryControlError', subBuilder: PlaintextContent_RetryErrorMessage.create) - ..hasRequiredFields = false - ; + PlaintextContent._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory PlaintextContent.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory PlaintextContent.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PlaintextContent', + createEmptyInstance: create) + ..aOM( + 1, _omitFieldNames ? '' : 'decryptionErrorMessage', + protoName: 'decryptionErrorMessage', + subBuilder: PlaintextContent_DecryptionErrorMessage.create) + ..aOM( + 2, _omitFieldNames ? '' : 'retryControlError', + protoName: 'retryControlError', + subBuilder: PlaintextContent_RetryErrorMessage.create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') PlaintextContent clone() => PlaintextContent()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PlaintextContent copyWith(void Function(PlaintextContent) updates) => super.copyWith((message) => updates(message as PlaintextContent)) as PlaintextContent; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + PlaintextContent copyWith(void Function(PlaintextContent) updates) => + super.copyWith((message) => updates(message as PlaintextContent)) + as PlaintextContent; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PlaintextContent create() => PlaintextContent._(); + @$core.override PlaintextContent createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PlaintextContent getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PlaintextContent getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PlaintextContent? _defaultInstance; @$pb.TagNumber(1) - PlaintextContent_DecryptionErrorMessage get decryptionErrorMessage => $_getN(0); + PlaintextContent_DecryptionErrorMessage get decryptionErrorMessage => + $_getN(0); @$pb.TagNumber(1) - set decryptionErrorMessage(PlaintextContent_DecryptionErrorMessage v) { setField(1, v); } + set decryptionErrorMessage(PlaintextContent_DecryptionErrorMessage value) => + $_setField(1, value); @$pb.TagNumber(1) $core.bool hasDecryptionErrorMessage() => $_has(0); @$pb.TagNumber(1) - void clearDecryptionErrorMessage() => clearField(1); + void clearDecryptionErrorMessage() => $_clearField(1); @$pb.TagNumber(1) - PlaintextContent_DecryptionErrorMessage ensureDecryptionErrorMessage() => $_ensure(0); + PlaintextContent_DecryptionErrorMessage ensureDecryptionErrorMessage() => + $_ensure(0); @$pb.TagNumber(2) PlaintextContent_RetryErrorMessage get retryControlError => $_getN(1); @$pb.TagNumber(2) - set retryControlError(PlaintextContent_RetryErrorMessage v) { setField(2, v); } + set retryControlError(PlaintextContent_RetryErrorMessage value) => + $_setField(2, value); @$pb.TagNumber(2) $core.bool hasRetryControlError() => $_has(1); @$pb.TagNumber(2) - void clearRetryControlError() => clearField(2); + void clearRetryControlError() => $_clearField(2); @$pb.TagNumber(2) PlaintextContent_RetryErrorMessage ensureRetryControlError() => $_ensure(1); } @@ -267,146 +316,180 @@ class EncryptedContent_GroupCreate extends $pb.GeneratedMessage { $core.List<$core.int>? stateKey, $core.List<$core.int>? groupPublicKey, }) { - final $result = create(); - if (stateKey != null) { - $result.stateKey = stateKey; - } - if (groupPublicKey != null) { - $result.groupPublicKey = groupPublicKey; - } - return $result; + final result = create(); + if (stateKey != null) result.stateKey = stateKey; + if (groupPublicKey != null) result.groupPublicKey = groupPublicKey; + return result; } - EncryptedContent_GroupCreate._() : super(); - factory EncryptedContent_GroupCreate.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory EncryptedContent_GroupCreate.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EncryptedContent.GroupCreate', createEmptyInstance: create) - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'stateKey', $pb.PbFieldType.OY, protoName: 'stateKey') - ..a<$core.List<$core.int>>(4, _omitFieldNames ? '' : 'groupPublicKey', $pb.PbFieldType.OY, protoName: 'groupPublicKey') - ..hasRequiredFields = false - ; + EncryptedContent_GroupCreate._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - EncryptedContent_GroupCreate clone() => EncryptedContent_GroupCreate()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - EncryptedContent_GroupCreate copyWith(void Function(EncryptedContent_GroupCreate) updates) => super.copyWith((message) => updates(message as EncryptedContent_GroupCreate)) as EncryptedContent_GroupCreate; + factory EncryptedContent_GroupCreate.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory EncryptedContent_GroupCreate.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EncryptedContent.GroupCreate', + createEmptyInstance: create) + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'stateKey', $pb.PbFieldType.OY, + protoName: 'stateKey') + ..a<$core.List<$core.int>>( + 4, _omitFieldNames ? '' : 'groupPublicKey', $pb.PbFieldType.OY, + protoName: 'groupPublicKey') + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_GroupCreate clone() => + EncryptedContent_GroupCreate()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_GroupCreate copyWith( + void Function(EncryptedContent_GroupCreate) updates) => + super.copyWith( + (message) => updates(message as EncryptedContent_GroupCreate)) + as EncryptedContent_GroupCreate; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static EncryptedContent_GroupCreate create() => EncryptedContent_GroupCreate._(); + static EncryptedContent_GroupCreate create() => + EncryptedContent_GroupCreate._(); + @$core.override EncryptedContent_GroupCreate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static EncryptedContent_GroupCreate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static EncryptedContent_GroupCreate getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static EncryptedContent_GroupCreate? _defaultInstance; /// key for the state stored on the server @$pb.TagNumber(3) $core.List<$core.int> get stateKey => $_getN(0); @$pb.TagNumber(3) - set stateKey($core.List<$core.int> v) { $_setBytes(0, v); } + set stateKey($core.List<$core.int> value) => $_setBytes(0, value); @$pb.TagNumber(3) $core.bool hasStateKey() => $_has(0); @$pb.TagNumber(3) - void clearStateKey() => clearField(3); + void clearStateKey() => $_clearField(3); @$pb.TagNumber(4) $core.List<$core.int> get groupPublicKey => $_getN(1); @$pb.TagNumber(4) - set groupPublicKey($core.List<$core.int> v) { $_setBytes(1, v); } + set groupPublicKey($core.List<$core.int> value) => $_setBytes(1, value); @$pb.TagNumber(4) $core.bool hasGroupPublicKey() => $_has(1); @$pb.TagNumber(4) - void clearGroupPublicKey() => clearField(4); + void clearGroupPublicKey() => $_clearField(4); } class EncryptedContent_GroupJoin extends $pb.GeneratedMessage { factory EncryptedContent_GroupJoin({ $core.List<$core.int>? groupPublicKey, }) { - final $result = create(); - if (groupPublicKey != null) { - $result.groupPublicKey = groupPublicKey; - } - return $result; + final result = create(); + if (groupPublicKey != null) result.groupPublicKey = groupPublicKey; + return result; } - EncryptedContent_GroupJoin._() : super(); - factory EncryptedContent_GroupJoin.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory EncryptedContent_GroupJoin.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EncryptedContent.GroupJoin', createEmptyInstance: create) - ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'groupPublicKey', $pb.PbFieldType.OY, protoName: 'groupPublicKey') - ..hasRequiredFields = false - ; + EncryptedContent_GroupJoin._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - EncryptedContent_GroupJoin clone() => EncryptedContent_GroupJoin()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - EncryptedContent_GroupJoin copyWith(void Function(EncryptedContent_GroupJoin) updates) => super.copyWith((message) => updates(message as EncryptedContent_GroupJoin)) as EncryptedContent_GroupJoin; + factory EncryptedContent_GroupJoin.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory EncryptedContent_GroupJoin.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EncryptedContent.GroupJoin', + createEmptyInstance: create) + ..a<$core.List<$core.int>>( + 1, _omitFieldNames ? '' : 'groupPublicKey', $pb.PbFieldType.OY, + protoName: 'groupPublicKey') + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_GroupJoin clone() => + EncryptedContent_GroupJoin()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_GroupJoin copyWith( + void Function(EncryptedContent_GroupJoin) updates) => + super.copyWith( + (message) => updates(message as EncryptedContent_GroupJoin)) + as EncryptedContent_GroupJoin; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static EncryptedContent_GroupJoin create() => EncryptedContent_GroupJoin._(); + @$core.override EncryptedContent_GroupJoin createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static EncryptedContent_GroupJoin getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static EncryptedContent_GroupJoin getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static EncryptedContent_GroupJoin? _defaultInstance; /// key for the state stored on the server @$pb.TagNumber(1) $core.List<$core.int> get groupPublicKey => $_getN(0); @$pb.TagNumber(1) - set groupPublicKey($core.List<$core.int> v) { $_setBytes(0, v); } + set groupPublicKey($core.List<$core.int> value) => $_setBytes(0, value); @$pb.TagNumber(1) $core.bool hasGroupPublicKey() => $_has(0); @$pb.TagNumber(1) - void clearGroupPublicKey() => clearField(1); + void clearGroupPublicKey() => $_clearField(1); } class EncryptedContent_ResendGroupPublicKey extends $pb.GeneratedMessage { factory EncryptedContent_ResendGroupPublicKey() => create(); - EncryptedContent_ResendGroupPublicKey._() : super(); - factory EncryptedContent_ResendGroupPublicKey.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory EncryptedContent_ResendGroupPublicKey.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EncryptedContent.ResendGroupPublicKey', createEmptyInstance: create) - ..hasRequiredFields = false - ; + EncryptedContent_ResendGroupPublicKey._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - EncryptedContent_ResendGroupPublicKey clone() => EncryptedContent_ResendGroupPublicKey()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - EncryptedContent_ResendGroupPublicKey copyWith(void Function(EncryptedContent_ResendGroupPublicKey) updates) => super.copyWith((message) => updates(message as EncryptedContent_ResendGroupPublicKey)) as EncryptedContent_ResendGroupPublicKey; + factory EncryptedContent_ResendGroupPublicKey.fromBuffer( + $core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory EncryptedContent_ResendGroupPublicKey.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EncryptedContent.ResendGroupPublicKey', + createEmptyInstance: create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_ResendGroupPublicKey clone() => + EncryptedContent_ResendGroupPublicKey()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_ResendGroupPublicKey copyWith( + void Function(EncryptedContent_ResendGroupPublicKey) updates) => + super.copyWith((message) => + updates(message as EncryptedContent_ResendGroupPublicKey)) + as EncryptedContent_ResendGroupPublicKey; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static EncryptedContent_ResendGroupPublicKey create() => EncryptedContent_ResendGroupPublicKey._(); + static EncryptedContent_ResendGroupPublicKey create() => + EncryptedContent_ResendGroupPublicKey._(); + @$core.override EncryptedContent_ResendGroupPublicKey createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static EncryptedContent_ResendGroupPublicKey getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static EncryptedContent_ResendGroupPublicKey getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< + EncryptedContent_ResendGroupPublicKey>(create); static EncryptedContent_ResendGroupPublicKey? _defaultInstance; } @@ -417,89 +500,98 @@ class EncryptedContent_GroupUpdate extends $pb.GeneratedMessage { $core.String? newGroupName, $fixnum.Int64? newDeleteMessagesAfterMilliseconds, }) { - final $result = create(); - if (groupActionType != null) { - $result.groupActionType = groupActionType; - } - if (affectedContactId != null) { - $result.affectedContactId = affectedContactId; - } - if (newGroupName != null) { - $result.newGroupName = newGroupName; - } - if (newDeleteMessagesAfterMilliseconds != null) { - $result.newDeleteMessagesAfterMilliseconds = newDeleteMessagesAfterMilliseconds; - } - return $result; + final result = create(); + if (groupActionType != null) result.groupActionType = groupActionType; + if (affectedContactId != null) result.affectedContactId = affectedContactId; + if (newGroupName != null) result.newGroupName = newGroupName; + if (newDeleteMessagesAfterMilliseconds != null) + result.newDeleteMessagesAfterMilliseconds = + newDeleteMessagesAfterMilliseconds; + return result; } - EncryptedContent_GroupUpdate._() : super(); - factory EncryptedContent_GroupUpdate.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory EncryptedContent_GroupUpdate.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EncryptedContent.GroupUpdate', createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'groupActionType', protoName: 'groupActionType') - ..aInt64(2, _omitFieldNames ? '' : 'affectedContactId', protoName: 'affectedContactId') + EncryptedContent_GroupUpdate._(); + + factory EncryptedContent_GroupUpdate.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory EncryptedContent_GroupUpdate.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EncryptedContent.GroupUpdate', + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'groupActionType', + protoName: 'groupActionType') + ..aInt64(2, _omitFieldNames ? '' : 'affectedContactId', + protoName: 'affectedContactId') ..aOS(3, _omitFieldNames ? '' : 'newGroupName', protoName: 'newGroupName') - ..aInt64(4, _omitFieldNames ? '' : 'newDeleteMessagesAfterMilliseconds', protoName: 'newDeleteMessagesAfterMilliseconds') - ..hasRequiredFields = false - ; + ..aInt64(4, _omitFieldNames ? '' : 'newDeleteMessagesAfterMilliseconds', + protoName: 'newDeleteMessagesAfterMilliseconds') + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - EncryptedContent_GroupUpdate clone() => EncryptedContent_GroupUpdate()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - EncryptedContent_GroupUpdate copyWith(void Function(EncryptedContent_GroupUpdate) updates) => super.copyWith((message) => updates(message as EncryptedContent_GroupUpdate)) as EncryptedContent_GroupUpdate; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_GroupUpdate clone() => + EncryptedContent_GroupUpdate()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_GroupUpdate copyWith( + void Function(EncryptedContent_GroupUpdate) updates) => + super.copyWith( + (message) => updates(message as EncryptedContent_GroupUpdate)) + as EncryptedContent_GroupUpdate; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static EncryptedContent_GroupUpdate create() => EncryptedContent_GroupUpdate._(); + static EncryptedContent_GroupUpdate create() => + EncryptedContent_GroupUpdate._(); + @$core.override EncryptedContent_GroupUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static EncryptedContent_GroupUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static EncryptedContent_GroupUpdate getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static EncryptedContent_GroupUpdate? _defaultInstance; @$pb.TagNumber(1) $core.String get groupActionType => $_getSZ(0); @$pb.TagNumber(1) - set groupActionType($core.String v) { $_setString(0, v); } + set groupActionType($core.String value) => $_setString(0, value); @$pb.TagNumber(1) $core.bool hasGroupActionType() => $_has(0); @$pb.TagNumber(1) - void clearGroupActionType() => clearField(1); + void clearGroupActionType() => $_clearField(1); @$pb.TagNumber(2) $fixnum.Int64 get affectedContactId => $_getI64(1); @$pb.TagNumber(2) - set affectedContactId($fixnum.Int64 v) { $_setInt64(1, v); } + set affectedContactId($fixnum.Int64 value) => $_setInt64(1, value); @$pb.TagNumber(2) $core.bool hasAffectedContactId() => $_has(1); @$pb.TagNumber(2) - void clearAffectedContactId() => clearField(2); + void clearAffectedContactId() => $_clearField(2); @$pb.TagNumber(3) $core.String get newGroupName => $_getSZ(2); @$pb.TagNumber(3) - set newGroupName($core.String v) { $_setString(2, v); } + set newGroupName($core.String value) => $_setString(2, value); @$pb.TagNumber(3) $core.bool hasNewGroupName() => $_has(2); @$pb.TagNumber(3) - void clearNewGroupName() => clearField(3); + void clearNewGroupName() => $_clearField(3); @$pb.TagNumber(4) $fixnum.Int64 get newDeleteMessagesAfterMilliseconds => $_getI64(3); @$pb.TagNumber(4) - set newDeleteMessagesAfterMilliseconds($fixnum.Int64 v) { $_setInt64(3, v); } + set newDeleteMessagesAfterMilliseconds($fixnum.Int64 value) => + $_setInt64(3, value); @$pb.TagNumber(4) $core.bool hasNewDeleteMessagesAfterMilliseconds() => $_has(3); @$pb.TagNumber(4) - void clearNewDeleteMessagesAfterMilliseconds() => clearField(4); + void clearNewDeleteMessagesAfterMilliseconds() => $_clearField(4); } class EncryptedContent_TextMessage extends $pb.GeneratedMessage { @@ -509,89 +601,94 @@ class EncryptedContent_TextMessage extends $pb.GeneratedMessage { $fixnum.Int64? timestamp, $core.String? quoteMessageId, }) { - final $result = create(); - if (senderMessageId != null) { - $result.senderMessageId = senderMessageId; - } - if (text != null) { - $result.text = text; - } - if (timestamp != null) { - $result.timestamp = timestamp; - } - if (quoteMessageId != null) { - $result.quoteMessageId = quoteMessageId; - } - return $result; + final result = create(); + if (senderMessageId != null) result.senderMessageId = senderMessageId; + if (text != null) result.text = text; + if (timestamp != null) result.timestamp = timestamp; + if (quoteMessageId != null) result.quoteMessageId = quoteMessageId; + return result; } - EncryptedContent_TextMessage._() : super(); - factory EncryptedContent_TextMessage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory EncryptedContent_TextMessage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EncryptedContent.TextMessage', createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'senderMessageId', protoName: 'senderMessageId') + EncryptedContent_TextMessage._(); + + factory EncryptedContent_TextMessage.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory EncryptedContent_TextMessage.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EncryptedContent.TextMessage', + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'senderMessageId', + protoName: 'senderMessageId') ..aOS(2, _omitFieldNames ? '' : 'text') ..aInt64(3, _omitFieldNames ? '' : 'timestamp') - ..aOS(4, _omitFieldNames ? '' : 'quoteMessageId', protoName: 'quoteMessageId') - ..hasRequiredFields = false - ; + ..aOS(4, _omitFieldNames ? '' : 'quoteMessageId', + protoName: 'quoteMessageId') + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - EncryptedContent_TextMessage clone() => EncryptedContent_TextMessage()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - EncryptedContent_TextMessage copyWith(void Function(EncryptedContent_TextMessage) updates) => super.copyWith((message) => updates(message as EncryptedContent_TextMessage)) as EncryptedContent_TextMessage; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_TextMessage clone() => + EncryptedContent_TextMessage()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_TextMessage copyWith( + void Function(EncryptedContent_TextMessage) updates) => + super.copyWith( + (message) => updates(message as EncryptedContent_TextMessage)) + as EncryptedContent_TextMessage; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static EncryptedContent_TextMessage create() => EncryptedContent_TextMessage._(); + static EncryptedContent_TextMessage create() => + EncryptedContent_TextMessage._(); + @$core.override EncryptedContent_TextMessage createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static EncryptedContent_TextMessage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static EncryptedContent_TextMessage getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static EncryptedContent_TextMessage? _defaultInstance; @$pb.TagNumber(1) $core.String get senderMessageId => $_getSZ(0); @$pb.TagNumber(1) - set senderMessageId($core.String v) { $_setString(0, v); } + set senderMessageId($core.String value) => $_setString(0, value); @$pb.TagNumber(1) $core.bool hasSenderMessageId() => $_has(0); @$pb.TagNumber(1) - void clearSenderMessageId() => clearField(1); + void clearSenderMessageId() => $_clearField(1); @$pb.TagNumber(2) $core.String get text => $_getSZ(1); @$pb.TagNumber(2) - set text($core.String v) { $_setString(1, v); } + set text($core.String value) => $_setString(1, value); @$pb.TagNumber(2) $core.bool hasText() => $_has(1); @$pb.TagNumber(2) - void clearText() => clearField(2); + void clearText() => $_clearField(2); @$pb.TagNumber(3) $fixnum.Int64 get timestamp => $_getI64(2); @$pb.TagNumber(3) - set timestamp($fixnum.Int64 v) { $_setInt64(2, v); } + set timestamp($fixnum.Int64 value) => $_setInt64(2, value); @$pb.TagNumber(3) $core.bool hasTimestamp() => $_has(2); @$pb.TagNumber(3) - void clearTimestamp() => clearField(3); + void clearTimestamp() => $_clearField(3); @$pb.TagNumber(4) $core.String get quoteMessageId => $_getSZ(3); @$pb.TagNumber(4) - set quoteMessageId($core.String v) { $_setString(3, v); } + set quoteMessageId($core.String value) => $_setString(3, value); @$pb.TagNumber(4) $core.bool hasQuoteMessageId() => $_has(3); @$pb.TagNumber(4) - void clearQuoteMessageId() => clearField(4); + void clearQuoteMessageId() => $_clearField(4); } class EncryptedContent_Reaction extends $pb.GeneratedMessage { @@ -600,76 +697,80 @@ class EncryptedContent_Reaction extends $pb.GeneratedMessage { $core.String? emoji, $core.bool? remove, }) { - final $result = create(); - if (targetMessageId != null) { - $result.targetMessageId = targetMessageId; - } - if (emoji != null) { - $result.emoji = emoji; - } - if (remove != null) { - $result.remove = remove; - } - return $result; + final result = create(); + if (targetMessageId != null) result.targetMessageId = targetMessageId; + if (emoji != null) result.emoji = emoji; + if (remove != null) result.remove = remove; + return result; } - EncryptedContent_Reaction._() : super(); - factory EncryptedContent_Reaction.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory EncryptedContent_Reaction.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EncryptedContent.Reaction', createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'targetMessageId', protoName: 'targetMessageId') + EncryptedContent_Reaction._(); + + factory EncryptedContent_Reaction.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory EncryptedContent_Reaction.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EncryptedContent.Reaction', + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'targetMessageId', + protoName: 'targetMessageId') ..aOS(2, _omitFieldNames ? '' : 'emoji') ..aOB(3, _omitFieldNames ? '' : 'remove') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - EncryptedContent_Reaction clone() => EncryptedContent_Reaction()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - EncryptedContent_Reaction copyWith(void Function(EncryptedContent_Reaction) updates) => super.copyWith((message) => updates(message as EncryptedContent_Reaction)) as EncryptedContent_Reaction; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_Reaction clone() => + EncryptedContent_Reaction()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_Reaction copyWith( + void Function(EncryptedContent_Reaction) updates) => + super.copyWith((message) => updates(message as EncryptedContent_Reaction)) + as EncryptedContent_Reaction; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static EncryptedContent_Reaction create() => EncryptedContent_Reaction._(); + @$core.override EncryptedContent_Reaction createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static EncryptedContent_Reaction getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static EncryptedContent_Reaction getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static EncryptedContent_Reaction? _defaultInstance; @$pb.TagNumber(1) $core.String get targetMessageId => $_getSZ(0); @$pb.TagNumber(1) - set targetMessageId($core.String v) { $_setString(0, v); } + set targetMessageId($core.String value) => $_setString(0, value); @$pb.TagNumber(1) $core.bool hasTargetMessageId() => $_has(0); @$pb.TagNumber(1) - void clearTargetMessageId() => clearField(1); + void clearTargetMessageId() => $_clearField(1); @$pb.TagNumber(2) $core.String get emoji => $_getSZ(1); @$pb.TagNumber(2) - set emoji($core.String v) { $_setString(1, v); } + set emoji($core.String value) => $_setString(1, value); @$pb.TagNumber(2) $core.bool hasEmoji() => $_has(1); @$pb.TagNumber(2) - void clearEmoji() => clearField(2); + void clearEmoji() => $_clearField(2); @$pb.TagNumber(3) $core.bool get remove => $_getBF(2); @$pb.TagNumber(3) - set remove($core.bool v) { $_setBool(2, v); } + set remove($core.bool value) => $_setBool(2, value); @$pb.TagNumber(3) $core.bool hasRemove() => $_has(2); @$pb.TagNumber(3) - void clearRemove() => clearField(3); + void clearRemove() => $_clearField(3); } class EncryptedContent_MessageUpdate extends $pb.GeneratedMessage { @@ -680,96 +781,104 @@ class EncryptedContent_MessageUpdate extends $pb.GeneratedMessage { $core.String? text, $fixnum.Int64? timestamp, }) { - final $result = create(); - if (type != null) { - $result.type = type; - } - if (senderMessageId != null) { - $result.senderMessageId = senderMessageId; - } - if (multipleTargetMessageIds != null) { - $result.multipleTargetMessageIds.addAll(multipleTargetMessageIds); - } - if (text != null) { - $result.text = text; - } - if (timestamp != null) { - $result.timestamp = timestamp; - } - return $result; + final result = create(); + if (type != null) result.type = type; + if (senderMessageId != null) result.senderMessageId = senderMessageId; + if (multipleTargetMessageIds != null) + result.multipleTargetMessageIds.addAll(multipleTargetMessageIds); + if (text != null) result.text = text; + if (timestamp != null) result.timestamp = timestamp; + return result; } - EncryptedContent_MessageUpdate._() : super(); - factory EncryptedContent_MessageUpdate.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory EncryptedContent_MessageUpdate.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EncryptedContent.MessageUpdate', createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: EncryptedContent_MessageUpdate_Type.DELETE, valueOf: EncryptedContent_MessageUpdate_Type.valueOf, enumValues: EncryptedContent_MessageUpdate_Type.values) - ..aOS(2, _omitFieldNames ? '' : 'senderMessageId', protoName: 'senderMessageId') - ..pPS(3, _omitFieldNames ? '' : 'multipleTargetMessageIds', protoName: 'multipleTargetMessageIds') + EncryptedContent_MessageUpdate._(); + + factory EncryptedContent_MessageUpdate.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory EncryptedContent_MessageUpdate.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EncryptedContent.MessageUpdate', + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, + defaultOrMaker: EncryptedContent_MessageUpdate_Type.DELETE, + valueOf: EncryptedContent_MessageUpdate_Type.valueOf, + enumValues: EncryptedContent_MessageUpdate_Type.values) + ..aOS(2, _omitFieldNames ? '' : 'senderMessageId', + protoName: 'senderMessageId') + ..pPS(3, _omitFieldNames ? '' : 'multipleTargetMessageIds', + protoName: 'multipleTargetMessageIds') ..aOS(4, _omitFieldNames ? '' : 'text') ..aInt64(5, _omitFieldNames ? '' : 'timestamp') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - EncryptedContent_MessageUpdate clone() => EncryptedContent_MessageUpdate()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - EncryptedContent_MessageUpdate copyWith(void Function(EncryptedContent_MessageUpdate) updates) => super.copyWith((message) => updates(message as EncryptedContent_MessageUpdate)) as EncryptedContent_MessageUpdate; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_MessageUpdate clone() => + EncryptedContent_MessageUpdate()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_MessageUpdate copyWith( + void Function(EncryptedContent_MessageUpdate) updates) => + super.copyWith( + (message) => updates(message as EncryptedContent_MessageUpdate)) + as EncryptedContent_MessageUpdate; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static EncryptedContent_MessageUpdate create() => EncryptedContent_MessageUpdate._(); + static EncryptedContent_MessageUpdate create() => + EncryptedContent_MessageUpdate._(); + @$core.override EncryptedContent_MessageUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static EncryptedContent_MessageUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static EncryptedContent_MessageUpdate getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static EncryptedContent_MessageUpdate? _defaultInstance; @$pb.TagNumber(1) EncryptedContent_MessageUpdate_Type get type => $_getN(0); @$pb.TagNumber(1) - set type(EncryptedContent_MessageUpdate_Type v) { setField(1, v); } + set type(EncryptedContent_MessageUpdate_Type value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasType() => $_has(0); @$pb.TagNumber(1) - void clearType() => clearField(1); + void clearType() => $_clearField(1); @$pb.TagNumber(2) $core.String get senderMessageId => $_getSZ(1); @$pb.TagNumber(2) - set senderMessageId($core.String v) { $_setString(1, v); } + set senderMessageId($core.String value) => $_setString(1, value); @$pb.TagNumber(2) $core.bool hasSenderMessageId() => $_has(1); @$pb.TagNumber(2) - void clearSenderMessageId() => clearField(2); + void clearSenderMessageId() => $_clearField(2); @$pb.TagNumber(3) - $core.List<$core.String> get multipleTargetMessageIds => $_getList(2); + $pb.PbList<$core.String> get multipleTargetMessageIds => $_getList(2); @$pb.TagNumber(4) $core.String get text => $_getSZ(3); @$pb.TagNumber(4) - set text($core.String v) { $_setString(3, v); } + set text($core.String value) => $_setString(3, value); @$pb.TagNumber(4) $core.bool hasText() => $_has(3); @$pb.TagNumber(4) - void clearText() => clearField(4); + void clearText() => $_clearField(4); @$pb.TagNumber(5) $fixnum.Int64 get timestamp => $_getI64(4); @$pb.TagNumber(5) - set timestamp($fixnum.Int64 v) { $_setInt64(4, v); } + set timestamp($fixnum.Int64 value) => $_setInt64(4, value); @$pb.TagNumber(5) $core.bool hasTimestamp() => $_has(4); @$pb.TagNumber(5) - void clearTimestamp() => clearField(5); + void clearTimestamp() => $_clearField(5); } class EncryptedContent_Media extends $pb.GeneratedMessage { @@ -785,167 +894,174 @@ class EncryptedContent_Media extends $pb.GeneratedMessage { $core.List<$core.int>? encryptionMac, $core.List<$core.int>? encryptionNonce, }) { - final $result = create(); - if (senderMessageId != null) { - $result.senderMessageId = senderMessageId; - } - if (type != null) { - $result.type = type; - } - if (displayLimitInMilliseconds != null) { - $result.displayLimitInMilliseconds = displayLimitInMilliseconds; - } - if (requiresAuthentication != null) { - $result.requiresAuthentication = requiresAuthentication; - } - if (timestamp != null) { - $result.timestamp = timestamp; - } - if (quoteMessageId != null) { - $result.quoteMessageId = quoteMessageId; - } - if (downloadToken != null) { - $result.downloadToken = downloadToken; - } - if (encryptionKey != null) { - $result.encryptionKey = encryptionKey; - } - if (encryptionMac != null) { - $result.encryptionMac = encryptionMac; - } - if (encryptionNonce != null) { - $result.encryptionNonce = encryptionNonce; - } - return $result; + final result = create(); + if (senderMessageId != null) result.senderMessageId = senderMessageId; + if (type != null) result.type = type; + if (displayLimitInMilliseconds != null) + result.displayLimitInMilliseconds = displayLimitInMilliseconds; + if (requiresAuthentication != null) + result.requiresAuthentication = requiresAuthentication; + if (timestamp != null) result.timestamp = timestamp; + if (quoteMessageId != null) result.quoteMessageId = quoteMessageId; + if (downloadToken != null) result.downloadToken = downloadToken; + if (encryptionKey != null) result.encryptionKey = encryptionKey; + if (encryptionMac != null) result.encryptionMac = encryptionMac; + if (encryptionNonce != null) result.encryptionNonce = encryptionNonce; + return result; } - EncryptedContent_Media._() : super(); - factory EncryptedContent_Media.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory EncryptedContent_Media.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EncryptedContent.Media', createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'senderMessageId', protoName: 'senderMessageId') - ..e(2, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: EncryptedContent_Media_Type.REUPLOAD, valueOf: EncryptedContent_Media_Type.valueOf, enumValues: EncryptedContent_Media_Type.values) - ..aInt64(3, _omitFieldNames ? '' : 'displayLimitInMilliseconds', protoName: 'displayLimitInMilliseconds') - ..aOB(4, _omitFieldNames ? '' : 'requiresAuthentication', protoName: 'requiresAuthentication') + EncryptedContent_Media._(); + + factory EncryptedContent_Media.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory EncryptedContent_Media.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EncryptedContent.Media', + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'senderMessageId', + protoName: 'senderMessageId') + ..e( + 2, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, + defaultOrMaker: EncryptedContent_Media_Type.REUPLOAD, + valueOf: EncryptedContent_Media_Type.valueOf, + enumValues: EncryptedContent_Media_Type.values) + ..aInt64(3, _omitFieldNames ? '' : 'displayLimitInMilliseconds', + protoName: 'displayLimitInMilliseconds') + ..aOB(4, _omitFieldNames ? '' : 'requiresAuthentication', + protoName: 'requiresAuthentication') ..aInt64(5, _omitFieldNames ? '' : 'timestamp') - ..aOS(6, _omitFieldNames ? '' : 'quoteMessageId', protoName: 'quoteMessageId') - ..a<$core.List<$core.int>>(7, _omitFieldNames ? '' : 'downloadToken', $pb.PbFieldType.OY, protoName: 'downloadToken') - ..a<$core.List<$core.int>>(8, _omitFieldNames ? '' : 'encryptionKey', $pb.PbFieldType.OY, protoName: 'encryptionKey') - ..a<$core.List<$core.int>>(9, _omitFieldNames ? '' : 'encryptionMac', $pb.PbFieldType.OY, protoName: 'encryptionMac') - ..a<$core.List<$core.int>>(10, _omitFieldNames ? '' : 'encryptionNonce', $pb.PbFieldType.OY, protoName: 'encryptionNonce') - ..hasRequiredFields = false - ; + ..aOS(6, _omitFieldNames ? '' : 'quoteMessageId', + protoName: 'quoteMessageId') + ..a<$core.List<$core.int>>( + 7, _omitFieldNames ? '' : 'downloadToken', $pb.PbFieldType.OY, + protoName: 'downloadToken') + ..a<$core.List<$core.int>>( + 8, _omitFieldNames ? '' : 'encryptionKey', $pb.PbFieldType.OY, + protoName: 'encryptionKey') + ..a<$core.List<$core.int>>( + 9, _omitFieldNames ? '' : 'encryptionMac', $pb.PbFieldType.OY, + protoName: 'encryptionMac') + ..a<$core.List<$core.int>>( + 10, _omitFieldNames ? '' : 'encryptionNonce', $pb.PbFieldType.OY, + protoName: 'encryptionNonce') + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - EncryptedContent_Media clone() => EncryptedContent_Media()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - EncryptedContent_Media copyWith(void Function(EncryptedContent_Media) updates) => super.copyWith((message) => updates(message as EncryptedContent_Media)) as EncryptedContent_Media; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_Media clone() => + EncryptedContent_Media()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_Media copyWith( + void Function(EncryptedContent_Media) updates) => + super.copyWith((message) => updates(message as EncryptedContent_Media)) + as EncryptedContent_Media; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static EncryptedContent_Media create() => EncryptedContent_Media._(); + @$core.override EncryptedContent_Media createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static EncryptedContent_Media getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static EncryptedContent_Media getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static EncryptedContent_Media? _defaultInstance; @$pb.TagNumber(1) $core.String get senderMessageId => $_getSZ(0); @$pb.TagNumber(1) - set senderMessageId($core.String v) { $_setString(0, v); } + set senderMessageId($core.String value) => $_setString(0, value); @$pb.TagNumber(1) $core.bool hasSenderMessageId() => $_has(0); @$pb.TagNumber(1) - void clearSenderMessageId() => clearField(1); + void clearSenderMessageId() => $_clearField(1); @$pb.TagNumber(2) EncryptedContent_Media_Type get type => $_getN(1); @$pb.TagNumber(2) - set type(EncryptedContent_Media_Type v) { setField(2, v); } + set type(EncryptedContent_Media_Type value) => $_setField(2, value); @$pb.TagNumber(2) $core.bool hasType() => $_has(1); @$pb.TagNumber(2) - void clearType() => clearField(2); + void clearType() => $_clearField(2); @$pb.TagNumber(3) $fixnum.Int64 get displayLimitInMilliseconds => $_getI64(2); @$pb.TagNumber(3) - set displayLimitInMilliseconds($fixnum.Int64 v) { $_setInt64(2, v); } + set displayLimitInMilliseconds($fixnum.Int64 value) => $_setInt64(2, value); @$pb.TagNumber(3) $core.bool hasDisplayLimitInMilliseconds() => $_has(2); @$pb.TagNumber(3) - void clearDisplayLimitInMilliseconds() => clearField(3); + void clearDisplayLimitInMilliseconds() => $_clearField(3); @$pb.TagNumber(4) $core.bool get requiresAuthentication => $_getBF(3); @$pb.TagNumber(4) - set requiresAuthentication($core.bool v) { $_setBool(3, v); } + set requiresAuthentication($core.bool value) => $_setBool(3, value); @$pb.TagNumber(4) $core.bool hasRequiresAuthentication() => $_has(3); @$pb.TagNumber(4) - void clearRequiresAuthentication() => clearField(4); + void clearRequiresAuthentication() => $_clearField(4); @$pb.TagNumber(5) $fixnum.Int64 get timestamp => $_getI64(4); @$pb.TagNumber(5) - set timestamp($fixnum.Int64 v) { $_setInt64(4, v); } + set timestamp($fixnum.Int64 value) => $_setInt64(4, value); @$pb.TagNumber(5) $core.bool hasTimestamp() => $_has(4); @$pb.TagNumber(5) - void clearTimestamp() => clearField(5); + void clearTimestamp() => $_clearField(5); @$pb.TagNumber(6) $core.String get quoteMessageId => $_getSZ(5); @$pb.TagNumber(6) - set quoteMessageId($core.String v) { $_setString(5, v); } + set quoteMessageId($core.String value) => $_setString(5, value); @$pb.TagNumber(6) $core.bool hasQuoteMessageId() => $_has(5); @$pb.TagNumber(6) - void clearQuoteMessageId() => clearField(6); + void clearQuoteMessageId() => $_clearField(6); @$pb.TagNumber(7) $core.List<$core.int> get downloadToken => $_getN(6); @$pb.TagNumber(7) - set downloadToken($core.List<$core.int> v) { $_setBytes(6, v); } + set downloadToken($core.List<$core.int> value) => $_setBytes(6, value); @$pb.TagNumber(7) $core.bool hasDownloadToken() => $_has(6); @$pb.TagNumber(7) - void clearDownloadToken() => clearField(7); + void clearDownloadToken() => $_clearField(7); @$pb.TagNumber(8) $core.List<$core.int> get encryptionKey => $_getN(7); @$pb.TagNumber(8) - set encryptionKey($core.List<$core.int> v) { $_setBytes(7, v); } + set encryptionKey($core.List<$core.int> value) => $_setBytes(7, value); @$pb.TagNumber(8) $core.bool hasEncryptionKey() => $_has(7); @$pb.TagNumber(8) - void clearEncryptionKey() => clearField(8); + void clearEncryptionKey() => $_clearField(8); @$pb.TagNumber(9) $core.List<$core.int> get encryptionMac => $_getN(8); @$pb.TagNumber(9) - set encryptionMac($core.List<$core.int> v) { $_setBytes(8, v); } + set encryptionMac($core.List<$core.int> value) => $_setBytes(8, value); @$pb.TagNumber(9) $core.bool hasEncryptionMac() => $_has(8); @$pb.TagNumber(9) - void clearEncryptionMac() => clearField(9); + void clearEncryptionMac() => $_clearField(9); @$pb.TagNumber(10) $core.List<$core.int> get encryptionNonce => $_getN(9); @$pb.TagNumber(10) - set encryptionNonce($core.List<$core.int> v) { $_setBytes(9, v); } + set encryptionNonce($core.List<$core.int> value) => $_setBytes(9, value); @$pb.TagNumber(10) $core.bool hasEncryptionNonce() => $_has(9); @$pb.TagNumber(10) - void clearEncryptionNonce() => clearField(10); + void clearEncryptionNonce() => $_clearField(10); } class EncryptedContent_MediaUpdate extends $pb.GeneratedMessage { @@ -953,113 +1069,139 @@ class EncryptedContent_MediaUpdate extends $pb.GeneratedMessage { EncryptedContent_MediaUpdate_Type? type, $core.String? targetMessageId, }) { - final $result = create(); - if (type != null) { - $result.type = type; - } - if (targetMessageId != null) { - $result.targetMessageId = targetMessageId; - } - return $result; + final result = create(); + if (type != null) result.type = type; + if (targetMessageId != null) result.targetMessageId = targetMessageId; + return result; } - EncryptedContent_MediaUpdate._() : super(); - factory EncryptedContent_MediaUpdate.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory EncryptedContent_MediaUpdate.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EncryptedContent.MediaUpdate', createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: EncryptedContent_MediaUpdate_Type.REOPENED, valueOf: EncryptedContent_MediaUpdate_Type.valueOf, enumValues: EncryptedContent_MediaUpdate_Type.values) - ..aOS(2, _omitFieldNames ? '' : 'targetMessageId', protoName: 'targetMessageId') - ..hasRequiredFields = false - ; + EncryptedContent_MediaUpdate._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - EncryptedContent_MediaUpdate clone() => EncryptedContent_MediaUpdate()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - EncryptedContent_MediaUpdate copyWith(void Function(EncryptedContent_MediaUpdate) updates) => super.copyWith((message) => updates(message as EncryptedContent_MediaUpdate)) as EncryptedContent_MediaUpdate; + factory EncryptedContent_MediaUpdate.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory EncryptedContent_MediaUpdate.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EncryptedContent.MediaUpdate', + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, + defaultOrMaker: EncryptedContent_MediaUpdate_Type.REOPENED, + valueOf: EncryptedContent_MediaUpdate_Type.valueOf, + enumValues: EncryptedContent_MediaUpdate_Type.values) + ..aOS(2, _omitFieldNames ? '' : 'targetMessageId', + protoName: 'targetMessageId') + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_MediaUpdate clone() => + EncryptedContent_MediaUpdate()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_MediaUpdate copyWith( + void Function(EncryptedContent_MediaUpdate) updates) => + super.copyWith( + (message) => updates(message as EncryptedContent_MediaUpdate)) + as EncryptedContent_MediaUpdate; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static EncryptedContent_MediaUpdate create() => EncryptedContent_MediaUpdate._(); + static EncryptedContent_MediaUpdate create() => + EncryptedContent_MediaUpdate._(); + @$core.override EncryptedContent_MediaUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static EncryptedContent_MediaUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static EncryptedContent_MediaUpdate getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static EncryptedContent_MediaUpdate? _defaultInstance; @$pb.TagNumber(1) EncryptedContent_MediaUpdate_Type get type => $_getN(0); @$pb.TagNumber(1) - set type(EncryptedContent_MediaUpdate_Type v) { setField(1, v); } + set type(EncryptedContent_MediaUpdate_Type value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasType() => $_has(0); @$pb.TagNumber(1) - void clearType() => clearField(1); + void clearType() => $_clearField(1); @$pb.TagNumber(2) $core.String get targetMessageId => $_getSZ(1); @$pb.TagNumber(2) - set targetMessageId($core.String v) { $_setString(1, v); } + set targetMessageId($core.String value) => $_setString(1, value); @$pb.TagNumber(2) $core.bool hasTargetMessageId() => $_has(1); @$pb.TagNumber(2) - void clearTargetMessageId() => clearField(2); + void clearTargetMessageId() => $_clearField(2); } class EncryptedContent_ContactRequest extends $pb.GeneratedMessage { factory EncryptedContent_ContactRequest({ EncryptedContent_ContactRequest_Type? type, }) { - final $result = create(); - if (type != null) { - $result.type = type; - } - return $result; + final result = create(); + if (type != null) result.type = type; + return result; } - EncryptedContent_ContactRequest._() : super(); - factory EncryptedContent_ContactRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory EncryptedContent_ContactRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EncryptedContent.ContactRequest', createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: EncryptedContent_ContactRequest_Type.REQUEST, valueOf: EncryptedContent_ContactRequest_Type.valueOf, enumValues: EncryptedContent_ContactRequest_Type.values) - ..hasRequiredFields = false - ; + EncryptedContent_ContactRequest._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - EncryptedContent_ContactRequest clone() => EncryptedContent_ContactRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - EncryptedContent_ContactRequest copyWith(void Function(EncryptedContent_ContactRequest) updates) => super.copyWith((message) => updates(message as EncryptedContent_ContactRequest)) as EncryptedContent_ContactRequest; + factory EncryptedContent_ContactRequest.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory EncryptedContent_ContactRequest.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EncryptedContent.ContactRequest', + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, + defaultOrMaker: EncryptedContent_ContactRequest_Type.REQUEST, + valueOf: EncryptedContent_ContactRequest_Type.valueOf, + enumValues: EncryptedContent_ContactRequest_Type.values) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_ContactRequest clone() => + EncryptedContent_ContactRequest()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_ContactRequest copyWith( + void Function(EncryptedContent_ContactRequest) updates) => + super.copyWith( + (message) => updates(message as EncryptedContent_ContactRequest)) + as EncryptedContent_ContactRequest; + + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static EncryptedContent_ContactRequest create() => EncryptedContent_ContactRequest._(); + static EncryptedContent_ContactRequest create() => + EncryptedContent_ContactRequest._(); + @$core.override EncryptedContent_ContactRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static EncryptedContent_ContactRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static EncryptedContent_ContactRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor( + create); static EncryptedContent_ContactRequest? _defaultInstance; @$pb.TagNumber(1) EncryptedContent_ContactRequest_Type get type => $_getN(0); @$pb.TagNumber(1) - set type(EncryptedContent_ContactRequest_Type v) { setField(1, v); } + set type(EncryptedContent_ContactRequest_Type value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasType() => $_has(0); @$pb.TagNumber(1) - void clearType() => clearField(1); + void clearType() => $_clearField(1); } class EncryptedContent_ContactUpdate extends $pb.GeneratedMessage { @@ -1069,89 +1211,99 @@ class EncryptedContent_ContactUpdate extends $pb.GeneratedMessage { $core.String? username, $core.String? displayName, }) { - final $result = create(); - if (type != null) { - $result.type = type; - } - if (avatarSvgCompressed != null) { - $result.avatarSvgCompressed = avatarSvgCompressed; - } - if (username != null) { - $result.username = username; - } - if (displayName != null) { - $result.displayName = displayName; - } - return $result; + final result = create(); + if (type != null) result.type = type; + if (avatarSvgCompressed != null) + result.avatarSvgCompressed = avatarSvgCompressed; + if (username != null) result.username = username; + if (displayName != null) result.displayName = displayName; + return result; } - EncryptedContent_ContactUpdate._() : super(); - factory EncryptedContent_ContactUpdate.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory EncryptedContent_ContactUpdate.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EncryptedContent.ContactUpdate', createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: EncryptedContent_ContactUpdate_Type.REQUEST, valueOf: EncryptedContent_ContactUpdate_Type.valueOf, enumValues: EncryptedContent_ContactUpdate_Type.values) - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'avatarSvgCompressed', $pb.PbFieldType.OY, protoName: 'avatarSvgCompressed') + EncryptedContent_ContactUpdate._(); + + factory EncryptedContent_ContactUpdate.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory EncryptedContent_ContactUpdate.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EncryptedContent.ContactUpdate', + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, + defaultOrMaker: EncryptedContent_ContactUpdate_Type.REQUEST, + valueOf: EncryptedContent_ContactUpdate_Type.valueOf, + enumValues: EncryptedContent_ContactUpdate_Type.values) + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'avatarSvgCompressed', $pb.PbFieldType.OY, + protoName: 'avatarSvgCompressed') ..aOS(3, _omitFieldNames ? '' : 'username') ..aOS(4, _omitFieldNames ? '' : 'displayName', protoName: 'displayName') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - EncryptedContent_ContactUpdate clone() => EncryptedContent_ContactUpdate()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - EncryptedContent_ContactUpdate copyWith(void Function(EncryptedContent_ContactUpdate) updates) => super.copyWith((message) => updates(message as EncryptedContent_ContactUpdate)) as EncryptedContent_ContactUpdate; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_ContactUpdate clone() => + EncryptedContent_ContactUpdate()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_ContactUpdate copyWith( + void Function(EncryptedContent_ContactUpdate) updates) => + super.copyWith( + (message) => updates(message as EncryptedContent_ContactUpdate)) + as EncryptedContent_ContactUpdate; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static EncryptedContent_ContactUpdate create() => EncryptedContent_ContactUpdate._(); + static EncryptedContent_ContactUpdate create() => + EncryptedContent_ContactUpdate._(); + @$core.override EncryptedContent_ContactUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static EncryptedContent_ContactUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static EncryptedContent_ContactUpdate getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static EncryptedContent_ContactUpdate? _defaultInstance; @$pb.TagNumber(1) EncryptedContent_ContactUpdate_Type get type => $_getN(0); @$pb.TagNumber(1) - set type(EncryptedContent_ContactUpdate_Type v) { setField(1, v); } + set type(EncryptedContent_ContactUpdate_Type value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasType() => $_has(0); @$pb.TagNumber(1) - void clearType() => clearField(1); + void clearType() => $_clearField(1); @$pb.TagNumber(2) $core.List<$core.int> get avatarSvgCompressed => $_getN(1); @$pb.TagNumber(2) - set avatarSvgCompressed($core.List<$core.int> v) { $_setBytes(1, v); } + set avatarSvgCompressed($core.List<$core.int> value) => $_setBytes(1, value); @$pb.TagNumber(2) $core.bool hasAvatarSvgCompressed() => $_has(1); @$pb.TagNumber(2) - void clearAvatarSvgCompressed() => clearField(2); + void clearAvatarSvgCompressed() => $_clearField(2); @$pb.TagNumber(3) $core.String get username => $_getSZ(2); @$pb.TagNumber(3) - set username($core.String v) { $_setString(2, v); } + set username($core.String value) => $_setString(2, value); @$pb.TagNumber(3) $core.bool hasUsername() => $_has(2); @$pb.TagNumber(3) - void clearUsername() => clearField(3); + void clearUsername() => $_clearField(3); @$pb.TagNumber(4) $core.String get displayName => $_getSZ(3); @$pb.TagNumber(4) - set displayName($core.String v) { $_setString(3, v); } + set displayName($core.String value) => $_setString(3, value); @$pb.TagNumber(4) $core.bool hasDisplayName() => $_has(3); @$pb.TagNumber(4) - void clearDisplayName() => clearField(4); + void clearDisplayName() => $_clearField(4); } class EncryptedContent_PushKeys extends $pb.GeneratedMessage { @@ -1161,89 +1313,95 @@ class EncryptedContent_PushKeys extends $pb.GeneratedMessage { $core.List<$core.int>? key, $fixnum.Int64? createdAt, }) { - final $result = create(); - if (type != null) { - $result.type = type; - } - if (keyId != null) { - $result.keyId = keyId; - } - if (key != null) { - $result.key = key; - } - if (createdAt != null) { - $result.createdAt = createdAt; - } - return $result; + final result = create(); + if (type != null) result.type = type; + if (keyId != null) result.keyId = keyId; + if (key != null) result.key = key; + if (createdAt != null) result.createdAt = createdAt; + return result; } - EncryptedContent_PushKeys._() : super(); - factory EncryptedContent_PushKeys.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory EncryptedContent_PushKeys.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EncryptedContent.PushKeys', createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: EncryptedContent_PushKeys_Type.REQUEST, valueOf: EncryptedContent_PushKeys_Type.valueOf, enumValues: EncryptedContent_PushKeys_Type.values) + EncryptedContent_PushKeys._(); + + factory EncryptedContent_PushKeys.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory EncryptedContent_PushKeys.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EncryptedContent.PushKeys', + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, + defaultOrMaker: EncryptedContent_PushKeys_Type.REQUEST, + valueOf: EncryptedContent_PushKeys_Type.valueOf, + enumValues: EncryptedContent_PushKeys_Type.values) ..aInt64(2, _omitFieldNames ? '' : 'keyId', protoName: 'keyId') - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'key', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'key', $pb.PbFieldType.OY) ..aInt64(4, _omitFieldNames ? '' : 'createdAt', protoName: 'createdAt') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - EncryptedContent_PushKeys clone() => EncryptedContent_PushKeys()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - EncryptedContent_PushKeys copyWith(void Function(EncryptedContent_PushKeys) updates) => super.copyWith((message) => updates(message as EncryptedContent_PushKeys)) as EncryptedContent_PushKeys; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_PushKeys clone() => + EncryptedContent_PushKeys()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_PushKeys copyWith( + void Function(EncryptedContent_PushKeys) updates) => + super.copyWith((message) => updates(message as EncryptedContent_PushKeys)) + as EncryptedContent_PushKeys; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static EncryptedContent_PushKeys create() => EncryptedContent_PushKeys._(); + @$core.override EncryptedContent_PushKeys createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static EncryptedContent_PushKeys getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static EncryptedContent_PushKeys getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static EncryptedContent_PushKeys? _defaultInstance; @$pb.TagNumber(1) EncryptedContent_PushKeys_Type get type => $_getN(0); @$pb.TagNumber(1) - set type(EncryptedContent_PushKeys_Type v) { setField(1, v); } + set type(EncryptedContent_PushKeys_Type value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasType() => $_has(0); @$pb.TagNumber(1) - void clearType() => clearField(1); + void clearType() => $_clearField(1); @$pb.TagNumber(2) $fixnum.Int64 get keyId => $_getI64(1); @$pb.TagNumber(2) - set keyId($fixnum.Int64 v) { $_setInt64(1, v); } + set keyId($fixnum.Int64 value) => $_setInt64(1, value); @$pb.TagNumber(2) $core.bool hasKeyId() => $_has(1); @$pb.TagNumber(2) - void clearKeyId() => clearField(2); + void clearKeyId() => $_clearField(2); @$pb.TagNumber(3) $core.List<$core.int> get key => $_getN(2); @$pb.TagNumber(3) - set key($core.List<$core.int> v) { $_setBytes(2, v); } + set key($core.List<$core.int> value) => $_setBytes(2, value); @$pb.TagNumber(3) $core.bool hasKey() => $_has(2); @$pb.TagNumber(3) - void clearKey() => clearField(3); + void clearKey() => $_clearField(3); @$pb.TagNumber(4) $fixnum.Int64 get createdAt => $_getI64(3); @$pb.TagNumber(4) - set createdAt($fixnum.Int64 v) { $_setInt64(3, v); } + set createdAt($fixnum.Int64 value) => $_setInt64(3, value); @$pb.TagNumber(4) $core.bool hasCreatedAt() => $_has(3); @$pb.TagNumber(4) - void clearCreatedAt() => clearField(4); + void clearCreatedAt() => $_clearField(4); } class EncryptedContent_FlameSync extends $pb.GeneratedMessage { @@ -1253,89 +1411,94 @@ class EncryptedContent_FlameSync extends $pb.GeneratedMessage { $core.bool? bestFriend, $core.bool? forceUpdate, }) { - final $result = create(); - if (flameCounter != null) { - $result.flameCounter = flameCounter; - } - if (lastFlameCounterChange != null) { - $result.lastFlameCounterChange = lastFlameCounterChange; - } - if (bestFriend != null) { - $result.bestFriend = bestFriend; - } - if (forceUpdate != null) { - $result.forceUpdate = forceUpdate; - } - return $result; + final result = create(); + if (flameCounter != null) result.flameCounter = flameCounter; + if (lastFlameCounterChange != null) + result.lastFlameCounterChange = lastFlameCounterChange; + if (bestFriend != null) result.bestFriend = bestFriend; + if (forceUpdate != null) result.forceUpdate = forceUpdate; + return result; } - EncryptedContent_FlameSync._() : super(); - factory EncryptedContent_FlameSync.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory EncryptedContent_FlameSync.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EncryptedContent.FlameSync', createEmptyInstance: create) - ..aInt64(1, _omitFieldNames ? '' : 'flameCounter', protoName: 'flameCounter') - ..aInt64(2, _omitFieldNames ? '' : 'lastFlameCounterChange', protoName: 'lastFlameCounterChange') + EncryptedContent_FlameSync._(); + + factory EncryptedContent_FlameSync.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory EncryptedContent_FlameSync.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EncryptedContent.FlameSync', + createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'flameCounter', + protoName: 'flameCounter') + ..aInt64(2, _omitFieldNames ? '' : 'lastFlameCounterChange', + protoName: 'lastFlameCounterChange') ..aOB(3, _omitFieldNames ? '' : 'bestFriend', protoName: 'bestFriend') ..aOB(4, _omitFieldNames ? '' : 'forceUpdate', protoName: 'forceUpdate') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - EncryptedContent_FlameSync clone() => EncryptedContent_FlameSync()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - EncryptedContent_FlameSync copyWith(void Function(EncryptedContent_FlameSync) updates) => super.copyWith((message) => updates(message as EncryptedContent_FlameSync)) as EncryptedContent_FlameSync; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_FlameSync clone() => + EncryptedContent_FlameSync()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent_FlameSync copyWith( + void Function(EncryptedContent_FlameSync) updates) => + super.copyWith( + (message) => updates(message as EncryptedContent_FlameSync)) + as EncryptedContent_FlameSync; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static EncryptedContent_FlameSync create() => EncryptedContent_FlameSync._(); + @$core.override EncryptedContent_FlameSync createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static EncryptedContent_FlameSync getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static EncryptedContent_FlameSync getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static EncryptedContent_FlameSync? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get flameCounter => $_getI64(0); @$pb.TagNumber(1) - set flameCounter($fixnum.Int64 v) { $_setInt64(0, v); } + set flameCounter($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasFlameCounter() => $_has(0); @$pb.TagNumber(1) - void clearFlameCounter() => clearField(1); + void clearFlameCounter() => $_clearField(1); @$pb.TagNumber(2) $fixnum.Int64 get lastFlameCounterChange => $_getI64(1); @$pb.TagNumber(2) - set lastFlameCounterChange($fixnum.Int64 v) { $_setInt64(1, v); } + set lastFlameCounterChange($fixnum.Int64 value) => $_setInt64(1, value); @$pb.TagNumber(2) $core.bool hasLastFlameCounterChange() => $_has(1); @$pb.TagNumber(2) - void clearLastFlameCounterChange() => clearField(2); + void clearLastFlameCounterChange() => $_clearField(2); @$pb.TagNumber(3) $core.bool get bestFriend => $_getBF(2); @$pb.TagNumber(3) - set bestFriend($core.bool v) { $_setBool(2, v); } + set bestFriend($core.bool value) => $_setBool(2, value); @$pb.TagNumber(3) $core.bool hasBestFriend() => $_has(2); @$pb.TagNumber(3) - void clearBestFriend() => clearField(3); + void clearBestFriend() => $_clearField(3); @$pb.TagNumber(4) $core.bool get forceUpdate => $_getBF(3); @$pb.TagNumber(4) - set forceUpdate($core.bool v) { $_setBool(3, v); } + set forceUpdate($core.bool value) => $_setBool(3, value); @$pb.TagNumber(4) $core.bool hasForceUpdate() => $_has(3); @$pb.TagNumber(4) - void clearForceUpdate() => clearField(4); + void clearForceUpdate() => $_clearField(4); } class EncryptedContent extends $pb.GeneratedMessage { @@ -1357,274 +1520,286 @@ class EncryptedContent extends $pb.GeneratedMessage { EncryptedContent_GroupUpdate? groupUpdate, EncryptedContent_ResendGroupPublicKey? resendGroupPublicKey, }) { - final $result = create(); - if (groupId != null) { - $result.groupId = groupId; - } - if (isDirectChat != null) { - $result.isDirectChat = isDirectChat; - } - if (senderProfileCounter != null) { - $result.senderProfileCounter = senderProfileCounter; - } - if (messageUpdate != null) { - $result.messageUpdate = messageUpdate; - } - if (media != null) { - $result.media = media; - } - if (mediaUpdate != null) { - $result.mediaUpdate = mediaUpdate; - } - if (contactUpdate != null) { - $result.contactUpdate = contactUpdate; - } - if (contactRequest != null) { - $result.contactRequest = contactRequest; - } - if (flameSync != null) { - $result.flameSync = flameSync; - } - if (pushKeys != null) { - $result.pushKeys = pushKeys; - } - if (reaction != null) { - $result.reaction = reaction; - } - if (textMessage != null) { - $result.textMessage = textMessage; - } - if (groupCreate != null) { - $result.groupCreate = groupCreate; - } - if (groupJoin != null) { - $result.groupJoin = groupJoin; - } - if (groupUpdate != null) { - $result.groupUpdate = groupUpdate; - } - if (resendGroupPublicKey != null) { - $result.resendGroupPublicKey = resendGroupPublicKey; - } - return $result; + final result = create(); + if (groupId != null) result.groupId = groupId; + if (isDirectChat != null) result.isDirectChat = isDirectChat; + if (senderProfileCounter != null) + result.senderProfileCounter = senderProfileCounter; + if (messageUpdate != null) result.messageUpdate = messageUpdate; + if (media != null) result.media = media; + if (mediaUpdate != null) result.mediaUpdate = mediaUpdate; + if (contactUpdate != null) result.contactUpdate = contactUpdate; + if (contactRequest != null) result.contactRequest = contactRequest; + if (flameSync != null) result.flameSync = flameSync; + if (pushKeys != null) result.pushKeys = pushKeys; + if (reaction != null) result.reaction = reaction; + if (textMessage != null) result.textMessage = textMessage; + if (groupCreate != null) result.groupCreate = groupCreate; + if (groupJoin != null) result.groupJoin = groupJoin; + if (groupUpdate != null) result.groupUpdate = groupUpdate; + if (resendGroupPublicKey != null) + result.resendGroupPublicKey = resendGroupPublicKey; + return result; } - EncryptedContent._() : super(); - factory EncryptedContent.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory EncryptedContent.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EncryptedContent', createEmptyInstance: create) + EncryptedContent._(); + + factory EncryptedContent.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory EncryptedContent.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EncryptedContent', + createEmptyInstance: create) ..aOS(2, _omitFieldNames ? '' : 'groupId', protoName: 'groupId') ..aOB(3, _omitFieldNames ? '' : 'isDirectChat', protoName: 'isDirectChat') - ..aInt64(4, _omitFieldNames ? '' : 'senderProfileCounter', protoName: 'senderProfileCounter') - ..aOM(5, _omitFieldNames ? '' : 'messageUpdate', protoName: 'messageUpdate', subBuilder: EncryptedContent_MessageUpdate.create) - ..aOM(6, _omitFieldNames ? '' : 'media', subBuilder: EncryptedContent_Media.create) - ..aOM(7, _omitFieldNames ? '' : 'mediaUpdate', protoName: 'mediaUpdate', subBuilder: EncryptedContent_MediaUpdate.create) - ..aOM(8, _omitFieldNames ? '' : 'contactUpdate', protoName: 'contactUpdate', subBuilder: EncryptedContent_ContactUpdate.create) - ..aOM(9, _omitFieldNames ? '' : 'contactRequest', protoName: 'contactRequest', subBuilder: EncryptedContent_ContactRequest.create) - ..aOM(10, _omitFieldNames ? '' : 'flameSync', protoName: 'flameSync', subBuilder: EncryptedContent_FlameSync.create) - ..aOM(11, _omitFieldNames ? '' : 'pushKeys', protoName: 'pushKeys', subBuilder: EncryptedContent_PushKeys.create) - ..aOM(12, _omitFieldNames ? '' : 'reaction', subBuilder: EncryptedContent_Reaction.create) - ..aOM(13, _omitFieldNames ? '' : 'textMessage', protoName: 'textMessage', subBuilder: EncryptedContent_TextMessage.create) - ..aOM(14, _omitFieldNames ? '' : 'groupCreate', protoName: 'groupCreate', subBuilder: EncryptedContent_GroupCreate.create) - ..aOM(15, _omitFieldNames ? '' : 'groupJoin', protoName: 'groupJoin', subBuilder: EncryptedContent_GroupJoin.create) - ..aOM(16, _omitFieldNames ? '' : 'groupUpdate', protoName: 'groupUpdate', subBuilder: EncryptedContent_GroupUpdate.create) - ..aOM(17, _omitFieldNames ? '' : 'resendGroupPublicKey', protoName: 'resendGroupPublicKey', subBuilder: EncryptedContent_ResendGroupPublicKey.create) - ..hasRequiredFields = false - ; + ..aInt64(4, _omitFieldNames ? '' : 'senderProfileCounter', + protoName: 'senderProfileCounter') + ..aOM( + 5, _omitFieldNames ? '' : 'messageUpdate', + protoName: 'messageUpdate', + subBuilder: EncryptedContent_MessageUpdate.create) + ..aOM(6, _omitFieldNames ? '' : 'media', + subBuilder: EncryptedContent_Media.create) + ..aOM(7, _omitFieldNames ? '' : 'mediaUpdate', + protoName: 'mediaUpdate', + subBuilder: EncryptedContent_MediaUpdate.create) + ..aOM( + 8, _omitFieldNames ? '' : 'contactUpdate', + protoName: 'contactUpdate', + subBuilder: EncryptedContent_ContactUpdate.create) + ..aOM( + 9, _omitFieldNames ? '' : 'contactRequest', + protoName: 'contactRequest', + subBuilder: EncryptedContent_ContactRequest.create) + ..aOM(10, _omitFieldNames ? '' : 'flameSync', + protoName: 'flameSync', subBuilder: EncryptedContent_FlameSync.create) + ..aOM(11, _omitFieldNames ? '' : 'pushKeys', + protoName: 'pushKeys', subBuilder: EncryptedContent_PushKeys.create) + ..aOM(12, _omitFieldNames ? '' : 'reaction', + subBuilder: EncryptedContent_Reaction.create) + ..aOM( + 13, _omitFieldNames ? '' : 'textMessage', + protoName: 'textMessage', + subBuilder: EncryptedContent_TextMessage.create) + ..aOM( + 14, _omitFieldNames ? '' : 'groupCreate', + protoName: 'groupCreate', + subBuilder: EncryptedContent_GroupCreate.create) + ..aOM(15, _omitFieldNames ? '' : 'groupJoin', + protoName: 'groupJoin', subBuilder: EncryptedContent_GroupJoin.create) + ..aOM( + 16, _omitFieldNames ? '' : 'groupUpdate', + protoName: 'groupUpdate', + subBuilder: EncryptedContent_GroupUpdate.create) + ..aOM( + 17, _omitFieldNames ? '' : 'resendGroupPublicKey', + protoName: 'resendGroupPublicKey', + subBuilder: EncryptedContent_ResendGroupPublicKey.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') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') EncryptedContent clone() => EncryptedContent()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - EncryptedContent copyWith(void Function(EncryptedContent) updates) => super.copyWith((message) => updates(message as EncryptedContent)) as EncryptedContent; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedContent copyWith(void Function(EncryptedContent) updates) => + super.copyWith((message) => updates(message as EncryptedContent)) + as EncryptedContent; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static EncryptedContent create() => EncryptedContent._(); + @$core.override EncryptedContent createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static EncryptedContent getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static EncryptedContent getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static EncryptedContent? _defaultInstance; @$pb.TagNumber(2) $core.String get groupId => $_getSZ(0); @$pb.TagNumber(2) - set groupId($core.String v) { $_setString(0, v); } + set groupId($core.String value) => $_setString(0, value); @$pb.TagNumber(2) $core.bool hasGroupId() => $_has(0); @$pb.TagNumber(2) - void clearGroupId() => clearField(2); + void clearGroupId() => $_clearField(2); @$pb.TagNumber(3) $core.bool get isDirectChat => $_getBF(1); @$pb.TagNumber(3) - set isDirectChat($core.bool v) { $_setBool(1, v); } + set isDirectChat($core.bool value) => $_setBool(1, value); @$pb.TagNumber(3) $core.bool hasIsDirectChat() => $_has(1); @$pb.TagNumber(3) - void clearIsDirectChat() => clearField(3); + void clearIsDirectChat() => $_clearField(3); /// / This can be added, so the receiver can check weather he is up to date with the current profile @$pb.TagNumber(4) $fixnum.Int64 get senderProfileCounter => $_getI64(2); @$pb.TagNumber(4) - set senderProfileCounter($fixnum.Int64 v) { $_setInt64(2, v); } + set senderProfileCounter($fixnum.Int64 value) => $_setInt64(2, value); @$pb.TagNumber(4) $core.bool hasSenderProfileCounter() => $_has(2); @$pb.TagNumber(4) - void clearSenderProfileCounter() => clearField(4); + void clearSenderProfileCounter() => $_clearField(4); @$pb.TagNumber(5) EncryptedContent_MessageUpdate get messageUpdate => $_getN(3); @$pb.TagNumber(5) - set messageUpdate(EncryptedContent_MessageUpdate v) { setField(5, v); } + set messageUpdate(EncryptedContent_MessageUpdate value) => + $_setField(5, value); @$pb.TagNumber(5) $core.bool hasMessageUpdate() => $_has(3); @$pb.TagNumber(5) - void clearMessageUpdate() => clearField(5); + void clearMessageUpdate() => $_clearField(5); @$pb.TagNumber(5) EncryptedContent_MessageUpdate ensureMessageUpdate() => $_ensure(3); @$pb.TagNumber(6) EncryptedContent_Media get media => $_getN(4); @$pb.TagNumber(6) - set media(EncryptedContent_Media v) { setField(6, v); } + set media(EncryptedContent_Media value) => $_setField(6, value); @$pb.TagNumber(6) $core.bool hasMedia() => $_has(4); @$pb.TagNumber(6) - void clearMedia() => clearField(6); + void clearMedia() => $_clearField(6); @$pb.TagNumber(6) EncryptedContent_Media ensureMedia() => $_ensure(4); @$pb.TagNumber(7) EncryptedContent_MediaUpdate get mediaUpdate => $_getN(5); @$pb.TagNumber(7) - set mediaUpdate(EncryptedContent_MediaUpdate v) { setField(7, v); } + set mediaUpdate(EncryptedContent_MediaUpdate value) => $_setField(7, value); @$pb.TagNumber(7) $core.bool hasMediaUpdate() => $_has(5); @$pb.TagNumber(7) - void clearMediaUpdate() => clearField(7); + void clearMediaUpdate() => $_clearField(7); @$pb.TagNumber(7) EncryptedContent_MediaUpdate ensureMediaUpdate() => $_ensure(5); @$pb.TagNumber(8) EncryptedContent_ContactUpdate get contactUpdate => $_getN(6); @$pb.TagNumber(8) - set contactUpdate(EncryptedContent_ContactUpdate v) { setField(8, v); } + set contactUpdate(EncryptedContent_ContactUpdate value) => + $_setField(8, value); @$pb.TagNumber(8) $core.bool hasContactUpdate() => $_has(6); @$pb.TagNumber(8) - void clearContactUpdate() => clearField(8); + void clearContactUpdate() => $_clearField(8); @$pb.TagNumber(8) EncryptedContent_ContactUpdate ensureContactUpdate() => $_ensure(6); @$pb.TagNumber(9) EncryptedContent_ContactRequest get contactRequest => $_getN(7); @$pb.TagNumber(9) - set contactRequest(EncryptedContent_ContactRequest v) { setField(9, v); } + set contactRequest(EncryptedContent_ContactRequest value) => + $_setField(9, value); @$pb.TagNumber(9) $core.bool hasContactRequest() => $_has(7); @$pb.TagNumber(9) - void clearContactRequest() => clearField(9); + void clearContactRequest() => $_clearField(9); @$pb.TagNumber(9) EncryptedContent_ContactRequest ensureContactRequest() => $_ensure(7); @$pb.TagNumber(10) EncryptedContent_FlameSync get flameSync => $_getN(8); @$pb.TagNumber(10) - set flameSync(EncryptedContent_FlameSync v) { setField(10, v); } + set flameSync(EncryptedContent_FlameSync value) => $_setField(10, value); @$pb.TagNumber(10) $core.bool hasFlameSync() => $_has(8); @$pb.TagNumber(10) - void clearFlameSync() => clearField(10); + void clearFlameSync() => $_clearField(10); @$pb.TagNumber(10) EncryptedContent_FlameSync ensureFlameSync() => $_ensure(8); @$pb.TagNumber(11) EncryptedContent_PushKeys get pushKeys => $_getN(9); @$pb.TagNumber(11) - set pushKeys(EncryptedContent_PushKeys v) { setField(11, v); } + set pushKeys(EncryptedContent_PushKeys value) => $_setField(11, value); @$pb.TagNumber(11) $core.bool hasPushKeys() => $_has(9); @$pb.TagNumber(11) - void clearPushKeys() => clearField(11); + void clearPushKeys() => $_clearField(11); @$pb.TagNumber(11) EncryptedContent_PushKeys ensurePushKeys() => $_ensure(9); @$pb.TagNumber(12) EncryptedContent_Reaction get reaction => $_getN(10); @$pb.TagNumber(12) - set reaction(EncryptedContent_Reaction v) { setField(12, v); } + set reaction(EncryptedContent_Reaction value) => $_setField(12, value); @$pb.TagNumber(12) $core.bool hasReaction() => $_has(10); @$pb.TagNumber(12) - void clearReaction() => clearField(12); + void clearReaction() => $_clearField(12); @$pb.TagNumber(12) EncryptedContent_Reaction ensureReaction() => $_ensure(10); @$pb.TagNumber(13) EncryptedContent_TextMessage get textMessage => $_getN(11); @$pb.TagNumber(13) - set textMessage(EncryptedContent_TextMessage v) { setField(13, v); } + set textMessage(EncryptedContent_TextMessage value) => $_setField(13, value); @$pb.TagNumber(13) $core.bool hasTextMessage() => $_has(11); @$pb.TagNumber(13) - void clearTextMessage() => clearField(13); + void clearTextMessage() => $_clearField(13); @$pb.TagNumber(13) EncryptedContent_TextMessage ensureTextMessage() => $_ensure(11); @$pb.TagNumber(14) EncryptedContent_GroupCreate get groupCreate => $_getN(12); @$pb.TagNumber(14) - set groupCreate(EncryptedContent_GroupCreate v) { setField(14, v); } + set groupCreate(EncryptedContent_GroupCreate value) => $_setField(14, value); @$pb.TagNumber(14) $core.bool hasGroupCreate() => $_has(12); @$pb.TagNumber(14) - void clearGroupCreate() => clearField(14); + void clearGroupCreate() => $_clearField(14); @$pb.TagNumber(14) EncryptedContent_GroupCreate ensureGroupCreate() => $_ensure(12); @$pb.TagNumber(15) EncryptedContent_GroupJoin get groupJoin => $_getN(13); @$pb.TagNumber(15) - set groupJoin(EncryptedContent_GroupJoin v) { setField(15, v); } + set groupJoin(EncryptedContent_GroupJoin value) => $_setField(15, value); @$pb.TagNumber(15) $core.bool hasGroupJoin() => $_has(13); @$pb.TagNumber(15) - void clearGroupJoin() => clearField(15); + void clearGroupJoin() => $_clearField(15); @$pb.TagNumber(15) EncryptedContent_GroupJoin ensureGroupJoin() => $_ensure(13); @$pb.TagNumber(16) EncryptedContent_GroupUpdate get groupUpdate => $_getN(14); @$pb.TagNumber(16) - set groupUpdate(EncryptedContent_GroupUpdate v) { setField(16, v); } + set groupUpdate(EncryptedContent_GroupUpdate value) => $_setField(16, value); @$pb.TagNumber(16) $core.bool hasGroupUpdate() => $_has(14); @$pb.TagNumber(16) - void clearGroupUpdate() => clearField(16); + void clearGroupUpdate() => $_clearField(16); @$pb.TagNumber(16) EncryptedContent_GroupUpdate ensureGroupUpdate() => $_ensure(14); @$pb.TagNumber(17) EncryptedContent_ResendGroupPublicKey get resendGroupPublicKey => $_getN(15); @$pb.TagNumber(17) - set resendGroupPublicKey(EncryptedContent_ResendGroupPublicKey v) { setField(17, v); } + set resendGroupPublicKey(EncryptedContent_ResendGroupPublicKey value) => + $_setField(17, value); @$pb.TagNumber(17) $core.bool hasResendGroupPublicKey() => $_has(15); @$pb.TagNumber(17) - void clearResendGroupPublicKey() => clearField(17); + void clearResendGroupPublicKey() => $_clearField(17); @$pb.TagNumber(17) - EncryptedContent_ResendGroupPublicKey ensureResendGroupPublicKey() => $_ensure(15); + EncryptedContent_ResendGroupPublicKey ensureResendGroupPublicKey() => + $_ensure(15); } - -const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/src/model/protobuf/client/generated/messages.pbenum.dart b/lib/src/model/protobuf/client/generated/messages.pbenum.dart index 11a6701..c2fe7b1 100644 --- a/lib/src/model/protobuf/client/generated/messages.pbenum.dart +++ b/lib/src/model/protobuf/client/generated/messages.pbenum.dart @@ -1,26 +1,32 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: messages.proto -// -// @dart = 2.12 +// Generated from messages.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; class Message_Type extends $pb.ProtobufEnum { - static const Message_Type SENDER_DELIVERY_RECEIPT = Message_Type._(0, _omitEnumNames ? '' : 'SENDER_DELIVERY_RECEIPT'); - static const Message_Type PLAINTEXT_CONTENT = Message_Type._(1, _omitEnumNames ? '' : 'PLAINTEXT_CONTENT'); - static const Message_Type CIPHERTEXT = Message_Type._(2, _omitEnumNames ? '' : 'CIPHERTEXT'); - static const Message_Type PREKEY_BUNDLE = Message_Type._(3, _omitEnumNames ? '' : 'PREKEY_BUNDLE'); - static const Message_Type TEST_NOTIFICATION = Message_Type._(4, _omitEnumNames ? '' : 'TEST_NOTIFICATION'); + static const Message_Type SENDER_DELIVERY_RECEIPT = + Message_Type._(0, _omitEnumNames ? '' : 'SENDER_DELIVERY_RECEIPT'); + static const Message_Type PLAINTEXT_CONTENT = + Message_Type._(1, _omitEnumNames ? '' : 'PLAINTEXT_CONTENT'); + static const Message_Type CIPHERTEXT = + Message_Type._(2, _omitEnumNames ? '' : 'CIPHERTEXT'); + static const Message_Type PREKEY_BUNDLE = + Message_Type._(3, _omitEnumNames ? '' : 'PREKEY_BUNDLE'); + static const Message_Type TEST_NOTIFICATION = + Message_Type._(4, _omitEnumNames ? '' : 'TEST_NOTIFICATION'); - static const $core.List values = [ + static const $core.List values = [ SENDER_DELIVERY_RECEIPT, PLAINTEXT_CONTENT, CIPHERTEXT, @@ -28,52 +34,75 @@ class Message_Type extends $pb.ProtobufEnum { TEST_NOTIFICATION, ]; - static final $core.Map<$core.int, Message_Type> _byValue = $pb.ProtobufEnum.initByValue(values); - static Message_Type? valueOf($core.int value) => _byValue[value]; + static final $core.List _byValue = + $pb.ProtobufEnum.$_initByValueList(values, 4); + static Message_Type? valueOf($core.int value) => + value < 0 || value >= _byValue.length ? null : _byValue[value]; - const Message_Type._($core.int v, $core.String n) : super(v, n); + const Message_Type._(super.value, super.name); } class PlaintextContent_DecryptionErrorMessage_Type extends $pb.ProtobufEnum { - static const PlaintextContent_DecryptionErrorMessage_Type UNKNOWN = PlaintextContent_DecryptionErrorMessage_Type._(0, _omitEnumNames ? '' : 'UNKNOWN'); - static const PlaintextContent_DecryptionErrorMessage_Type PREKEY_UNKNOWN = PlaintextContent_DecryptionErrorMessage_Type._(1, _omitEnumNames ? '' : 'PREKEY_UNKNOWN'); + static const PlaintextContent_DecryptionErrorMessage_Type UNKNOWN = + PlaintextContent_DecryptionErrorMessage_Type._( + 0, _omitEnumNames ? '' : 'UNKNOWN'); + static const PlaintextContent_DecryptionErrorMessage_Type PREKEY_UNKNOWN = + PlaintextContent_DecryptionErrorMessage_Type._( + 1, _omitEnumNames ? '' : 'PREKEY_UNKNOWN'); - static const $core.List values = [ + static const $core.List values = + [ UNKNOWN, PREKEY_UNKNOWN, ]; - static final $core.Map<$core.int, PlaintextContent_DecryptionErrorMessage_Type> _byValue = $pb.ProtobufEnum.initByValue(values); - static PlaintextContent_DecryptionErrorMessage_Type? valueOf($core.int value) => _byValue[value]; + static final $core.List + _byValue = $pb.ProtobufEnum.$_initByValueList(values, 1); + static PlaintextContent_DecryptionErrorMessage_Type? valueOf( + $core.int value) => + value < 0 || value >= _byValue.length ? null : _byValue[value]; - const PlaintextContent_DecryptionErrorMessage_Type._($core.int v, $core.String n) : super(v, n); + const PlaintextContent_DecryptionErrorMessage_Type._(super.value, super.name); } class EncryptedContent_MessageUpdate_Type extends $pb.ProtobufEnum { - static const EncryptedContent_MessageUpdate_Type DELETE = EncryptedContent_MessageUpdate_Type._(0, _omitEnumNames ? '' : 'DELETE'); - static const EncryptedContent_MessageUpdate_Type EDIT_TEXT = EncryptedContent_MessageUpdate_Type._(1, _omitEnumNames ? '' : 'EDIT_TEXT'); - static const EncryptedContent_MessageUpdate_Type OPENED = EncryptedContent_MessageUpdate_Type._(2, _omitEnumNames ? '' : 'OPENED'); + static const EncryptedContent_MessageUpdate_Type DELETE = + EncryptedContent_MessageUpdate_Type._(0, _omitEnumNames ? '' : 'DELETE'); + static const EncryptedContent_MessageUpdate_Type EDIT_TEXT = + EncryptedContent_MessageUpdate_Type._( + 1, _omitEnumNames ? '' : 'EDIT_TEXT'); + static const EncryptedContent_MessageUpdate_Type OPENED = + EncryptedContent_MessageUpdate_Type._(2, _omitEnumNames ? '' : 'OPENED'); - static const $core.List values = [ + static const $core.List values = + [ DELETE, EDIT_TEXT, OPENED, ]; - static final $core.Map<$core.int, EncryptedContent_MessageUpdate_Type> _byValue = $pb.ProtobufEnum.initByValue(values); - static EncryptedContent_MessageUpdate_Type? valueOf($core.int value) => _byValue[value]; + static final $core.List _byValue = + $pb.ProtobufEnum.$_initByValueList(values, 2); + static EncryptedContent_MessageUpdate_Type? valueOf($core.int value) => + value < 0 || value >= _byValue.length ? null : _byValue[value]; - const EncryptedContent_MessageUpdate_Type._($core.int v, $core.String n) : super(v, n); + const EncryptedContent_MessageUpdate_Type._(super.value, super.name); } class EncryptedContent_Media_Type extends $pb.ProtobufEnum { - static const EncryptedContent_Media_Type REUPLOAD = EncryptedContent_Media_Type._(0, _omitEnumNames ? '' : 'REUPLOAD'); - static const EncryptedContent_Media_Type IMAGE = EncryptedContent_Media_Type._(1, _omitEnumNames ? '' : 'IMAGE'); - static const EncryptedContent_Media_Type VIDEO = EncryptedContent_Media_Type._(2, _omitEnumNames ? '' : 'VIDEO'); - static const EncryptedContent_Media_Type GIF = EncryptedContent_Media_Type._(3, _omitEnumNames ? '' : 'GIF'); - static const EncryptedContent_Media_Type AUDIO = EncryptedContent_Media_Type._(4, _omitEnumNames ? '' : 'AUDIO'); + static const EncryptedContent_Media_Type REUPLOAD = + EncryptedContent_Media_Type._(0, _omitEnumNames ? '' : 'REUPLOAD'); + static const EncryptedContent_Media_Type IMAGE = + EncryptedContent_Media_Type._(1, _omitEnumNames ? '' : 'IMAGE'); + static const EncryptedContent_Media_Type VIDEO = + EncryptedContent_Media_Type._(2, _omitEnumNames ? '' : 'VIDEO'); + static const EncryptedContent_Media_Type GIF = + EncryptedContent_Media_Type._(3, _omitEnumNames ? '' : 'GIF'); + static const EncryptedContent_Media_Type AUDIO = + EncryptedContent_Media_Type._(4, _omitEnumNames ? '' : 'AUDIO'); - static const $core.List values = [ + static const $core.List values = + [ REUPLOAD, IMAGE, VIDEO, @@ -81,75 +110,101 @@ class EncryptedContent_Media_Type extends $pb.ProtobufEnum { AUDIO, ]; - static final $core.Map<$core.int, EncryptedContent_Media_Type> _byValue = $pb.ProtobufEnum.initByValue(values); - static EncryptedContent_Media_Type? valueOf($core.int value) => _byValue[value]; + static final $core.List _byValue = + $pb.ProtobufEnum.$_initByValueList(values, 4); + static EncryptedContent_Media_Type? valueOf($core.int value) => + value < 0 || value >= _byValue.length ? null : _byValue[value]; - const EncryptedContent_Media_Type._($core.int v, $core.String n) : super(v, n); + const EncryptedContent_Media_Type._(super.value, super.name); } class EncryptedContent_MediaUpdate_Type extends $pb.ProtobufEnum { - static const EncryptedContent_MediaUpdate_Type REOPENED = EncryptedContent_MediaUpdate_Type._(0, _omitEnumNames ? '' : 'REOPENED'); - static const EncryptedContent_MediaUpdate_Type STORED = EncryptedContent_MediaUpdate_Type._(1, _omitEnumNames ? '' : 'STORED'); - static const EncryptedContent_MediaUpdate_Type DECRYPTION_ERROR = EncryptedContent_MediaUpdate_Type._(2, _omitEnumNames ? '' : 'DECRYPTION_ERROR'); + static const EncryptedContent_MediaUpdate_Type REOPENED = + EncryptedContent_MediaUpdate_Type._(0, _omitEnumNames ? '' : 'REOPENED'); + static const EncryptedContent_MediaUpdate_Type STORED = + EncryptedContent_MediaUpdate_Type._(1, _omitEnumNames ? '' : 'STORED'); + static const EncryptedContent_MediaUpdate_Type DECRYPTION_ERROR = + EncryptedContent_MediaUpdate_Type._( + 2, _omitEnumNames ? '' : 'DECRYPTION_ERROR'); - static const $core.List values = [ + static const $core.List values = + [ REOPENED, STORED, DECRYPTION_ERROR, ]; - static final $core.Map<$core.int, EncryptedContent_MediaUpdate_Type> _byValue = $pb.ProtobufEnum.initByValue(values); - static EncryptedContent_MediaUpdate_Type? valueOf($core.int value) => _byValue[value]; + static final $core.List _byValue = + $pb.ProtobufEnum.$_initByValueList(values, 2); + static EncryptedContent_MediaUpdate_Type? valueOf($core.int value) => + value < 0 || value >= _byValue.length ? null : _byValue[value]; - const EncryptedContent_MediaUpdate_Type._($core.int v, $core.String n) : super(v, n); + const EncryptedContent_MediaUpdate_Type._(super.value, super.name); } class EncryptedContent_ContactRequest_Type extends $pb.ProtobufEnum { - static const EncryptedContent_ContactRequest_Type REQUEST = EncryptedContent_ContactRequest_Type._(0, _omitEnumNames ? '' : 'REQUEST'); - static const EncryptedContent_ContactRequest_Type REJECT = EncryptedContent_ContactRequest_Type._(1, _omitEnumNames ? '' : 'REJECT'); - static const EncryptedContent_ContactRequest_Type ACCEPT = EncryptedContent_ContactRequest_Type._(2, _omitEnumNames ? '' : 'ACCEPT'); + static const EncryptedContent_ContactRequest_Type REQUEST = + EncryptedContent_ContactRequest_Type._( + 0, _omitEnumNames ? '' : 'REQUEST'); + static const EncryptedContent_ContactRequest_Type REJECT = + EncryptedContent_ContactRequest_Type._(1, _omitEnumNames ? '' : 'REJECT'); + static const EncryptedContent_ContactRequest_Type ACCEPT = + EncryptedContent_ContactRequest_Type._(2, _omitEnumNames ? '' : 'ACCEPT'); - static const $core.List values = [ + static const $core.List values = + [ REQUEST, REJECT, ACCEPT, ]; - static final $core.Map<$core.int, EncryptedContent_ContactRequest_Type> _byValue = $pb.ProtobufEnum.initByValue(values); - static EncryptedContent_ContactRequest_Type? valueOf($core.int value) => _byValue[value]; + static final $core.List _byValue = + $pb.ProtobufEnum.$_initByValueList(values, 2); + static EncryptedContent_ContactRequest_Type? valueOf($core.int value) => + value < 0 || value >= _byValue.length ? null : _byValue[value]; - const EncryptedContent_ContactRequest_Type._($core.int v, $core.String n) : super(v, n); + const EncryptedContent_ContactRequest_Type._(super.value, super.name); } class EncryptedContent_ContactUpdate_Type extends $pb.ProtobufEnum { - static const EncryptedContent_ContactUpdate_Type REQUEST = EncryptedContent_ContactUpdate_Type._(0, _omitEnumNames ? '' : 'REQUEST'); - static const EncryptedContent_ContactUpdate_Type UPDATE = EncryptedContent_ContactUpdate_Type._(1, _omitEnumNames ? '' : 'UPDATE'); + static const EncryptedContent_ContactUpdate_Type REQUEST = + EncryptedContent_ContactUpdate_Type._(0, _omitEnumNames ? '' : 'REQUEST'); + static const EncryptedContent_ContactUpdate_Type UPDATE = + EncryptedContent_ContactUpdate_Type._(1, _omitEnumNames ? '' : 'UPDATE'); - static const $core.List values = [ + static const $core.List values = + [ REQUEST, UPDATE, ]; - static final $core.Map<$core.int, EncryptedContent_ContactUpdate_Type> _byValue = $pb.ProtobufEnum.initByValue(values); - static EncryptedContent_ContactUpdate_Type? valueOf($core.int value) => _byValue[value]; + static final $core.List _byValue = + $pb.ProtobufEnum.$_initByValueList(values, 1); + static EncryptedContent_ContactUpdate_Type? valueOf($core.int value) => + value < 0 || value >= _byValue.length ? null : _byValue[value]; - const EncryptedContent_ContactUpdate_Type._($core.int v, $core.String n) : super(v, n); + const EncryptedContent_ContactUpdate_Type._(super.value, super.name); } class EncryptedContent_PushKeys_Type extends $pb.ProtobufEnum { - static const EncryptedContent_PushKeys_Type REQUEST = EncryptedContent_PushKeys_Type._(0, _omitEnumNames ? '' : 'REQUEST'); - static const EncryptedContent_PushKeys_Type UPDATE = EncryptedContent_PushKeys_Type._(1, _omitEnumNames ? '' : 'UPDATE'); + static const EncryptedContent_PushKeys_Type REQUEST = + EncryptedContent_PushKeys_Type._(0, _omitEnumNames ? '' : 'REQUEST'); + static const EncryptedContent_PushKeys_Type UPDATE = + EncryptedContent_PushKeys_Type._(1, _omitEnumNames ? '' : 'UPDATE'); - static const $core.List values = [ + static const $core.List values = + [ REQUEST, UPDATE, ]; - static final $core.Map<$core.int, EncryptedContent_PushKeys_Type> _byValue = $pb.ProtobufEnum.initByValue(values); - static EncryptedContent_PushKeys_Type? valueOf($core.int value) => _byValue[value]; + static final $core.List _byValue = + $pb.ProtobufEnum.$_initByValueList(values, 1); + static EncryptedContent_PushKeys_Type? valueOf($core.int value) => + value < 0 || value >= _byValue.length ? null : _byValue[value]; - const EncryptedContent_PushKeys_Type._($core.int v, $core.String n) : super(v, n); + const EncryptedContent_PushKeys_Type._(super.value, super.name); } - -const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); +const $core.bool _omitEnumNames = + $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/lib/src/model/protobuf/client/generated/messages.pbjson.dart b/lib/src/model/protobuf/client/generated/messages.pbjson.dart index 08c49e4..f1403a9 100644 --- a/lib/src/model/protobuf/client/generated/messages.pbjson.dart +++ b/lib/src/model/protobuf/client/generated/messages.pbjson.dart @@ -1,13 +1,14 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: messages.proto -// -// @dart = 2.12 +// Generated from messages.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names, unused_import import 'dart:convert' as $convert; import 'dart:core' as $core; @@ -19,8 +20,25 @@ const Message$json = { '2': [ {'1': 'type', '3': 1, '4': 1, '5': 14, '6': '.Message.Type', '10': 'type'}, {'1': 'receiptId', '3': 2, '4': 1, '5': 9, '10': 'receiptId'}, - {'1': 'encryptedContent', '3': 3, '4': 1, '5': 12, '9': 0, '10': 'encryptedContent', '17': true}, - {'1': 'plaintextContent', '3': 4, '4': 1, '5': 11, '6': '.PlaintextContent', '9': 1, '10': 'plaintextContent', '17': true}, + { + '1': 'encryptedContent', + '3': 3, + '4': 1, + '5': 12, + '9': 0, + '10': 'encryptedContent', + '17': true + }, + { + '1': 'plaintextContent', + '3': 4, + '4': 1, + '5': 11, + '6': '.PlaintextContent', + '9': 1, + '10': 'plaintextContent', + '17': true + }, ], '4': [Message_Type$json], '8': [ @@ -55,10 +73,31 @@ final $typed_data.Uint8List messageDescriptor = $convert.base64Decode( const PlaintextContent$json = { '1': 'PlaintextContent', '2': [ - {'1': 'decryptionErrorMessage', '3': 1, '4': 1, '5': 11, '6': '.PlaintextContent.DecryptionErrorMessage', '9': 0, '10': 'decryptionErrorMessage', '17': true}, - {'1': 'retryControlError', '3': 2, '4': 1, '5': 11, '6': '.PlaintextContent.RetryErrorMessage', '9': 1, '10': 'retryControlError', '17': true}, + { + '1': 'decryptionErrorMessage', + '3': 1, + '4': 1, + '5': 11, + '6': '.PlaintextContent.DecryptionErrorMessage', + '9': 0, + '10': 'decryptionErrorMessage', + '17': true + }, + { + '1': 'retryControlError', + '3': 2, + '4': 1, + '5': 11, + '6': '.PlaintextContent.RetryErrorMessage', + '9': 1, + '10': 'retryControlError', + '17': true + }, + ], + '3': [ + PlaintextContent_RetryErrorMessage$json, + PlaintextContent_DecryptionErrorMessage$json ], - '3': [PlaintextContent_RetryErrorMessage$json, PlaintextContent_DecryptionErrorMessage$json], '8': [ {'1': '_decryptionErrorMessage'}, {'1': '_retryControlError'}, @@ -74,7 +113,14 @@ const PlaintextContent_RetryErrorMessage$json = { const PlaintextContent_DecryptionErrorMessage$json = { '1': 'DecryptionErrorMessage', '2': [ - {'1': 'type', '3': 1, '4': 1, '5': 14, '6': '.PlaintextContent.DecryptionErrorMessage.Type', '10': 'type'}, + { + '1': 'type', + '3': 1, + '4': 1, + '5': 14, + '6': '.PlaintextContent.DecryptionErrorMessage.Type', + '10': 'type' + }, ], '4': [PlaintextContent_DecryptionErrorMessage_Type$json], }; @@ -103,24 +149,179 @@ final $typed_data.Uint8List plaintextContentDescriptor = $convert.base64Decode( const EncryptedContent$json = { '1': 'EncryptedContent', '2': [ - {'1': 'groupId', '3': 2, '4': 1, '5': 9, '9': 0, '10': 'groupId', '17': true}, - {'1': 'isDirectChat', '3': 3, '4': 1, '5': 8, '9': 1, '10': 'isDirectChat', '17': true}, - {'1': 'senderProfileCounter', '3': 4, '4': 1, '5': 3, '9': 2, '10': 'senderProfileCounter', '17': true}, - {'1': 'messageUpdate', '3': 5, '4': 1, '5': 11, '6': '.EncryptedContent.MessageUpdate', '9': 3, '10': 'messageUpdate', '17': true}, - {'1': 'media', '3': 6, '4': 1, '5': 11, '6': '.EncryptedContent.Media', '9': 4, '10': 'media', '17': true}, - {'1': 'mediaUpdate', '3': 7, '4': 1, '5': 11, '6': '.EncryptedContent.MediaUpdate', '9': 5, '10': 'mediaUpdate', '17': true}, - {'1': 'contactUpdate', '3': 8, '4': 1, '5': 11, '6': '.EncryptedContent.ContactUpdate', '9': 6, '10': 'contactUpdate', '17': true}, - {'1': 'contactRequest', '3': 9, '4': 1, '5': 11, '6': '.EncryptedContent.ContactRequest', '9': 7, '10': 'contactRequest', '17': true}, - {'1': 'flameSync', '3': 10, '4': 1, '5': 11, '6': '.EncryptedContent.FlameSync', '9': 8, '10': 'flameSync', '17': true}, - {'1': 'pushKeys', '3': 11, '4': 1, '5': 11, '6': '.EncryptedContent.PushKeys', '9': 9, '10': 'pushKeys', '17': true}, - {'1': 'reaction', '3': 12, '4': 1, '5': 11, '6': '.EncryptedContent.Reaction', '9': 10, '10': 'reaction', '17': true}, - {'1': 'textMessage', '3': 13, '4': 1, '5': 11, '6': '.EncryptedContent.TextMessage', '9': 11, '10': 'textMessage', '17': true}, - {'1': 'groupCreate', '3': 14, '4': 1, '5': 11, '6': '.EncryptedContent.GroupCreate', '9': 12, '10': 'groupCreate', '17': true}, - {'1': 'groupJoin', '3': 15, '4': 1, '5': 11, '6': '.EncryptedContent.GroupJoin', '9': 13, '10': 'groupJoin', '17': true}, - {'1': 'groupUpdate', '3': 16, '4': 1, '5': 11, '6': '.EncryptedContent.GroupUpdate', '9': 14, '10': 'groupUpdate', '17': true}, - {'1': 'resendGroupPublicKey', '3': 17, '4': 1, '5': 11, '6': '.EncryptedContent.ResendGroupPublicKey', '9': 15, '10': 'resendGroupPublicKey', '17': true}, + { + '1': 'groupId', + '3': 2, + '4': 1, + '5': 9, + '9': 0, + '10': 'groupId', + '17': true + }, + { + '1': 'isDirectChat', + '3': 3, + '4': 1, + '5': 8, + '9': 1, + '10': 'isDirectChat', + '17': true + }, + { + '1': 'senderProfileCounter', + '3': 4, + '4': 1, + '5': 3, + '9': 2, + '10': 'senderProfileCounter', + '17': true + }, + { + '1': 'messageUpdate', + '3': 5, + '4': 1, + '5': 11, + '6': '.EncryptedContent.MessageUpdate', + '9': 3, + '10': 'messageUpdate', + '17': true + }, + { + '1': 'media', + '3': 6, + '4': 1, + '5': 11, + '6': '.EncryptedContent.Media', + '9': 4, + '10': 'media', + '17': true + }, + { + '1': 'mediaUpdate', + '3': 7, + '4': 1, + '5': 11, + '6': '.EncryptedContent.MediaUpdate', + '9': 5, + '10': 'mediaUpdate', + '17': true + }, + { + '1': 'contactUpdate', + '3': 8, + '4': 1, + '5': 11, + '6': '.EncryptedContent.ContactUpdate', + '9': 6, + '10': 'contactUpdate', + '17': true + }, + { + '1': 'contactRequest', + '3': 9, + '4': 1, + '5': 11, + '6': '.EncryptedContent.ContactRequest', + '9': 7, + '10': 'contactRequest', + '17': true + }, + { + '1': 'flameSync', + '3': 10, + '4': 1, + '5': 11, + '6': '.EncryptedContent.FlameSync', + '9': 8, + '10': 'flameSync', + '17': true + }, + { + '1': 'pushKeys', + '3': 11, + '4': 1, + '5': 11, + '6': '.EncryptedContent.PushKeys', + '9': 9, + '10': 'pushKeys', + '17': true + }, + { + '1': 'reaction', + '3': 12, + '4': 1, + '5': 11, + '6': '.EncryptedContent.Reaction', + '9': 10, + '10': 'reaction', + '17': true + }, + { + '1': 'textMessage', + '3': 13, + '4': 1, + '5': 11, + '6': '.EncryptedContent.TextMessage', + '9': 11, + '10': 'textMessage', + '17': true + }, + { + '1': 'groupCreate', + '3': 14, + '4': 1, + '5': 11, + '6': '.EncryptedContent.GroupCreate', + '9': 12, + '10': 'groupCreate', + '17': true + }, + { + '1': 'groupJoin', + '3': 15, + '4': 1, + '5': 11, + '6': '.EncryptedContent.GroupJoin', + '9': 13, + '10': 'groupJoin', + '17': true + }, + { + '1': 'groupUpdate', + '3': 16, + '4': 1, + '5': 11, + '6': '.EncryptedContent.GroupUpdate', + '9': 14, + '10': 'groupUpdate', + '17': true + }, + { + '1': 'resendGroupPublicKey', + '3': 17, + '4': 1, + '5': 11, + '6': '.EncryptedContent.ResendGroupPublicKey', + '9': 15, + '10': 'resendGroupPublicKey', + '17': true + }, + ], + '3': [ + EncryptedContent_GroupCreate$json, + EncryptedContent_GroupJoin$json, + EncryptedContent_ResendGroupPublicKey$json, + EncryptedContent_GroupUpdate$json, + EncryptedContent_TextMessage$json, + EncryptedContent_Reaction$json, + EncryptedContent_MessageUpdate$json, + EncryptedContent_Media$json, + EncryptedContent_MediaUpdate$json, + EncryptedContent_ContactRequest$json, + EncryptedContent_ContactUpdate$json, + EncryptedContent_PushKeys$json, + EncryptedContent_FlameSync$json ], - '3': [EncryptedContent_GroupCreate$json, EncryptedContent_GroupJoin$json, EncryptedContent_ResendGroupPublicKey$json, EncryptedContent_GroupUpdate$json, EncryptedContent_TextMessage$json, EncryptedContent_Reaction$json, EncryptedContent_MessageUpdate$json, EncryptedContent_Media$json, EncryptedContent_MediaUpdate$json, EncryptedContent_ContactRequest$json, EncryptedContent_ContactUpdate$json, EncryptedContent_PushKeys$json, EncryptedContent_FlameSync$json], '8': [ {'1': '_groupId'}, {'1': '_isDirectChat'}, @@ -168,9 +369,33 @@ const EncryptedContent_GroupUpdate$json = { '1': 'GroupUpdate', '2': [ {'1': 'groupActionType', '3': 1, '4': 1, '5': 9, '10': 'groupActionType'}, - {'1': 'affectedContactId', '3': 2, '4': 1, '5': 3, '9': 0, '10': 'affectedContactId', '17': true}, - {'1': 'newGroupName', '3': 3, '4': 1, '5': 9, '9': 1, '10': 'newGroupName', '17': true}, - {'1': 'newDeleteMessagesAfterMilliseconds', '3': 4, '4': 1, '5': 3, '9': 2, '10': 'newDeleteMessagesAfterMilliseconds', '17': true}, + { + '1': 'affectedContactId', + '3': 2, + '4': 1, + '5': 3, + '9': 0, + '10': 'affectedContactId', + '17': true + }, + { + '1': 'newGroupName', + '3': 3, + '4': 1, + '5': 9, + '9': 1, + '10': 'newGroupName', + '17': true + }, + { + '1': 'newDeleteMessagesAfterMilliseconds', + '3': 4, + '4': 1, + '5': 3, + '9': 2, + '10': 'newDeleteMessagesAfterMilliseconds', + '17': true + }, ], '8': [ {'1': '_affectedContactId'}, @@ -186,7 +411,15 @@ const EncryptedContent_TextMessage$json = { {'1': 'senderMessageId', '3': 1, '4': 1, '5': 9, '10': 'senderMessageId'}, {'1': 'text', '3': 2, '4': 1, '5': 9, '10': 'text'}, {'1': 'timestamp', '3': 3, '4': 1, '5': 3, '10': 'timestamp'}, - {'1': 'quoteMessageId', '3': 4, '4': 1, '5': 9, '9': 0, '10': 'quoteMessageId', '17': true}, + { + '1': 'quoteMessageId', + '3': 4, + '4': 1, + '5': 9, + '9': 0, + '10': 'quoteMessageId', + '17': true + }, ], '8': [ {'1': '_quoteMessageId'}, @@ -207,9 +440,30 @@ const EncryptedContent_Reaction$json = { const EncryptedContent_MessageUpdate$json = { '1': 'MessageUpdate', '2': [ - {'1': 'type', '3': 1, '4': 1, '5': 14, '6': '.EncryptedContent.MessageUpdate.Type', '10': 'type'}, - {'1': 'senderMessageId', '3': 2, '4': 1, '5': 9, '9': 0, '10': 'senderMessageId', '17': true}, - {'1': 'multipleTargetMessageIds', '3': 3, '4': 3, '5': 9, '10': 'multipleTargetMessageIds'}, + { + '1': 'type', + '3': 1, + '4': 1, + '5': 14, + '6': '.EncryptedContent.MessageUpdate.Type', + '10': 'type' + }, + { + '1': 'senderMessageId', + '3': 2, + '4': 1, + '5': 9, + '9': 0, + '10': 'senderMessageId', + '17': true + }, + { + '1': 'multipleTargetMessageIds', + '3': 3, + '4': 3, + '5': 9, + '10': 'multipleTargetMessageIds' + }, {'1': 'text', '3': 4, '4': 1, '5': 9, '9': 1, '10': 'text', '17': true}, {'1': 'timestamp', '3': 5, '4': 1, '5': 3, '10': 'timestamp'}, ], @@ -235,15 +489,76 @@ const EncryptedContent_Media$json = { '1': 'Media', '2': [ {'1': 'senderMessageId', '3': 1, '4': 1, '5': 9, '10': 'senderMessageId'}, - {'1': 'type', '3': 2, '4': 1, '5': 14, '6': '.EncryptedContent.Media.Type', '10': 'type'}, - {'1': 'displayLimitInMilliseconds', '3': 3, '4': 1, '5': 3, '9': 0, '10': 'displayLimitInMilliseconds', '17': true}, - {'1': 'requiresAuthentication', '3': 4, '4': 1, '5': 8, '10': 'requiresAuthentication'}, + { + '1': 'type', + '3': 2, + '4': 1, + '5': 14, + '6': '.EncryptedContent.Media.Type', + '10': 'type' + }, + { + '1': 'displayLimitInMilliseconds', + '3': 3, + '4': 1, + '5': 3, + '9': 0, + '10': 'displayLimitInMilliseconds', + '17': true + }, + { + '1': 'requiresAuthentication', + '3': 4, + '4': 1, + '5': 8, + '10': 'requiresAuthentication' + }, {'1': 'timestamp', '3': 5, '4': 1, '5': 3, '10': 'timestamp'}, - {'1': 'quoteMessageId', '3': 6, '4': 1, '5': 9, '9': 1, '10': 'quoteMessageId', '17': true}, - {'1': 'downloadToken', '3': 7, '4': 1, '5': 12, '9': 2, '10': 'downloadToken', '17': true}, - {'1': 'encryptionKey', '3': 8, '4': 1, '5': 12, '9': 3, '10': 'encryptionKey', '17': true}, - {'1': 'encryptionMac', '3': 9, '4': 1, '5': 12, '9': 4, '10': 'encryptionMac', '17': true}, - {'1': 'encryptionNonce', '3': 10, '4': 1, '5': 12, '9': 5, '10': 'encryptionNonce', '17': true}, + { + '1': 'quoteMessageId', + '3': 6, + '4': 1, + '5': 9, + '9': 1, + '10': 'quoteMessageId', + '17': true + }, + { + '1': 'downloadToken', + '3': 7, + '4': 1, + '5': 12, + '9': 2, + '10': 'downloadToken', + '17': true + }, + { + '1': 'encryptionKey', + '3': 8, + '4': 1, + '5': 12, + '9': 3, + '10': 'encryptionKey', + '17': true + }, + { + '1': 'encryptionMac', + '3': 9, + '4': 1, + '5': 12, + '9': 4, + '10': 'encryptionMac', + '17': true + }, + { + '1': 'encryptionNonce', + '3': 10, + '4': 1, + '5': 12, + '9': 5, + '10': 'encryptionNonce', + '17': true + }, ], '4': [EncryptedContent_Media_Type$json], '8': [ @@ -272,7 +587,14 @@ const EncryptedContent_Media_Type$json = { const EncryptedContent_MediaUpdate$json = { '1': 'MediaUpdate', '2': [ - {'1': 'type', '3': 1, '4': 1, '5': 14, '6': '.EncryptedContent.MediaUpdate.Type', '10': 'type'}, + { + '1': 'type', + '3': 1, + '4': 1, + '5': 14, + '6': '.EncryptedContent.MediaUpdate.Type', + '10': 'type' + }, {'1': 'targetMessageId', '3': 2, '4': 1, '5': 9, '10': 'targetMessageId'}, ], '4': [EncryptedContent_MediaUpdate_Type$json], @@ -292,7 +614,14 @@ const EncryptedContent_MediaUpdate_Type$json = { const EncryptedContent_ContactRequest$json = { '1': 'ContactRequest', '2': [ - {'1': 'type', '3': 1, '4': 1, '5': 14, '6': '.EncryptedContent.ContactRequest.Type', '10': 'type'}, + { + '1': 'type', + '3': 1, + '4': 1, + '5': 14, + '6': '.EncryptedContent.ContactRequest.Type', + '10': 'type' + }, ], '4': [EncryptedContent_ContactRequest_Type$json], }; @@ -311,10 +640,41 @@ const EncryptedContent_ContactRequest_Type$json = { const EncryptedContent_ContactUpdate$json = { '1': 'ContactUpdate', '2': [ - {'1': 'type', '3': 1, '4': 1, '5': 14, '6': '.EncryptedContent.ContactUpdate.Type', '10': 'type'}, - {'1': 'avatarSvgCompressed', '3': 2, '4': 1, '5': 12, '9': 0, '10': 'avatarSvgCompressed', '17': true}, - {'1': 'username', '3': 3, '4': 1, '5': 9, '9': 1, '10': 'username', '17': true}, - {'1': 'displayName', '3': 4, '4': 1, '5': 9, '9': 2, '10': 'displayName', '17': true}, + { + '1': 'type', + '3': 1, + '4': 1, + '5': 14, + '6': '.EncryptedContent.ContactUpdate.Type', + '10': 'type' + }, + { + '1': 'avatarSvgCompressed', + '3': 2, + '4': 1, + '5': 12, + '9': 0, + '10': 'avatarSvgCompressed', + '17': true + }, + { + '1': 'username', + '3': 3, + '4': 1, + '5': 9, + '9': 1, + '10': 'username', + '17': true + }, + { + '1': 'displayName', + '3': 4, + '4': 1, + '5': 9, + '9': 2, + '10': 'displayName', + '17': true + }, ], '4': [EncryptedContent_ContactUpdate_Type$json], '8': [ @@ -337,10 +697,25 @@ const EncryptedContent_ContactUpdate_Type$json = { const EncryptedContent_PushKeys$json = { '1': 'PushKeys', '2': [ - {'1': 'type', '3': 1, '4': 1, '5': 14, '6': '.EncryptedContent.PushKeys.Type', '10': 'type'}, + { + '1': 'type', + '3': 1, + '4': 1, + '5': 14, + '6': '.EncryptedContent.PushKeys.Type', + '10': 'type' + }, {'1': 'keyId', '3': 2, '4': 1, '5': 3, '9': 0, '10': 'keyId', '17': true}, {'1': 'key', '3': 3, '4': 1, '5': 12, '9': 1, '10': 'key', '17': true}, - {'1': 'createdAt', '3': 4, '4': 1, '5': 3, '9': 2, '10': 'createdAt', '17': true}, + { + '1': 'createdAt', + '3': 4, + '4': 1, + '5': 3, + '9': 2, + '10': 'createdAt', + '17': true + }, ], '4': [EncryptedContent_PushKeys_Type$json], '8': [ @@ -364,7 +739,13 @@ const EncryptedContent_FlameSync$json = { '1': 'FlameSync', '2': [ {'1': 'flameCounter', '3': 1, '4': 1, '5': 3, '10': 'flameCounter'}, - {'1': 'lastFlameCounterChange', '3': 2, '4': 1, '5': 3, '10': 'lastFlameCounterChange'}, + { + '1': 'lastFlameCounterChange', + '3': 2, + '4': 1, + '5': 3, + '10': 'lastFlameCounterChange' + }, {'1': 'bestFriend', '3': 3, '4': 1, '5': 8, '10': 'bestFriend'}, {'1': 'forceUpdate', '3': 4, '4': 1, '5': 8, '10': 'forceUpdate'}, ], @@ -445,4 +826,3 @@ final $typed_data.Uint8List encryptedContentDescriptor = $convert.base64Decode( 'dEIMCgpfZmxhbWVTeW5jQgsKCV9wdXNoS2V5c0ILCglfcmVhY3Rpb25CDgoMX3RleHRNZXNzYW' 'dlQg4KDF9ncm91cENyZWF0ZUIMCgpfZ3JvdXBKb2luQg4KDF9ncm91cFVwZGF0ZUIXChVfcmVz' 'ZW5kR3JvdXBQdWJsaWNLZXk='); - diff --git a/lib/src/model/protobuf/client/generated/push_notification.pb.dart b/lib/src/model/protobuf/client/generated/push_notification.pb.dart index c4ad7fe..8bff1bb 100644 --- a/lib/src/model/protobuf/client/generated/push_notification.pb.dart +++ b/lib/src/model/protobuf/client/generated/push_notification.pb.dart @@ -1,13 +1,14 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: push_notification.proto -// -// @dart = 2.12 +// Generated from push_notification.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names import 'dart:core' as $core; @@ -16,6 +17,8 @@ import 'package:protobuf/protobuf.dart' as $pb; import 'push_notification.pbenum.dart'; +export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; + export 'push_notification.pbenum.dart'; class EncryptedPushNotification extends $pb.GeneratedMessage { @@ -25,89 +28,93 @@ class EncryptedPushNotification extends $pb.GeneratedMessage { $core.List<$core.int>? ciphertext, $core.List<$core.int>? mac, }) { - final $result = create(); - if (keyId != null) { - $result.keyId = keyId; - } - if (nonce != null) { - $result.nonce = nonce; - } - if (ciphertext != null) { - $result.ciphertext = ciphertext; - } - if (mac != null) { - $result.mac = mac; - } - return $result; + final result = create(); + if (keyId != null) result.keyId = keyId; + if (nonce != null) result.nonce = nonce; + if (ciphertext != null) result.ciphertext = ciphertext; + if (mac != null) result.mac = mac; + return result; } - EncryptedPushNotification._() : super(); - factory EncryptedPushNotification.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory EncryptedPushNotification.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EncryptedPushNotification', createEmptyInstance: create) + EncryptedPushNotification._(); + + factory EncryptedPushNotification.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory EncryptedPushNotification.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EncryptedPushNotification', + createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'keyId', protoName: 'keyId') - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'nonce', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'ciphertext', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(4, _omitFieldNames ? '' : 'mac', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'nonce', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'ciphertext', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 4, _omitFieldNames ? '' : 'mac', $pb.PbFieldType.OY) + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - EncryptedPushNotification clone() => EncryptedPushNotification()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - EncryptedPushNotification copyWith(void Function(EncryptedPushNotification) updates) => super.copyWith((message) => updates(message as EncryptedPushNotification)) as EncryptedPushNotification; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedPushNotification clone() => + EncryptedPushNotification()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + EncryptedPushNotification copyWith( + void Function(EncryptedPushNotification) updates) => + super.copyWith((message) => updates(message as EncryptedPushNotification)) + as EncryptedPushNotification; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static EncryptedPushNotification create() => EncryptedPushNotification._(); + @$core.override EncryptedPushNotification createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static EncryptedPushNotification getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static EncryptedPushNotification getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static EncryptedPushNotification? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get keyId => $_getI64(0); @$pb.TagNumber(1) - set keyId($fixnum.Int64 v) { $_setInt64(0, v); } + set keyId($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasKeyId() => $_has(0); @$pb.TagNumber(1) - void clearKeyId() => clearField(1); + void clearKeyId() => $_clearField(1); @$pb.TagNumber(2) $core.List<$core.int> get nonce => $_getN(1); @$pb.TagNumber(2) - set nonce($core.List<$core.int> v) { $_setBytes(1, v); } + set nonce($core.List<$core.int> value) => $_setBytes(1, value); @$pb.TagNumber(2) $core.bool hasNonce() => $_has(1); @$pb.TagNumber(2) - void clearNonce() => clearField(2); + void clearNonce() => $_clearField(2); @$pb.TagNumber(3) $core.List<$core.int> get ciphertext => $_getN(2); @$pb.TagNumber(3) - set ciphertext($core.List<$core.int> v) { $_setBytes(2, v); } + set ciphertext($core.List<$core.int> value) => $_setBytes(2, value); @$pb.TagNumber(3) $core.bool hasCiphertext() => $_has(2); @$pb.TagNumber(3) - void clearCiphertext() => clearField(3); + void clearCiphertext() => $_clearField(3); @$pb.TagNumber(4) $core.List<$core.int> get mac => $_getN(3); @$pb.TagNumber(4) - set mac($core.List<$core.int> v) { $_setBytes(3, v); } + set mac($core.List<$core.int> value) => $_setBytes(3, value); @$pb.TagNumber(4) $core.bool hasMac() => $_has(3); @$pb.TagNumber(4) - void clearMac() => clearField(4); + void clearMac() => $_clearField(4); } class PushNotification extends $pb.GeneratedMessage { @@ -116,120 +123,129 @@ class PushNotification extends $pb.GeneratedMessage { $core.String? messageId, $core.String? additionalContent, }) { - final $result = create(); - if (kind != null) { - $result.kind = kind; - } - if (messageId != null) { - $result.messageId = messageId; - } - if (additionalContent != null) { - $result.additionalContent = additionalContent; - } - return $result; + final result = create(); + if (kind != null) result.kind = kind; + if (messageId != null) result.messageId = messageId; + if (additionalContent != null) result.additionalContent = additionalContent; + return result; } - PushNotification._() : super(); - factory PushNotification.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PushNotification.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PushNotification', createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'kind', $pb.PbFieldType.OE, defaultOrMaker: PushKind.reaction, valueOf: PushKind.valueOf, enumValues: PushKind.values) + PushNotification._(); + + factory PushNotification.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory PushNotification.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PushNotification', + createEmptyInstance: create) + ..e(1, _omitFieldNames ? '' : 'kind', $pb.PbFieldType.OE, + defaultOrMaker: PushKind.reaction, + valueOf: PushKind.valueOf, + enumValues: PushKind.values) ..aOS(2, _omitFieldNames ? '' : 'messageId', protoName: 'messageId') - ..aOS(3, _omitFieldNames ? '' : 'additionalContent', protoName: 'additionalContent') - ..hasRequiredFields = false - ; + ..aOS(3, _omitFieldNames ? '' : 'additionalContent', + protoName: 'additionalContent') + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') PushNotification clone() => PushNotification()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PushNotification copyWith(void Function(PushNotification) updates) => super.copyWith((message) => updates(message as PushNotification)) as PushNotification; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + PushNotification copyWith(void Function(PushNotification) updates) => + super.copyWith((message) => updates(message as PushNotification)) + as PushNotification; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PushNotification create() => PushNotification._(); + @$core.override PushNotification createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PushNotification getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PushNotification getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PushNotification? _defaultInstance; @$pb.TagNumber(1) PushKind get kind => $_getN(0); @$pb.TagNumber(1) - set kind(PushKind v) { setField(1, v); } + set kind(PushKind value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasKind() => $_has(0); @$pb.TagNumber(1) - void clearKind() => clearField(1); + void clearKind() => $_clearField(1); @$pb.TagNumber(2) $core.String get messageId => $_getSZ(1); @$pb.TagNumber(2) - set messageId($core.String v) { $_setString(1, v); } + set messageId($core.String value) => $_setString(1, value); @$pb.TagNumber(2) $core.bool hasMessageId() => $_has(1); @$pb.TagNumber(2) - void clearMessageId() => clearField(2); + void clearMessageId() => $_clearField(2); @$pb.TagNumber(3) $core.String get additionalContent => $_getSZ(2); @$pb.TagNumber(3) - set additionalContent($core.String v) { $_setString(2, v); } + set additionalContent($core.String value) => $_setString(2, value); @$pb.TagNumber(3) $core.bool hasAdditionalContent() => $_has(2); @$pb.TagNumber(3) - void clearAdditionalContent() => clearField(3); + void clearAdditionalContent() => $_clearField(3); } class PushUsers extends $pb.GeneratedMessage { factory PushUsers({ $core.Iterable? users, }) { - final $result = create(); - if (users != null) { - $result.users.addAll(users); - } - return $result; + final result = create(); + if (users != null) result.users.addAll(users); + return result; } - PushUsers._() : super(); - factory PushUsers.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PushUsers.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PushUsers', createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'users', $pb.PbFieldType.PM, subBuilder: PushUser.create) - ..hasRequiredFields = false - ; + PushUsers._(); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory PushUsers.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory PushUsers.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PushUsers', + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'users', $pb.PbFieldType.PM, + subBuilder: PushUser.create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') PushUsers clone() => PushUsers()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PushUsers copyWith(void Function(PushUsers) updates) => super.copyWith((message) => updates(message as PushUsers)) as PushUsers; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + PushUsers copyWith(void Function(PushUsers) updates) => + super.copyWith((message) => updates(message as PushUsers)) as PushUsers; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PushUsers create() => PushUsers._(); + @$core.override PushUsers createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static PushUsers getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PushUsers getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static PushUsers? _defaultInstance; @$pb.TagNumber(1) - $core.List get users => $_getList(0); + $pb.PbList get users => $_getList(0); } class PushUser extends $pb.GeneratedMessage { @@ -240,96 +256,92 @@ class PushUser extends $pb.GeneratedMessage { $core.String? lastMessageId, $core.Iterable? pushKeys, }) { - final $result = create(); - if (userId != null) { - $result.userId = userId; - } - if (displayName != null) { - $result.displayName = displayName; - } - if (blocked != null) { - $result.blocked = blocked; - } - if (lastMessageId != null) { - $result.lastMessageId = lastMessageId; - } - if (pushKeys != null) { - $result.pushKeys.addAll(pushKeys); - } - return $result; + final result = create(); + if (userId != null) result.userId = userId; + if (displayName != null) result.displayName = displayName; + if (blocked != null) result.blocked = blocked; + if (lastMessageId != null) result.lastMessageId = lastMessageId; + if (pushKeys != null) result.pushKeys.addAll(pushKeys); + return result; } - PushUser._() : super(); - factory PushUser.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PushUser.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PushUser', createEmptyInstance: create) + PushUser._(); + + factory PushUser.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory PushUser.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PushUser', + createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'userId', protoName: 'userId') ..aOS(2, _omitFieldNames ? '' : 'displayName', protoName: 'displayName') ..aOB(3, _omitFieldNames ? '' : 'blocked') ..aOS(4, _omitFieldNames ? '' : 'lastMessageId', protoName: 'lastMessageId') - ..pc(5, _omitFieldNames ? '' : 'pushKeys', $pb.PbFieldType.PM, protoName: 'pushKeys', subBuilder: PushKey.create) - ..hasRequiredFields = false - ; + ..pc(5, _omitFieldNames ? '' : 'pushKeys', $pb.PbFieldType.PM, + protoName: 'pushKeys', subBuilder: PushKey.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') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') PushUser clone() => PushUser()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PushUser copyWith(void Function(PushUser) updates) => super.copyWith((message) => updates(message as PushUser)) as PushUser; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + PushUser copyWith(void Function(PushUser) updates) => + super.copyWith((message) => updates(message as PushUser)) as PushUser; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PushUser create() => PushUser._(); + @$core.override PushUser createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static PushUser getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PushUser getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static PushUser? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get userId => $_getI64(0); @$pb.TagNumber(1) - set userId($fixnum.Int64 v) { $_setInt64(0, v); } + set userId($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasUserId() => $_has(0); @$pb.TagNumber(1) - void clearUserId() => clearField(1); + void clearUserId() => $_clearField(1); @$pb.TagNumber(2) $core.String get displayName => $_getSZ(1); @$pb.TagNumber(2) - set displayName($core.String v) { $_setString(1, v); } + set displayName($core.String value) => $_setString(1, value); @$pb.TagNumber(2) $core.bool hasDisplayName() => $_has(1); @$pb.TagNumber(2) - void clearDisplayName() => clearField(2); + void clearDisplayName() => $_clearField(2); @$pb.TagNumber(3) $core.bool get blocked => $_getBF(2); @$pb.TagNumber(3) - set blocked($core.bool v) { $_setBool(2, v); } + set blocked($core.bool value) => $_setBool(2, value); @$pb.TagNumber(3) $core.bool hasBlocked() => $_has(2); @$pb.TagNumber(3) - void clearBlocked() => clearField(3); + void clearBlocked() => $_clearField(3); @$pb.TagNumber(4) $core.String get lastMessageId => $_getSZ(3); @$pb.TagNumber(4) - set lastMessageId($core.String v) { $_setString(3, v); } + set lastMessageId($core.String value) => $_setString(3, value); @$pb.TagNumber(4) $core.bool hasLastMessageId() => $_has(3); @$pb.TagNumber(4) - void clearLastMessageId() => clearField(4); + void clearLastMessageId() => $_clearField(4); @$pb.TagNumber(5) - $core.List get pushKeys => $_getList(4); + $pb.PbList get pushKeys => $_getList(4); } class PushKey extends $pb.GeneratedMessage { @@ -338,78 +350,81 @@ class PushKey extends $pb.GeneratedMessage { $core.List<$core.int>? key, $fixnum.Int64? createdAtUnixTimestamp, }) { - final $result = create(); - if (id != null) { - $result.id = id; - } - if (key != null) { - $result.key = key; - } - if (createdAtUnixTimestamp != null) { - $result.createdAtUnixTimestamp = createdAtUnixTimestamp; - } - return $result; + final result = create(); + if (id != null) result.id = id; + if (key != null) result.key = key; + if (createdAtUnixTimestamp != null) + result.createdAtUnixTimestamp = createdAtUnixTimestamp; + return result; } - PushKey._() : super(); - factory PushKey.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PushKey.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PushKey', createEmptyInstance: create) + PushKey._(); + + factory PushKey.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory PushKey.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PushKey', + createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'id') - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'key', $pb.PbFieldType.OY) - ..aInt64(3, _omitFieldNames ? '' : 'createdAtUnixTimestamp', protoName: 'createdAtUnixTimestamp') - ..hasRequiredFields = false - ; + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'key', $pb.PbFieldType.OY) + ..aInt64(3, _omitFieldNames ? '' : 'createdAtUnixTimestamp', + protoName: 'createdAtUnixTimestamp') + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') PushKey clone() => PushKey()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PushKey copyWith(void Function(PushKey) updates) => super.copyWith((message) => updates(message as PushKey)) as PushKey; + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + PushKey copyWith(void Function(PushKey) updates) => + super.copyWith((message) => updates(message as PushKey)) as PushKey; + @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PushKey create() => PushKey._(); + @$core.override PushKey createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static PushKey getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PushKey getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static PushKey? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get id => $_getI64(0); @$pb.TagNumber(1) - set id($fixnum.Int64 v) { $_setInt64(0, v); } + set id($fixnum.Int64 value) => $_setInt64(0, value); @$pb.TagNumber(1) $core.bool hasId() => $_has(0); @$pb.TagNumber(1) - void clearId() => clearField(1); + void clearId() => $_clearField(1); @$pb.TagNumber(2) $core.List<$core.int> get key => $_getN(1); @$pb.TagNumber(2) - set key($core.List<$core.int> v) { $_setBytes(1, v); } + set key($core.List<$core.int> value) => $_setBytes(1, value); @$pb.TagNumber(2) $core.bool hasKey() => $_has(1); @$pb.TagNumber(2) - void clearKey() => clearField(2); + void clearKey() => $_clearField(2); @$pb.TagNumber(3) $fixnum.Int64 get createdAtUnixTimestamp => $_getI64(2); @$pb.TagNumber(3) - set createdAtUnixTimestamp($fixnum.Int64 v) { $_setInt64(2, v); } + set createdAtUnixTimestamp($fixnum.Int64 value) => $_setInt64(2, value); @$pb.TagNumber(3) $core.bool hasCreatedAtUnixTimestamp() => $_has(2); @$pb.TagNumber(3) - void clearCreatedAtUnixTimestamp() => clearField(3); + void clearCreatedAtUnixTimestamp() => $_clearField(3); } - -const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/src/model/protobuf/client/generated/push_notification.pbenum.dart b/lib/src/model/protobuf/client/generated/push_notification.pbenum.dart index 2a2fbf7..a315a3b 100644 --- a/lib/src/model/protobuf/client/generated/push_notification.pbenum.dart +++ b/lib/src/model/protobuf/client/generated/push_notification.pbenum.dart @@ -1,38 +1,51 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: push_notification.proto -// -// @dart = 2.12 +// Generated from push_notification.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; class PushKind extends $pb.ProtobufEnum { - static const PushKind reaction = PushKind._(0, _omitEnumNames ? '' : 'reaction'); - static const PushKind response = PushKind._(1, _omitEnumNames ? '' : 'response'); + static const PushKind reaction = + PushKind._(0, _omitEnumNames ? '' : 'reaction'); + static const PushKind response = + PushKind._(1, _omitEnumNames ? '' : 'response'); static const PushKind text = PushKind._(2, _omitEnumNames ? '' : 'text'); static const PushKind video = PushKind._(3, _omitEnumNames ? '' : 'video'); static const PushKind twonly = PushKind._(4, _omitEnumNames ? '' : 'twonly'); static const PushKind image = PushKind._(5, _omitEnumNames ? '' : 'image'); - static const PushKind contactRequest = PushKind._(6, _omitEnumNames ? '' : 'contactRequest'); - static const PushKind acceptRequest = PushKind._(7, _omitEnumNames ? '' : 'acceptRequest'); - static const PushKind storedMediaFile = PushKind._(8, _omitEnumNames ? '' : 'storedMediaFile'); - static const PushKind testNotification = PushKind._(9, _omitEnumNames ? '' : 'testNotification'); - static const PushKind reopenedMedia = PushKind._(10, _omitEnumNames ? '' : 'reopenedMedia'); - static const PushKind reactionToVideo = PushKind._(11, _omitEnumNames ? '' : 'reactionToVideo'); - static const PushKind reactionToText = PushKind._(12, _omitEnumNames ? '' : 'reactionToText'); - static const PushKind reactionToImage = PushKind._(13, _omitEnumNames ? '' : 'reactionToImage'); - static const PushKind reactionToAudio = PushKind._(14, _omitEnumNames ? '' : 'reactionToAudio'); - static const PushKind addedToGroup = PushKind._(15, _omitEnumNames ? '' : 'addedToGroup'); + static const PushKind contactRequest = + PushKind._(6, _omitEnumNames ? '' : 'contactRequest'); + static const PushKind acceptRequest = + PushKind._(7, _omitEnumNames ? '' : 'acceptRequest'); + static const PushKind storedMediaFile = + PushKind._(8, _omitEnumNames ? '' : 'storedMediaFile'); + static const PushKind testNotification = + PushKind._(9, _omitEnumNames ? '' : 'testNotification'); + static const PushKind reopenedMedia = + PushKind._(10, _omitEnumNames ? '' : 'reopenedMedia'); + static const PushKind reactionToVideo = + PushKind._(11, _omitEnumNames ? '' : 'reactionToVideo'); + static const PushKind reactionToText = + PushKind._(12, _omitEnumNames ? '' : 'reactionToText'); + static const PushKind reactionToImage = + PushKind._(13, _omitEnumNames ? '' : 'reactionToImage'); + static const PushKind reactionToAudio = + PushKind._(14, _omitEnumNames ? '' : 'reactionToAudio'); + static const PushKind addedToGroup = + PushKind._(15, _omitEnumNames ? '' : 'addedToGroup'); static const PushKind audio = PushKind._(16, _omitEnumNames ? '' : 'audio'); - static const $core.List values = [ + static const $core.List values = [ reaction, response, text, @@ -52,11 +65,13 @@ class PushKind extends $pb.ProtobufEnum { audio, ]; - static final $core.Map<$core.int, PushKind> _byValue = $pb.ProtobufEnum.initByValue(values); - static PushKind? valueOf($core.int value) => _byValue[value]; + static final $core.List _byValue = + $pb.ProtobufEnum.$_initByValueList(values, 16); + static PushKind? valueOf($core.int value) => + value < 0 || value >= _byValue.length ? null : _byValue[value]; - const PushKind._($core.int v, $core.String n) : super(v, n); + const PushKind._(super.value, super.name); } - -const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); +const $core.bool _omitEnumNames = + $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/lib/src/model/protobuf/client/generated/push_notification.pbjson.dart b/lib/src/model/protobuf/client/generated/push_notification.pbjson.dart index 4d576a1..d756e6f 100644 --- a/lib/src/model/protobuf/client/generated/push_notification.pbjson.dart +++ b/lib/src/model/protobuf/client/generated/push_notification.pbjson.dart @@ -1,13 +1,14 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: push_notification.proto -// -// @dart = 2.12 +// Generated from push_notification.proto. + +// @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names, unused_import import 'dart:convert' as $convert; import 'dart:core' as $core; @@ -68,8 +69,24 @@ const PushNotification$json = { '1': 'PushNotification', '2': [ {'1': 'kind', '3': 1, '4': 1, '5': 14, '6': '.PushKind', '10': 'kind'}, - {'1': 'messageId', '3': 2, '4': 1, '5': 9, '9': 0, '10': 'messageId', '17': true}, - {'1': 'additionalContent', '3': 3, '4': 1, '5': 9, '9': 1, '10': 'additionalContent', '17': true}, + { + '1': 'messageId', + '3': 2, + '4': 1, + '5': 9, + '9': 0, + '10': 'messageId', + '17': true + }, + { + '1': 'additionalContent', + '3': 3, + '4': 1, + '5': 9, + '9': 1, + '10': 'additionalContent', + '17': true + }, ], '8': [ {'1': '_messageId'}, @@ -103,8 +120,23 @@ const PushUser$json = { {'1': 'userId', '3': 1, '4': 1, '5': 3, '10': 'userId'}, {'1': 'displayName', '3': 2, '4': 1, '5': 9, '10': 'displayName'}, {'1': 'blocked', '3': 3, '4': 1, '5': 8, '10': 'blocked'}, - {'1': 'lastMessageId', '3': 4, '4': 1, '5': 9, '9': 0, '10': 'lastMessageId', '17': true}, - {'1': 'pushKeys', '3': 5, '4': 3, '5': 11, '6': '.PushKey', '10': 'pushKeys'}, + { + '1': 'lastMessageId', + '3': 4, + '4': 1, + '5': 9, + '9': 0, + '10': 'lastMessageId', + '17': true + }, + { + '1': 'pushKeys', + '3': 5, + '4': 3, + '5': 11, + '6': '.PushKey', + '10': 'pushKeys' + }, ], '8': [ {'1': '_lastMessageId'}, @@ -124,7 +156,13 @@ const PushKey$json = { '2': [ {'1': 'id', '3': 1, '4': 1, '5': 3, '10': 'id'}, {'1': 'key', '3': 2, '4': 1, '5': 12, '10': 'key'}, - {'1': 'createdAtUnixTimestamp', '3': 3, '4': 1, '5': 3, '10': 'createdAtUnixTimestamp'}, + { + '1': 'createdAtUnixTimestamp', + '3': 3, + '4': 1, + '5': 3, + '10': 'createdAtUnixTimestamp' + }, ], }; @@ -132,4 +170,3 @@ const PushKey$json = { final $typed_data.Uint8List pushKeyDescriptor = $convert.base64Decode( 'CgdQdXNoS2V5Eg4KAmlkGAEgASgDUgJpZBIQCgNrZXkYAiABKAxSA2tleRI2ChZjcmVhdGVkQX' 'RVbml4VGltZXN0YW1wGAMgASgDUhZjcmVhdGVkQXRVbml4VGltZXN0YW1w'); - diff --git a/lib/src/model/protobuf/client/generated/qr.pb.dart b/lib/src/model/protobuf/client/generated/qr.pb.dart new file mode 100644 index 0000000..f4e4cfa --- /dev/null +++ b/lib/src/model/protobuf/client/generated/qr.pb.dart @@ -0,0 +1,228 @@ +// This is a generated file - do not edit. +// +// Generated from qr.proto. + +// @dart = 3.3 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names + +import 'dart:core' as $core; + +import 'package:fixnum/fixnum.dart' as $fixnum; +import 'package:protobuf/protobuf.dart' as $pb; + +import 'qr.pbenum.dart'; + +export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; + +export 'qr.pbenum.dart'; + +class QREnvelope extends $pb.GeneratedMessage { + factory QREnvelope({ + QREnvelope_Type? type, + $core.List<$core.int>? data, + }) { + final result = create(); + if (type != null) result.type = type; + if (data != null) result.data = data; + return result; + } + + QREnvelope._(); + + factory QREnvelope.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory QREnvelope.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'QREnvelope', + createEmptyInstance: create) + ..e(2, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, + defaultOrMaker: QREnvelope_Type.PublicProfile, + valueOf: QREnvelope_Type.valueOf, + enumValues: QREnvelope_Type.values) + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'data', $pb.PbFieldType.OY) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + QREnvelope clone() => QREnvelope()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + QREnvelope copyWith(void Function(QREnvelope) updates) => + super.copyWith((message) => updates(message as QREnvelope)) as QREnvelope; + + @$core.override + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static QREnvelope create() => QREnvelope._(); + @$core.override + QREnvelope createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static QREnvelope getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static QREnvelope? _defaultInstance; + + @$pb.TagNumber(2) + QREnvelope_Type get type => $_getN(0); + @$pb.TagNumber(2) + set type(QREnvelope_Type value) => $_setField(2, value); + @$pb.TagNumber(2) + $core.bool hasType() => $_has(0); + @$pb.TagNumber(2) + void clearType() => $_clearField(2); + + @$pb.TagNumber(3) + $core.List<$core.int> get data => $_getN(1); + @$pb.TagNumber(3) + set data($core.List<$core.int> value) => $_setBytes(1, value); + @$pb.TagNumber(3) + $core.bool hasData() => $_has(1); + @$pb.TagNumber(3) + void clearData() => $_clearField(3); +} + +class PublicProfile extends $pb.GeneratedMessage { + factory PublicProfile({ + $fixnum.Int64? userId, + $core.String? username, + $core.List<$core.int>? publicIdentityKey, + $core.List<$core.int>? signedPrekey, + $fixnum.Int64? registrationId, + $core.List<$core.int>? signedPrekeySignature, + $fixnum.Int64? signedPrekeyId, + }) { + final result = create(); + if (userId != null) result.userId = userId; + if (username != null) result.username = username; + if (publicIdentityKey != null) result.publicIdentityKey = publicIdentityKey; + if (signedPrekey != null) result.signedPrekey = signedPrekey; + if (registrationId != null) result.registrationId = registrationId; + if (signedPrekeySignature != null) + result.signedPrekeySignature = signedPrekeySignature; + if (signedPrekeyId != null) result.signedPrekeyId = signedPrekeyId; + return result; + } + + PublicProfile._(); + + factory PublicProfile.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory PublicProfile.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PublicProfile', + createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'userId') + ..aOS(2, _omitFieldNames ? '' : 'username') + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'publicIdentityKey', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 4, _omitFieldNames ? '' : 'signedPrekey', $pb.PbFieldType.OY) + ..aInt64(5, _omitFieldNames ? '' : 'registrationId') + ..a<$core.List<$core.int>>( + 6, _omitFieldNames ? '' : 'signedPrekeySignature', $pb.PbFieldType.OY) + ..aInt64(7, _omitFieldNames ? '' : 'signedPrekeyId') + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + PublicProfile clone() => PublicProfile()..mergeFromMessage(this); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + PublicProfile copyWith(void Function(PublicProfile) updates) => + super.copyWith((message) => updates(message as PublicProfile)) + as PublicProfile; + + @$core.override + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static PublicProfile create() => PublicProfile._(); + @$core.override + PublicProfile createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static PublicProfile getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static PublicProfile? _defaultInstance; + + @$pb.TagNumber(1) + $fixnum.Int64 get userId => $_getI64(0); + @$pb.TagNumber(1) + set userId($fixnum.Int64 value) => $_setInt64(0, value); + @$pb.TagNumber(1) + $core.bool hasUserId() => $_has(0); + @$pb.TagNumber(1) + void clearUserId() => $_clearField(1); + + @$pb.TagNumber(2) + $core.String get username => $_getSZ(1); + @$pb.TagNumber(2) + set username($core.String value) => $_setString(1, value); + @$pb.TagNumber(2) + $core.bool hasUsername() => $_has(1); + @$pb.TagNumber(2) + void clearUsername() => $_clearField(2); + + @$pb.TagNumber(3) + $core.List<$core.int> get publicIdentityKey => $_getN(2); + @$pb.TagNumber(3) + set publicIdentityKey($core.List<$core.int> value) => $_setBytes(2, value); + @$pb.TagNumber(3) + $core.bool hasPublicIdentityKey() => $_has(2); + @$pb.TagNumber(3) + void clearPublicIdentityKey() => $_clearField(3); + + @$pb.TagNumber(4) + $core.List<$core.int> get signedPrekey => $_getN(3); + @$pb.TagNumber(4) + set signedPrekey($core.List<$core.int> value) => $_setBytes(3, value); + @$pb.TagNumber(4) + $core.bool hasSignedPrekey() => $_has(3); + @$pb.TagNumber(4) + void clearSignedPrekey() => $_clearField(4); + + @$pb.TagNumber(5) + $fixnum.Int64 get registrationId => $_getI64(4); + @$pb.TagNumber(5) + set registrationId($fixnum.Int64 value) => $_setInt64(4, value); + @$pb.TagNumber(5) + $core.bool hasRegistrationId() => $_has(4); + @$pb.TagNumber(5) + void clearRegistrationId() => $_clearField(5); + + @$pb.TagNumber(6) + $core.List<$core.int> get signedPrekeySignature => $_getN(5); + @$pb.TagNumber(6) + set signedPrekeySignature($core.List<$core.int> value) => + $_setBytes(5, value); + @$pb.TagNumber(6) + $core.bool hasSignedPrekeySignature() => $_has(5); + @$pb.TagNumber(6) + void clearSignedPrekeySignature() => $_clearField(6); + + @$pb.TagNumber(7) + $fixnum.Int64 get signedPrekeyId => $_getI64(6); + @$pb.TagNumber(7) + set signedPrekeyId($fixnum.Int64 value) => $_setInt64(6, value); + @$pb.TagNumber(7) + $core.bool hasSignedPrekeyId() => $_has(6); + @$pb.TagNumber(7) + void clearSignedPrekeyId() => $_clearField(7); +} + +const $core.bool _omitFieldNames = + $core.bool.fromEnvironment('protobuf.omit_field_names'); +const $core.bool _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/src/model/protobuf/client/generated/qr.pbenum.dart b/lib/src/model/protobuf/client/generated/qr.pbenum.dart new file mode 100644 index 0000000..ea18fd0 --- /dev/null +++ b/lib/src/model/protobuf/client/generated/qr.pbenum.dart @@ -0,0 +1,34 @@ +// This is a generated file - do not edit. +// +// Generated from qr.proto. + +// @dart = 3.3 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names + +import 'dart:core' as $core; + +import 'package:protobuf/protobuf.dart' as $pb; + +class QREnvelope_Type extends $pb.ProtobufEnum { + static const QREnvelope_Type PublicProfile = + QREnvelope_Type._(0, _omitEnumNames ? '' : 'PublicProfile'); + + static const $core.List values = [ + PublicProfile, + ]; + + static final $core.List _byValue = + $pb.ProtobufEnum.$_initByValueList(values, 0); + static QREnvelope_Type? valueOf($core.int value) => + value < 0 || value >= _byValue.length ? null : _byValue[value]; + + const QREnvelope_Type._(super.value, super.name); +} + +const $core.bool _omitEnumNames = + $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/lib/src/model/protobuf/client/generated/qr.pbjson.dart b/lib/src/model/protobuf/client/generated/qr.pbjson.dart new file mode 100644 index 0000000..40bc65e --- /dev/null +++ b/lib/src/model/protobuf/client/generated/qr.pbjson.dart @@ -0,0 +1,80 @@ +// This is a generated file - do not edit. +// +// Generated from qr.proto. + +// @dart = 3.3 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// ignore_for_file: constant_identifier_names +// ignore_for_file: curly_braces_in_flow_control_structures +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names, unused_import + +import 'dart:convert' as $convert; +import 'dart:core' as $core; +import 'dart:typed_data' as $typed_data; + +@$core.Deprecated('Use qREnvelopeDescriptor instead') +const QREnvelope$json = { + '1': 'QREnvelope', + '2': [ + { + '1': 'type', + '3': 2, + '4': 1, + '5': 14, + '6': '.QREnvelope.Type', + '10': 'type' + }, + {'1': 'data', '3': 3, '4': 1, '5': 12, '10': 'data'}, + ], + '4': [QREnvelope_Type$json], +}; + +@$core.Deprecated('Use qREnvelopeDescriptor instead') +const QREnvelope_Type$json = { + '1': 'Type', + '2': [ + {'1': 'PublicProfile', '2': 0}, + ], +}; + +/// Descriptor for `QREnvelope`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List qREnvelopeDescriptor = $convert.base64Decode( + 'CgpRUkVudmVsb3BlEiQKBHR5cGUYAiABKA4yEC5RUkVudmVsb3BlLlR5cGVSBHR5cGUSEgoEZG' + 'F0YRgDIAEoDFIEZGF0YSIZCgRUeXBlEhEKDVB1YmxpY1Byb2ZpbGUQAA=='); + +@$core.Deprecated('Use publicProfileDescriptor instead') +const PublicProfile$json = { + '1': 'PublicProfile', + '2': [ + {'1': 'user_id', '3': 1, '4': 1, '5': 3, '10': 'userId'}, + {'1': 'username', '3': 2, '4': 1, '5': 9, '10': 'username'}, + { + '1': 'public_identity_key', + '3': 3, + '4': 1, + '5': 12, + '10': 'publicIdentityKey' + }, + {'1': 'signed_prekey', '3': 4, '4': 1, '5': 12, '10': 'signedPrekey'}, + {'1': 'registration_id', '3': 5, '4': 1, '5': 3, '10': 'registrationId'}, + { + '1': 'signed_prekey_signature', + '3': 6, + '4': 1, + '5': 12, + '10': 'signedPrekeySignature' + }, + {'1': 'signed_prekey_id', '3': 7, '4': 1, '5': 3, '10': 'signedPrekeyId'}, + ], +}; + +/// Descriptor for `PublicProfile`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List publicProfileDescriptor = $convert.base64Decode( + 'Cg1QdWJsaWNQcm9maWxlEhcKB3VzZXJfaWQYASABKANSBnVzZXJJZBIaCgh1c2VybmFtZRgCIA' + 'EoCVIIdXNlcm5hbWUSLgoTcHVibGljX2lkZW50aXR5X2tleRgDIAEoDFIRcHVibGljSWRlbnRp' + 'dHlLZXkSIwoNc2lnbmVkX3ByZWtleRgEIAEoDFIMc2lnbmVkUHJla2V5EicKD3JlZ2lzdHJhdG' + 'lvbl9pZBgFIAEoA1IOcmVnaXN0cmF0aW9uSWQSNgoXc2lnbmVkX3ByZWtleV9zaWduYXR1cmUY' + 'BiABKAxSFXNpZ25lZFByZWtleVNpZ25hdHVyZRIoChBzaWduZWRfcHJla2V5X2lkGAcgASgDUg' + '5zaWduZWRQcmVrZXlJZA=='); diff --git a/lib/src/model/protobuf/client/qr.proto b/lib/src/model/protobuf/client/qr.proto new file mode 100644 index 0000000..29440b9 --- /dev/null +++ b/lib/src/model/protobuf/client/qr.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +message QREnvelope { + enum Type { + PublicProfile = 0; + } + Type type = 2; + bytes data = 3; +} + +message PublicProfile { + int64 user_id = 1; + string username = 2; + bytes public_identity_key = 3; + bytes signed_prekey = 4; + int64 registration_id = 5; + bytes signed_prekey_signature = 6; + int64 signed_prekey_id = 7; +} diff --git a/lib/src/utils/avatars.dart b/lib/src/utils/avatars.dart index 918ff4e..b4a4a3f 100644 --- a/lib/src/utils/avatars.dart +++ b/lib/src/utils/avatars.dart @@ -1,6 +1,8 @@ import 'dart:async'; import 'dart:io'; import 'dart:ui' as ui; +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; import 'package:flutter_svg/svg.dart'; import 'package:twonly/globals.dart'; import 'package:twonly/src/utils/misc.dart'; @@ -15,7 +17,7 @@ Future createPushAvatars() async { final pictureInfo = await vg.loadPicture(SvgStringLoader(avatarSvg), null); - final image = await pictureInfo.picture.toImage(300, 300); + final image = await pictureInfo.picture.toImage(270, 300); final byteData = await image.toByteData(format: ui.ImageByteFormat.png); final pngBytes = byteData!.buffer.asUint8List(); @@ -34,3 +36,23 @@ File avatarPNGFile(int contactId) { } return File('${avatarsDirectory.path}/$contactId.png'); } + +Future getUserAvatar() async { + if (gUser.avatarSvg == null) { + final data = await rootBundle.load('assets/images/default_avatar.png'); + return data.buffer.asUint8List(); + } + + final pictureInfo = + await vg.loadPicture(SvgStringLoader(gUser.avatarSvg!), null); + + final image = await pictureInfo.picture.toImage(270, 300); + + final byteData = await image.toByteData(format: ui.ImageByteFormat.png); + final pngBytes = byteData!.buffer.asUint8List(); + + final file = avatarPNGFile(gUser.userId)..writeAsBytesSync(pngBytes); + pictureInfo.picture.dispose(); + + return file.readAsBytesSync(); +} diff --git a/lib/src/utils/qr.dart b/lib/src/utils/qr.dart new file mode 100644 index 0000000..0ad508b --- /dev/null +++ b/lib/src/utils/qr.dart @@ -0,0 +1,47 @@ +import 'package:fixnum/fixnum.dart'; +import 'package:flutter/foundation.dart'; +import 'package:twonly/globals.dart'; +import 'package:twonly/src/model/protobuf/client/generated/qr.pb.dart'; +import 'package:twonly/src/services/signal/identity.signal.dart'; +import 'package:twonly/src/services/signal/utils.signal.dart'; +import 'package:twonly/src/utils/log.dart'; + +Future getProfileQrCodeData() async { + final signalIdentity = (await getSignalIdentity())!; + + final signalStore = await getSignalStoreFromIdentity(signalIdentity); + + final signedPreKey = (await signalStore.loadSignedPreKeys())[0]; + + final publicProfile = PublicProfile( + userId: Int64(gUser.userId), + username: gUser.username, + publicIdentityKey: + (await signalStore.getIdentityKeyPair()).getPublicKey().serialize(), + registrationId: Int64(signalIdentity.registrationId), + signedPrekey: signedPreKey.getKeyPair().publicKey.serialize(), + signedPrekeySignature: signedPreKey.signature, + signedPrekeyId: Int64(signedPreKey.id), + ); + + final data = publicProfile.writeToBuffer(); + + final qrEnvelope = QREnvelope( + type: QREnvelope_Type.PublicProfile, + data: data, + ); + + return qrEnvelope.writeToBuffer(); +} + +PublicProfile? parseQrCodeData(Uint8List rawBytes) { + try { + final envelop = QREnvelope.fromBuffer(rawBytes); + if (envelop.type == QREnvelope_Type.PublicProfile) { + return PublicProfile.fromBuffer(envelop.data); + } + } catch (e) { + Log.warn(e); + } + return null; +} diff --git a/lib/src/views/camera/painters/barcode_detector_painter.dart b/lib/src/views/camera/painters/barcode_detector_painter.dart index f525142..c056689 100644 --- a/lib/src/views/camera/painters/barcode_detector_painter.dart +++ b/lib/src/views/camera/painters/barcode_detector_painter.dart @@ -5,6 +5,7 @@ import 'dart:ui' as ui; import 'package:camera/camera.dart'; import 'package:flutter/material.dart'; import 'package:google_mlkit_barcode_scanning/google_mlkit_barcode_scanning.dart'; +import 'package:twonly/src/utils/qr.dart'; import 'coordinates_translator.dart'; @@ -31,6 +32,13 @@ class BarcodeDetectorPainter extends CustomPainter { final background = Paint()..color = const Color(0x99000000); for (final barcode in barcodes) { + final bytes = barcode.rawBytes; + if (bytes == null) continue; + + final profile = parseQrCodeData(bytes); + + if (profile == null) continue; + final builder = ParagraphBuilder( ParagraphStyle( textAlign: TextAlign.left, @@ -41,7 +49,7 @@ class BarcodeDetectorPainter extends CustomPainter { ..pushStyle( ui.TextStyle(color: Colors.lightGreenAccent, background: background), ) - ..addText('${barcode.displayValue}') + ..addText(profile.username) ..pop(); final left = translateX( diff --git a/lib/src/views/chats/chat_list.view.dart b/lib/src/views/chats/chat_list.view.dart index f5e05a0..28bafcb 100644 --- a/lib/src/views/chats/chat_list.view.dart +++ b/lib/src/views/chats/chat_list.view.dart @@ -19,6 +19,7 @@ import 'package:twonly/src/views/chats/chat_list_components/group_list_item.dart import 'package:twonly/src/views/chats/start_new_chat.view.dart'; import 'package:twonly/src/views/components/avatar_icon.component.dart'; import 'package:twonly/src/views/components/notification_badge.dart'; +import 'package:twonly/src/views/public_profile.view.dart'; import 'package:twonly/src/views/settings/help/changelog.view.dart'; import 'package:twonly/src/views/settings/profile/profile.view.dart'; import 'package:twonly/src/views/settings/settings_main.view.dart'; @@ -290,18 +291,45 @@ class _ChatListViewState extends State { ), floatingActionButton: Padding( padding: const EdgeInsets.only(bottom: 30), - child: FloatingActionButton( - onPressed: () { - Navigator.push( - context, - MaterialPageRoute( - builder: (context) { - return const StartNewChatView(); - }, + child: Column( + mainAxisAlignment: MainAxisAlignment.end, + children: [ + FloatingActionButton.small( + backgroundColor: context.color.primary, + onPressed: () { + Navigator.push( + context, + MaterialPageRoute( + builder: (context) { + return const PublicProfileView(); + }, + ), + ); + }, + child: const FaIcon( + FontAwesomeIcons.qrcode, + color: Colors.black, ), - ); - }, - child: const FaIcon(FontAwesomeIcons.penToSquare), + ), + const SizedBox(height: 12), + FloatingActionButton( + backgroundColor: context.color.primary, + onPressed: () { + Navigator.push( + context, + MaterialPageRoute( + builder: (context) { + return const StartNewChatView(); + }, + ), + ); + }, + child: const FaIcon( + FontAwesomeIcons.penToSquare, + color: Colors.black, + ), + ), + ], ), ), ); diff --git a/lib/src/views/public_profile.view.dart b/lib/src/views/public_profile.view.dart new file mode 100644 index 0000000..5ad7805 --- /dev/null +++ b/lib/src/views/public_profile.view.dart @@ -0,0 +1,102 @@ +import 'dart:typed_data'; + +import 'package:flutter/material.dart'; +import 'package:qr_flutter/qr_flutter.dart'; +import 'package:twonly/globals.dart'; +import 'package:twonly/src/utils/avatars.dart'; +import 'package:twonly/src/utils/misc.dart'; +import 'package:twonly/src/utils/qr.dart'; + +class PublicProfileView extends StatefulWidget { + const PublicProfileView({super.key}); + + @override + State createState() => _PublicProfileViewState(); +} + +class _PublicProfileViewState extends State { + Uint8List? _qrCode; + Uint8List? _userAvatar; + + @override + void initState() { + initAsync(); + super.initState(); + } + + Future initAsync() async { + _qrCode = await getProfileQrCodeData(); + _userAvatar = await getUserAvatar(); + + setState(() {}); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(), + body: Column( + children: [ + Container(width: double.infinity), + const SizedBox( + height: 30, + ), + if (_qrCode != null && _userAvatar != null) + Container( + child: Container( + decoration: BoxDecoration( + color: context.color.primary, + borderRadius: BorderRadius.circular(12), + border: Border.all( + color: Colors.black, + width: 2, + ), + boxShadow: const [ + BoxShadow( + color: Colors.black26, + blurRadius: 6, + offset: Offset(0, 2), + ), + ], + ), + child: QrImageView.withQr( + qr: QrCode.fromUint8List( + data: _qrCode!, + errorCorrectLevel: QrErrorCorrectLevel.M, + ), + eyeStyle: const QrEyeStyle( + color: Colors.black, + borderRadius: 2, + ), + dataModuleStyle: const QrDataModuleStyle( + color: Colors.black, + borderRadius: 2, + ), + gapless: false, + embeddedImage: MemoryImage(_userAvatar!), + embeddedImageStyle: QrEmbeddedImageStyle( + size: const Size(60, 66), + embeddedImageShape: EmbeddedImageShape.square, + shapeColor: context.color.primary, + safeArea: true, + ), + size: 250, + ), + ), + ), + Text( + gUser.displayName, + style: const TextStyle(fontSize: 24), + ), + Text( + gUser.username, + style: const TextStyle(fontSize: 18), + ) + // QR Code,,, + // Display Name + // username... + ], + ), + ); + } +} diff --git a/pubspec.lock b/pubspec.lock index 0940a3a..29ea3a6 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1423,12 +1423,19 @@ packages: source: hosted version: "1.5.0" qr: - dependency: "direct main" + dependency: "direct overridden" description: path: "dependencies/qr" relative: true source: path version: "3.1.0-wip" + qr_flutter: + dependency: "direct main" + description: + path: "dependencies/qr_flutter" + relative: true + source: path + version: "4.1.0" recase: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 0110c95..2590daf 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -97,7 +97,7 @@ dependencies: lottie: ^3.3.1 mutex: ^3.1.0 introduction_screen: ^4.0.0 - qr: ^3.0.2 + qr_flutter: ^4.1.0 dependency_overrides: dots_indicator: @@ -128,6 +128,8 @@ dependency_overrides: path: ./dependencies/pointycastle x25519: path: ./dependencies/x25519 + qr_flutter: + path: ./dependencies/qr_flutter camera_android_camerax: # path: ../flutter-packages/packages/camera/camera_android_camerax git: diff --git a/scripts/generate_proto.sh b/scripts/generate_proto.sh index b842220..20fd3b6 100755 --- a/scripts/generate_proto.sh +++ b/scripts/generate_proto.sh @@ -14,6 +14,7 @@ CLIENT_DIR="./lib/src/model/protobuf/client/" protoc --proto_path="$CLIENT_DIR" --dart_out="$GENERATED_DIR" "backup.proto" protoc --proto_path="$CLIENT_DIR" --dart_out="$GENERATED_DIR" "messages.proto" protoc --proto_path="$CLIENT_DIR" --dart_out="$GENERATED_DIR" "groups.proto" +protoc --proto_path="$CLIENT_DIR" --dart_out="$GENERATED_DIR" "qr.proto" protoc --proto_path="$CLIENT_DIR" --dart_out="$GENERATED_DIR" "push_notification.proto" protoc --proto_path="$CLIENT_DIR" --swift_out="./ios/NotificationService/" "push_notification.proto"