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 630f094..ad378f0 100644 --- a/lib/src/model/protobuf/api/http/http_requests.pb.dart +++ b/lib/src/model/protobuf/api/http/http_requests.pb.dart @@ -33,34 +33,26 @@ class TextMessage extends $pb.GeneratedMessage { 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); + 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) + 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( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @@ -69,17 +61,13 @@ class TextMessage extends $pb.GeneratedMessage { 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 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasUserId() => $_has(0); @$pb.TagNumber(1) @@ -88,10 +76,7 @@ class TextMessage extends $pb.GeneratedMessage { @$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> v) { $_setBytes(1, v); } @$pb.TagNumber(2) $core.bool hasBody() => $_has(1); @$pb.TagNumber(2) @@ -100,10 +85,7 @@ class TextMessage extends $pb.GeneratedMessage { @$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> v) { $_setBytes(2, v); } @$pb.TagNumber(3) $core.bool hasPushData() => $_has(2); @$pb.TagNumber(3) @@ -129,56 +111,41 @@ class UploadRequest extends $pb.GeneratedMessage { 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); + 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; + 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('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static UploadRequest create() => UploadRequest._(); 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> v) { $_setBytes(0, v); } @$pb.TagNumber(1) $core.bool hasEncryptedData() => $_has(0); @$pb.TagNumber(1) @@ -191,6 +158,6 @@ class UploadRequest extends $pb.GeneratedMessage { $core.List get messagesOnSuccess => $_getList(2); } + const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = - $core.bool.fromEnvironment('protobuf.omit_message_names'); +const _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 f84ddc7..32a9e2a 100644 --- a/lib/src/model/protobuf/api/http/http_requests.pbenum.dart +++ b/lib/src/model/protobuf/api/http/http_requests.pbenum.dart @@ -8,3 +8,4 @@ // 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 + 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 c56bdf5..d4c43f8 100644 --- a/lib/src/model/protobuf/api/http/http_requests.pbjson.dart +++ b/lib/src/model/protobuf/api/http/http_requests.pbjson.dart @@ -19,15 +19,7 @@ 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'}, @@ -45,14 +37,7 @@ 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'}, ], }; @@ -62,3 +47,4 @@ final $typed_data.Uint8List uploadRequestDescriptor = $convert.base64Decode( 'cKD2Rvd25sb2FkX3Rva2VucxgCIAMoDFIOZG93bmxvYWRUb2tlbnMSSgoTbWVzc2FnZXNfb25f' 'c3VjY2VzcxgDIAMoCzIaLmh0dHBfcmVxdWVzdHMuVGV4dE1lc3NhZ2VSEW1lc3NhZ2VzT25TdW' 'NjZXNz'); + diff --git a/lib/src/model/protobuf/api/http/http_requests.pbserver.dart b/lib/src/model/protobuf/api/http/http_requests.pbserver.dart index 51f279b..38180fc 100644 --- a/lib/src/model/protobuf/api/http/http_requests.pbserver.dart +++ b/lib/src/model/protobuf/api/http/http_requests.pbserver.dart @@ -11,3 +11,4 @@ // ignore_for_file: unnecessary_import, unnecessary_this, unused_import export 'http_requests.pb.dart'; + 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 f8c2a45..41519e9 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 @@ -16,7 +16,10 @@ import 'package:protobuf/protobuf.dart' as $pb; import 'error.pbenum.dart' as $0; -enum ClientToServer_V { v0, notSet } +enum ClientToServer_V { + v0, + notSet +} class ClientToServer extends $pb.GeneratedMessage { factory ClientToServer({ @@ -29,48 +32,38 @@ class ClientToServer extends $pb.GeneratedMessage { 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); + 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); 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( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ClientToServer create() => ClientToServer._(); 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)]!; @@ -79,10 +72,7 @@ class ClientToServer extends $pb.GeneratedMessage { @$pb.TagNumber(1) V0 get v0 => $_getN(0); @$pb.TagNumber(1) - set v0(V0 v) { - setField(1, v); - } - + set v0(V0 v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasV0() => $_has(0); @$pb.TagNumber(1) @@ -91,7 +81,12 @@ class ClientToServer extends $pb.GeneratedMessage { 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({ @@ -116,44 +111,34 @@ class V0 extends $pb.GeneratedMessage { 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); + 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); 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( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @@ -162,8 +147,7 @@ class V0 extends $pb.GeneratedMessage { 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)]!; @@ -172,10 +156,7 @@ class V0 extends $pb.GeneratedMessage { @$pb.TagNumber(1) $fixnum.Int64 get seq => $_getI64(0); @$pb.TagNumber(1) - set seq($fixnum.Int64 v) { - $_setInt64(0, v); - } - + set seq($fixnum.Int64 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasSeq() => $_has(0); @$pb.TagNumber(1) @@ -184,10 +165,7 @@ class V0 extends $pb.GeneratedMessage { @$pb.TagNumber(2) Handshake get handshake => $_getN(1); @$pb.TagNumber(2) - set handshake(Handshake v) { - setField(2, v); - } - + set handshake(Handshake v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasHandshake() => $_has(1); @$pb.TagNumber(2) @@ -198,10 +176,7 @@ class V0 extends $pb.GeneratedMessage { @$pb.TagNumber(3) ApplicationData get applicationdata => $_getN(2); @$pb.TagNumber(3) - set applicationdata(ApplicationData v) { - setField(3, v); - } - + set applicationdata(ApplicationData v) { setField(3, v); } @$pb.TagNumber(3) $core.bool hasApplicationdata() => $_has(2); @$pb.TagNumber(3) @@ -212,10 +187,7 @@ class V0 extends $pb.GeneratedMessage { @$pb.TagNumber(4) Response get response => $_getN(3); @$pb.TagNumber(4) - set response(Response v) { - setField(4, v); - } - + set response(Response v) { setField(4, v); } @$pb.TagNumber(4) $core.bool hasResponse() => $_has(3); @$pb.TagNumber(4) @@ -263,61 +235,46 @@ class Handshake_Register extends $pb.GeneratedMessage { 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); + 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) + 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') - ..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( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Handshake_Register create() => Handshake_Register._(); 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 v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasUsername() => $_has(0); @$pb.TagNumber(1) @@ -326,10 +283,7 @@ class Handshake_Register extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get inviteCode => $_getSZ(1); @$pb.TagNumber(2) - set inviteCode($core.String v) { - $_setString(1, v); - } - + set inviteCode($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasInviteCode() => $_has(1); @$pb.TagNumber(2) @@ -338,10 +292,7 @@ class Handshake_Register extends $pb.GeneratedMessage { @$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> v) { $_setBytes(2, v); } @$pb.TagNumber(3) $core.bool hasPublicIdentityKey() => $_has(2); @$pb.TagNumber(3) @@ -350,10 +301,7 @@ class Handshake_Register extends $pb.GeneratedMessage { @$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> v) { $_setBytes(3, v); } @$pb.TagNumber(4) $core.bool hasSignedPrekey() => $_has(3); @$pb.TagNumber(4) @@ -362,10 +310,7 @@ class Handshake_Register extends $pb.GeneratedMessage { @$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> v) { $_setBytes(4, v); } @$pb.TagNumber(5) $core.bool hasSignedPrekeySignature() => $_has(4); @$pb.TagNumber(5) @@ -374,10 +319,7 @@ class Handshake_Register extends $pb.GeneratedMessage { @$pb.TagNumber(6) $fixnum.Int64 get signedPrekeyId => $_getI64(5); @$pb.TagNumber(6) - set signedPrekeyId($fixnum.Int64 v) { - $_setInt64(5, v); - } - + set signedPrekeyId($fixnum.Int64 v) { $_setInt64(5, v); } @$pb.TagNumber(6) $core.bool hasSignedPrekeyId() => $_has(5); @$pb.TagNumber(6) @@ -386,10 +328,7 @@ class Handshake_Register extends $pb.GeneratedMessage { @$pb.TagNumber(7) $fixnum.Int64 get registrationId => $_getI64(6); @$pb.TagNumber(7) - set registrationId($fixnum.Int64 v) { - $_setInt64(6, v); - } - + set registrationId($fixnum.Int64 v) { $_setInt64(6, v); } @$pb.TagNumber(7) $core.bool hasRegistrationId() => $_has(6); @$pb.TagNumber(7) @@ -398,10 +337,7 @@ class Handshake_Register extends $pb.GeneratedMessage { @$pb.TagNumber(8) $core.bool get isIos => $_getBF(7); @$pb.TagNumber(8) - set isIos($core.bool v) { - $_setBool(7, v); - } - + set isIos($core.bool v) { $_setBool(7, v); } @$pb.TagNumber(8) $core.bool hasIsIos() => $_has(7); @$pb.TagNumber(8) @@ -411,44 +347,32 @@ class Handshake_Register extends $pb.GeneratedMessage { 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); + 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; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Handshake.GetAuthChallenge', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: 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') - 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; + @$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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Handshake_GetAuthChallenge create() => Handshake_GetAuthChallenge._(); 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; } @@ -467,55 +391,40 @@ class Handshake_GetAuthToken extends $pb.GeneratedMessage { 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); + 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) + 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Handshake_GetAuthToken create() => Handshake_GetAuthToken._(); 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 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasUserId() => $_has(0); @$pb.TagNumber(1) @@ -524,10 +433,7 @@ class Handshake_GetAuthToken extends $pb.GeneratedMessage { @$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> v) { $_setBytes(1, v); } @$pb.TagNumber(2) $core.bool hasResponse() => $_has(1); @$pb.TagNumber(2) @@ -553,56 +459,41 @@ class Handshake_Authenticate extends $pb.GeneratedMessage { 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); + 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) + 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') - ..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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Handshake_Authenticate create() => Handshake_Authenticate._(); 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 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasUserId() => $_has(0); @$pb.TagNumber(1) @@ -611,10 +502,7 @@ class Handshake_Authenticate extends $pb.GeneratedMessage { @$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> v) { $_setBytes(1, v); } @$pb.TagNumber(2) $core.bool hasAuthToken() => $_has(1); @$pb.TagNumber(2) @@ -623,10 +511,7 @@ class Handshake_Authenticate extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.String get appVersion => $_getSZ(2); @$pb.TagNumber(3) - set appVersion($core.String v) { - $_setString(2, v); - } - + set appVersion($core.String v) { $_setString(2, v); } @$pb.TagNumber(3) $core.bool hasAppVersion() => $_has(2); @$pb.TagNumber(3) @@ -634,10 +519,10 @@ class Handshake_Authenticate extends $pb.GeneratedMessage { } enum Handshake_Handshake { - register, - getauthchallenge, - getauthtoken, - authenticate, + register, + getauthchallenge, + getauthtoken, + authenticate, notSet } @@ -664,47 +549,35 @@ class Handshake extends $pb.GeneratedMessage { 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); + 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, - 0: Handshake_Handshake.notSet + 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, + 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]) - ..aOM(1, _omitFieldNames ? '' : 'register', - subBuilder: Handshake_Register.create) - ..aOM( - 2, _omitFieldNames ? '' : 'getauthchallenge', - subBuilder: Handshake_GetAuthChallenge.create) - ..aOM(3, _omitFieldNames ? '' : 'getauthtoken', - subBuilder: Handshake_GetAuthToken.create) - ..aOM(4, _omitFieldNames ? '' : 'authenticate', - subBuilder: Handshake_Authenticate.create) - ..hasRequiredFields = false; + ..aOM(1, _omitFieldNames ? '' : 'register', subBuilder: Handshake_Register.create) + ..aOM(2, _omitFieldNames ? '' : 'getauthchallenge', subBuilder: Handshake_GetAuthChallenge.create) + ..aOM(3, _omitFieldNames ? '' : 'getauthtoken', subBuilder: Handshake_GetAuthToken.create) + ..aOM(4, _omitFieldNames ? '' : 'authenticate', subBuilder: Handshake_Authenticate.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( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @@ -713,21 +586,16 @@ class Handshake extends $pb.GeneratedMessage { 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)]!; + 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 v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasRegister() => $_has(0); @$pb.TagNumber(1) @@ -738,10 +606,7 @@ class Handshake extends $pb.GeneratedMessage { @$pb.TagNumber(2) Handshake_GetAuthChallenge get getauthchallenge => $_getN(1); @$pb.TagNumber(2) - set getauthchallenge(Handshake_GetAuthChallenge v) { - setField(2, v); - } - + set getauthchallenge(Handshake_GetAuthChallenge v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasGetauthchallenge() => $_has(1); @$pb.TagNumber(2) @@ -752,10 +617,7 @@ class Handshake extends $pb.GeneratedMessage { @$pb.TagNumber(3) Handshake_GetAuthToken get getauthtoken => $_getN(2); @$pb.TagNumber(3) - set getauthtoken(Handshake_GetAuthToken v) { - setField(3, v); - } - + set getauthtoken(Handshake_GetAuthToken v) { setField(3, v); } @$pb.TagNumber(3) $core.bool hasGetauthtoken() => $_has(2); @$pb.TagNumber(3) @@ -766,10 +628,7 @@ class Handshake extends $pb.GeneratedMessage { @$pb.TagNumber(4) Handshake_Authenticate get authenticate => $_getN(3); @$pb.TagNumber(4) - set authenticate(Handshake_Authenticate v) { - setField(4, v); - } - + set authenticate(Handshake_Authenticate v) { setField(4, v); } @$pb.TagNumber(4) $core.bool hasAuthenticate() => $_has(3); @$pb.TagNumber(4) @@ -797,59 +656,41 @@ class ApplicationData_TextMessage extends $pb.GeneratedMessage { 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); + 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) + 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_TextMessage create() => - ApplicationData_TextMessage._(); + static ApplicationData_TextMessage create() => ApplicationData_TextMessage._(); 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 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasUserId() => $_has(0); @$pb.TagNumber(1) @@ -858,10 +699,7 @@ class ApplicationData_TextMessage extends $pb.GeneratedMessage { @$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> v) { $_setBytes(1, v); } @$pb.TagNumber(3) $core.bool hasBody() => $_has(1); @$pb.TagNumber(3) @@ -870,10 +708,7 @@ class ApplicationData_TextMessage extends $pb.GeneratedMessage { @$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> v) { $_setBytes(2, v); } @$pb.TagNumber(4) $core.bool hasPushData() => $_has(2); @$pb.TagNumber(4) @@ -891,56 +726,39 @@ class ApplicationData_GetUserByUsername extends $pb.GeneratedMessage { 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); + 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) + 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_GetUserByUsername create() => - ApplicationData_GetUserByUsername._(); + static ApplicationData_GetUserByUsername create() => ApplicationData_GetUserByUsername._(); 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 v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasUsername() => $_has(0); @$pb.TagNumber(1) @@ -958,57 +776,39 @@ class ApplicationData_UpdateGoogleFcmToken extends $pb.GeneratedMessage { 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); + 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) + 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_UpdateGoogleFcmToken create() => - ApplicationData_UpdateGoogleFcmToken._(); + static ApplicationData_UpdateGoogleFcmToken create() => ApplicationData_UpdateGoogleFcmToken._(); 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< - ApplicationData_UpdateGoogleFcmToken>(create); + static ApplicationData_UpdateGoogleFcmToken getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(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 v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasGoogleFcm() => $_has(0); @$pb.TagNumber(1) @@ -1026,55 +826,39 @@ class ApplicationData_GetUserById extends $pb.GeneratedMessage { 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); + 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) + 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_GetUserById create() => - ApplicationData_GetUserById._(); + static ApplicationData_GetUserById create() => ApplicationData_GetUserById._(); 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 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasUserId() => $_has(0); @$pb.TagNumber(1) @@ -1092,55 +876,39 @@ class ApplicationData_RedeemVoucher extends $pb.GeneratedMessage { 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); + 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) + 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_RedeemVoucher create() => - ApplicationData_RedeemVoucher._(); + static ApplicationData_RedeemVoucher create() => ApplicationData_RedeemVoucher._(); 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 v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasVoucher() => $_has(0); @$pb.TagNumber(1) @@ -1166,58 +934,41 @@ class ApplicationData_SwitchToPayedPlan extends $pb.GeneratedMessage { 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); + 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) + 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_SwitchToPayedPlan create() => - ApplicationData_SwitchToPayedPlan._(); + static ApplicationData_SwitchToPayedPlan create() => ApplicationData_SwitchToPayedPlan._(); 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 v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasPlanId() => $_has(0); @$pb.TagNumber(1) @@ -1226,10 +977,7 @@ class ApplicationData_SwitchToPayedPlan extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.bool get payMonthly => $_getBF(1); @$pb.TagNumber(2) - set payMonthly($core.bool v) { - $_setBool(1, v); - } - + set payMonthly($core.bool v) { $_setBool(1, v); } @$pb.TagNumber(2) $core.bool hasPayMonthly() => $_has(1); @$pb.TagNumber(2) @@ -1238,10 +986,7 @@ class ApplicationData_SwitchToPayedPlan extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.bool get autoRenewal => $_getBF(2); @$pb.TagNumber(3) - set autoRenewal($core.bool v) { - $_setBool(2, v); - } - + set autoRenewal($core.bool v) { $_setBool(2, v); } @$pb.TagNumber(3) $core.bool hasAutoRenewal() => $_has(2); @$pb.TagNumber(3) @@ -1259,56 +1004,39 @@ class ApplicationData_UpdatePlanOptions extends $pb.GeneratedMessage { 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); + 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) + 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_UpdatePlanOptions create() => - ApplicationData_UpdatePlanOptions._(); + static ApplicationData_UpdatePlanOptions create() => ApplicationData_UpdatePlanOptions._(); 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 v) { $_setBool(0, v); } @$pb.TagNumber(1) $core.bool hasAutoRenewal() => $_has(0); @$pb.TagNumber(1) @@ -1326,55 +1054,39 @@ class ApplicationData_CreateVoucher extends $pb.GeneratedMessage { 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); + 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) + 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_CreateVoucher create() => - ApplicationData_CreateVoucher._(); + static ApplicationData_CreateVoucher create() => ApplicationData_CreateVoucher._(); 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 v) { $_setUnsignedInt32(0, v); } @$pb.TagNumber(1) $core.bool hasValueCents() => $_has(0); @$pb.TagNumber(1) @@ -1384,230 +1096,160 @@ class ApplicationData_CreateVoucher extends $pb.GeneratedMessage { 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); + 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; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.GetLocation', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: 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') - 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; + @$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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_GetLocation create() => - ApplicationData_GetLocation._(); + static ApplicationData_GetLocation create() => ApplicationData_GetLocation._(); 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); + 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; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.GetVouchers', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: 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') - 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; + @$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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_GetVouchers create() => - ApplicationData_GetVouchers._(); + static ApplicationData_GetVouchers create() => ApplicationData_GetVouchers._(); 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); + 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; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.GetAvailablePlans', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: 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') - 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; + @$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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_GetAvailablePlans create() => - ApplicationData_GetAvailablePlans._(); + static ApplicationData_GetAvailablePlans create() => ApplicationData_GetAvailablePlans._(); 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); + 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; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.GetAddAccountsInvites', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: 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') - 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; + @$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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_GetAddAccountsInvites create() => - ApplicationData_GetAddAccountsInvites._(); + static ApplicationData_GetAddAccountsInvites create() => ApplicationData_GetAddAccountsInvites._(); 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< - ApplicationData_GetAddAccountsInvites>(create); + static ApplicationData_GetAddAccountsInvites getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(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); + 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; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.GetCurrentPlanInfos', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: 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') - 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; + @$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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_GetCurrentPlanInfos create() => - ApplicationData_GetCurrentPlanInfos._(); + static ApplicationData_GetCurrentPlanInfos create() => ApplicationData_GetCurrentPlanInfos._(); 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< - ApplicationData_GetCurrentPlanInfos>(create); + static ApplicationData_GetCurrentPlanInfos getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ApplicationData_GetCurrentPlanInfos? _defaultInstance; } @@ -1622,57 +1264,39 @@ class ApplicationData_RedeemAdditionalCode extends $pb.GeneratedMessage { 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); + 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) + 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_RedeemAdditionalCode create() => - ApplicationData_RedeemAdditionalCode._(); + static ApplicationData_RedeemAdditionalCode create() => ApplicationData_RedeemAdditionalCode._(); 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< - ApplicationData_RedeemAdditionalCode>(create); + static ApplicationData_RedeemAdditionalCode getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(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 v) { $_setString(0, v); } @$pb.TagNumber(2) $core.bool hasInviteCode() => $_has(0); @$pb.TagNumber(2) @@ -1690,57 +1314,39 @@ class ApplicationData_RemoveAdditionalUser extends $pb.GeneratedMessage { 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); + 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) + 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_RemoveAdditionalUser create() => - ApplicationData_RemoveAdditionalUser._(); + static ApplicationData_RemoveAdditionalUser create() => ApplicationData_RemoveAdditionalUser._(); 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< - ApplicationData_RemoveAdditionalUser>(create); + static ApplicationData_RemoveAdditionalUser getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(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 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasUserId() => $_has(0); @$pb.TagNumber(1) @@ -1758,56 +1364,39 @@ class ApplicationData_GetPrekeysByUserId extends $pb.GeneratedMessage { 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); + 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) + 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_GetPrekeysByUserId create() => - ApplicationData_GetPrekeysByUserId._(); + static ApplicationData_GetPrekeysByUserId create() => ApplicationData_GetPrekeysByUserId._(); 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 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasUserId() => $_has(0); @$pb.TagNumber(1) @@ -1825,57 +1414,39 @@ class ApplicationData_GetSignedPreKeyByUserId extends $pb.GeneratedMessage { 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); + 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) + 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_GetSignedPreKeyByUserId create() => - ApplicationData_GetSignedPreKeyByUserId._(); + static ApplicationData_GetSignedPreKeyByUserId create() => ApplicationData_GetSignedPreKeyByUserId._(); 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< - ApplicationData_GetSignedPreKeyByUserId>(create); + static ApplicationData_GetSignedPreKeyByUserId getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(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 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasUserId() => $_has(0); @$pb.TagNumber(1) @@ -1901,60 +1472,41 @@ class ApplicationData_UpdateSignedPreKey extends $pb.GeneratedMessage { 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); + 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) + 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_UpdateSignedPreKey create() => - ApplicationData_UpdateSignedPreKey._(); + static ApplicationData_UpdateSignedPreKey create() => ApplicationData_UpdateSignedPreKey._(); 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 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasSignedPrekeyId() => $_has(0); @$pb.TagNumber(1) @@ -1963,10 +1515,7 @@ class ApplicationData_UpdateSignedPreKey extends $pb.GeneratedMessage { @$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> v) { $_setBytes(1, v); } @$pb.TagNumber(2) $core.bool hasSignedPrekey() => $_has(1); @$pb.TagNumber(2) @@ -1975,10 +1524,7 @@ class ApplicationData_UpdateSignedPreKey extends $pb.GeneratedMessage { @$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> v) { $_setBytes(2, v); } @$pb.TagNumber(3) $core.bool hasSignedPrekeySignature() => $_has(2); @$pb.TagNumber(3) @@ -1996,56 +1542,39 @@ class ApplicationData_DownloadDone extends $pb.GeneratedMessage { 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); + 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; + 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('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; + @$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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_DownloadDone create() => - ApplicationData_DownloadDone._(); + static ApplicationData_DownloadDone create() => ApplicationData_DownloadDone._(); 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> v) { $_setBytes(0, v); } @$pb.TagNumber(1) $core.bool hasDownloadToken() => $_has(0); @$pb.TagNumber(1) @@ -2055,69 +1584,56 @@ class ApplicationData_DownloadDone extends $pb.GeneratedMessage { 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); + 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; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplicationData.DeleteAccount', package: const $pb.PackageName(_omitMessageNames ? '' : 'client_to_server'), createEmptyInstance: 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') - 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; + @$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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static ApplicationData_DeleteAccount create() => - ApplicationData_DeleteAccount._(); + static ApplicationData_DeleteAccount create() => ApplicationData_DeleteAccount._(); 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, + textmessage, + getuserbyusername, + getprekeysbyuserid, + getuserbyid, + updategooglefcmtoken, + getlocation, + getcurrentplaninfos, + redeemvoucher, + getavailableplans, + createvoucher, + getvouchers, + switchtopayedplan, + getaddaccountsinvites, + redeemadditionalcode, + removeadditionaluser, + updateplanoptions, + downloaddone, + getsignedprekeybyuserid, + updatesignedprekey, + deleteaccount, notSet } @@ -2208,157 +1724,85 @@ class ApplicationData extends $pb.GeneratedMessage { 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); + 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, - 0: ApplicationData_ApplicationData.notSet + 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, + 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 - ]) - ..aOM(1, _omitFieldNames ? '' : 'textmessage', - subBuilder: ApplicationData_TextMessage.create) - ..aOM( - 2, _omitFieldNames ? '' : 'getuserbyusername', - subBuilder: ApplicationData_GetUserByUsername.create) - ..aOM( - 3, _omitFieldNames ? '' : 'getprekeysbyuserid', - subBuilder: ApplicationData_GetPrekeysByUserId.create) - ..aOM(6, _omitFieldNames ? '' : 'getuserbyid', - subBuilder: ApplicationData_GetUserById.create) - ..aOM( - 8, _omitFieldNames ? '' : 'updategooglefcmtoken', - subBuilder: ApplicationData_UpdateGoogleFcmToken.create) - ..aOM(9, _omitFieldNames ? '' : 'getlocation', - subBuilder: ApplicationData_GetLocation.create) - ..aOM( - 10, _omitFieldNames ? '' : 'getcurrentplaninfos', - subBuilder: ApplicationData_GetCurrentPlanInfos.create) - ..aOM( - 11, _omitFieldNames ? '' : 'redeemvoucher', - subBuilder: ApplicationData_RedeemVoucher.create) - ..aOM( - 12, _omitFieldNames ? '' : 'getavailableplans', - subBuilder: ApplicationData_GetAvailablePlans.create) - ..aOM( - 13, _omitFieldNames ? '' : 'createvoucher', - subBuilder: ApplicationData_CreateVoucher.create) - ..aOM(14, _omitFieldNames ? '' : 'getvouchers', - subBuilder: ApplicationData_GetVouchers.create) - ..aOM( - 15, _omitFieldNames ? '' : 'Switchtopayedplan', - protoName: 'Switchtopayedplan', - subBuilder: ApplicationData_SwitchToPayedPlan.create) - ..aOM( - 16, _omitFieldNames ? '' : 'getaddaccountsinvites', - subBuilder: ApplicationData_GetAddAccountsInvites.create) - ..aOM( - 17, _omitFieldNames ? '' : 'redeemadditionalcode', - subBuilder: ApplicationData_RedeemAdditionalCode.create) - ..aOM( - 18, _omitFieldNames ? '' : 'removeadditionaluser', - subBuilder: ApplicationData_RemoveAdditionalUser.create) - ..aOM( - 19, _omitFieldNames ? '' : 'updateplanoptions', - subBuilder: ApplicationData_UpdatePlanOptions.create) - ..aOM( - 20, _omitFieldNames ? '' : 'downloaddone', - subBuilder: ApplicationData_DownloadDone.create) - ..aOM( - 22, _omitFieldNames ? '' : 'getsignedprekeybyuserid', - subBuilder: ApplicationData_GetSignedPreKeyByUserId.create) - ..aOM( - 23, _omitFieldNames ? '' : 'updatesignedprekey', - subBuilder: ApplicationData_UpdateSignedPreKey.create) - ..aOM( - 24, _omitFieldNames ? '' : 'deleteaccount', - subBuilder: ApplicationData_DeleteAccount.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]) + ..aOM(1, _omitFieldNames ? '' : 'textmessage', subBuilder: ApplicationData_TextMessage.create) + ..aOM(2, _omitFieldNames ? '' : 'getuserbyusername', subBuilder: ApplicationData_GetUserByUsername.create) + ..aOM(3, _omitFieldNames ? '' : 'getprekeysbyuserid', subBuilder: ApplicationData_GetPrekeysByUserId.create) + ..aOM(6, _omitFieldNames ? '' : 'getuserbyid', subBuilder: ApplicationData_GetUserById.create) + ..aOM(8, _omitFieldNames ? '' : 'updategooglefcmtoken', subBuilder: ApplicationData_UpdateGoogleFcmToken.create) + ..aOM(9, _omitFieldNames ? '' : 'getlocation', subBuilder: ApplicationData_GetLocation.create) + ..aOM(10, _omitFieldNames ? '' : 'getcurrentplaninfos', subBuilder: ApplicationData_GetCurrentPlanInfos.create) + ..aOM(11, _omitFieldNames ? '' : 'redeemvoucher', subBuilder: ApplicationData_RedeemVoucher.create) + ..aOM(12, _omitFieldNames ? '' : 'getavailableplans', subBuilder: ApplicationData_GetAvailablePlans.create) + ..aOM(13, _omitFieldNames ? '' : 'createvoucher', subBuilder: ApplicationData_CreateVoucher.create) + ..aOM(14, _omitFieldNames ? '' : 'getvouchers', subBuilder: ApplicationData_GetVouchers.create) + ..aOM(15, _omitFieldNames ? '' : 'Switchtopayedplan', protoName: 'Switchtopayedplan', subBuilder: ApplicationData_SwitchToPayedPlan.create) + ..aOM(16, _omitFieldNames ? '' : 'getaddaccountsinvites', subBuilder: ApplicationData_GetAddAccountsInvites.create) + ..aOM(17, _omitFieldNames ? '' : 'redeemadditionalcode', subBuilder: ApplicationData_RedeemAdditionalCode.create) + ..aOM(18, _omitFieldNames ? '' : 'removeadditionaluser', subBuilder: ApplicationData_RemoveAdditionalUser.create) + ..aOM(19, _omitFieldNames ? '' : 'updateplanoptions', subBuilder: ApplicationData_UpdatePlanOptions.create) + ..aOM(20, _omitFieldNames ? '' : 'downloaddone', subBuilder: ApplicationData_DownloadDone.create) + ..aOM(22, _omitFieldNames ? '' : 'getsignedprekeybyuserid', subBuilder: ApplicationData_GetSignedPreKeyByUserId.create) + ..aOM(23, _omitFieldNames ? '' : 'updatesignedprekey', subBuilder: ApplicationData_UpdateSignedPreKey.create) + ..aOM(24, _omitFieldNames ? '' : 'deleteaccount', subBuilder: ApplicationData_DeleteAccount.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( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ApplicationData create() => ApplicationData._(); 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)]!; + 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 v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasTextmessage() => $_has(0); @$pb.TagNumber(1) @@ -2369,10 +1813,7 @@ class ApplicationData extends $pb.GeneratedMessage { @$pb.TagNumber(2) ApplicationData_GetUserByUsername get getuserbyusername => $_getN(1); @$pb.TagNumber(2) - set getuserbyusername(ApplicationData_GetUserByUsername v) { - setField(2, v); - } - + set getuserbyusername(ApplicationData_GetUserByUsername v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasGetuserbyusername() => $_has(1); @$pb.TagNumber(2) @@ -2383,10 +1824,7 @@ class ApplicationData extends $pb.GeneratedMessage { @$pb.TagNumber(3) ApplicationData_GetPrekeysByUserId get getprekeysbyuserid => $_getN(2); @$pb.TagNumber(3) - set getprekeysbyuserid(ApplicationData_GetPrekeysByUserId v) { - setField(3, v); - } - + set getprekeysbyuserid(ApplicationData_GetPrekeysByUserId v) { setField(3, v); } @$pb.TagNumber(3) $core.bool hasGetprekeysbyuserid() => $_has(2); @$pb.TagNumber(3) @@ -2397,10 +1835,7 @@ class ApplicationData extends $pb.GeneratedMessage { @$pb.TagNumber(6) ApplicationData_GetUserById get getuserbyid => $_getN(3); @$pb.TagNumber(6) - set getuserbyid(ApplicationData_GetUserById v) { - setField(6, v); - } - + set getuserbyid(ApplicationData_GetUserById v) { setField(6, v); } @$pb.TagNumber(6) $core.bool hasGetuserbyid() => $_has(3); @$pb.TagNumber(6) @@ -2411,25 +1846,18 @@ class ApplicationData extends $pb.GeneratedMessage { @$pb.TagNumber(8) ApplicationData_UpdateGoogleFcmToken get updategooglefcmtoken => $_getN(4); @$pb.TagNumber(8) - set updategooglefcmtoken(ApplicationData_UpdateGoogleFcmToken v) { - setField(8, v); - } - + set updategooglefcmtoken(ApplicationData_UpdateGoogleFcmToken v) { setField(8, v); } @$pb.TagNumber(8) $core.bool hasUpdategooglefcmtoken() => $_has(4); @$pb.TagNumber(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 v) { setField(9, v); } @$pb.TagNumber(9) $core.bool hasGetlocation() => $_has(5); @$pb.TagNumber(9) @@ -2440,25 +1868,18 @@ class ApplicationData extends $pb.GeneratedMessage { @$pb.TagNumber(10) ApplicationData_GetCurrentPlanInfos get getcurrentplaninfos => $_getN(6); @$pb.TagNumber(10) - set getcurrentplaninfos(ApplicationData_GetCurrentPlanInfos v) { - setField(10, v); - } - + set getcurrentplaninfos(ApplicationData_GetCurrentPlanInfos v) { setField(10, v); } @$pb.TagNumber(10) $core.bool hasGetcurrentplaninfos() => $_has(6); @$pb.TagNumber(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 v) { setField(11, v); } @$pb.TagNumber(11) $core.bool hasRedeemvoucher() => $_has(7); @$pb.TagNumber(11) @@ -2469,10 +1890,7 @@ class ApplicationData extends $pb.GeneratedMessage { @$pb.TagNumber(12) ApplicationData_GetAvailablePlans get getavailableplans => $_getN(8); @$pb.TagNumber(12) - set getavailableplans(ApplicationData_GetAvailablePlans v) { - setField(12, v); - } - + set getavailableplans(ApplicationData_GetAvailablePlans v) { setField(12, v); } @$pb.TagNumber(12) $core.bool hasGetavailableplans() => $_has(8); @$pb.TagNumber(12) @@ -2483,10 +1901,7 @@ class ApplicationData extends $pb.GeneratedMessage { @$pb.TagNumber(13) ApplicationData_CreateVoucher get createvoucher => $_getN(9); @$pb.TagNumber(13) - set createvoucher(ApplicationData_CreateVoucher v) { - setField(13, v); - } - + set createvoucher(ApplicationData_CreateVoucher v) { setField(13, v); } @$pb.TagNumber(13) $core.bool hasCreatevoucher() => $_has(9); @$pb.TagNumber(13) @@ -2497,10 +1912,7 @@ class ApplicationData extends $pb.GeneratedMessage { @$pb.TagNumber(14) ApplicationData_GetVouchers get getvouchers => $_getN(10); @$pb.TagNumber(14) - set getvouchers(ApplicationData_GetVouchers v) { - setField(14, v); - } - + set getvouchers(ApplicationData_GetVouchers v) { setField(14, v); } @$pb.TagNumber(14) $core.bool hasGetvouchers() => $_has(10); @$pb.TagNumber(14) @@ -2511,10 +1923,7 @@ class ApplicationData extends $pb.GeneratedMessage { @$pb.TagNumber(15) ApplicationData_SwitchToPayedPlan get switchtopayedplan => $_getN(11); @$pb.TagNumber(15) - set switchtopayedplan(ApplicationData_SwitchToPayedPlan v) { - setField(15, v); - } - + set switchtopayedplan(ApplicationData_SwitchToPayedPlan v) { setField(15, v); } @$pb.TagNumber(15) $core.bool hasSwitchtopayedplan() => $_has(11); @$pb.TagNumber(15) @@ -2525,55 +1934,40 @@ class ApplicationData extends $pb.GeneratedMessage { @$pb.TagNumber(16) ApplicationData_GetAddAccountsInvites get getaddaccountsinvites => $_getN(12); @$pb.TagNumber(16) - set getaddaccountsinvites(ApplicationData_GetAddAccountsInvites v) { - setField(16, v); - } - + set getaddaccountsinvites(ApplicationData_GetAddAccountsInvites v) { setField(16, v); } @$pb.TagNumber(16) $core.bool hasGetaddaccountsinvites() => $_has(12); @$pb.TagNumber(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 v) { setField(17, v); } @$pb.TagNumber(17) $core.bool hasRedeemadditionalcode() => $_has(13); @$pb.TagNumber(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 v) { setField(18, v); } @$pb.TagNumber(18) $core.bool hasRemoveadditionaluser() => $_has(14); @$pb.TagNumber(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 v) { setField(19, v); } @$pb.TagNumber(19) $core.bool hasUpdateplanoptions() => $_has(15); @$pb.TagNumber(19) @@ -2584,10 +1978,7 @@ class ApplicationData extends $pb.GeneratedMessage { @$pb.TagNumber(20) ApplicationData_DownloadDone get downloaddone => $_getN(16); @$pb.TagNumber(20) - set downloaddone(ApplicationData_DownloadDone v) { - setField(20, v); - } - + set downloaddone(ApplicationData_DownloadDone v) { setField(20, v); } @$pb.TagNumber(20) $core.bool hasDownloaddone() => $_has(16); @$pb.TagNumber(20) @@ -2596,28 +1987,20 @@ class ApplicationData extends $pb.GeneratedMessage { 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 v) { setField(22, v); } @$pb.TagNumber(22) $core.bool hasGetsignedprekeybyuserid() => $_has(17); @$pb.TagNumber(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 v) { setField(23, v); } @$pb.TagNumber(23) $core.bool hasUpdatesignedprekey() => $_has(18); @$pb.TagNumber(23) @@ -2628,10 +2011,7 @@ class ApplicationData extends $pb.GeneratedMessage { @$pb.TagNumber(24) ApplicationData_DeleteAccount get deleteaccount => $_getN(19); @$pb.TagNumber(24) - set deleteaccount(ApplicationData_DeleteAccount v) { - setField(24, v); - } - + set deleteaccount(ApplicationData_DeleteAccount v) { setField(24, v); } @$pb.TagNumber(24) $core.bool hasDeleteaccount() => $_has(19); @$pb.TagNumber(24) @@ -2655,53 +2035,40 @@ class Response_PreKey extends $pb.GeneratedMessage { 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); + 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) + 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( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_PreKey create() => Response_PreKey._(); 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 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasId() => $_has(0); @$pb.TagNumber(1) @@ -2710,10 +2077,7 @@ class Response_PreKey extends $pb.GeneratedMessage { @$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> v) { $_setBytes(1, v); } @$pb.TagNumber(2) $core.bool hasPrekey() => $_has(1); @$pb.TagNumber(2) @@ -2731,51 +2095,44 @@ class Response_Prekeys extends $pb.GeneratedMessage { 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); + 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; + 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('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_Prekeys create() => Response_Prekeys._(); 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); } -enum Response_Ok_Ok { none, prekeys, notSet } +enum Response_Ok_Ok { + none, + prekeys, + notSet +} class Response_Ok extends $pb.GeneratedMessage { factory Response_Ok({ @@ -2792,39 +2149,31 @@ class Response_Ok extends $pb.GeneratedMessage { 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); + 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); 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( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @@ -2833,8 +2182,7 @@ class Response_Ok extends $pb.GeneratedMessage { 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)]!; @@ -2843,10 +2191,7 @@ class Response_Ok extends $pb.GeneratedMessage { @$pb.TagNumber(1) $core.bool get none => $_getBF(0); @$pb.TagNumber(1) - set none($core.bool v) { - $_setBool(0, v); - } - + set none($core.bool v) { $_setBool(0, v); } @$pb.TagNumber(1) $core.bool hasNone() => $_has(0); @$pb.TagNumber(1) @@ -2855,10 +2200,7 @@ class Response_Ok extends $pb.GeneratedMessage { @$pb.TagNumber(2) Response_Prekeys get prekeys => $_getN(1); @$pb.TagNumber(2) - set prekeys(Response_Prekeys v) { - setField(2, v); - } - + set prekeys(Response_Prekeys v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasPrekeys() => $_has(1); @$pb.TagNumber(2) @@ -2867,7 +2209,11 @@ class Response_Ok extends $pb.GeneratedMessage { Response_Prekeys ensurePrekeys() => $_ensure(1); } -enum Response_Response { ok, error, notSet } +enum Response_Response { + ok, + error, + notSet +} class Response extends $pb.GeneratedMessage { factory Response({ @@ -2884,42 +2230,31 @@ class Response extends $pb.GeneratedMessage { 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); + 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 + 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( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @@ -2928,21 +2263,16 @@ class Response extends $pb.GeneratedMessage { 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)]!; + 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 v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasOk() => $_has(0); @$pb.TagNumber(1) @@ -2953,16 +2283,13 @@ class Response extends $pb.GeneratedMessage { @$pb.TagNumber(2) $0.ErrorCode get error => $_getN(1); @$pb.TagNumber(2) - set error($0.ErrorCode v) { - setField(2, v); - } - + set error($0.ErrorCode v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasError() => $_has(1); @$pb.TagNumber(2) void clearError() => clearField(2); } + const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = - $core.bool.fromEnvironment('protobuf.omit_message_names'); +const _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 5124c05..b555299 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 @@ -8,3 +8,4 @@ // 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 + 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 bce813b..89eee11 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 @@ -17,15 +17,7 @@ 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'}, @@ -42,33 +34,9 @@ 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'}, @@ -87,49 +55,12 @@ 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' - }, - ], - '3': [ - Handshake_Register$json, - Handshake_GetAuthChallenge$json, - Handshake_GetAuthToken$json, - Handshake_Authenticate$json + {'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'}, ], + '3': [Handshake_Register$json, Handshake_GetAuthChallenge$json, Handshake_GetAuthToken$json, Handshake_Authenticate$json], '8': [ {'1': 'Handshake'}, ], @@ -140,30 +71,10 @@ 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, '9': 1, '10': 'isIos', '17': true}, @@ -194,15 +105,7 @@ 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': 'app_version', '3': 3, '4': 1, '5': 9, '9': 0, '10': 'appVersion', '17': true}, ], '8': [ {'1': '_app_version'}, @@ -233,209 +136,28 @@ 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' - }, - ], - '3': [ - ApplicationData_TextMessage$json, - ApplicationData_GetUserByUsername$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_DeleteAccount$json + {'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'}, ], + '3': [ApplicationData_TextMessage$json, ApplicationData_GetUserByUsername$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_DeleteAccount$json], '8': [ {'1': 'ApplicationData'}, ], @@ -447,15 +169,7 @@ 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'}, @@ -583,13 +297,7 @@ 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'}, ], }; @@ -668,24 +376,8 @@ 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': [ @@ -706,14 +398,7 @@ 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'}, ], }; @@ -722,15 +407,7 @@ 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'}, @@ -745,3 +422,4 @@ final $typed_data.Uint8List responseDescriptor = $convert.base64Decode( 'ByZWtleXMYASADKAsyIS5jbGllbnRfdG9fc2VydmVyLlJlc3BvbnNlLlByZUtleVIHcHJla2V5' 'cxpgCgJPaxIUCgROb25lGAEgASgISABSBE5vbmUSPgoHcHJla2V5cxgCIAEoCzIiLmNsaWVudF' '90b19zZXJ2ZXIuUmVzcG9uc2UuUHJla2V5c0gAUgdwcmVrZXlzQgQKAk9rQgoKCFJlc3BvbnNl'); + diff --git a/lib/src/model/protobuf/api/websocket/client_to_server.pbserver.dart b/lib/src/model/protobuf/api/websocket/client_to_server.pbserver.dart index 60eb113..e071285 100644 --- a/lib/src/model/protobuf/api/websocket/client_to_server.pbserver.dart +++ b/lib/src/model/protobuf/api/websocket/client_to_server.pbserver.dart @@ -11,3 +11,4 @@ // ignore_for_file: unnecessary_import, unnecessary_this, unused_import export 'client_to_server.pb.dart'; + diff --git a/lib/src/model/protobuf/api/websocket/error.pb.dart b/lib/src/model/protobuf/api/websocket/error.pb.dart index 0f8dddd..803db3c 100644 --- a/lib/src/model/protobuf/api/websocket/error.pb.dart +++ b/lib/src/model/protobuf/api/websocket/error.pb.dart @@ -12,3 +12,4 @@ import 'dart:core' as $core; 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 9d09a1f..b2084c2 100644 --- a/lib/src/model/protobuf/api/websocket/error.pbenum.dart +++ b/lib/src/model/protobuf/api/websocket/error.pbenum.dart @@ -14,74 +14,41 @@ 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 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 $core.List values = [ + static const $core.List values = [ Unknown, BadRequest, TooManyRequests, @@ -117,11 +84,11 @@ class ErrorCode extends $pb.ProtobufEnum { AppVersionOutdated, ]; - 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 _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 c78c8c9..cd4bbd2 100644 --- a/lib/src/model/protobuf/api/websocket/error.pbjson.dart +++ b/lib/src/model/protobuf/api/websocket/error.pbjson.dart @@ -70,3 +70,4 @@ final $typed_data.Uint8List errorCodeDescriptor = $convert.base64Decode( 'bGFuRG93bmdyYWRlEIEIEhkKFFBsYW5VcGdyYWRlTm90WWVhcmx5EIIIEhgKE0ludmFsaWRTaW' 'duZWRQcmVLZXkQgwgSEwoOVXNlcklkTm90Rm91bmQQhAgSFwoSVXNlcklkQWxyZWFkeVRha2Vu' 'EIUIEhcKEkFwcFZlcnNpb25PdXRkYXRlZBCGCA=='); + diff --git a/lib/src/model/protobuf/api/websocket/error.pbserver.dart b/lib/src/model/protobuf/api/websocket/error.pbserver.dart index a35b42e..0586ca9 100644 --- a/lib/src/model/protobuf/api/websocket/error.pbserver.dart +++ b/lib/src/model/protobuf/api/websocket/error.pbserver.dart @@ -11,3 +11,4 @@ // ignore_for_file: unnecessary_import, unnecessary_this, unused_import export 'error.pb.dart'; + 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 32ad964..8d67382 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 @@ -19,7 +19,10 @@ import 'server_to_client.pbenum.dart'; export 'server_to_client.pbenum.dart'; -enum ServerToClient_V { v0, notSet } +enum ServerToClient_V { + v0, + notSet +} class ServerToClient extends $pb.GeneratedMessage { factory ServerToClient({ @@ -32,48 +35,38 @@ class ServerToClient extends $pb.GeneratedMessage { 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); + 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); 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( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ServerToClient create() => ServerToClient._(); 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)]!; @@ -82,10 +75,7 @@ class ServerToClient extends $pb.GeneratedMessage { @$pb.TagNumber(1) V0 get v0 => $_getN(0); @$pb.TagNumber(1) - set v0(V0 v) { - setField(1, v); - } - + set v0(V0 v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasV0() => $_has(0); @$pb.TagNumber(1) @@ -94,7 +84,13 @@ class ServerToClient extends $pb.GeneratedMessage { 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({ @@ -123,49 +119,36 @@ class V0 extends $pb.GeneratedMessage { 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); + 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); 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( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @@ -174,8 +157,7 @@ class V0 extends $pb.GeneratedMessage { 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)]!; @@ -184,10 +166,7 @@ class V0 extends $pb.GeneratedMessage { @$pb.TagNumber(1) $fixnum.Int64 get seq => $_getI64(0); @$pb.TagNumber(1) - set seq($fixnum.Int64 v) { - $_setInt64(0, v); - } - + set seq($fixnum.Int64 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasSeq() => $_has(0); @$pb.TagNumber(1) @@ -196,10 +175,7 @@ class V0 extends $pb.GeneratedMessage { @$pb.TagNumber(2) Response get response => $_getN(1); @$pb.TagNumber(2) - set response(Response v) { - setField(2, v); - } - + set response(Response v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasResponse() => $_has(1); @$pb.TagNumber(2) @@ -210,10 +186,7 @@ class V0 extends $pb.GeneratedMessage { @$pb.TagNumber(3) NewMessage get newMessage => $_getN(2); @$pb.TagNumber(3) - set newMessage(NewMessage v) { - setField(3, v); - } - + set newMessage(NewMessage v) { setField(3, v); } @$pb.TagNumber(3) $core.bool hasNewMessage() => $_has(2); @$pb.TagNumber(3) @@ -224,10 +197,7 @@ class V0 extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.bool get requestNewPreKeys => $_getBF(3); @$pb.TagNumber(4) - set requestNewPreKeys($core.bool v) { - $_setBool(3, v); - } - + set requestNewPreKeys($core.bool v) { $_setBool(3, v); } @$pb.TagNumber(4) $core.bool hasRequestNewPreKeys() => $_has(3); @$pb.TagNumber(4) @@ -236,10 +206,7 @@ class V0 extends $pb.GeneratedMessage { @$pb.TagNumber(6) $0.ErrorCode get error => $_getN(4); @$pb.TagNumber(6) - set error($0.ErrorCode v) { - setField(6, v); - } - + set error($0.ErrorCode v) { setField(6, v); } @$pb.TagNumber(6) $core.bool hasError() => $_has(4); @$pb.TagNumber(6) @@ -261,32 +228,25 @@ class NewMessage extends $pb.GeneratedMessage { 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); + 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) + 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( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @@ -295,17 +255,13 @@ class NewMessage extends $pb.GeneratedMessage { 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> v) { $_setBytes(0, v); } @$pb.TagNumber(1) $core.bool hasBody() => $_has(0); @$pb.TagNumber(1) @@ -314,10 +270,7 @@ class NewMessage extends $pb.GeneratedMessage { @$pb.TagNumber(2) $fixnum.Int64 get fromUserId => $_getI64(1); @$pb.TagNumber(2) - set fromUserId($fixnum.Int64 v) { - $_setInt64(1, v); - } - + set fromUserId($fixnum.Int64 v) { $_setInt64(1, v); } @$pb.TagNumber(2) $core.bool hasFromUserId() => $_has(1); @$pb.TagNumber(2) @@ -335,53 +288,39 @@ class Response_Authenticated extends $pb.GeneratedMessage { 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); + 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) + 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_Authenticated create() => Response_Authenticated._(); 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 v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasPlan() => $_has(0); @$pb.TagNumber(1) @@ -412,8 +351,7 @@ class Response_Plan extends $pb.GeneratedMessage { $result.dailyMediaUploadLimit = dailyMediaUploadLimit; } if (maximalUploadSizeOfSingleMediaSize != null) { - $result.maximalUploadSizeOfSingleMediaSize = - maximalUploadSizeOfSingleMediaSize; + $result.maximalUploadSizeOfSingleMediaSize = maximalUploadSizeOfSingleMediaSize; } if (additionalPlusAccounts != null) { $result.additionalPlusAccounts = additionalPlusAccounts; @@ -436,18 +374,10 @@ class Response_Plan extends $pb.GeneratedMessage { 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); + 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) + 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') @@ -458,38 +388,34 @@ 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( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_Plan create() => Response_Plan._(); 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 v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasPlanId() => $_has(0); @$pb.TagNumber(1) @@ -498,10 +424,7 @@ class Response_Plan extends $pb.GeneratedMessage { @$pb.TagNumber(2) $fixnum.Int64 get uploadSizeLimit => $_getI64(1); @$pb.TagNumber(2) - set uploadSizeLimit($fixnum.Int64 v) { - $_setInt64(1, v); - } - + set uploadSizeLimit($fixnum.Int64 v) { $_setInt64(1, v); } @$pb.TagNumber(2) $core.bool hasUploadSizeLimit() => $_has(1); @$pb.TagNumber(2) @@ -510,10 +433,7 @@ class Response_Plan extends $pb.GeneratedMessage { @$pb.TagNumber(3) $fixnum.Int64 get dailyMediaUploadLimit => $_getI64(2); @$pb.TagNumber(3) - set dailyMediaUploadLimit($fixnum.Int64 v) { - $_setInt64(2, v); - } - + set dailyMediaUploadLimit($fixnum.Int64 v) { $_setInt64(2, v); } @$pb.TagNumber(3) $core.bool hasDailyMediaUploadLimit() => $_has(2); @$pb.TagNumber(3) @@ -522,10 +442,7 @@ class Response_Plan extends $pb.GeneratedMessage { @$pb.TagNumber(4) $fixnum.Int64 get maximalUploadSizeOfSingleMediaSize => $_getI64(3); @$pb.TagNumber(4) - set maximalUploadSizeOfSingleMediaSize($fixnum.Int64 v) { - $_setInt64(3, v); - } - + set maximalUploadSizeOfSingleMediaSize($fixnum.Int64 v) { $_setInt64(3, v); } @$pb.TagNumber(4) $core.bool hasMaximalUploadSizeOfSingleMediaSize() => $_has(3); @$pb.TagNumber(4) @@ -534,10 +451,7 @@ class Response_Plan extends $pb.GeneratedMessage { @$pb.TagNumber(5) $fixnum.Int64 get additionalPlusAccounts => $_getI64(4); @$pb.TagNumber(5) - set additionalPlusAccounts($fixnum.Int64 v) { - $_setInt64(4, v); - } - + set additionalPlusAccounts($fixnum.Int64 v) { $_setInt64(4, v); } @$pb.TagNumber(5) $core.bool hasAdditionalPlusAccounts() => $_has(4); @$pb.TagNumber(5) @@ -546,10 +460,7 @@ class Response_Plan extends $pb.GeneratedMessage { @$pb.TagNumber(6) $fixnum.Int64 get additionalFreeAccounts => $_getI64(5); @$pb.TagNumber(6) - set additionalFreeAccounts($fixnum.Int64 v) { - $_setInt64(5, v); - } - + set additionalFreeAccounts($fixnum.Int64 v) { $_setInt64(5, v); } @$pb.TagNumber(6) $core.bool hasAdditionalFreeAccounts() => $_has(5); @$pb.TagNumber(6) @@ -558,10 +469,7 @@ class Response_Plan extends $pb.GeneratedMessage { @$pb.TagNumber(7) $fixnum.Int64 get monthlyCostsCent => $_getI64(6); @$pb.TagNumber(7) - set monthlyCostsCent($fixnum.Int64 v) { - $_setInt64(6, v); - } - + set monthlyCostsCent($fixnum.Int64 v) { $_setInt64(6, v); } @$pb.TagNumber(7) $core.bool hasMonthlyCostsCent() => $_has(6); @$pb.TagNumber(7) @@ -570,10 +478,7 @@ class Response_Plan extends $pb.GeneratedMessage { @$pb.TagNumber(8) $fixnum.Int64 get yearlyCostsCent => $_getI64(7); @$pb.TagNumber(8) - set yearlyCostsCent($fixnum.Int64 v) { - $_setInt64(7, v); - } - + set yearlyCostsCent($fixnum.Int64 v) { $_setInt64(7, v); } @$pb.TagNumber(8) $core.bool hasYearlyCostsCent() => $_has(7); @$pb.TagNumber(8) @@ -582,10 +487,7 @@ class Response_Plan extends $pb.GeneratedMessage { @$pb.TagNumber(9) $core.bool get allowedToSendTextMessages => $_getBF(8); @$pb.TagNumber(9) - set allowedToSendTextMessages($core.bool v) { - $_setBool(8, v); - } - + set allowedToSendTextMessages($core.bool v) { $_setBool(8, v); } @$pb.TagNumber(9) $core.bool hasAllowedToSendTextMessages() => $_has(8); @$pb.TagNumber(9) @@ -594,10 +496,7 @@ class Response_Plan extends $pb.GeneratedMessage { @$pb.TagNumber(10) $core.bool get isAdditionalAccount => $_getBF(9); @$pb.TagNumber(10) - set isAdditionalAccount($core.bool v) { - $_setBool(9, v); - } - + set isAdditionalAccount($core.bool v) { $_setBool(9, v); } @$pb.TagNumber(10) $core.bool hasIsAdditionalAccount() => $_has(9); @$pb.TagNumber(10) @@ -615,43 +514,33 @@ class Response_Plans extends $pb.GeneratedMessage { 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); + 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; + 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('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_Plans create() => Response_Plans._(); 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) @@ -673,55 +562,40 @@ class Response_AddAccountsInvite extends $pb.GeneratedMessage { 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); + 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) + 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_AddAccountsInvite create() => Response_AddAccountsInvite._(); 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 v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasPlanId() => $_has(0); @$pb.TagNumber(1) @@ -730,10 +604,7 @@ class Response_AddAccountsInvite extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get inviteCode => $_getSZ(1); @$pb.TagNumber(2) - set inviteCode($core.String v) { - $_setString(1, v); - } - + set inviteCode($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasInviteCode() => $_has(1); @$pb.TagNumber(2) @@ -751,48 +622,33 @@ class Response_AddAccountsInvites extends $pb.GeneratedMessage { 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); + 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; + 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('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; + @$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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static Response_AddAccountsInvites create() => - Response_AddAccountsInvites._(); + static Response_AddAccountsInvites create() => Response_AddAccountsInvites._(); 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) @@ -818,58 +674,41 @@ class Response_Transaction extends $pb.GeneratedMessage { 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); + 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) + 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_Transaction create() => Response_Transaction._(); 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 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasDepositCents() => $_has(0); @$pb.TagNumber(1) @@ -878,10 +717,7 @@ class Response_Transaction extends $pb.GeneratedMessage { @$pb.TagNumber(2) Response_TransactionTypes get transactionType => $_getN(1); @$pb.TagNumber(2) - set transactionType(Response_TransactionTypes v) { - setField(2, v); - } - + set transactionType(Response_TransactionTypes v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasTransactionType() => $_has(1); @$pb.TagNumber(2) @@ -893,10 +729,7 @@ 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 v) { $_setInt64(2, v); } @$pb.TagNumber(3) $core.bool hasCreatedAtUnixTimestamp() => $_has(2); @$pb.TagNumber(3) @@ -918,55 +751,40 @@ class Response_AdditionalAccount extends $pb.GeneratedMessage { 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); + 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) + 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_AdditionalAccount create() => Response_AdditionalAccount._(); 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 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasUserId() => $_has(0); @$pb.TagNumber(1) @@ -975,10 +793,7 @@ class Response_AdditionalAccount extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.String get planId => $_getSZ(1); @$pb.TagNumber(3) - set planId($core.String v) { - $_setString(1, v); - } - + set planId($core.String v) { $_setString(1, v); } @$pb.TagNumber(3) $core.bool hasPlanId() => $_has(1); @$pb.TagNumber(3) @@ -1012,55 +827,43 @@ class Response_Voucher extends $pb.GeneratedMessage { 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); + 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) + 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( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_Voucher create() => Response_Voucher._(); 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 v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasVoucherId() => $_has(0); @$pb.TagNumber(1) @@ -1069,10 +872,7 @@ class Response_Voucher extends $pb.GeneratedMessage { @$pb.TagNumber(2) $fixnum.Int64 get valueCents => $_getI64(1); @$pb.TagNumber(2) - set valueCents($fixnum.Int64 v) { - $_setInt64(1, v); - } - + set valueCents($fixnum.Int64 v) { $_setInt64(1, v); } @$pb.TagNumber(2) $core.bool hasValueCents() => $_has(1); @$pb.TagNumber(2) @@ -1081,10 +881,7 @@ class Response_Voucher extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.bool get redeemed => $_getBF(2); @$pb.TagNumber(3) - set redeemed($core.bool v) { - $_setBool(2, v); - } - + set redeemed($core.bool v) { $_setBool(2, v); } @$pb.TagNumber(3) $core.bool hasRedeemed() => $_has(2); @$pb.TagNumber(3) @@ -1093,10 +890,7 @@ class Response_Voucher extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.bool get requested => $_getBF(3); @$pb.TagNumber(4) - set requested($core.bool v) { - $_setBool(3, v); - } - + set requested($core.bool v) { $_setBool(3, v); } @$pb.TagNumber(4) $core.bool hasRequested() => $_has(3); @$pb.TagNumber(4) @@ -1105,10 +899,7 @@ class Response_Voucher extends $pb.GeneratedMessage { @$pb.TagNumber(5) $fixnum.Int64 get createdAtUnixTimestamp => $_getI64(4); @$pb.TagNumber(5) - set createdAtUnixTimestamp($fixnum.Int64 v) { - $_setInt64(4, v); - } - + set createdAtUnixTimestamp($fixnum.Int64 v) { $_setInt64(4, v); } @$pb.TagNumber(5) $core.bool hasCreatedAtUnixTimestamp() => $_has(4); @$pb.TagNumber(5) @@ -1126,44 +917,33 @@ class Response_Vouchers extends $pb.GeneratedMessage { 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); + 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; + 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('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_Vouchers create() => Response_Vouchers._(); 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) @@ -1209,64 +989,46 @@ class Response_PlanBallance extends $pb.GeneratedMessage { 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); + 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) + 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_PlanBallance create() => Response_PlanBallance._(); 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 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasUsedDailyMediaUploadLimit() => $_has(0); @$pb.TagNumber(1) @@ -1275,10 +1037,7 @@ class Response_PlanBallance extends $pb.GeneratedMessage { @$pb.TagNumber(2) $fixnum.Int64 get usedUploadMediaSizeLimit => $_getI64(1); @$pb.TagNumber(2) - set usedUploadMediaSizeLimit($fixnum.Int64 v) { - $_setInt64(1, v); - } - + set usedUploadMediaSizeLimit($fixnum.Int64 v) { $_setInt64(1, v); } @$pb.TagNumber(2) $core.bool hasUsedUploadMediaSizeLimit() => $_has(1); @$pb.TagNumber(2) @@ -1287,10 +1046,7 @@ class Response_PlanBallance extends $pb.GeneratedMessage { @$pb.TagNumber(3) $fixnum.Int64 get paymentPeriodDays => $_getI64(2); @$pb.TagNumber(3) - set paymentPeriodDays($fixnum.Int64 v) { - $_setInt64(2, v); - } - + set paymentPeriodDays($fixnum.Int64 v) { $_setInt64(2, v); } @$pb.TagNumber(3) $core.bool hasPaymentPeriodDays() => $_has(2); @$pb.TagNumber(3) @@ -1299,10 +1055,7 @@ class Response_PlanBallance extends $pb.GeneratedMessage { @$pb.TagNumber(4) $fixnum.Int64 get lastPaymentDoneUnixTimestamp => $_getI64(3); @$pb.TagNumber(4) - set lastPaymentDoneUnixTimestamp($fixnum.Int64 v) { - $_setInt64(3, v); - } - + set lastPaymentDoneUnixTimestamp($fixnum.Int64 v) { $_setInt64(3, v); } @$pb.TagNumber(4) $core.bool hasLastPaymentDoneUnixTimestamp() => $_has(3); @$pb.TagNumber(4) @@ -1317,10 +1070,7 @@ class Response_PlanBallance extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.bool get autoRenewal => $_getBF(6); @$pb.TagNumber(7) - set autoRenewal($core.bool v) { - $_setBool(6, v); - } - + set autoRenewal($core.bool v) { $_setBool(6, v); } @$pb.TagNumber(7) $core.bool hasAutoRenewal() => $_has(6); @$pb.TagNumber(7) @@ -1329,10 +1079,7 @@ class Response_PlanBallance extends $pb.GeneratedMessage { @$pb.TagNumber(8) $fixnum.Int64 get additionalAccountOwnerId => $_getI64(7); @$pb.TagNumber(8) - set additionalAccountOwnerId($fixnum.Int64 v) { - $_setInt64(7, v); - } - + set additionalAccountOwnerId($fixnum.Int64 v) { $_setInt64(7, v); } @$pb.TagNumber(8) $core.bool hasAdditionalAccountOwnerId() => $_has(7); @$pb.TagNumber(8) @@ -1358,53 +1105,41 @@ class Response_Location extends $pb.GeneratedMessage { 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); + 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) + 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( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_Location create() => Response_Location._(); 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 v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasCounty() => $_has(0); @$pb.TagNumber(1) @@ -1413,10 +1148,7 @@ class Response_Location extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get region => $_getSZ(1); @$pb.TagNumber(2) - set region($core.String v) { - $_setString(1, v); - } - + set region($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasRegion() => $_has(1); @$pb.TagNumber(2) @@ -1425,10 +1157,7 @@ class Response_Location extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.String get city => $_getSZ(2); @$pb.TagNumber(3) - set city($core.String v) { - $_setString(2, v); - } - + set city($core.String v) { $_setString(2, v); } @$pb.TagNumber(3) $core.bool hasCity() => $_has(2); @$pb.TagNumber(3) @@ -1450,53 +1179,40 @@ class Response_PreKey extends $pb.GeneratedMessage { 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); + 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) + 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( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_PreKey create() => Response_PreKey._(); 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 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasId() => $_has(0); @$pb.TagNumber(1) @@ -1505,10 +1221,7 @@ class Response_PreKey extends $pb.GeneratedMessage { @$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> v) { $_setBytes(1, v); } @$pb.TagNumber(2) $core.bool hasPrekey() => $_has(1); @$pb.TagNumber(2) @@ -1534,57 +1247,41 @@ class Response_SignedPreKey extends $pb.GeneratedMessage { 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); + 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) + 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_SignedPreKey create() => Response_SignedPreKey._(); 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 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasSignedPrekeyId() => $_has(0); @$pb.TagNumber(1) @@ -1593,10 +1290,7 @@ class Response_SignedPreKey extends $pb.GeneratedMessage { @$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> v) { $_setBytes(1, v); } @$pb.TagNumber(2) $core.bool hasSignedPrekey() => $_has(1); @$pb.TagNumber(2) @@ -1605,10 +1299,7 @@ class Response_SignedPreKey extends $pb.GeneratedMessage { @$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> v) { $_setBytes(2, v); } @$pb.TagNumber(3) $core.bool hasSignedPrekeySignature() => $_has(2); @$pb.TagNumber(3) @@ -1650,63 +1341,45 @@ class Response_UserData extends $pb.GeneratedMessage { 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); + 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) + 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( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_UserData create() => Response_UserData._(); 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 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasUserId() => $_has(0); @$pb.TagNumber(1) @@ -1718,10 +1391,7 @@ class Response_UserData extends $pb.GeneratedMessage { @$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> v) { $_setBytes(2, v); } @$pb.TagNumber(3) $core.bool hasPublicIdentityKey() => $_has(2); @$pb.TagNumber(3) @@ -1730,10 +1400,7 @@ class Response_UserData extends $pb.GeneratedMessage { @$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> v) { $_setBytes(3, v); } @$pb.TagNumber(4) $core.bool hasSignedPrekey() => $_has(3); @$pb.TagNumber(4) @@ -1742,10 +1409,7 @@ class Response_UserData extends $pb.GeneratedMessage { @$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> v) { $_setBytes(4, v); } @$pb.TagNumber(5) $core.bool hasSignedPrekeySignature() => $_has(4); @$pb.TagNumber(5) @@ -1754,10 +1418,7 @@ class Response_UserData extends $pb.GeneratedMessage { @$pb.TagNumber(6) $fixnum.Int64 get signedPrekeyId => $_getI64(5); @$pb.TagNumber(6) - set signedPrekeyId($fixnum.Int64 v) { - $_setInt64(5, v); - } - + set signedPrekeyId($fixnum.Int64 v) { $_setInt64(5, v); } @$pb.TagNumber(6) $core.bool hasSignedPrekeyId() => $_has(5); @$pb.TagNumber(6) @@ -1766,10 +1427,7 @@ class Response_UserData extends $pb.GeneratedMessage { @$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> v) { $_setBytes(6, v); } @$pb.TagNumber(7) $core.bool hasUsername() => $_has(6); @$pb.TagNumber(7) @@ -1791,55 +1449,40 @@ class Response_UploadToken extends $pb.GeneratedMessage { 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); + 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; + 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('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; + @$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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_UploadToken create() => Response_UploadToken._(); 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> v) { $_setBytes(0, v); } @$pb.TagNumber(1) $core.bool hasUploadToken() => $_has(0); @$pb.TagNumber(1) @@ -1860,45 +1503,33 @@ class Response_DownloadTokens extends $pb.GeneratedMessage { 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); + 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; + 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('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; + @$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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Response_DownloadTokens create() => Response_DownloadTokens._(); 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) @@ -1906,20 +1537,20 @@ class Response_DownloadTokens extends $pb.GeneratedMessage { } enum Response_Ok_Ok { - none, - userid, - authchallenge, - uploadtoken, - userdata, - authtoken, - location, - authenticated, - plans, - planballance, - vouchers, - addaccountsinvites, - downloadtokens, - signedprekey, + none, + userid, + authchallenge, + uploadtoken, + userdata, + authtoken, + location, + authenticated, + plans, + planballance, + vouchers, + addaccountsinvites, + downloadtokens, + signedprekey, notSet } @@ -1986,75 +1617,55 @@ class Response_Ok extends $pb.GeneratedMessage { 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); + 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); 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, - 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, + 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]) ..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) - ..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) + ..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( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @@ -2063,8 +1674,7 @@ class Response_Ok extends $pb.GeneratedMessage { 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)]!; @@ -2073,10 +1683,7 @@ class Response_Ok extends $pb.GeneratedMessage { @$pb.TagNumber(1) $core.bool get none => $_getBF(0); @$pb.TagNumber(1) - set none($core.bool v) { - $_setBool(0, v); - } - + set none($core.bool v) { $_setBool(0, v); } @$pb.TagNumber(1) $core.bool hasNone() => $_has(0); @$pb.TagNumber(1) @@ -2085,10 +1692,7 @@ class Response_Ok extends $pb.GeneratedMessage { @$pb.TagNumber(2) $fixnum.Int64 get userid => $_getI64(1); @$pb.TagNumber(2) - set userid($fixnum.Int64 v) { - $_setInt64(1, v); - } - + set userid($fixnum.Int64 v) { $_setInt64(1, v); } @$pb.TagNumber(2) $core.bool hasUserid() => $_has(1); @$pb.TagNumber(2) @@ -2097,10 +1701,7 @@ class Response_Ok extends $pb.GeneratedMessage { @$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> v) { $_setBytes(2, v); } @$pb.TagNumber(3) $core.bool hasAuthchallenge() => $_has(2); @$pb.TagNumber(3) @@ -2109,10 +1710,7 @@ class Response_Ok extends $pb.GeneratedMessage { @$pb.TagNumber(4) Response_UploadToken get uploadtoken => $_getN(3); @$pb.TagNumber(4) - set uploadtoken(Response_UploadToken v) { - setField(4, v); - } - + set uploadtoken(Response_UploadToken v) { setField(4, v); } @$pb.TagNumber(4) $core.bool hasUploadtoken() => $_has(3); @$pb.TagNumber(4) @@ -2123,10 +1721,7 @@ class Response_Ok extends $pb.GeneratedMessage { @$pb.TagNumber(5) Response_UserData get userdata => $_getN(4); @$pb.TagNumber(5) - set userdata(Response_UserData v) { - setField(5, v); - } - + set userdata(Response_UserData v) { setField(5, v); } @$pb.TagNumber(5) $core.bool hasUserdata() => $_has(4); @$pb.TagNumber(5) @@ -2137,10 +1732,7 @@ class Response_Ok extends $pb.GeneratedMessage { @$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> v) { $_setBytes(5, v); } @$pb.TagNumber(6) $core.bool hasAuthtoken() => $_has(5); @$pb.TagNumber(6) @@ -2149,10 +1741,7 @@ class Response_Ok extends $pb.GeneratedMessage { @$pb.TagNumber(7) Response_Location get location => $_getN(6); @$pb.TagNumber(7) - set location(Response_Location v) { - setField(7, v); - } - + set location(Response_Location v) { setField(7, v); } @$pb.TagNumber(7) $core.bool hasLocation() => $_has(6); @$pb.TagNumber(7) @@ -2163,10 +1752,7 @@ class Response_Ok extends $pb.GeneratedMessage { @$pb.TagNumber(8) Response_Authenticated get authenticated => $_getN(7); @$pb.TagNumber(8) - set authenticated(Response_Authenticated v) { - setField(8, v); - } - + set authenticated(Response_Authenticated v) { setField(8, v); } @$pb.TagNumber(8) $core.bool hasAuthenticated() => $_has(7); @$pb.TagNumber(8) @@ -2177,10 +1763,7 @@ class Response_Ok extends $pb.GeneratedMessage { @$pb.TagNumber(9) Response_Plans get plans => $_getN(8); @$pb.TagNumber(9) - set plans(Response_Plans v) { - setField(9, v); - } - + set plans(Response_Plans v) { setField(9, v); } @$pb.TagNumber(9) $core.bool hasPlans() => $_has(8); @$pb.TagNumber(9) @@ -2191,10 +1774,7 @@ class Response_Ok extends $pb.GeneratedMessage { @$pb.TagNumber(10) Response_PlanBallance get planballance => $_getN(9); @$pb.TagNumber(10) - set planballance(Response_PlanBallance v) { - setField(10, v); - } - + set planballance(Response_PlanBallance v) { setField(10, v); } @$pb.TagNumber(10) $core.bool hasPlanballance() => $_has(9); @$pb.TagNumber(10) @@ -2205,10 +1785,7 @@ class Response_Ok extends $pb.GeneratedMessage { @$pb.TagNumber(11) Response_Vouchers get vouchers => $_getN(10); @$pb.TagNumber(11) - set vouchers(Response_Vouchers v) { - setField(11, v); - } - + set vouchers(Response_Vouchers v) { setField(11, v); } @$pb.TagNumber(11) $core.bool hasVouchers() => $_has(10); @$pb.TagNumber(11) @@ -2219,10 +1796,7 @@ class Response_Ok extends $pb.GeneratedMessage { @$pb.TagNumber(12) Response_AddAccountsInvites get addaccountsinvites => $_getN(11); @$pb.TagNumber(12) - set addaccountsinvites(Response_AddAccountsInvites v) { - setField(12, v); - } - + set addaccountsinvites(Response_AddAccountsInvites v) { setField(12, v); } @$pb.TagNumber(12) $core.bool hasAddaccountsinvites() => $_has(11); @$pb.TagNumber(12) @@ -2233,10 +1807,7 @@ class Response_Ok extends $pb.GeneratedMessage { @$pb.TagNumber(13) Response_DownloadTokens get downloadtokens => $_getN(12); @$pb.TagNumber(13) - set downloadtokens(Response_DownloadTokens v) { - setField(13, v); - } - + set downloadtokens(Response_DownloadTokens v) { setField(13, v); } @$pb.TagNumber(13) $core.bool hasDownloadtokens() => $_has(12); @$pb.TagNumber(13) @@ -2247,10 +1818,7 @@ class Response_Ok extends $pb.GeneratedMessage { @$pb.TagNumber(14) Response_SignedPreKey get signedprekey => $_getN(13); @$pb.TagNumber(14) - set signedprekey(Response_SignedPreKey v) { - setField(14, v); - } - + set signedprekey(Response_SignedPreKey v) { setField(14, v); } @$pb.TagNumber(14) $core.bool hasSignedprekey() => $_has(13); @$pb.TagNumber(14) @@ -2259,7 +1827,11 @@ class Response_Ok extends $pb.GeneratedMessage { Response_SignedPreKey ensureSignedprekey() => $_ensure(13); } -enum Response_Response { ok, error, notSet } +enum Response_Response { + ok, + error, + notSet +} class Response extends $pb.GeneratedMessage { factory Response({ @@ -2276,42 +1848,31 @@ class Response extends $pb.GeneratedMessage { 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); + 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 + 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( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @@ -2320,21 +1881,16 @@ class Response extends $pb.GeneratedMessage { 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)]!; + 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 v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasOk() => $_has(0); @$pb.TagNumber(1) @@ -2345,16 +1901,13 @@ class Response extends $pb.GeneratedMessage { @$pb.TagNumber(2) $0.ErrorCode get error => $_getN(1); @$pb.TagNumber(2) - set error($0.ErrorCode v) { - setField(2, v); - } - + set error($0.ErrorCode v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasError() => $_has(1); @$pb.TagNumber(2) void clearError() => clearField(2); } + const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = - $core.bool.fromEnvironment('protobuf.omit_message_names'); +const _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 5ff4845..936b601 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 @@ -14,25 +14,16 @@ 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, @@ -43,11 +34,11 @@ class Response_TransactionTypes extends $pb.ProtobufEnum { AutoRenewal, ]; - static final $core.Map<$core.int, Response_TransactionTypes> _byValue = - $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, Response_TransactionTypes> _byValue = $pb.ProtobufEnum.initByValue(values); static Response_TransactionTypes? valueOf($core.int value) => _byValue[value]; const Response_TransactionTypes._($core.int v, $core.String n) : super(v, n); } + const _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 402c672..eabade8 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 @@ -17,15 +17,7 @@ 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'}, @@ -42,41 +34,10 @@ 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'}, @@ -109,44 +70,10 @@ 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' - }, - ], - '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_Ok$json + {'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_Ok$json], '4': [Response_TransactionTypes$json], '8': [ {'1': 'Response'}, @@ -167,56 +94,14 @@ 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'}, ], }; @@ -224,14 +109,7 @@ 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'}, ], }; @@ -248,14 +126,7 @@ 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'}, ], }; @@ -264,21 +135,8 @@ 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'}, ], }; @@ -299,13 +157,7 @@ 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'}, ], }; @@ -313,14 +165,7 @@ 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'}, ], }; @@ -328,72 +173,14 @@ 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'}, @@ -428,13 +215,7 @@ 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'}, ], }; @@ -443,59 +224,12 @@ 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'}, @@ -529,105 +263,18 @@ 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': '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'}, ], '8': [ {'1': 'Ok'}, @@ -725,3 +372,4 @@ final $typed_data.Uint8List responseDescriptor = $convert.base64Decode( 'ESEgoOVm91Y2hlckNyZWF0ZWQQAhIICgRDYXNoEAMSDwoLUGxhblVwZ3JhZGUQBBILCgdVbmtu' 'b3duEAUSFAoQVGhhbmtzRm9yVGVzdGluZxAGEg8KC0F1dG9SZW5ld2FsEAdCCgoIUmVzcG9uc2' 'U='); + diff --git a/lib/src/model/protobuf/api/websocket/server_to_client.pbserver.dart b/lib/src/model/protobuf/api/websocket/server_to_client.pbserver.dart index 61c867e..66482f4 100644 --- a/lib/src/model/protobuf/api/websocket/server_to_client.pbserver.dart +++ b/lib/src/model/protobuf/api/websocket/server_to_client.pbserver.dart @@ -11,3 +11,4 @@ // ignore_for_file: unnecessary_import, unnecessary_this, unused_import export 'server_to_client.pb.dart'; + diff --git a/lib/src/model/protobuf/backup/backup.pb.dart b/lib/src/model/protobuf/backup/backup.pb.dart index 6362261..5b93197 100644 --- a/lib/src/model/protobuf/backup/backup.pb.dart +++ b/lib/src/model/protobuf/backup/backup.pb.dart @@ -28,55 +28,40 @@ class TwonlySafeBackupContent extends $pb.GeneratedMessage { 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); + 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; + 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('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; + @$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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static TwonlySafeBackupContent create() => TwonlySafeBackupContent._(); 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 v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasSecureStorageJson() => $_has(0); @$pb.TagNumber(1) @@ -85,10 +70,7 @@ class TwonlySafeBackupContent extends $pb.GeneratedMessage { @$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> v) { $_setBytes(1, v); } @$pb.TagNumber(2) $core.bool hasTwonlyDatabase() => $_has(1); @$pb.TagNumber(2) @@ -114,57 +96,41 @@ class TwonlySafeBackupEncrypted extends $pb.GeneratedMessage { 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); + 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; + 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('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; + @$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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static TwonlySafeBackupEncrypted create() => TwonlySafeBackupEncrypted._(); 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> v) { $_setBytes(0, v); } @$pb.TagNumber(1) $core.bool hasMac() => $_has(0); @$pb.TagNumber(1) @@ -173,10 +139,7 @@ class TwonlySafeBackupEncrypted extends $pb.GeneratedMessage { @$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> v) { $_setBytes(1, v); } @$pb.TagNumber(2) $core.bool hasNonce() => $_has(1); @$pb.TagNumber(2) @@ -185,16 +148,13 @@ class TwonlySafeBackupEncrypted extends $pb.GeneratedMessage { @$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> v) { $_setBytes(2, v); } @$pb.TagNumber(3) $core.bool hasCipherText() => $_has(2); @$pb.TagNumber(3) void clearCipherText() => clearField(3); } + const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = - $core.bool.fromEnvironment('protobuf.omit_message_names'); +const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/src/model/protobuf/backup/backup.pbenum.dart b/lib/src/model/protobuf/backup/backup.pbenum.dart index 27da24a..184bdfe 100644 --- a/lib/src/model/protobuf/backup/backup.pbenum.dart +++ b/lib/src/model/protobuf/backup/backup.pbenum.dart @@ -8,3 +8,4 @@ // 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 + diff --git a/lib/src/model/protobuf/backup/backup.pbjson.dart b/lib/src/model/protobuf/backup/backup.pbjson.dart index 2984bd5..75b1e3d 100644 --- a/lib/src/model/protobuf/backup/backup.pbjson.dart +++ b/lib/src/model/protobuf/backup/backup.pbjson.dart @@ -17,13 +17,7 @@ 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'}, ], }; @@ -44,7 +38,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/backup/backup.pbserver.dart b/lib/src/model/protobuf/backup/backup.pbserver.dart index 53d3324..1df01c1 100644 --- a/lib/src/model/protobuf/backup/backup.pbserver.dart +++ b/lib/src/model/protobuf/backup/backup.pbserver.dart @@ -11,3 +11,4 @@ // ignore_for_file: unnecessary_import, unnecessary_this, unused_import export 'backup.pb.dart'; + diff --git a/lib/src/model/protobuf/push_notification/push_notification.pb.dart b/lib/src/model/protobuf/push_notification/push_notification.pb.dart index e9439ca..c0e8a0d 100644 --- a/lib/src/model/protobuf/push_notification/push_notification.pb.dart +++ b/lib/src/model/protobuf/push_notification/push_notification.pb.dart @@ -41,57 +41,42 @@ class EncryptedPushNotification extends $pb.GeneratedMessage { 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); + 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) + 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static EncryptedPushNotification create() => EncryptedPushNotification._(); 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 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasKeyId() => $_has(0); @$pb.TagNumber(1) @@ -100,10 +85,7 @@ class EncryptedPushNotification extends $pb.GeneratedMessage { @$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> v) { $_setBytes(1, v); } @$pb.TagNumber(2) $core.bool hasNonce() => $_has(1); @$pb.TagNumber(2) @@ -112,10 +94,7 @@ class EncryptedPushNotification extends $pb.GeneratedMessage { @$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> v) { $_setBytes(2, v); } @$pb.TagNumber(3) $core.bool hasCiphertext() => $_has(2); @$pb.TagNumber(3) @@ -124,10 +103,7 @@ class EncryptedPushNotification extends $pb.GeneratedMessage { @$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> v) { $_setBytes(3, v); } @$pb.TagNumber(4) $core.bool hasMac() => $_has(3); @$pb.TagNumber(4) @@ -153,55 +129,41 @@ class PushNotification extends $pb.GeneratedMessage { 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); + 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) + 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) ..aInt64(2, _omitFieldNames ? '' : 'messageId', protoName: 'messageId') - ..aOS(3, _omitFieldNames ? '' : 'reactionContent', - protoName: 'reactionContent') - ..hasRequiredFields = false; + ..aOS(3, _omitFieldNames ? '' : 'reactionContent', protoName: 'reactionContent') + ..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( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PushNotification create() => PushNotification._(); 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 v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasKind() => $_has(0); @$pb.TagNumber(1) @@ -210,10 +172,7 @@ class PushNotification extends $pb.GeneratedMessage { @$pb.TagNumber(2) $fixnum.Int64 get messageId => $_getI64(1); @$pb.TagNumber(2) - set messageId($fixnum.Int64 v) { - $_setInt64(1, v); - } - + set messageId($fixnum.Int64 v) { $_setInt64(1, v); } @$pb.TagNumber(2) $core.bool hasMessageId() => $_has(1); @$pb.TagNumber(2) @@ -222,10 +181,7 @@ class PushNotification extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.String get reactionContent => $_getSZ(2); @$pb.TagNumber(3) - set reactionContent($core.String v) { - $_setString(2, v); - } - + set reactionContent($core.String v) { $_setString(2, v); } @$pb.TagNumber(3) $core.bool hasReactionContent() => $_has(2); @$pb.TagNumber(3) @@ -243,29 +199,24 @@ class PushUsers extends $pb.GeneratedMessage { 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); + 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; + 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('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @@ -274,8 +225,7 @@ class PushUsers extends $pb.GeneratedMessage { 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) @@ -309,34 +259,28 @@ class PushUser extends $pb.GeneratedMessage { 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); + 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) + 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') - ..aInt64(4, _omitFieldNames ? '' : 'lastMessageId', - protoName: 'lastMessageId') - ..pc(5, _omitFieldNames ? '' : 'pushKeys', $pb.PbFieldType.PM, - protoName: 'pushKeys', subBuilder: PushKey.create) - ..hasRequiredFields = false; + ..aInt64(4, _omitFieldNames ? '' : 'lastMessageId', protoName: 'lastMessageId') + ..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( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @@ -345,17 +289,13 @@ class PushUser extends $pb.GeneratedMessage { 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 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasUserId() => $_has(0); @$pb.TagNumber(1) @@ -364,10 +304,7 @@ class PushUser extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get displayName => $_getSZ(1); @$pb.TagNumber(2) - set displayName($core.String v) { - $_setString(1, v); - } - + set displayName($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasDisplayName() => $_has(1); @$pb.TagNumber(2) @@ -376,10 +313,7 @@ class PushUser extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.bool get blocked => $_getBF(2); @$pb.TagNumber(3) - set blocked($core.bool v) { - $_setBool(2, v); - } - + set blocked($core.bool v) { $_setBool(2, v); } @$pb.TagNumber(3) $core.bool hasBlocked() => $_has(2); @$pb.TagNumber(3) @@ -388,10 +322,7 @@ class PushUser extends $pb.GeneratedMessage { @$pb.TagNumber(4) $fixnum.Int64 get lastMessageId => $_getI64(3); @$pb.TagNumber(4) - set lastMessageId($fixnum.Int64 v) { - $_setInt64(3, v); - } - + set lastMessageId($fixnum.Int64 v) { $_setInt64(3, v); } @$pb.TagNumber(4) $core.bool hasLastMessageId() => $_has(3); @$pb.TagNumber(4) @@ -420,32 +351,26 @@ class PushKey extends $pb.GeneratedMessage { 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); + 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) + 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( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') 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( + '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; $pb.BuilderInfo get info_ => _i; @@ -454,17 +379,13 @@ class PushKey extends $pb.GeneratedMessage { 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 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasId() => $_has(0); @$pb.TagNumber(1) @@ -473,10 +394,7 @@ class PushKey extends $pb.GeneratedMessage { @$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> v) { $_setBytes(1, v); } @$pb.TagNumber(2) $core.bool hasKey() => $_has(1); @$pb.TagNumber(2) @@ -485,16 +403,13 @@ class PushKey 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 v) { $_setInt64(2, v); } @$pb.TagNumber(3) $core.bool hasCreatedAtUnixTimestamp() => $_has(2); @$pb.TagNumber(3) void clearCreatedAtUnixTimestamp() => clearField(3); } + const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = - $core.bool.fromEnvironment('protobuf.omit_message_names'); +const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/src/model/protobuf/push_notification/push_notification.pbenum.dart b/lib/src/model/protobuf/push_notification/push_notification.pbenum.dart index e6acd4d..8bf3ded 100644 --- a/lib/src/model/protobuf/push_notification/push_notification.pbenum.dart +++ b/lib/src/model/protobuf/push_notification/push_notification.pbenum.dart @@ -14,32 +14,22 @@ 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 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 $core.List values = [ + static const $core.List values = [ reaction, response, text, @@ -56,11 +46,11 @@ class PushKind extends $pb.ProtobufEnum { reactionToImage, ]; - static final $core.Map<$core.int, PushKind> _byValue = - $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, PushKind> _byValue = $pb.ProtobufEnum.initByValue(values); static PushKind? valueOf($core.int value) => _byValue[value]; const PushKind._($core.int v, $core.String n) : super(v, n); } + const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/lib/src/model/protobuf/push_notification/push_notification.pbjson.dart b/lib/src/model/protobuf/push_notification/push_notification.pbjson.dart index eb15aa4..d66d5aa 100644 --- a/lib/src/model/protobuf/push_notification/push_notification.pbjson.dart +++ b/lib/src/model/protobuf/push_notification/push_notification.pbjson.dart @@ -64,24 +64,8 @@ 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': 3, - '9': 0, - '10': 'messageId', - '17': true - }, - { - '1': 'reactionContent', - '3': 3, - '4': 1, - '5': 9, - '9': 1, - '10': 'reactionContent', - '17': true - }, + {'1': 'messageId', '3': 2, '4': 1, '5': 3, '9': 0, '10': 'messageId', '17': true}, + {'1': 'reactionContent', '3': 3, '4': 1, '5': 9, '9': 1, '10': 'reactionContent', '17': true}, ], '8': [ {'1': '_messageId'}, @@ -114,23 +98,8 @@ 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': 3, - '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': 3, '9': 0, '10': 'lastMessageId', '17': true}, + {'1': 'pushKeys', '3': 5, '4': 3, '5': 11, '6': '.PushKey', '10': 'pushKeys'}, ], '8': [ {'1': '_lastMessageId'}, @@ -150,13 +119,7 @@ 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'}, ], }; @@ -164,3 +127,4 @@ const PushKey$json = { final $typed_data.Uint8List pushKeyDescriptor = $convert.base64Decode( 'CgdQdXNoS2V5Eg4KAmlkGAEgASgDUgJpZBIQCgNrZXkYAiABKAxSA2tleRI2ChZjcmVhdGVkQX' 'RVbml4VGltZXN0YW1wGAMgASgDUhZjcmVhdGVkQXRVbml4VGltZXN0YW1w'); + diff --git a/lib/src/model/protobuf/push_notification/push_notification.pbserver.dart b/lib/src/model/protobuf/push_notification/push_notification.pbserver.dart index 4dd1ced..a77f69b 100644 --- a/lib/src/model/protobuf/push_notification/push_notification.pbserver.dart +++ b/lib/src/model/protobuf/push_notification/push_notification.pbserver.dart @@ -11,3 +11,4 @@ // ignore_for_file: unnecessary_import, unnecessary_this, unused_import export 'push_notification.pb.dart'; +