From 2a4f6993133172fce0794e1b9df533776092a1e0 Mon Sep 17 00:00:00 2001 From: Alexander Emelin Date: Sun, 23 Jan 2022 17:48:04 +0300 Subject: [PATCH 1/5] update proto definitions --- lib/src/client_config.dart | 4 + lib/src/proto/client.pb.dart | 3090 ++++++++++++---------------- lib/src/proto/client.pbenum.dart | 137 +- lib/src/proto/client.pbjson.dart | 316 +-- lib/src/proto/client.pbserver.dart | 1 + lib/src/proto/client.proto | 75 +- 6 files changed, 1505 insertions(+), 2118 deletions(-) diff --git a/lib/src/client_config.dart b/lib/src/client_config.dart index 202a434..1ba0f37 100644 --- a/lib/src/client_config.dart +++ b/lib/src/client_config.dart @@ -4,6 +4,8 @@ import 'dart:math'; import 'package:centrifuge/centrifuge.dart'; import 'package:centrifuge/src/events.dart'; +enum ClientProtocolVersion { v1, v2 } + class ClientConfig { ClientConfig( {this.timeout = const Duration(seconds: 10), @@ -16,6 +18,7 @@ class ClientConfig { this.onPrivateSub = _defaultPrivateSubCallback, this.name = "dart", this.version = "", + this.protocolVersion = ClientProtocolVersion.v1, WaitRetry? retry}) : retry = retry ?? _defaultRetry(maxReconnectDelay.inSeconds); @@ -32,6 +35,7 @@ class ClientConfig { final Future? Function(int) retry; final String name; final String version; + final ClientProtocolVersion protocolVersion; } typedef WaitRetry = Future? Function(int); diff --git a/lib/src/proto/client.pb.dart b/lib/src/proto/client.pb.dart index 3178884..94f917f 100644 --- a/lib/src/proto/client.pb.dart +++ b/lib/src/proto/client.pb.dart @@ -15,27 +15,11 @@ import 'client.pbenum.dart'; export 'client.pbenum.dart'; class Error extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Error', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'code', - $pb.PbFieldType.OU3) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'message') - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Error', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..a<$core.int>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'code', $pb.PbFieldType.OU3) + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'message') + ..hasRequiredFields = false + ; Error._() : super(); factory Error({ @@ -51,39 +35,31 @@ class Error extends $pb.GeneratedMessage { } return _result; } - factory Error.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory Error.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory Error.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory Error.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Error clone() => Error()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Error copyWith(void Function(Error) updates) => - super.copyWith((message) => updates(message as Error)) - as Error; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Error copyWith(void Function(Error) updates) => super.copyWith((message) => updates(message as Error)) as Error; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Error create() => Error._(); Error createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Error getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Error getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Error? _defaultInstance; @$pb.TagNumber(1) $core.int get code => $_getIZ(0); @$pb.TagNumber(1) - set code($core.int v) { - $_setUnsignedInt32(0, v); - } - + set code($core.int v) { $_setUnsignedInt32(0, v); } @$pb.TagNumber(1) $core.bool hasCode() => $_has(0); @$pb.TagNumber(1) @@ -92,10 +68,7 @@ class Error extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get message => $_getSZ(1); @$pb.TagNumber(2) - set message($core.String v) { - $_setString(1, v); - } - + set message($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasMessage() => $_has(1); @$pb.TagNumber(2) @@ -103,39 +76,42 @@ class Error extends $pb.GeneratedMessage { } class Command extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = - $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Command', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id', - $pb.PbFieldType.OU3) - ..e( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'method', - $pb.PbFieldType.OE, - defaultOrMaker: Command_MethodType.CONNECT, - valueOf: Command_MethodType.valueOf, - enumValues: Command_MethodType.values) - ..a<$core.List<$core.int>>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'params', - $pb.PbFieldType.OY) - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Command', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..a<$core.int>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'id', $pb.PbFieldType.OU3) + ..e(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'method', $pb.PbFieldType.OE, defaultOrMaker: Command_MethodType.CONNECT, valueOf: Command_MethodType.valueOf, enumValues: Command_MethodType.values) + ..a<$core.List<$core.int>>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'params', $pb.PbFieldType.OY) + ..aOM(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'connect', subBuilder: ConnectRequest.create) + ..aOM(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'subscribe', subBuilder: SubscribeRequest.create) + ..aOM(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unsubscribe', subBuilder: UnsubscribeRequest.create) + ..aOM(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'publish', subBuilder: PublishRequest.create) + ..aOM(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'presence', subBuilder: PresenceRequest.create) + ..aOM(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'presenceStats', subBuilder: PresenceStatsRequest.create) + ..aOM(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'history', subBuilder: HistoryRequest.create) + ..aOM(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'ping', subBuilder: PingRequest.create) + ..aOM(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'send', subBuilder: SendRequest.create) + ..aOM(13, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'rpc', subBuilder: RPCRequest.create) + ..aOM(14, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'refresh', subBuilder: RefreshRequest.create) + ..aOM(15, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'subRefresh', subBuilder: SubRefreshRequest.create) + ..hasRequiredFields = false + ; Command._() : super(); factory Command({ $core.int? id, Command_MethodType? method, $core.List<$core.int>? params, + ConnectRequest? connect, + SubscribeRequest? subscribe, + UnsubscribeRequest? unsubscribe, + PublishRequest? publish, + PresenceRequest? presence, + PresenceStatsRequest? presenceStats, + HistoryRequest? history, + PingRequest? ping, + SendRequest? send, + RPCRequest? rpc, + RefreshRequest? refresh, + SubRefreshRequest? subRefresh, }) { final _result = create(); if (id != null) { @@ -147,41 +123,69 @@ class Command extends $pb.GeneratedMessage { if (params != null) { _result.params = params; } + if (connect != null) { + _result.connect = connect; + } + if (subscribe != null) { + _result.subscribe = subscribe; + } + if (unsubscribe != null) { + _result.unsubscribe = unsubscribe; + } + if (publish != null) { + _result.publish = publish; + } + if (presence != null) { + _result.presence = presence; + } + if (presenceStats != null) { + _result.presenceStats = presenceStats; + } + if (history != null) { + _result.history = history; + } + if (ping != null) { + _result.ping = ping; + } + if (send != null) { + _result.send = send; + } + if (rpc != null) { + _result.rpc = rpc; + } + if (refresh != null) { + _result.refresh = refresh; + } + if (subRefresh != null) { + _result.subRefresh = subRefresh; + } return _result; } - factory Command.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory Command.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory Command.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory Command.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Command clone() => Command()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Command copyWith(void Function(Command) updates) => - super.copyWith((message) => updates(message as Command)) - as Command; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Command copyWith(void Function(Command) updates) => super.copyWith((message) => updates(message as Command)) as Command; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Command create() => Command._(); Command createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Command getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Command getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Command? _defaultInstance; @$pb.TagNumber(1) $core.int get id => $_getIZ(0); @$pb.TagNumber(1) - set id($core.int v) { - $_setUnsignedInt32(0, v); - } - + set id($core.int v) { $_setUnsignedInt32(0, v); } @$pb.TagNumber(1) $core.bool hasId() => $_has(0); @$pb.TagNumber(1) @@ -190,10 +194,7 @@ class Command extends $pb.GeneratedMessage { @$pb.TagNumber(2) Command_MethodType get method => $_getN(1); @$pb.TagNumber(2) - set method(Command_MethodType v) { - setField(2, v); - } - + set method(Command_MethodType v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasMethod() => $_has(1); @$pb.TagNumber(2) @@ -202,46 +203,182 @@ class Command extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.List<$core.int> get params => $_getN(2); @$pb.TagNumber(3) - set params($core.List<$core.int> v) { - $_setBytes(2, v); - } - + set params($core.List<$core.int> v) { $_setBytes(2, v); } @$pb.TagNumber(3) $core.bool hasParams() => $_has(2); @$pb.TagNumber(3) void clearParams() => clearField(3); + + @$pb.TagNumber(4) + ConnectRequest get connect => $_getN(3); + @$pb.TagNumber(4) + set connect(ConnectRequest v) { setField(4, v); } + @$pb.TagNumber(4) + $core.bool hasConnect() => $_has(3); + @$pb.TagNumber(4) + void clearConnect() => clearField(4); + @$pb.TagNumber(4) + ConnectRequest ensureConnect() => $_ensure(3); + + @$pb.TagNumber(5) + SubscribeRequest get subscribe => $_getN(4); + @$pb.TagNumber(5) + set subscribe(SubscribeRequest v) { setField(5, v); } + @$pb.TagNumber(5) + $core.bool hasSubscribe() => $_has(4); + @$pb.TagNumber(5) + void clearSubscribe() => clearField(5); + @$pb.TagNumber(5) + SubscribeRequest ensureSubscribe() => $_ensure(4); + + @$pb.TagNumber(6) + UnsubscribeRequest get unsubscribe => $_getN(5); + @$pb.TagNumber(6) + set unsubscribe(UnsubscribeRequest v) { setField(6, v); } + @$pb.TagNumber(6) + $core.bool hasUnsubscribe() => $_has(5); + @$pb.TagNumber(6) + void clearUnsubscribe() => clearField(6); + @$pb.TagNumber(6) + UnsubscribeRequest ensureUnsubscribe() => $_ensure(5); + + @$pb.TagNumber(7) + PublishRequest get publish => $_getN(6); + @$pb.TagNumber(7) + set publish(PublishRequest v) { setField(7, v); } + @$pb.TagNumber(7) + $core.bool hasPublish() => $_has(6); + @$pb.TagNumber(7) + void clearPublish() => clearField(7); + @$pb.TagNumber(7) + PublishRequest ensurePublish() => $_ensure(6); + + @$pb.TagNumber(8) + PresenceRequest get presence => $_getN(7); + @$pb.TagNumber(8) + set presence(PresenceRequest v) { setField(8, v); } + @$pb.TagNumber(8) + $core.bool hasPresence() => $_has(7); + @$pb.TagNumber(8) + void clearPresence() => clearField(8); + @$pb.TagNumber(8) + PresenceRequest ensurePresence() => $_ensure(7); + + @$pb.TagNumber(9) + PresenceStatsRequest get presenceStats => $_getN(8); + @$pb.TagNumber(9) + set presenceStats(PresenceStatsRequest v) { setField(9, v); } + @$pb.TagNumber(9) + $core.bool hasPresenceStats() => $_has(8); + @$pb.TagNumber(9) + void clearPresenceStats() => clearField(9); + @$pb.TagNumber(9) + PresenceStatsRequest ensurePresenceStats() => $_ensure(8); + + @$pb.TagNumber(10) + HistoryRequest get history => $_getN(9); + @$pb.TagNumber(10) + set history(HistoryRequest v) { setField(10, v); } + @$pb.TagNumber(10) + $core.bool hasHistory() => $_has(9); + @$pb.TagNumber(10) + void clearHistory() => clearField(10); + @$pb.TagNumber(10) + HistoryRequest ensureHistory() => $_ensure(9); + + @$pb.TagNumber(11) + PingRequest get ping => $_getN(10); + @$pb.TagNumber(11) + set ping(PingRequest v) { setField(11, v); } + @$pb.TagNumber(11) + $core.bool hasPing() => $_has(10); + @$pb.TagNumber(11) + void clearPing() => clearField(11); + @$pb.TagNumber(11) + PingRequest ensurePing() => $_ensure(10); + + @$pb.TagNumber(12) + SendRequest get send => $_getN(11); + @$pb.TagNumber(12) + set send(SendRequest v) { setField(12, v); } + @$pb.TagNumber(12) + $core.bool hasSend() => $_has(11); + @$pb.TagNumber(12) + void clearSend() => clearField(12); + @$pb.TagNumber(12) + SendRequest ensureSend() => $_ensure(11); + + @$pb.TagNumber(13) + RPCRequest get rpc => $_getN(12); + @$pb.TagNumber(13) + set rpc(RPCRequest v) { setField(13, v); } + @$pb.TagNumber(13) + $core.bool hasRpc() => $_has(12); + @$pb.TagNumber(13) + void clearRpc() => clearField(13); + @$pb.TagNumber(13) + RPCRequest ensureRpc() => $_ensure(12); + + @$pb.TagNumber(14) + RefreshRequest get refresh => $_getN(13); + @$pb.TagNumber(14) + set refresh(RefreshRequest v) { setField(14, v); } + @$pb.TagNumber(14) + $core.bool hasRefresh() => $_has(13); + @$pb.TagNumber(14) + void clearRefresh() => clearField(14); + @$pb.TagNumber(14) + RefreshRequest ensureRefresh() => $_ensure(13); + + @$pb.TagNumber(15) + SubRefreshRequest get subRefresh => $_getN(14); + @$pb.TagNumber(15) + set subRefresh(SubRefreshRequest v) { setField(15, v); } + @$pb.TagNumber(15) + $core.bool hasSubRefresh() => $_has(14); + @$pb.TagNumber(15) + void clearSubRefresh() => clearField(15); + @$pb.TagNumber(15) + SubRefreshRequest ensureSubRefresh() => $_ensure(14); } class Reply extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Reply', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id', - $pb.PbFieldType.OU3) - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'error', - subBuilder: Error.create) - ..a<$core.List<$core.int>>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'result', - $pb.PbFieldType.OY) - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Reply', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..a<$core.int>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'id', $pb.PbFieldType.OU3) + ..aOM(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'error', subBuilder: Error.create) + ..a<$core.List<$core.int>>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'result', $pb.PbFieldType.OY) + ..aOM(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'push', subBuilder: Push.create) + ..aOM(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'connect', subBuilder: ConnectResult.create) + ..aOM(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'subscribe', subBuilder: SubscribeResult.create) + ..aOM(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unsubscribe', subBuilder: UnsubscribeResult.create) + ..aOM(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'publish', subBuilder: PublishResult.create) + ..aOM(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'presence', subBuilder: PresenceResult.create) + ..aOM(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'presenceStats', subBuilder: PresenceStatsResult.create) + ..aOM(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'history', subBuilder: HistoryResult.create) + ..aOM(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'ping', subBuilder: PingResult.create) + ..aOM(13, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'rpc', subBuilder: RPCResult.create) + ..aOM(14, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'refresh', subBuilder: RefreshResult.create) + ..aOM(15, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'subRefresh', subBuilder: SubRefreshResult.create) + ..hasRequiredFields = false + ; Reply._() : super(); factory Reply({ $core.int? id, Error? error, $core.List<$core.int>? result, + Push? push, + ConnectResult? connect, + SubscribeResult? subscribe, + UnsubscribeResult? unsubscribe, + PublishResult? publish, + PresenceResult? presence, + PresenceStatsResult? presenceStats, + HistoryResult? history, + PingResult? ping, + RPCResult? rpc, + RefreshResult? refresh, + SubRefreshResult? subRefresh, }) { final _result = create(); if (id != null) { @@ -253,41 +390,69 @@ class Reply extends $pb.GeneratedMessage { if (result != null) { _result.result = result; } + if (push != null) { + _result.push = push; + } + if (connect != null) { + _result.connect = connect; + } + if (subscribe != null) { + _result.subscribe = subscribe; + } + if (unsubscribe != null) { + _result.unsubscribe = unsubscribe; + } + if (publish != null) { + _result.publish = publish; + } + if (presence != null) { + _result.presence = presence; + } + if (presenceStats != null) { + _result.presenceStats = presenceStats; + } + if (history != null) { + _result.history = history; + } + if (ping != null) { + _result.ping = ping; + } + if (rpc != null) { + _result.rpc = rpc; + } + if (refresh != null) { + _result.refresh = refresh; + } + if (subRefresh != null) { + _result.subRefresh = subRefresh; + } return _result; } - factory Reply.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory Reply.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory Reply.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory Reply.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Reply clone() => Reply()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Reply copyWith(void Function(Reply) updates) => - super.copyWith((message) => updates(message as Reply)) - as Reply; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Reply copyWith(void Function(Reply) updates) => super.copyWith((message) => updates(message as Reply)) as Reply; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Reply create() => Reply._(); Reply createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Reply getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Reply getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Reply? _defaultInstance; @$pb.TagNumber(1) $core.int get id => $_getIZ(0); @$pb.TagNumber(1) - set id($core.int v) { - $_setUnsignedInt32(0, v); - } - + set id($core.int v) { $_setUnsignedInt32(0, v); } @$pb.TagNumber(1) $core.bool hasId() => $_has(0); @$pb.TagNumber(1) @@ -296,10 +461,7 @@ class Reply extends $pb.GeneratedMessage { @$pb.TagNumber(2) Error get error => $_getN(1); @$pb.TagNumber(2) - set error(Error v) { - setField(2, v); - } - + set error(Error v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasError() => $_has(1); @$pb.TagNumber(2) @@ -310,45 +472,176 @@ class Reply extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.List<$core.int> get result => $_getN(2); @$pb.TagNumber(3) - set result($core.List<$core.int> v) { - $_setBytes(2, v); - } - + set result($core.List<$core.int> v) { $_setBytes(2, v); } @$pb.TagNumber(3) $core.bool hasResult() => $_has(2); @$pb.TagNumber(3) void clearResult() => clearField(3); + + @$pb.TagNumber(4) + Push get push => $_getN(3); + @$pb.TagNumber(4) + set push(Push v) { setField(4, v); } + @$pb.TagNumber(4) + $core.bool hasPush() => $_has(3); + @$pb.TagNumber(4) + void clearPush() => clearField(4); + @$pb.TagNumber(4) + Push ensurePush() => $_ensure(3); + + @$pb.TagNumber(5) + ConnectResult get connect => $_getN(4); + @$pb.TagNumber(5) + set connect(ConnectResult v) { setField(5, v); } + @$pb.TagNumber(5) + $core.bool hasConnect() => $_has(4); + @$pb.TagNumber(5) + void clearConnect() => clearField(5); + @$pb.TagNumber(5) + ConnectResult ensureConnect() => $_ensure(4); + + @$pb.TagNumber(6) + SubscribeResult get subscribe => $_getN(5); + @$pb.TagNumber(6) + set subscribe(SubscribeResult v) { setField(6, v); } + @$pb.TagNumber(6) + $core.bool hasSubscribe() => $_has(5); + @$pb.TagNumber(6) + void clearSubscribe() => clearField(6); + @$pb.TagNumber(6) + SubscribeResult ensureSubscribe() => $_ensure(5); + + @$pb.TagNumber(7) + UnsubscribeResult get unsubscribe => $_getN(6); + @$pb.TagNumber(7) + set unsubscribe(UnsubscribeResult v) { setField(7, v); } + @$pb.TagNumber(7) + $core.bool hasUnsubscribe() => $_has(6); + @$pb.TagNumber(7) + void clearUnsubscribe() => clearField(7); + @$pb.TagNumber(7) + UnsubscribeResult ensureUnsubscribe() => $_ensure(6); + + @$pb.TagNumber(8) + PublishResult get publish => $_getN(7); + @$pb.TagNumber(8) + set publish(PublishResult v) { setField(8, v); } + @$pb.TagNumber(8) + $core.bool hasPublish() => $_has(7); + @$pb.TagNumber(8) + void clearPublish() => clearField(8); + @$pb.TagNumber(8) + PublishResult ensurePublish() => $_ensure(7); + + @$pb.TagNumber(9) + PresenceResult get presence => $_getN(8); + @$pb.TagNumber(9) + set presence(PresenceResult v) { setField(9, v); } + @$pb.TagNumber(9) + $core.bool hasPresence() => $_has(8); + @$pb.TagNumber(9) + void clearPresence() => clearField(9); + @$pb.TagNumber(9) + PresenceResult ensurePresence() => $_ensure(8); + + @$pb.TagNumber(10) + PresenceStatsResult get presenceStats => $_getN(9); + @$pb.TagNumber(10) + set presenceStats(PresenceStatsResult v) { setField(10, v); } + @$pb.TagNumber(10) + $core.bool hasPresenceStats() => $_has(9); + @$pb.TagNumber(10) + void clearPresenceStats() => clearField(10); + @$pb.TagNumber(10) + PresenceStatsResult ensurePresenceStats() => $_ensure(9); + + @$pb.TagNumber(11) + HistoryResult get history => $_getN(10); + @$pb.TagNumber(11) + set history(HistoryResult v) { setField(11, v); } + @$pb.TagNumber(11) + $core.bool hasHistory() => $_has(10); + @$pb.TagNumber(11) + void clearHistory() => clearField(11); + @$pb.TagNumber(11) + HistoryResult ensureHistory() => $_ensure(10); + + @$pb.TagNumber(12) + PingResult get ping => $_getN(11); + @$pb.TagNumber(12) + set ping(PingResult v) { setField(12, v); } + @$pb.TagNumber(12) + $core.bool hasPing() => $_has(11); + @$pb.TagNumber(12) + void clearPing() => clearField(12); + @$pb.TagNumber(12) + PingResult ensurePing() => $_ensure(11); + + @$pb.TagNumber(13) + RPCResult get rpc => $_getN(12); + @$pb.TagNumber(13) + set rpc(RPCResult v) { setField(13, v); } + @$pb.TagNumber(13) + $core.bool hasRpc() => $_has(12); + @$pb.TagNumber(13) + void clearRpc() => clearField(13); + @$pb.TagNumber(13) + RPCResult ensureRpc() => $_ensure(12); + + @$pb.TagNumber(14) + RefreshResult get refresh => $_getN(13); + @$pb.TagNumber(14) + set refresh(RefreshResult v) { setField(14, v); } + @$pb.TagNumber(14) + $core.bool hasRefresh() => $_has(13); + @$pb.TagNumber(14) + void clearRefresh() => clearField(14); + @$pb.TagNumber(14) + RefreshResult ensureRefresh() => $_ensure(13); + + @$pb.TagNumber(15) + SubRefreshResult get subRefresh => $_getN(14); + @$pb.TagNumber(15) + set subRefresh(SubRefreshResult v) { setField(15, v); } + @$pb.TagNumber(15) + $core.bool hasSubRefresh() => $_has(14); + @$pb.TagNumber(15) + void clearSubRefresh() => clearField(15); + @$pb.TagNumber(15) + SubRefreshResult ensureSubRefresh() => $_ensure(14); } class Push extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Push', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..e( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'type', - $pb.PbFieldType.OE, - defaultOrMaker: Push_PushType.PUBLICATION, - valueOf: Push_PushType.valueOf, - enumValues: Push_PushType.values) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'channel') + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Push', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..e(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: Push_PushType.PUBLICATION, valueOf: Push_PushType.valueOf, enumValues: Push_PushType.values) + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'channel') ..a<$core.List<$core.int>>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'data', $pb.PbFieldType.OY) - ..hasRequiredFields = false; + ..aOM(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'pub', subBuilder: Publication.create) + ..aOM(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'join', subBuilder: Join.create) + ..aOM(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'leave', subBuilder: Leave.create) + ..aOM(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unsubscribe', subBuilder: Unsubscribe.create) + ..aOM(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'message', subBuilder: Message.create) + ..aOM(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'subscribe', subBuilder: Subscribe.create) + ..aOM(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'connect', subBuilder: Connect.create) + ..aOM(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'disconnect', subBuilder: Disconnect.create) + ..aOM(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'refresh', subBuilder: Refresh.create) + ..hasRequiredFields = false + ; Push._() : super(); factory Push({ Push_PushType? type, $core.String? channel, $core.List<$core.int>? data, + Publication? pub, + Join? join, + Leave? leave, + Unsubscribe? unsubscribe, + Message? message, + Subscribe? subscribe, + Connect? connect, + Disconnect? disconnect, + Refresh? refresh, }) { final _result = create(); if (type != null) { @@ -360,41 +653,60 @@ class Push extends $pb.GeneratedMessage { if (data != null) { _result.data = data; } + if (pub != null) { + _result.pub = pub; + } + if (join != null) { + _result.join = join; + } + if (leave != null) { + _result.leave = leave; + } + if (unsubscribe != null) { + _result.unsubscribe = unsubscribe; + } + if (message != null) { + _result.message = message; + } + if (subscribe != null) { + _result.subscribe = subscribe; + } + if (connect != null) { + _result.connect = connect; + } + if (disconnect != null) { + _result.disconnect = disconnect; + } + if (refresh != null) { + _result.refresh = refresh; + } return _result; } - factory Push.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory Push.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory Push.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory Push.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Push clone() => Push()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Push copyWith(void Function(Push) updates) => - super.copyWith((message) => updates(message as Push)) - as Push; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Push copyWith(void Function(Push) updates) => super.copyWith((message) => updates(message as Push)) as Push; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Push create() => Push._(); Push createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Push getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Push getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Push? _defaultInstance; @$pb.TagNumber(1) Push_PushType get type => $_getN(0); @$pb.TagNumber(1) - set type(Push_PushType v) { - setField(1, v); - } - + set type(Push_PushType v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasType() => $_has(0); @$pb.TagNumber(1) @@ -403,10 +715,7 @@ class Push extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get channel => $_getSZ(1); @$pb.TagNumber(2) - set channel($core.String v) { - $_setString(1, v); - } - + set channel($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasChannel() => $_has(1); @$pb.TagNumber(2) @@ -415,45 +724,120 @@ class Push extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.List<$core.int> get data => $_getN(2); @$pb.TagNumber(3) - set data($core.List<$core.int> v) { - $_setBytes(2, v); - } - + set data($core.List<$core.int> v) { $_setBytes(2, v); } @$pb.TagNumber(3) $core.bool hasData() => $_has(2); @$pb.TagNumber(3) void clearData() => clearField(3); + + @$pb.TagNumber(4) + Publication get pub => $_getN(3); + @$pb.TagNumber(4) + set pub(Publication v) { setField(4, v); } + @$pb.TagNumber(4) + $core.bool hasPub() => $_has(3); + @$pb.TagNumber(4) + void clearPub() => clearField(4); + @$pb.TagNumber(4) + Publication ensurePub() => $_ensure(3); + + @$pb.TagNumber(5) + Join get join => $_getN(4); + @$pb.TagNumber(5) + set join(Join v) { setField(5, v); } + @$pb.TagNumber(5) + $core.bool hasJoin() => $_has(4); + @$pb.TagNumber(5) + void clearJoin() => clearField(5); + @$pb.TagNumber(5) + Join ensureJoin() => $_ensure(4); + + @$pb.TagNumber(6) + Leave get leave => $_getN(5); + @$pb.TagNumber(6) + set leave(Leave v) { setField(6, v); } + @$pb.TagNumber(6) + $core.bool hasLeave() => $_has(5); + @$pb.TagNumber(6) + void clearLeave() => clearField(6); + @$pb.TagNumber(6) + Leave ensureLeave() => $_ensure(5); + + @$pb.TagNumber(7) + Unsubscribe get unsubscribe => $_getN(6); + @$pb.TagNumber(7) + set unsubscribe(Unsubscribe v) { setField(7, v); } + @$pb.TagNumber(7) + $core.bool hasUnsubscribe() => $_has(6); + @$pb.TagNumber(7) + void clearUnsubscribe() => clearField(7); + @$pb.TagNumber(7) + Unsubscribe ensureUnsubscribe() => $_ensure(6); + + @$pb.TagNumber(8) + Message get message => $_getN(7); + @$pb.TagNumber(8) + set message(Message v) { setField(8, v); } + @$pb.TagNumber(8) + $core.bool hasMessage() => $_has(7); + @$pb.TagNumber(8) + void clearMessage() => clearField(8); + @$pb.TagNumber(8) + Message ensureMessage() => $_ensure(7); + + @$pb.TagNumber(9) + Subscribe get subscribe => $_getN(8); + @$pb.TagNumber(9) + set subscribe(Subscribe v) { setField(9, v); } + @$pb.TagNumber(9) + $core.bool hasSubscribe() => $_has(8); + @$pb.TagNumber(9) + void clearSubscribe() => clearField(9); + @$pb.TagNumber(9) + Subscribe ensureSubscribe() => $_ensure(8); + + @$pb.TagNumber(10) + Connect get connect => $_getN(9); + @$pb.TagNumber(10) + set connect(Connect v) { setField(10, v); } + @$pb.TagNumber(10) + $core.bool hasConnect() => $_has(9); + @$pb.TagNumber(10) + void clearConnect() => clearField(10); + @$pb.TagNumber(10) + Connect ensureConnect() => $_ensure(9); + + @$pb.TagNumber(11) + Disconnect get disconnect => $_getN(10); + @$pb.TagNumber(11) + set disconnect(Disconnect v) { setField(11, v); } + @$pb.TagNumber(11) + $core.bool hasDisconnect() => $_has(10); + @$pb.TagNumber(11) + void clearDisconnect() => clearField(11); + @$pb.TagNumber(11) + Disconnect ensureDisconnect() => $_ensure(10); + + @$pb.TagNumber(12) + Refresh get refresh => $_getN(11); + @$pb.TagNumber(12) + set refresh(Refresh v) { setField(12, v); } + @$pb.TagNumber(12) + $core.bool hasRefresh() => $_has(11); + @$pb.TagNumber(12) + void clearRefresh() => clearField(12); + @$pb.TagNumber(12) + Refresh ensureRefresh() => $_ensure(11); } class ClientInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ClientInfo', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'user') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'client') - ..a<$core.List<$core.int>>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'connInfo', - $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'chanInfo', $pb.PbFieldType.OY) - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ClientInfo', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'user') + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'client') + ..a<$core.List<$core.int>>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'connInfo', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'chanInfo', $pb.PbFieldType.OY) + ..hasRequiredFields = false + ; ClientInfo._() : super(); factory ClientInfo({ @@ -477,39 +861,31 @@ class ClientInfo extends $pb.GeneratedMessage { } return _result; } - factory ClientInfo.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ClientInfo.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory ClientInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ClientInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ClientInfo clone() => ClientInfo()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ClientInfo copyWith(void Function(ClientInfo) updates) => - super.copyWith((message) => updates(message as ClientInfo)) - as ClientInfo; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ClientInfo copyWith(void Function(ClientInfo) updates) => super.copyWith((message) => updates(message as ClientInfo)) as ClientInfo; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ClientInfo create() => ClientInfo._(); ClientInfo createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ClientInfo getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static ClientInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ClientInfo? _defaultInstance; @$pb.TagNumber(1) $core.String get user => $_getSZ(0); @$pb.TagNumber(1) - set user($core.String v) { - $_setString(0, v); - } - + set user($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasUser() => $_has(0); @$pb.TagNumber(1) @@ -518,10 +894,7 @@ class ClientInfo extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get client => $_getSZ(1); @$pb.TagNumber(2) - set client($core.String v) { - $_setString(1, v); - } - + set client($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasClient() => $_has(1); @$pb.TagNumber(2) @@ -530,10 +903,7 @@ class ClientInfo extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.List<$core.int> get connInfo => $_getN(2); @$pb.TagNumber(3) - set connInfo($core.List<$core.int> v) { - $_setBytes(2, v); - } - + set connInfo($core.List<$core.int> v) { $_setBytes(2, v); } @$pb.TagNumber(3) $core.bool hasConnInfo() => $_has(2); @$pb.TagNumber(3) @@ -542,10 +912,7 @@ class ClientInfo extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.List<$core.int> get chanInfo => $_getN(3); @$pb.TagNumber(4) - set chanInfo($core.List<$core.int> v) { - $_setBytes(3, v); - } - + set chanInfo($core.List<$core.int> v) { $_setBytes(3, v); } @$pb.TagNumber(4) $core.bool hasChanInfo() => $_has(3); @$pb.TagNumber(4) @@ -553,34 +920,20 @@ class ClientInfo extends $pb.GeneratedMessage { } class Publication extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Publication', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..a<$core.List<$core.int>>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'data', - $pb.PbFieldType.OY) - ..aOM( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'info', - subBuilder: ClientInfo.create) - ..a<$fixnum.Int64>( - 6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'offset', $pb.PbFieldType.OU6, - defaultOrMaker: $fixnum.Int64.ZERO) - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Publication', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..a<$core.List<$core.int>>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'data', $pb.PbFieldType.OY) + ..aOM(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'info', subBuilder: ClientInfo.create) + ..a<$fixnum.Int64>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'offset', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..m<$core.String, $core.String>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'meta', entryClassName: 'Publication.MetaEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('centrifugal.centrifuge.protocol')) + ..hasRequiredFields = false + ; Publication._() : super(); factory Publication({ $core.List<$core.int>? data, ClientInfo? info, $fixnum.Int64? offset, + $core.Map<$core.String, $core.String>? meta, }) { final _result = create(); if (data != null) { @@ -592,41 +945,36 @@ class Publication extends $pb.GeneratedMessage { if (offset != null) { _result.offset = offset; } + if (meta != null) { + _result.meta.addAll(meta); + } return _result; } - factory Publication.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory Publication.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory Publication.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory Publication.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Publication clone() => Publication()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Publication copyWith(void Function(Publication) updates) => - super.copyWith((message) => updates(message as Publication)) - as Publication; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Publication copyWith(void Function(Publication) updates) => super.copyWith((message) => updates(message as Publication)) as Publication; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Publication create() => Publication._(); Publication createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Publication getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static Publication getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Publication? _defaultInstance; @$pb.TagNumber(4) $core.List<$core.int> get data => $_getN(0); @$pb.TagNumber(4) - set data($core.List<$core.int> v) { - $_setBytes(0, v); - } - + set data($core.List<$core.int> v) { $_setBytes(0, v); } @$pb.TagNumber(4) $core.bool hasData() => $_has(0); @$pb.TagNumber(4) @@ -635,10 +983,7 @@ class Publication extends $pb.GeneratedMessage { @$pb.TagNumber(5) ClientInfo get info => $_getN(1); @$pb.TagNumber(5) - set info(ClientInfo v) { - setField(5, v); - } - + set info(ClientInfo v) { setField(5, v); } @$pb.TagNumber(5) $core.bool hasInfo() => $_has(1); @$pb.TagNumber(5) @@ -649,33 +994,21 @@ class Publication extends $pb.GeneratedMessage { @$pb.TagNumber(6) $fixnum.Int64 get offset => $_getI64(2); @$pb.TagNumber(6) - set offset($fixnum.Int64 v) { - $_setInt64(2, v); - } - + set offset($fixnum.Int64 v) { $_setInt64(2, v); } @$pb.TagNumber(6) $core.bool hasOffset() => $_has(2); @$pb.TagNumber(6) void clearOffset() => clearField(6); + + @$pb.TagNumber(7) + $core.Map<$core.String, $core.String> get meta => $_getMap(3); } class Join extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Join', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..aOM( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'info', - subBuilder: ClientInfo.create) - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Join', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOM(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'info', subBuilder: ClientInfo.create) + ..hasRequiredFields = false + ; Join._() : super(); factory Join({ @@ -687,39 +1020,31 @@ class Join extends $pb.GeneratedMessage { } return _result; } - factory Join.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory Join.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory Join.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory Join.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Join clone() => Join()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Join copyWith(void Function(Join) updates) => - super.copyWith((message) => updates(message as Join)) - as Join; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Join copyWith(void Function(Join) updates) => super.copyWith((message) => updates(message as Join)) as Join; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Join create() => Join._(); Join createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Join getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Join getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Join? _defaultInstance; @$pb.TagNumber(1) ClientInfo get info => $_getN(0); @$pb.TagNumber(1) - set info(ClientInfo v) { - setField(1, v); - } - + set info(ClientInfo v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasInfo() => $_has(0); @$pb.TagNumber(1) @@ -729,22 +1054,10 @@ class Join extends $pb.GeneratedMessage { } class Leave extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Leave', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..aOM( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'info', - subBuilder: ClientInfo.create) - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Leave', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOM(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'info', subBuilder: ClientInfo.create) + ..hasRequiredFields = false + ; Leave._() : super(); factory Leave({ @@ -756,39 +1069,31 @@ class Leave extends $pb.GeneratedMessage { } return _result; } - factory Leave.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory Leave.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory Leave.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory Leave.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Leave clone() => Leave()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Leave copyWith(void Function(Leave) updates) => - super.copyWith((message) => updates(message as Leave)) - as Leave; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Leave copyWith(void Function(Leave) updates) => super.copyWith((message) => updates(message as Leave)) as Leave; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Leave create() => Leave._(); Leave createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Leave getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Leave getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Leave? _defaultInstance; @$pb.TagNumber(1) ClientInfo get info => $_getN(0); @$pb.TagNumber(1) - set info(ClientInfo v) { - setField(1, v); - } - + set info(ClientInfo v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasInfo() => $_has(0); @$pb.TagNumber(1) @@ -798,76 +1103,43 @@ class Leave extends $pb.GeneratedMessage { } class Unsubscribe extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Unsubscribe', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Unsubscribe', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..hasRequiredFields = false + ; Unsubscribe._() : super(); factory Unsubscribe() => create(); - factory Unsubscribe.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory Unsubscribe.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory Unsubscribe.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory Unsubscribe.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Unsubscribe clone() => Unsubscribe()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Unsubscribe copyWith(void Function(Unsubscribe) updates) => - super.copyWith((message) => updates(message as Unsubscribe)) - as Unsubscribe; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Unsubscribe copyWith(void Function(Unsubscribe) updates) => super.copyWith((message) => updates(message as Unsubscribe)) as Unsubscribe; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Unsubscribe create() => Unsubscribe._(); Unsubscribe createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Unsubscribe getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static Unsubscribe getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Unsubscribe? _defaultInstance; } class Subscribe extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Subscribe', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..aOB( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'recoverable') - ..aOS( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'epoch') - ..a<$fixnum.Int64>( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'offset', - $pb.PbFieldType.OU6, - defaultOrMaker: $fixnum.Int64.ZERO) + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Subscribe', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOB(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'recoverable') + ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'epoch') + ..a<$fixnum.Int64>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'offset', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) ..aOB(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'positioned') ..a<$core.List<$core.int>>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'data', $pb.PbFieldType.OY) - ..hasRequiredFields = false; + ..hasRequiredFields = false + ; Subscribe._() : super(); factory Subscribe({ @@ -895,39 +1167,31 @@ class Subscribe extends $pb.GeneratedMessage { } return _result; } - factory Subscribe.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory Subscribe.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory Subscribe.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory Subscribe.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Subscribe clone() => Subscribe()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Subscribe copyWith(void Function(Subscribe) updates) => - super.copyWith((message) => updates(message as Subscribe)) - as Subscribe; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Subscribe copyWith(void Function(Subscribe) updates) => super.copyWith((message) => updates(message as Subscribe)) as Subscribe; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Subscribe create() => Subscribe._(); Subscribe createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Subscribe getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Subscribe getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Subscribe? _defaultInstance; @$pb.TagNumber(1) $core.bool get recoverable => $_getBF(0); @$pb.TagNumber(1) - set recoverable($core.bool v) { - $_setBool(0, v); - } - + set recoverable($core.bool v) { $_setBool(0, v); } @$pb.TagNumber(1) $core.bool hasRecoverable() => $_has(0); @$pb.TagNumber(1) @@ -936,10 +1200,7 @@ class Subscribe extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.String get epoch => $_getSZ(1); @$pb.TagNumber(4) - set epoch($core.String v) { - $_setString(1, v); - } - + set epoch($core.String v) { $_setString(1, v); } @$pb.TagNumber(4) $core.bool hasEpoch() => $_has(1); @$pb.TagNumber(4) @@ -948,10 +1209,7 @@ class Subscribe extends $pb.GeneratedMessage { @$pb.TagNumber(5) $fixnum.Int64 get offset => $_getI64(2); @$pb.TagNumber(5) - set offset($fixnum.Int64 v) { - $_setInt64(2, v); - } - + set offset($fixnum.Int64 v) { $_setInt64(2, v); } @$pb.TagNumber(5) $core.bool hasOffset() => $_has(2); @$pb.TagNumber(5) @@ -960,10 +1218,7 @@ class Subscribe extends $pb.GeneratedMessage { @$pb.TagNumber(6) $core.bool get positioned => $_getBF(3); @$pb.TagNumber(6) - set positioned($core.bool v) { - $_setBool(3, v); - } - + set positioned($core.bool v) { $_setBool(3, v); } @$pb.TagNumber(6) $core.bool hasPositioned() => $_has(3); @$pb.TagNumber(6) @@ -972,10 +1227,7 @@ class Subscribe extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.List<$core.int> get data => $_getN(4); @$pb.TagNumber(7) - set data($core.List<$core.int> v) { - $_setBytes(4, v); - } - + set data($core.List<$core.int> v) { $_setBytes(4, v); } @$pb.TagNumber(7) $core.bool hasData() => $_has(4); @$pb.TagNumber(7) @@ -983,22 +1235,10 @@ class Subscribe extends $pb.GeneratedMessage { } class Message extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Message', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..a<$core.List<$core.int>>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'data', - $pb.PbFieldType.OY) - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Message', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..a<$core.List<$core.int>>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'data', $pb.PbFieldType.OY) + ..hasRequiredFields = false + ; Message._() : super(); factory Message({ @@ -1010,39 +1250,31 @@ class Message extends $pb.GeneratedMessage { } return _result; } - factory Message.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory Message.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory Message.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory Message.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Message clone() => Message()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Message copyWith(void Function(Message) updates) => - super.copyWith((message) => updates(message as Message)) - as Message; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Message copyWith(void Function(Message) updates) => super.copyWith((message) => updates(message as Message)) as Message; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Message create() => Message._(); Message createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Message getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Message getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Message? _defaultInstance; @$pb.TagNumber(1) $core.List<$core.int> get data => $_getN(0); @$pb.TagNumber(1) - set data($core.List<$core.int> v) { - $_setBytes(0, v); - } - + set data($core.List<$core.int> v) { $_setBytes(0, v); } @$pb.TagNumber(1) $core.bool hasData() => $_has(0); @$pb.TagNumber(1) @@ -1050,40 +1282,15 @@ class Message extends $pb.GeneratedMessage { } class Connect extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Connect', - package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'client') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'version') - ..a<$core.List<$core.int>>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'data', - $pb.PbFieldType.OY) - ..m<$core.String, SubscribeResult>( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'subs', - entryClassName: 'Connect.SubsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OM, - valueCreator: SubscribeResult.create, - packageName: const $pb.PackageName('centrifugal.centrifuge.protocol')) + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Connect', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'client') + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'version') + ..a<$core.List<$core.int>>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'data', $pb.PbFieldType.OY) + ..m<$core.String, SubscribeResult>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'subs', entryClassName: 'Connect.SubsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: SubscribeResult.create, packageName: const $pb.PackageName('centrifugal.centrifuge.protocol')) ..aOB(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'expires') ..a<$core.int>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'ttl', $pb.PbFieldType.OU3) - ..hasRequiredFields = false; + ..hasRequiredFields = false + ; Connect._() : super(); factory Connect({ @@ -1115,39 +1322,31 @@ class Connect extends $pb.GeneratedMessage { } return _result; } - factory Connect.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory Connect.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory Connect.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory Connect.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Connect clone() => Connect()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Connect copyWith(void Function(Connect) updates) => - super.copyWith((message) => updates(message as Connect)) - as Connect; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Connect copyWith(void Function(Connect) updates) => super.copyWith((message) => updates(message as Connect)) as Connect; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Connect create() => Connect._(); Connect createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Connect getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Connect getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Connect? _defaultInstance; @$pb.TagNumber(1) $core.String get client => $_getSZ(0); @$pb.TagNumber(1) - set client($core.String v) { - $_setString(0, v); - } - + set client($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasClient() => $_has(0); @$pb.TagNumber(1) @@ -1156,10 +1355,7 @@ class Connect extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get version => $_getSZ(1); @$pb.TagNumber(2) - set version($core.String v) { - $_setString(1, v); - } - + set version($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasVersion() => $_has(1); @$pb.TagNumber(2) @@ -1168,10 +1364,7 @@ class Connect extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.List<$core.int> get data => $_getN(2); @$pb.TagNumber(3) - set data($core.List<$core.int> v) { - $_setBytes(2, v); - } - + set data($core.List<$core.int> v) { $_setBytes(2, v); } @$pb.TagNumber(3) $core.bool hasData() => $_has(2); @$pb.TagNumber(3) @@ -1183,10 +1376,7 @@ class Connect extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.bool get expires => $_getBF(4); @$pb.TagNumber(5) - set expires($core.bool v) { - $_setBool(4, v); - } - + set expires($core.bool v) { $_setBool(4, v); } @$pb.TagNumber(5) $core.bool hasExpires() => $_has(4); @$pb.TagNumber(5) @@ -1195,10 +1385,7 @@ class Connect extends $pb.GeneratedMessage { @$pb.TagNumber(6) $core.int get ttl => $_getIZ(5); @$pb.TagNumber(6) - set ttl($core.int v) { - $_setUnsignedInt32(5, v); - } - + set ttl($core.int v) { $_setUnsignedInt32(5, v); } @$pb.TagNumber(6) $core.bool hasTtl() => $_has(5); @$pb.TagNumber(6) @@ -1206,29 +1393,12 @@ class Connect extends $pb.GeneratedMessage { } class Disconnect extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Disconnect', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'code', - $pb.PbFieldType.OU3) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'reason') - ..aOB(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'reconnect') - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Disconnect', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..a<$core.int>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'code', $pb.PbFieldType.OU3) + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'reason') + ..aOB(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'reconnect') + ..hasRequiredFields = false + ; Disconnect._() : super(); factory Disconnect({ @@ -1248,39 +1418,31 @@ class Disconnect extends $pb.GeneratedMessage { } return _result; } - factory Disconnect.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory Disconnect.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory Disconnect.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory Disconnect.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Disconnect clone() => Disconnect()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Disconnect copyWith(void Function(Disconnect) updates) => - super.copyWith((message) => updates(message as Disconnect)) - as Disconnect; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Disconnect copyWith(void Function(Disconnect) updates) => super.copyWith((message) => updates(message as Disconnect)) as Disconnect; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Disconnect create() => Disconnect._(); Disconnect createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Disconnect getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static Disconnect getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Disconnect? _defaultInstance; @$pb.TagNumber(1) $core.int get code => $_getIZ(0); @$pb.TagNumber(1) - set code($core.int v) { - $_setUnsignedInt32(0, v); - } - + set code($core.int v) { $_setUnsignedInt32(0, v); } @$pb.TagNumber(1) $core.bool hasCode() => $_has(0); @$pb.TagNumber(1) @@ -1289,10 +1451,7 @@ class Disconnect extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get reason => $_getSZ(1); @$pb.TagNumber(2) - set reason($core.String v) { - $_setString(1, v); - } - + set reason($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasReason() => $_has(1); @$pb.TagNumber(2) @@ -1301,10 +1460,7 @@ class Disconnect extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.bool get reconnect => $_getBF(2); @$pb.TagNumber(3) - set reconnect($core.bool v) { - $_setBool(2, v); - } - + set reconnect($core.bool v) { $_setBool(2, v); } @$pb.TagNumber(3) $core.bool hasReconnect() => $_has(2); @$pb.TagNumber(3) @@ -1312,27 +1468,11 @@ class Disconnect extends $pb.GeneratedMessage { } class Refresh extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Refresh', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..aOB( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'expires') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'ttl', - $pb.PbFieldType.OU3) - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Refresh', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOB(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'expires') + ..a<$core.int>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'ttl', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; Refresh._() : super(); factory Refresh({ @@ -1348,39 +1488,31 @@ class Refresh extends $pb.GeneratedMessage { } return _result; } - factory Refresh.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory Refresh.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory Refresh.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory Refresh.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Refresh clone() => Refresh()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Refresh copyWith(void Function(Refresh) updates) => - super.copyWith((message) => updates(message as Refresh)) - as Refresh; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Refresh copyWith(void Function(Refresh) updates) => super.copyWith((message) => updates(message as Refresh)) as Refresh; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Refresh create() => Refresh._(); Refresh createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Refresh getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Refresh getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Refresh? _defaultInstance; @$pb.TagNumber(1) $core.bool get expires => $_getBF(0); @$pb.TagNumber(1) - set expires($core.bool v) { - $_setBool(0, v); - } - + set expires($core.bool v) { $_setBool(0, v); } @$pb.TagNumber(1) $core.bool hasExpires() => $_has(0); @$pb.TagNumber(1) @@ -1389,10 +1521,7 @@ class Refresh extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.int get ttl => $_getIZ(1); @$pb.TagNumber(2) - set ttl($core.int v) { - $_setUnsignedInt32(1, v); - } - + set ttl($core.int v) { $_setUnsignedInt32(1, v); } @$pb.TagNumber(2) $core.bool hasTtl() => $_has(1); @$pb.TagNumber(2) @@ -1400,36 +1529,14 @@ class Refresh extends $pb.GeneratedMessage { } class ConnectRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ConnectRequest', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'token') - ..a<$core.List<$core.int>>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'data', - $pb.PbFieldType.OY) - ..m<$core.String, SubscribeRequest>(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'subs', - entryClassName: 'ConnectRequest.SubsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OM, - valueCreator: SubscribeRequest.create, - packageName: const $pb.PackageName('centrifugal.centrifuge.protocol')) + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ConnectRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'token') + ..a<$core.List<$core.int>>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'data', $pb.PbFieldType.OY) + ..m<$core.String, SubscribeRequest>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'subs', entryClassName: 'ConnectRequest.SubsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: SubscribeRequest.create, packageName: const $pb.PackageName('centrifugal.centrifuge.protocol')) ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'name') ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'version') - ..hasRequiredFields = false; + ..hasRequiredFields = false + ; ConnectRequest._() : super(); factory ConnectRequest({ @@ -1457,40 +1564,31 @@ class ConnectRequest extends $pb.GeneratedMessage { } return _result; } - factory ConnectRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ConnectRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory ConnectRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ConnectRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ConnectRequest clone() => ConnectRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ConnectRequest copyWith(void Function(ConnectRequest) updates) => - super.copyWith((message) => updates(message as ConnectRequest)) - as ConnectRequest; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ConnectRequest copyWith(void Function(ConnectRequest) updates) => super.copyWith((message) => updates(message as ConnectRequest)) as ConnectRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ConnectRequest create() => ConnectRequest._(); ConnectRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ConnectRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static ConnectRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ConnectRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get token => $_getSZ(0); @$pb.TagNumber(1) - set token($core.String v) { - $_setString(0, v); - } - + set token($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasToken() => $_has(0); @$pb.TagNumber(1) @@ -1499,10 +1597,7 @@ class ConnectRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.List<$core.int> get data => $_getN(1); @$pb.TagNumber(2) - set data($core.List<$core.int> v) { - $_setBytes(1, v); - } - + set data($core.List<$core.int> v) { $_setBytes(1, v); } @$pb.TagNumber(2) $core.bool hasData() => $_has(1); @$pb.TagNumber(2) @@ -1514,10 +1609,7 @@ class ConnectRequest extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.String get name => $_getSZ(3); @$pb.TagNumber(4) - set name($core.String v) { - $_setString(3, v); - } - + set name($core.String v) { $_setString(3, v); } @$pb.TagNumber(4) $core.bool hasName() => $_has(3); @$pb.TagNumber(4) @@ -1526,10 +1618,7 @@ class ConnectRequest extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.String get version => $_getSZ(4); @$pb.TagNumber(5) - set version($core.String v) { - $_setString(4, v); - } - + set version($core.String v) { $_setString(4, v); } @$pb.TagNumber(5) $core.bool hasVersion() => $_has(4); @$pb.TagNumber(5) @@ -1537,36 +1626,15 @@ class ConnectRequest extends $pb.GeneratedMessage { } class ConnectResult extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ConnectResult', - package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'client') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'version') - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'expires') - ..a<$core.int>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'ttl', - $pb.PbFieldType.OU3) + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ConnectResult', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'client') + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'version') + ..aOB(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'expires') + ..a<$core.int>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'ttl', $pb.PbFieldType.OU3) ..a<$core.List<$core.int>>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'data', $pb.PbFieldType.OY) ..m<$core.String, SubscribeResult>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'subs', entryClassName: 'ConnectResult.SubsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: SubscribeResult.create, packageName: const $pb.PackageName('centrifugal.centrifuge.protocol')) - ..hasRequiredFields = false; + ..hasRequiredFields = false + ; ConnectResult._() : super(); factory ConnectResult({ @@ -1598,40 +1666,31 @@ class ConnectResult extends $pb.GeneratedMessage { } return _result; } - factory ConnectResult.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ConnectResult.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory ConnectResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ConnectResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ConnectResult clone() => ConnectResult()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ConnectResult copyWith(void Function(ConnectResult) updates) => - super.copyWith((message) => updates(message as ConnectResult)) - as ConnectResult; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ConnectResult copyWith(void Function(ConnectResult) updates) => super.copyWith((message) => updates(message as ConnectResult)) as ConnectResult; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ConnectResult create() => ConnectResult._(); ConnectResult createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ConnectResult getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static ConnectResult getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ConnectResult? _defaultInstance; @$pb.TagNumber(1) $core.String get client => $_getSZ(0); @$pb.TagNumber(1) - set client($core.String v) { - $_setString(0, v); - } - + set client($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasClient() => $_has(0); @$pb.TagNumber(1) @@ -1640,10 +1699,7 @@ class ConnectResult extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get version => $_getSZ(1); @$pb.TagNumber(2) - set version($core.String v) { - $_setString(1, v); - } - + set version($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasVersion() => $_has(1); @$pb.TagNumber(2) @@ -1652,10 +1708,7 @@ class ConnectResult extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.bool get expires => $_getBF(2); @$pb.TagNumber(3) - set expires($core.bool v) { - $_setBool(2, v); - } - + set expires($core.bool v) { $_setBool(2, v); } @$pb.TagNumber(3) $core.bool hasExpires() => $_has(2); @$pb.TagNumber(3) @@ -1664,10 +1717,7 @@ class ConnectResult extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.int get ttl => $_getIZ(3); @$pb.TagNumber(4) - set ttl($core.int v) { - $_setUnsignedInt32(3, v); - } - + set ttl($core.int v) { $_setUnsignedInt32(3, v); } @$pb.TagNumber(4) $core.bool hasTtl() => $_has(3); @$pb.TagNumber(4) @@ -1676,10 +1726,7 @@ class ConnectResult extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.List<$core.int> get data => $_getN(4); @$pb.TagNumber(5) - set data($core.List<$core.int> v) { - $_setBytes(4, v); - } - + set data($core.List<$core.int> v) { $_setBytes(4, v); } @$pb.TagNumber(5) $core.bool hasData() => $_has(4); @$pb.TagNumber(5) @@ -1690,21 +1737,10 @@ class ConnectResult extends $pb.GeneratedMessage { } class RefreshRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'RefreshRequest', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'token') - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'RefreshRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'token') + ..hasRequiredFields = false + ; RefreshRequest._() : super(); factory RefreshRequest({ @@ -1716,40 +1752,31 @@ class RefreshRequest extends $pb.GeneratedMessage { } return _result; } - factory RefreshRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory RefreshRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory RefreshRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RefreshRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') RefreshRequest clone() => RefreshRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - RefreshRequest copyWith(void Function(RefreshRequest) updates) => - super.copyWith((message) => updates(message as RefreshRequest)) - as RefreshRequest; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RefreshRequest copyWith(void Function(RefreshRequest) updates) => super.copyWith((message) => updates(message as RefreshRequest)) as RefreshRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static RefreshRequest create() => RefreshRequest._(); RefreshRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static RefreshRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static RefreshRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static RefreshRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get token => $_getSZ(0); @$pb.TagNumber(1) - set token($core.String v) { - $_setString(0, v); - } - + set token($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasToken() => $_has(0); @$pb.TagNumber(1) @@ -1757,34 +1784,13 @@ class RefreshRequest extends $pb.GeneratedMessage { } class RefreshResult extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'RefreshResult', - package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'client') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'version') - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'expires') - ..a<$core.int>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'ttl', - $pb.PbFieldType.OU3) - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'RefreshResult', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'client') + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'version') + ..aOB(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'expires') + ..a<$core.int>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'ttl', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; RefreshResult._() : super(); factory RefreshResult({ @@ -1808,40 +1814,31 @@ class RefreshResult extends $pb.GeneratedMessage { } return _result; } - factory RefreshResult.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory RefreshResult.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory RefreshResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RefreshResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') RefreshResult clone() => RefreshResult()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - RefreshResult copyWith(void Function(RefreshResult) updates) => - super.copyWith((message) => updates(message as RefreshResult)) - as RefreshResult; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RefreshResult copyWith(void Function(RefreshResult) updates) => super.copyWith((message) => updates(message as RefreshResult)) as RefreshResult; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static RefreshResult create() => RefreshResult._(); RefreshResult createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static RefreshResult getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static RefreshResult getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static RefreshResult? _defaultInstance; @$pb.TagNumber(1) $core.String get client => $_getSZ(0); @$pb.TagNumber(1) - set client($core.String v) { - $_setString(0, v); - } - + set client($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasClient() => $_has(0); @$pb.TagNumber(1) @@ -1850,10 +1847,7 @@ class RefreshResult extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get version => $_getSZ(1); @$pb.TagNumber(2) - set version($core.String v) { - $_setString(1, v); - } - + set version($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasVersion() => $_has(1); @$pb.TagNumber(2) @@ -1862,10 +1856,7 @@ class RefreshResult extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.bool get expires => $_getBF(2); @$pb.TagNumber(3) - set expires($core.bool v) { - $_setBool(2, v); - } - + set expires($core.bool v) { $_setBool(2, v); } @$pb.TagNumber(3) $core.bool hasExpires() => $_has(2); @$pb.TagNumber(3) @@ -1874,10 +1865,7 @@ class RefreshResult extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.int get ttl => $_getIZ(3); @$pb.TagNumber(4) - set ttl($core.int v) { - $_setUnsignedInt32(3, v); - } - + set ttl($core.int v) { $_setUnsignedInt32(3, v); } @$pb.TagNumber(4) $core.bool hasTtl() => $_has(3); @$pb.TagNumber(4) @@ -1885,34 +1873,15 @@ class RefreshResult extends $pb.GeneratedMessage { } class SubscribeRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SubscribeRequest', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'channel') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'token') - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'recover') - ..aOS( - 6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'epoch') + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'SubscribeRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'channel') + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'token') + ..aOB(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'recover') + ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'epoch') ..a<$fixnum.Int64>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'offset', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..hasRequiredFields = false; + ..a<$core.List<$core.int>>(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'data', $pb.PbFieldType.OY) + ..hasRequiredFields = false + ; SubscribeRequest._() : super(); factory SubscribeRequest({ @@ -1921,6 +1890,7 @@ class SubscribeRequest extends $pb.GeneratedMessage { $core.bool? recover, $core.String? epoch, $fixnum.Int64? offset, + $core.List<$core.int>? data, }) { final _result = create(); if (channel != null) { @@ -1938,42 +1908,36 @@ class SubscribeRequest extends $pb.GeneratedMessage { if (offset != null) { _result.offset = offset; } + if (data != null) { + _result.data = data; + } return _result; } - factory SubscribeRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SubscribeRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory SubscribeRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SubscribeRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SubscribeRequest clone() => SubscribeRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SubscribeRequest copyWith(void Function(SubscribeRequest) updates) => - super.copyWith((message) => updates(message as SubscribeRequest)) - as SubscribeRequest; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SubscribeRequest copyWith(void Function(SubscribeRequest) updates) => super.copyWith((message) => updates(message as SubscribeRequest)) as SubscribeRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SubscribeRequest create() => SubscribeRequest._(); SubscribeRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SubscribeRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static SubscribeRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SubscribeRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get channel => $_getSZ(0); @$pb.TagNumber(1) - set channel($core.String v) { - $_setString(0, v); - } - + set channel($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasChannel() => $_has(0); @$pb.TagNumber(1) @@ -1982,10 +1946,7 @@ class SubscribeRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get token => $_getSZ(1); @$pb.TagNumber(2) - set token($core.String v) { - $_setString(1, v); - } - + set token($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasToken() => $_has(1); @$pb.TagNumber(2) @@ -1994,10 +1955,7 @@ class SubscribeRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.bool get recover => $_getBF(2); @$pb.TagNumber(3) - set recover($core.bool v) { - $_setBool(2, v); - } - + set recover($core.bool v) { $_setBool(2, v); } @$pb.TagNumber(3) $core.bool hasRecover() => $_has(2); @$pb.TagNumber(3) @@ -2006,10 +1964,7 @@ class SubscribeRequest extends $pb.GeneratedMessage { @$pb.TagNumber(6) $core.String get epoch => $_getSZ(3); @$pb.TagNumber(6) - set epoch($core.String v) { - $_setString(3, v); - } - + set epoch($core.String v) { $_setString(3, v); } @$pb.TagNumber(6) $core.bool hasEpoch() => $_has(3); @$pb.TagNumber(6) @@ -2018,49 +1973,35 @@ class SubscribeRequest extends $pb.GeneratedMessage { @$pb.TagNumber(7) $fixnum.Int64 get offset => $_getI64(4); @$pb.TagNumber(7) - set offset($fixnum.Int64 v) { - $_setInt64(4, v); - } - + set offset($fixnum.Int64 v) { $_setInt64(4, v); } @$pb.TagNumber(7) $core.bool hasOffset() => $_has(4); @$pb.TagNumber(7) void clearOffset() => clearField(7); + + @$pb.TagNumber(8) + $core.List<$core.int> get data => $_getN(5); + @$pb.TagNumber(8) + set data($core.List<$core.int> v) { $_setBytes(5, v); } + @$pb.TagNumber(8) + $core.bool hasData() => $_has(5); + @$pb.TagNumber(8) + void clearData() => clearField(8); } class SubscribeResult extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SubscribeResult', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..aOB( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'expires') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'ttl', - $pb.PbFieldType.OU3) - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'recoverable') + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'SubscribeResult', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOB(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'expires') + ..a<$core.int>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'ttl', $pb.PbFieldType.OU3) + ..aOB(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'recoverable') ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'epoch') ..pc(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'publications', $pb.PbFieldType.PM, subBuilder: Publication.create) ..aOB(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'recovered') ..a<$fixnum.Int64>(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'offset', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) ..aOB(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'positioned') ..a<$core.List<$core.int>>(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'data', $pb.PbFieldType.OY) - ..hasRequiredFields = false; + ..hasRequiredFields = false + ; SubscribeResult._() : super(); factory SubscribeResult({ @@ -2104,40 +2045,31 @@ class SubscribeResult extends $pb.GeneratedMessage { } return _result; } - factory SubscribeResult.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SubscribeResult.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory SubscribeResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SubscribeResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SubscribeResult clone() => SubscribeResult()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SubscribeResult copyWith(void Function(SubscribeResult) updates) => - super.copyWith((message) => updates(message as SubscribeResult)) - as SubscribeResult; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SubscribeResult copyWith(void Function(SubscribeResult) updates) => super.copyWith((message) => updates(message as SubscribeResult)) as SubscribeResult; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SubscribeResult create() => SubscribeResult._(); SubscribeResult createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SubscribeResult getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static SubscribeResult getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SubscribeResult? _defaultInstance; @$pb.TagNumber(1) $core.bool get expires => $_getBF(0); @$pb.TagNumber(1) - set expires($core.bool v) { - $_setBool(0, v); - } - + set expires($core.bool v) { $_setBool(0, v); } @$pb.TagNumber(1) $core.bool hasExpires() => $_has(0); @$pb.TagNumber(1) @@ -2146,10 +2078,7 @@ class SubscribeResult extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.int get ttl => $_getIZ(1); @$pb.TagNumber(2) - set ttl($core.int v) { - $_setUnsignedInt32(1, v); - } - + set ttl($core.int v) { $_setUnsignedInt32(1, v); } @$pb.TagNumber(2) $core.bool hasTtl() => $_has(1); @$pb.TagNumber(2) @@ -2158,10 +2087,7 @@ class SubscribeResult extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.bool get recoverable => $_getBF(2); @$pb.TagNumber(3) - set recoverable($core.bool v) { - $_setBool(2, v); - } - + set recoverable($core.bool v) { $_setBool(2, v); } @$pb.TagNumber(3) $core.bool hasRecoverable() => $_has(2); @$pb.TagNumber(3) @@ -2170,10 +2096,7 @@ class SubscribeResult extends $pb.GeneratedMessage { @$pb.TagNumber(6) $core.String get epoch => $_getSZ(3); @$pb.TagNumber(6) - set epoch($core.String v) { - $_setString(3, v); - } - + set epoch($core.String v) { $_setString(3, v); } @$pb.TagNumber(6) $core.bool hasEpoch() => $_has(3); @$pb.TagNumber(6) @@ -2185,10 +2108,7 @@ class SubscribeResult extends $pb.GeneratedMessage { @$pb.TagNumber(8) $core.bool get recovered => $_getBF(5); @$pb.TagNumber(8) - set recovered($core.bool v) { - $_setBool(5, v); - } - + set recovered($core.bool v) { $_setBool(5, v); } @$pb.TagNumber(8) $core.bool hasRecovered() => $_has(5); @$pb.TagNumber(8) @@ -2197,10 +2117,7 @@ class SubscribeResult extends $pb.GeneratedMessage { @$pb.TagNumber(9) $fixnum.Int64 get offset => $_getI64(6); @$pb.TagNumber(9) - set offset($fixnum.Int64 v) { - $_setInt64(6, v); - } - + set offset($fixnum.Int64 v) { $_setInt64(6, v); } @$pb.TagNumber(9) $core.bool hasOffset() => $_has(6); @$pb.TagNumber(9) @@ -2209,10 +2126,7 @@ class SubscribeResult extends $pb.GeneratedMessage { @$pb.TagNumber(10) $core.bool get positioned => $_getBF(7); @$pb.TagNumber(10) - set positioned($core.bool v) { - $_setBool(7, v); - } - + set positioned($core.bool v) { $_setBool(7, v); } @$pb.TagNumber(10) $core.bool hasPositioned() => $_has(7); @$pb.TagNumber(10) @@ -2221,10 +2135,7 @@ class SubscribeResult extends $pb.GeneratedMessage { @$pb.TagNumber(11) $core.List<$core.int> get data => $_getN(8); @$pb.TagNumber(11) - set data($core.List<$core.int> v) { - $_setBytes(8, v); - } - + set data($core.List<$core.int> v) { $_setBytes(8, v); } @$pb.TagNumber(11) $core.bool hasData() => $_has(8); @$pb.TagNumber(11) @@ -2232,26 +2143,11 @@ class SubscribeResult extends $pb.GeneratedMessage { } class SubRefreshRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SubRefreshRequest', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'channel') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'token') - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'SubRefreshRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'channel') + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'token') + ..hasRequiredFields = false + ; SubRefreshRequest._() : super(); factory SubRefreshRequest({ @@ -2267,40 +2163,31 @@ class SubRefreshRequest extends $pb.GeneratedMessage { } return _result; } - factory SubRefreshRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SubRefreshRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory SubRefreshRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SubRefreshRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SubRefreshRequest clone() => SubRefreshRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SubRefreshRequest copyWith(void Function(SubRefreshRequest) updates) => - super.copyWith((message) => updates(message as SubRefreshRequest)) - as SubRefreshRequest; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SubRefreshRequest copyWith(void Function(SubRefreshRequest) updates) => super.copyWith((message) => updates(message as SubRefreshRequest)) as SubRefreshRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SubRefreshRequest create() => SubRefreshRequest._(); SubRefreshRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SubRefreshRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static SubRefreshRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SubRefreshRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get channel => $_getSZ(0); @$pb.TagNumber(1) - set channel($core.String v) { - $_setString(0, v); - } - + set channel($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasChannel() => $_has(0); @$pb.TagNumber(1) @@ -2309,10 +2196,7 @@ class SubRefreshRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get token => $_getSZ(1); @$pb.TagNumber(2) - set token($core.String v) { - $_setString(1, v); - } - + set token($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasToken() => $_has(1); @$pb.TagNumber(2) @@ -2320,27 +2204,11 @@ class SubRefreshRequest extends $pb.GeneratedMessage { } class SubRefreshResult extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SubRefreshResult', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..aOB( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'expires') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'ttl', - $pb.PbFieldType.OU3) - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'SubRefreshResult', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOB(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'expires') + ..a<$core.int>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'ttl', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; SubRefreshResult._() : super(); factory SubRefreshResult({ @@ -2356,40 +2224,31 @@ class SubRefreshResult extends $pb.GeneratedMessage { } return _result; } - factory SubRefreshResult.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SubRefreshResult.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory SubRefreshResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SubRefreshResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SubRefreshResult clone() => SubRefreshResult()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SubRefreshResult copyWith(void Function(SubRefreshResult) updates) => - super.copyWith((message) => updates(message as SubRefreshResult)) - as SubRefreshResult; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SubRefreshResult copyWith(void Function(SubRefreshResult) updates) => super.copyWith((message) => updates(message as SubRefreshResult)) as SubRefreshResult; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SubRefreshResult create() => SubRefreshResult._(); SubRefreshResult createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SubRefreshResult getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static SubRefreshResult getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SubRefreshResult? _defaultInstance; @$pb.TagNumber(1) $core.bool get expires => $_getBF(0); @$pb.TagNumber(1) - set expires($core.bool v) { - $_setBool(0, v); - } - + set expires($core.bool v) { $_setBool(0, v); } @$pb.TagNumber(1) $core.bool hasExpires() => $_has(0); @$pb.TagNumber(1) @@ -2398,10 +2257,7 @@ class SubRefreshResult extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.int get ttl => $_getIZ(1); @$pb.TagNumber(2) - set ttl($core.int v) { - $_setUnsignedInt32(1, v); - } - + set ttl($core.int v) { $_setUnsignedInt32(1, v); } @$pb.TagNumber(2) $core.bool hasTtl() => $_has(1); @$pb.TagNumber(2) @@ -2409,21 +2265,10 @@ class SubRefreshResult extends $pb.GeneratedMessage { } class UnsubscribeRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UnsubscribeRequest', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'channel') - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'UnsubscribeRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'channel') + ..hasRequiredFields = false + ; UnsubscribeRequest._() : super(); factory UnsubscribeRequest({ @@ -2435,40 +2280,31 @@ class UnsubscribeRequest extends $pb.GeneratedMessage { } return _result; } - factory UnsubscribeRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory UnsubscribeRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory UnsubscribeRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory UnsubscribeRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') UnsubscribeRequest clone() => UnsubscribeRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - UnsubscribeRequest copyWith(void Function(UnsubscribeRequest) updates) => - super.copyWith((message) => updates(message as UnsubscribeRequest)) - as UnsubscribeRequest; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UnsubscribeRequest copyWith(void Function(UnsubscribeRequest) updates) => super.copyWith((message) => updates(message as UnsubscribeRequest)) as UnsubscribeRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static UnsubscribeRequest create() => UnsubscribeRequest._(); UnsubscribeRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static UnsubscribeRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static UnsubscribeRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static UnsubscribeRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get channel => $_getSZ(0); @$pb.TagNumber(1) - set channel($core.String v) { - $_setString(0, v); - } - + set channel($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasChannel() => $_has(0); @$pb.TagNumber(1) @@ -2476,69 +2312,40 @@ class UnsubscribeRequest extends $pb.GeneratedMessage { } class UnsubscribeResult extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UnsubscribeResult', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'UnsubscribeResult', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..hasRequiredFields = false + ; UnsubscribeResult._() : super(); factory UnsubscribeResult() => create(); - factory UnsubscribeResult.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory UnsubscribeResult.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory UnsubscribeResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory UnsubscribeResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') UnsubscribeResult clone() => UnsubscribeResult()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - UnsubscribeResult copyWith(void Function(UnsubscribeResult) updates) => - super.copyWith((message) => updates(message as UnsubscribeResult)) - as UnsubscribeResult; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UnsubscribeResult copyWith(void Function(UnsubscribeResult) updates) => super.copyWith((message) => updates(message as UnsubscribeResult)) as UnsubscribeResult; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static UnsubscribeResult create() => UnsubscribeResult._(); UnsubscribeResult createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static UnsubscribeResult getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static UnsubscribeResult getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static UnsubscribeResult? _defaultInstance; } class PublishRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'PublishRequest', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'channel') - ..a<$core.List<$core.int>>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'data', - $pb.PbFieldType.OY) - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'PublishRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'channel') + ..a<$core.List<$core.int>>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'data', $pb.PbFieldType.OY) + ..hasRequiredFields = false + ; PublishRequest._() : super(); factory PublishRequest({ @@ -2554,40 +2361,31 @@ class PublishRequest extends $pb.GeneratedMessage { } return _result; } - factory PublishRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory PublishRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory PublishRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory PublishRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') PublishRequest clone() => PublishRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PublishRequest copyWith(void Function(PublishRequest) updates) => - super.copyWith((message) => updates(message as PublishRequest)) - as PublishRequest; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PublishRequest copyWith(void Function(PublishRequest) updates) => super.copyWith((message) => updates(message as PublishRequest)) as PublishRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PublishRequest create() => PublishRequest._(); PublishRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static PublishRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static PublishRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static PublishRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get channel => $_getSZ(0); @$pb.TagNumber(1) - set channel($core.String v) { - $_setString(0, v); - } - + set channel($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasChannel() => $_has(0); @$pb.TagNumber(1) @@ -2596,10 +2394,7 @@ class PublishRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.List<$core.int> get data => $_getN(1); @$pb.TagNumber(2) - set data($core.List<$core.int> v) { - $_setBytes(1, v); - } - + set data($core.List<$core.int> v) { $_setBytes(1, v); } @$pb.TagNumber(2) $core.bool hasData() => $_has(1); @$pb.TagNumber(2) @@ -2607,63 +2402,39 @@ class PublishRequest extends $pb.GeneratedMessage { } class PublishResult extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'PublishResult', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'PublishResult', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..hasRequiredFields = false + ; PublishResult._() : super(); factory PublishResult() => create(); - factory PublishResult.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory PublishResult.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory PublishResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory PublishResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') PublishResult clone() => PublishResult()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PublishResult copyWith(void Function(PublishResult) updates) => - super.copyWith((message) => updates(message as PublishResult)) - as PublishResult; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PublishResult copyWith(void Function(PublishResult) updates) => super.copyWith((message) => updates(message as PublishResult)) as PublishResult; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PublishResult create() => PublishResult._(); PublishResult createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static PublishResult getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static PublishResult getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static PublishResult? _defaultInstance; } class PresenceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'PresenceRequest', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'channel') - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'PresenceRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'channel') + ..hasRequiredFields = false + ; PresenceRequest._() : super(); factory PresenceRequest({ @@ -2675,40 +2446,31 @@ class PresenceRequest extends $pb.GeneratedMessage { } return _result; } - factory PresenceRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory PresenceRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory PresenceRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory PresenceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') PresenceRequest clone() => PresenceRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PresenceRequest copyWith(void Function(PresenceRequest) updates) => - super.copyWith((message) => updates(message as PresenceRequest)) - as PresenceRequest; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PresenceRequest copyWith(void Function(PresenceRequest) updates) => super.copyWith((message) => updates(message as PresenceRequest)) as PresenceRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PresenceRequest create() => PresenceRequest._(); PresenceRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static PresenceRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static PresenceRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static PresenceRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get channel => $_getSZ(0); @$pb.TagNumber(1) - set channel($core.String v) { - $_setString(0, v); - } - + set channel($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasChannel() => $_has(0); @$pb.TagNumber(1) @@ -2716,26 +2478,10 @@ class PresenceRequest extends $pb.GeneratedMessage { } class PresenceResult extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'PresenceResult', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..m<$core.String, ClientInfo>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'presence', - entryClassName: 'PresenceResult.PresenceEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OM, - valueCreator: ClientInfo.create, - packageName: const $pb.PackageName('centrifugal.centrifuge.protocol')) - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'PresenceResult', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..m<$core.String, ClientInfo>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'presence', entryClassName: 'PresenceResult.PresenceEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: ClientInfo.create, packageName: const $pb.PackageName('centrifugal.centrifuge.protocol')) + ..hasRequiredFields = false + ; PresenceResult._() : super(); factory PresenceResult({ @@ -2747,31 +2493,25 @@ class PresenceResult extends $pb.GeneratedMessage { } return _result; } - factory PresenceResult.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory PresenceResult.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory PresenceResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory PresenceResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') PresenceResult clone() => PresenceResult()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PresenceResult copyWith(void Function(PresenceResult) updates) => - super.copyWith((message) => updates(message as PresenceResult)) - as PresenceResult; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PresenceResult copyWith(void Function(PresenceResult) updates) => super.copyWith((message) => updates(message as PresenceResult)) as PresenceResult; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PresenceResult create() => PresenceResult._(); PresenceResult createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static PresenceResult getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static PresenceResult getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static PresenceResult? _defaultInstance; @$pb.TagNumber(1) @@ -2779,21 +2519,10 @@ class PresenceResult extends $pb.GeneratedMessage { } class PresenceStatsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'PresenceStatsRequest', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'channel') - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'PresenceStatsRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'channel') + ..hasRequiredFields = false + ; PresenceStatsRequest._() : super(); factory PresenceStatsRequest({ @@ -2805,41 +2534,31 @@ class PresenceStatsRequest extends $pb.GeneratedMessage { } return _result; } - factory PresenceStatsRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory PresenceStatsRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - PresenceStatsRequest clone() => - PresenceStatsRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PresenceStatsRequest copyWith(void Function(PresenceStatsRequest) updates) => - super.copyWith((message) => updates(message as PresenceStatsRequest)) - as PresenceStatsRequest; // ignore: deprecated_member_use + factory PresenceStatsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory PresenceStatsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + PresenceStatsRequest clone() => PresenceStatsRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PresenceStatsRequest copyWith(void Function(PresenceStatsRequest) updates) => super.copyWith((message) => updates(message as PresenceStatsRequest)) as PresenceStatsRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PresenceStatsRequest create() => PresenceStatsRequest._(); PresenceStatsRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static PresenceStatsRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static PresenceStatsRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static PresenceStatsRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get channel => $_getSZ(0); @$pb.TagNumber(1) - set channel($core.String v) { - $_setString(0, v); - } - + set channel($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasChannel() => $_has(0); @$pb.TagNumber(1) @@ -2847,28 +2566,11 @@ class PresenceStatsRequest extends $pb.GeneratedMessage { } class PresenceStatsResult extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'PresenceStatsResult', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'numClients', - $pb.PbFieldType.OU3) - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'numUsers', - $pb.PbFieldType.OU3) - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'PresenceStatsResult', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..a<$core.int>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'numClients', $pb.PbFieldType.OU3) + ..a<$core.int>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'numUsers', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; PresenceStatsResult._() : super(); factory PresenceStatsResult({ @@ -2884,40 +2586,31 @@ class PresenceStatsResult extends $pb.GeneratedMessage { } return _result; } - factory PresenceStatsResult.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory PresenceStatsResult.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory PresenceStatsResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory PresenceStatsResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') PresenceStatsResult clone() => PresenceStatsResult()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PresenceStatsResult copyWith(void Function(PresenceStatsResult) updates) => - super.copyWith((message) => updates(message as PresenceStatsResult)) - as PresenceStatsResult; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PresenceStatsResult copyWith(void Function(PresenceStatsResult) updates) => super.copyWith((message) => updates(message as PresenceStatsResult)) as PresenceStatsResult; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PresenceStatsResult create() => PresenceStatsResult._(); PresenceStatsResult createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static PresenceStatsResult getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static PresenceStatsResult getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static PresenceStatsResult? _defaultInstance; @$pb.TagNumber(1) $core.int get numClients => $_getIZ(0); @$pb.TagNumber(1) - set numClients($core.int v) { - $_setUnsignedInt32(0, v); - } - + set numClients($core.int v) { $_setUnsignedInt32(0, v); } @$pb.TagNumber(1) $core.bool hasNumClients() => $_has(0); @$pb.TagNumber(1) @@ -2926,10 +2619,7 @@ class PresenceStatsResult extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.int get numUsers => $_getIZ(1); @$pb.TagNumber(2) - set numUsers($core.int v) { - $_setUnsignedInt32(1, v); - } - + set numUsers($core.int v) { $_setUnsignedInt32(1, v); } @$pb.TagNumber(2) $core.bool hasNumUsers() => $_has(1); @$pb.TagNumber(2) @@ -2937,25 +2627,11 @@ class PresenceStatsResult extends $pb.GeneratedMessage { } class StreamPosition extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'StreamPosition', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..a<$fixnum.Int64>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'offset', - $pb.PbFieldType.OU6, - defaultOrMaker: $fixnum.Int64.ZERO) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'epoch') - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'StreamPosition', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..a<$fixnum.Int64>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'offset', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'epoch') + ..hasRequiredFields = false + ; StreamPosition._() : super(); factory StreamPosition({ @@ -2971,40 +2647,31 @@ class StreamPosition extends $pb.GeneratedMessage { } return _result; } - factory StreamPosition.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory StreamPosition.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory StreamPosition.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory StreamPosition.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') StreamPosition clone() => StreamPosition()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - StreamPosition copyWith(void Function(StreamPosition) updates) => - super.copyWith((message) => updates(message as StreamPosition)) - as StreamPosition; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + StreamPosition copyWith(void Function(StreamPosition) updates) => super.copyWith((message) => updates(message as StreamPosition)) as StreamPosition; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static StreamPosition create() => StreamPosition._(); StreamPosition createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static StreamPosition getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static StreamPosition getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static StreamPosition? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get offset => $_getI64(0); @$pb.TagNumber(1) - set offset($fixnum.Int64 v) { - $_setInt64(0, v); - } - + set offset($fixnum.Int64 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasOffset() => $_has(0); @$pb.TagNumber(1) @@ -3013,10 +2680,7 @@ class StreamPosition extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get epoch => $_getSZ(1); @$pb.TagNumber(2) - set epoch($core.String v) { - $_setString(1, v); - } - + set epoch($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasEpoch() => $_has(1); @$pb.TagNumber(2) @@ -3024,31 +2688,13 @@ class StreamPosition extends $pb.GeneratedMessage { } class HistoryRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'HistoryRequest', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'channel') - ..a<$core.int>( - 7, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'limit', - $pb.PbFieldType.O3) - ..aOM(8, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'since', - subBuilder: StreamPosition.create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'HistoryRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'channel') + ..a<$core.int>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'limit', $pb.PbFieldType.O3) + ..aOM(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'since', subBuilder: StreamPosition.create) ..aOB(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'reverse') - ..hasRequiredFields = false; + ..hasRequiredFields = false + ; HistoryRequest._() : super(); factory HistoryRequest({ @@ -3072,40 +2718,31 @@ class HistoryRequest extends $pb.GeneratedMessage { } return _result; } - factory HistoryRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory HistoryRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory HistoryRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory HistoryRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') HistoryRequest clone() => HistoryRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - HistoryRequest copyWith(void Function(HistoryRequest) updates) => - super.copyWith((message) => updates(message as HistoryRequest)) - as HistoryRequest; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + HistoryRequest copyWith(void Function(HistoryRequest) updates) => super.copyWith((message) => updates(message as HistoryRequest)) as HistoryRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static HistoryRequest create() => HistoryRequest._(); HistoryRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static HistoryRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static HistoryRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static HistoryRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get channel => $_getSZ(0); @$pb.TagNumber(1) - set channel($core.String v) { - $_setString(0, v); - } - + set channel($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasChannel() => $_has(0); @$pb.TagNumber(1) @@ -3114,10 +2751,7 @@ class HistoryRequest extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.int get limit => $_getIZ(1); @$pb.TagNumber(7) - set limit($core.int v) { - $_setSignedInt32(1, v); - } - + set limit($core.int v) { $_setSignedInt32(1, v); } @$pb.TagNumber(7) $core.bool hasLimit() => $_has(1); @$pb.TagNumber(7) @@ -3126,10 +2760,7 @@ class HistoryRequest extends $pb.GeneratedMessage { @$pb.TagNumber(8) StreamPosition get since => $_getN(2); @$pb.TagNumber(8) - set since(StreamPosition v) { - setField(8, v); - } - + set since(StreamPosition v) { setField(8, v); } @$pb.TagNumber(8) $core.bool hasSince() => $_has(2); @$pb.TagNumber(8) @@ -3140,10 +2771,7 @@ class HistoryRequest extends $pb.GeneratedMessage { @$pb.TagNumber(9) $core.bool get reverse => $_getBF(3); @$pb.TagNumber(9) - set reverse($core.bool v) { - $_setBool(3, v); - } - + set reverse($core.bool v) { $_setBool(3, v); } @$pb.TagNumber(9) $core.bool hasReverse() => $_has(3); @$pb.TagNumber(9) @@ -3151,26 +2779,12 @@ class HistoryRequest extends $pb.GeneratedMessage { } class HistoryResult extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'HistoryResult', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'publications', - $pb.PbFieldType.PM, - subBuilder: Publication.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'epoch') + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'HistoryResult', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..pc(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'publications', $pb.PbFieldType.PM, subBuilder: Publication.create) + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'epoch') ..a<$fixnum.Int64>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'offset', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..hasRequiredFields = false; + ..hasRequiredFields = false + ; HistoryResult._() : super(); factory HistoryResult({ @@ -3190,31 +2804,25 @@ class HistoryResult extends $pb.GeneratedMessage { } return _result; } - factory HistoryResult.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory HistoryResult.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory HistoryResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory HistoryResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') HistoryResult clone() => HistoryResult()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - HistoryResult copyWith(void Function(HistoryResult) updates) => - super.copyWith((message) => updates(message as HistoryResult)) - as HistoryResult; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + HistoryResult copyWith(void Function(HistoryResult) updates) => super.copyWith((message) => updates(message as HistoryResult)) as HistoryResult; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static HistoryResult create() => HistoryResult._(); HistoryResult createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static HistoryResult getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static HistoryResult getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static HistoryResult? _defaultInstance; @$pb.TagNumber(1) @@ -3223,10 +2831,7 @@ class HistoryResult extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get epoch => $_getSZ(1); @$pb.TagNumber(2) - set epoch($core.String v) { - $_setString(1, v); - } - + set epoch($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasEpoch() => $_has(1); @$pb.TagNumber(2) @@ -3235,10 +2840,7 @@ class HistoryResult extends $pb.GeneratedMessage { @$pb.TagNumber(3) $fixnum.Int64 get offset => $_getI64(2); @$pb.TagNumber(3) - set offset($fixnum.Int64 v) { - $_setInt64(2, v); - } - + set offset($fixnum.Int64 v) { $_setInt64(2, v); } @$pb.TagNumber(3) $core.bool hasOffset() => $_has(2); @$pb.TagNumber(3) @@ -3246,109 +2848,69 @@ class HistoryResult extends $pb.GeneratedMessage { } class PingRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'PingRequest', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'PingRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..hasRequiredFields = false + ; PingRequest._() : super(); factory PingRequest() => create(); - factory PingRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory PingRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory PingRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory PingRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') PingRequest clone() => PingRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PingRequest copyWith(void Function(PingRequest) updates) => - super.copyWith((message) => updates(message as PingRequest)) - as PingRequest; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PingRequest copyWith(void Function(PingRequest) updates) => super.copyWith((message) => updates(message as PingRequest)) as PingRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PingRequest create() => PingRequest._(); PingRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static PingRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static PingRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static PingRequest? _defaultInstance; } class PingResult extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'PingResult', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'PingResult', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..hasRequiredFields = false + ; PingResult._() : super(); factory PingResult() => create(); - factory PingResult.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory PingResult.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory PingResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory PingResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') PingResult clone() => PingResult()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PingResult copyWith(void Function(PingResult) updates) => - super.copyWith((message) => updates(message as PingResult)) - as PingResult; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PingResult copyWith(void Function(PingResult) updates) => super.copyWith((message) => updates(message as PingResult)) as PingResult; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PingResult create() => PingResult._(); PingResult createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static PingResult getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static PingResult getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static PingResult? _defaultInstance; } class RPCRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'RPCRequest', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..a<$core.List<$core.int>>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'data', - $pb.PbFieldType.OY) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'method') - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'RPCRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..a<$core.List<$core.int>>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'data', $pb.PbFieldType.OY) + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'method') + ..hasRequiredFields = false + ; RPCRequest._() : super(); factory RPCRequest({ @@ -3364,39 +2926,31 @@ class RPCRequest extends $pb.GeneratedMessage { } return _result; } - factory RPCRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory RPCRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory RPCRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RPCRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') RPCRequest clone() => RPCRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - RPCRequest copyWith(void Function(RPCRequest) updates) => - super.copyWith((message) => updates(message as RPCRequest)) - as RPCRequest; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RPCRequest copyWith(void Function(RPCRequest) updates) => super.copyWith((message) => updates(message as RPCRequest)) as RPCRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static RPCRequest create() => RPCRequest._(); RPCRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static RPCRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static RPCRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static RPCRequest? _defaultInstance; @$pb.TagNumber(1) $core.List<$core.int> get data => $_getN(0); @$pb.TagNumber(1) - set data($core.List<$core.int> v) { - $_setBytes(0, v); - } - + set data($core.List<$core.int> v) { $_setBytes(0, v); } @$pb.TagNumber(1) $core.bool hasData() => $_has(0); @$pb.TagNumber(1) @@ -3405,10 +2959,7 @@ class RPCRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get method => $_getSZ(1); @$pb.TagNumber(2) - set method($core.String v) { - $_setString(1, v); - } - + set method($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasMethod() => $_has(1); @$pb.TagNumber(2) @@ -3416,22 +2967,10 @@ class RPCRequest extends $pb.GeneratedMessage { } class RPCResult extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'RPCResult', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..a<$core.List<$core.int>>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'data', - $pb.PbFieldType.OY) - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'RPCResult', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..a<$core.List<$core.int>>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'data', $pb.PbFieldType.OY) + ..hasRequiredFields = false + ; RPCResult._() : super(); factory RPCResult({ @@ -3443,39 +2982,31 @@ class RPCResult extends $pb.GeneratedMessage { } return _result; } - factory RPCResult.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory RPCResult.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory RPCResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RPCResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') RPCResult clone() => RPCResult()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - RPCResult copyWith(void Function(RPCResult) updates) => - super.copyWith((message) => updates(message as RPCResult)) - as RPCResult; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RPCResult copyWith(void Function(RPCResult) updates) => super.copyWith((message) => updates(message as RPCResult)) as RPCResult; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static RPCResult create() => RPCResult._(); RPCResult createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static RPCResult getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RPCResult getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static RPCResult? _defaultInstance; @$pb.TagNumber(1) $core.List<$core.int> get data => $_getN(0); @$pb.TagNumber(1) - set data($core.List<$core.int> v) { - $_setBytes(0, v); - } - + set data($core.List<$core.int> v) { $_setBytes(0, v); } @$pb.TagNumber(1) $core.bool hasData() => $_has(0); @$pb.TagNumber(1) @@ -3483,22 +3014,10 @@ class RPCResult extends $pb.GeneratedMessage { } class SendRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SendRequest', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'centrifugal.centrifuge.protocol'), - createEmptyInstance: create) - ..a<$core.List<$core.int>>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'data', - $pb.PbFieldType.OY) - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'SendRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..a<$core.List<$core.int>>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'data', $pb.PbFieldType.OY) + ..hasRequiredFields = false + ; SendRequest._() : super(); factory SendRequest({ @@ -3510,41 +3029,34 @@ class SendRequest extends $pb.GeneratedMessage { } return _result; } - factory SendRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SendRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory SendRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SendRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SendRequest clone() => SendRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SendRequest copyWith(void Function(SendRequest) updates) => - super.copyWith((message) => updates(message as SendRequest)) - as SendRequest; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SendRequest copyWith(void Function(SendRequest) updates) => super.copyWith((message) => updates(message as SendRequest)) as SendRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SendRequest create() => SendRequest._(); SendRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SendRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static SendRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SendRequest? _defaultInstance; @$pb.TagNumber(1) $core.List<$core.int> get data => $_getN(0); @$pb.TagNumber(1) - set data($core.List<$core.int> v) { - $_setBytes(0, v); - } - + set data($core.List<$core.int> v) { $_setBytes(0, v); } @$pb.TagNumber(1) $core.bool hasData() => $_has(0); @$pb.TagNumber(1) void clearData() => clearField(1); } + diff --git a/lib/src/proto/client.pbenum.dart b/lib/src/proto/client.pbenum.dart index 7d9b284..15090d2 100644 --- a/lib/src/proto/client.pbenum.dart +++ b/lib/src/proto/client.pbenum.dart @@ -10,68 +10,20 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; class Command_MethodType extends $pb.ProtobufEnum { - static const Command_MethodType CONNECT = Command_MethodType._( - 0, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CONNECT'); - static const Command_MethodType SUBSCRIBE = Command_MethodType._( - 1, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SUBSCRIBE'); - static const Command_MethodType UNSUBSCRIBE = Command_MethodType._( - 2, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNSUBSCRIBE'); - static const Command_MethodType PUBLISH = Command_MethodType._( - 3, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'PUBLISH'); - static const Command_MethodType PRESENCE = Command_MethodType._( - 4, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'PRESENCE'); - static const Command_MethodType PRESENCE_STATS = Command_MethodType._( - 5, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'PRESENCE_STATS'); - static const Command_MethodType HISTORY = Command_MethodType._( - 6, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'HISTORY'); - static const Command_MethodType PING = Command_MethodType._( - 7, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'PING'); - static const Command_MethodType SEND = Command_MethodType._( - 8, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SEND'); - static const Command_MethodType RPC = Command_MethodType._( - 9, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'RPC'); - static const Command_MethodType REFRESH = Command_MethodType._( - 10, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'REFRESH'); - static const Command_MethodType SUB_REFRESH = Command_MethodType._( - 11, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SUB_REFRESH'); + static const Command_MethodType CONNECT = Command_MethodType._(0, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'CONNECT'); + static const Command_MethodType SUBSCRIBE = Command_MethodType._(1, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'SUBSCRIBE'); + static const Command_MethodType UNSUBSCRIBE = Command_MethodType._(2, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'UNSUBSCRIBE'); + static const Command_MethodType PUBLISH = Command_MethodType._(3, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'PUBLISH'); + static const Command_MethodType PRESENCE = Command_MethodType._(4, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'PRESENCE'); + static const Command_MethodType PRESENCE_STATS = Command_MethodType._(5, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'PRESENCE_STATS'); + static const Command_MethodType HISTORY = Command_MethodType._(6, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'HISTORY'); + static const Command_MethodType PING = Command_MethodType._(7, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'PING'); + static const Command_MethodType SEND = Command_MethodType._(8, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'SEND'); + static const Command_MethodType RPC = Command_MethodType._(9, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'RPC'); + static const Command_MethodType REFRESH = Command_MethodType._(10, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'REFRESH'); + static const Command_MethodType SUB_REFRESH = Command_MethodType._(11, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'SUB_REFRESH'); - static const $core.List values = [ + static const $core.List values = [ CONNECT, SUBSCRIBE, UNSUBSCRIBE, @@ -86,61 +38,24 @@ class Command_MethodType extends $pb.ProtobufEnum { SUB_REFRESH, ]; - static final $core.Map<$core.int, Command_MethodType> _byValue = - $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, Command_MethodType> _byValue = $pb.ProtobufEnum.initByValue(values); static Command_MethodType? valueOf($core.int value) => _byValue[value]; const Command_MethodType._($core.int v, $core.String n) : super(v, n); } class Push_PushType extends $pb.ProtobufEnum { - static const Push_PushType PUBLICATION = Push_PushType._( - 0, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'PUBLICATION'); - static const Push_PushType JOIN = Push_PushType._( - 1, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'JOIN'); - static const Push_PushType LEAVE = Push_PushType._( - 2, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LEAVE'); - static const Push_PushType UNSUBSCRIBE = Push_PushType._( - 3, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNSUBSCRIBE'); - static const Push_PushType MESSAGE = Push_PushType._( - 4, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'MESSAGE'); - static const Push_PushType SUBSCRIBE = Push_PushType._( - 5, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SUBSCRIBE'); - static const Push_PushType CONNECT = Push_PushType._( - 6, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CONNECT'); - static const Push_PushType DISCONNECT = Push_PushType._( - 7, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DISCONNECT'); - static const Push_PushType REFRESH = Push_PushType._( - 8, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'REFRESH'); + static const Push_PushType PUBLICATION = Push_PushType._(0, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'PUBLICATION'); + static const Push_PushType JOIN = Push_PushType._(1, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'JOIN'); + static const Push_PushType LEAVE = Push_PushType._(2, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'LEAVE'); + static const Push_PushType UNSUBSCRIBE = Push_PushType._(3, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'UNSUBSCRIBE'); + static const Push_PushType MESSAGE = Push_PushType._(4, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'MESSAGE'); + static const Push_PushType SUBSCRIBE = Push_PushType._(5, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'SUBSCRIBE'); + static const Push_PushType CONNECT = Push_PushType._(6, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'CONNECT'); + static const Push_PushType DISCONNECT = Push_PushType._(7, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'DISCONNECT'); + static const Push_PushType REFRESH = Push_PushType._(8, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'REFRESH'); - static const $core.List values = [ + static const $core.List values = [ PUBLICATION, JOIN, LEAVE, @@ -152,9 +67,9 @@ class Push_PushType extends $pb.ProtobufEnum { REFRESH, ]; - static final $core.Map<$core.int, Push_PushType> _byValue = - $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, Push_PushType> _byValue = $pb.ProtobufEnum.initByValue(values); static Push_PushType? valueOf($core.int value) => _byValue[value]; const Push_PushType._($core.int v, $core.String n) : super(v, n); } + diff --git a/lib/src/proto/client.pbjson.dart b/lib/src/proto/client.pbjson.dart index 0bf420f..b92d755 100644 --- a/lib/src/proto/client.pbjson.dart +++ b/lib/src/proto/client.pbjson.dart @@ -8,7 +8,6 @@ import 'dart:core' as $core; import 'dart:convert' as $convert; import 'dart:typed_data' as $typed_data; - @$core.Deprecated('Use errorDescriptor instead') const Error$json = const { '1': 'Error', @@ -19,22 +18,26 @@ const Error$json = const { }; /// Descriptor for `Error`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List errorDescriptor = $convert.base64Decode( - 'CgVFcnJvchISCgRjb2RlGAEgASgNUgRjb2RlEhgKB21lc3NhZ2UYAiABKAlSB21lc3NhZ2U='); +final $typed_data.Uint8List errorDescriptor = $convert.base64Decode('CgVFcnJvchISCgRjb2RlGAEgASgNUgRjb2RlEhgKB21lc3NhZ2UYAiABKAlSB21lc3NhZ2U='); @$core.Deprecated('Use commandDescriptor instead') const Command$json = const { '1': 'Command', '2': const [ const {'1': 'id', '3': 1, '4': 1, '5': 13, '10': 'id'}, - const { - '1': 'method', - '3': 2, - '4': 1, - '5': 14, - '6': '.centrifugal.centrifuge.protocol.Command.MethodType', - '10': 'method' - }, + const {'1': 'method', '3': 2, '4': 1, '5': 14, '6': '.centrifugal.centrifuge.protocol.Command.MethodType', '10': 'method'}, const {'1': 'params', '3': 3, '4': 1, '5': 12, '10': 'params'}, + const {'1': 'connect', '3': 4, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.ConnectRequest', '10': 'connect'}, + const {'1': 'subscribe', '3': 5, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.SubscribeRequest', '10': 'subscribe'}, + const {'1': 'unsubscribe', '3': 6, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.UnsubscribeRequest', '10': 'unsubscribe'}, + const {'1': 'publish', '3': 7, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.PublishRequest', '10': 'publish'}, + const {'1': 'presence', '3': 8, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.PresenceRequest', '10': 'presence'}, + const {'1': 'presence_stats', '3': 9, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.PresenceStatsRequest', '10': 'presenceStats'}, + const {'1': 'history', '3': 10, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.HistoryRequest', '10': 'history'}, + const {'1': 'ping', '3': 11, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.PingRequest', '10': 'ping'}, + const {'1': 'send', '3': 12, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.SendRequest', '10': 'send'}, + const {'1': 'rpc', '3': 13, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.RPCRequest', '10': 'rpc'}, + const {'1': 'refresh', '3': 14, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.RefreshRequest', '10': 'refresh'}, + const {'1': 'sub_refresh', '3': 15, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.SubRefreshRequest', '10': 'subRefresh'}, ], '4': const [Command_MethodType$json], }; @@ -59,42 +62,47 @@ const Command_MethodType$json = const { }; /// Descriptor for `Command`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List commandDescriptor = $convert.base64Decode( - 'CgdDb21tYW5kEg4KAmlkGAEgASgNUgJpZBJLCgZtZXRob2QYAiABKA4yMy5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkNvbW1hbmQuTWV0aG9kVHlwZVIGbWV0aG9kEhYKBnBhcmFtcxgDIAEoDFIGcGFyYW1zIrABCgpNZXRob2RUeXBlEgsKB0NPTk5FQ1QQABINCglTVUJTQ1JJQkUQARIPCgtVTlNVQlNDUklCRRACEgsKB1BVQkxJU0gQAxIMCghQUkVTRU5DRRAEEhIKDlBSRVNFTkNFX1NUQVRTEAUSCwoHSElTVE9SWRAGEggKBFBJTkcQBxIICgRTRU5EEAgSBwoDUlBDEAkSCwoHUkVGUkVTSBAKEg8KC1NVQl9SRUZSRVNIEAs='); +final $typed_data.Uint8List commandDescriptor = $convert.base64Decode('CgdDb21tYW5kEg4KAmlkGAEgASgNUgJpZBJLCgZtZXRob2QYAiABKA4yMy5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkNvbW1hbmQuTWV0aG9kVHlwZVIGbWV0aG9kEhYKBnBhcmFtcxgDIAEoDFIGcGFyYW1zEkkKB2Nvbm5lY3QYBCABKAsyLy5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkNvbm5lY3RSZXF1ZXN0Ugdjb25uZWN0Ek8KCXN1YnNjcmliZRgFIAEoCzIxLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuU3Vic2NyaWJlUmVxdWVzdFIJc3Vic2NyaWJlElUKC3Vuc3Vic2NyaWJlGAYgASgLMjMuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5VbnN1YnNjcmliZVJlcXVlc3RSC3Vuc3Vic2NyaWJlEkkKB3B1Ymxpc2gYByABKAsyLy5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLlB1Ymxpc2hSZXF1ZXN0UgdwdWJsaXNoEkwKCHByZXNlbmNlGAggASgLMjAuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5QcmVzZW5jZVJlcXVlc3RSCHByZXNlbmNlElwKDnByZXNlbmNlX3N0YXRzGAkgASgLMjUuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5QcmVzZW5jZVN0YXRzUmVxdWVzdFINcHJlc2VuY2VTdGF0cxJJCgdoaXN0b3J5GAogASgLMi8uY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5IaXN0b3J5UmVxdWVzdFIHaGlzdG9yeRJACgRwaW5nGAsgASgLMiwuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5QaW5nUmVxdWVzdFIEcGluZxJACgRzZW5kGAwgASgLMiwuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5TZW5kUmVxdWVzdFIEc2VuZBI9CgNycGMYDSABKAsyKy5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLlJQQ1JlcXVlc3RSA3JwYxJJCgdyZWZyZXNoGA4gASgLMi8uY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5SZWZyZXNoUmVxdWVzdFIHcmVmcmVzaBJTCgtzdWJfcmVmcmVzaBgPIAEoCzIyLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuU3ViUmVmcmVzaFJlcXVlc3RSCnN1YlJlZnJlc2gisAEKCk1ldGhvZFR5cGUSCwoHQ09OTkVDVBAAEg0KCVNVQlNDUklCRRABEg8KC1VOU1VCU0NSSUJFEAISCwoHUFVCTElTSBADEgwKCFBSRVNFTkNFEAQSEgoOUFJFU0VOQ0VfU1RBVFMQBRILCgdISVNUT1JZEAYSCAoEUElORxAHEggKBFNFTkQQCBIHCgNSUEMQCRILCgdSRUZSRVNIEAoSDwoLU1VCX1JFRlJFU0gQCw=='); @$core.Deprecated('Use replyDescriptor instead') const Reply$json = const { '1': 'Reply', '2': const [ const {'1': 'id', '3': 1, '4': 1, '5': 13, '10': 'id'}, - const { - '1': 'error', - '3': 2, - '4': 1, - '5': 11, - '6': '.centrifugal.centrifuge.protocol.Error', - '10': 'error' - }, + const {'1': 'error', '3': 2, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.Error', '10': 'error'}, const {'1': 'result', '3': 3, '4': 1, '5': 12, '10': 'result'}, + const {'1': 'push', '3': 4, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.Push', '10': 'push'}, + const {'1': 'connect', '3': 5, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.ConnectResult', '10': 'connect'}, + const {'1': 'subscribe', '3': 6, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.SubscribeResult', '10': 'subscribe'}, + const {'1': 'unsubscribe', '3': 7, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.UnsubscribeResult', '10': 'unsubscribe'}, + const {'1': 'publish', '3': 8, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.PublishResult', '10': 'publish'}, + const {'1': 'presence', '3': 9, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.PresenceResult', '10': 'presence'}, + const {'1': 'presence_stats', '3': 10, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.PresenceStatsResult', '10': 'presenceStats'}, + const {'1': 'history', '3': 11, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.HistoryResult', '10': 'history'}, + const {'1': 'ping', '3': 12, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.PingResult', '10': 'ping'}, + const {'1': 'rpc', '3': 13, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.RPCResult', '10': 'rpc'}, + const {'1': 'refresh', '3': 14, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.RefreshResult', '10': 'refresh'}, + const {'1': 'sub_refresh', '3': 15, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.SubRefreshResult', '10': 'subRefresh'}, ], }; /// Descriptor for `Reply`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List replyDescriptor = $convert.base64Decode( - 'CgVSZXBseRIOCgJpZBgBIAEoDVICaWQSPAoFZXJyb3IYAiABKAsyJi5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkVycm9yUgVlcnJvchIWCgZyZXN1bHQYAyABKAxSBnJlc3VsdA=='); +final $typed_data.Uint8List replyDescriptor = $convert.base64Decode('CgVSZXBseRIOCgJpZBgBIAEoDVICaWQSPAoFZXJyb3IYAiABKAsyJi5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkVycm9yUgVlcnJvchIWCgZyZXN1bHQYAyABKAxSBnJlc3VsdBI5CgRwdXNoGAQgASgLMiUuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5QdXNoUgRwdXNoEkgKB2Nvbm5lY3QYBSABKAsyLi5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkNvbm5lY3RSZXN1bHRSB2Nvbm5lY3QSTgoJc3Vic2NyaWJlGAYgASgLMjAuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5TdWJzY3JpYmVSZXN1bHRSCXN1YnNjcmliZRJUCgt1bnN1YnNjcmliZRgHIAEoCzIyLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuVW5zdWJzY3JpYmVSZXN1bHRSC3Vuc3Vic2NyaWJlEkgKB3B1Ymxpc2gYCCABKAsyLi5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLlB1Ymxpc2hSZXN1bHRSB3B1Ymxpc2gSSwoIcHJlc2VuY2UYCSABKAsyLy5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLlByZXNlbmNlUmVzdWx0UghwcmVzZW5jZRJbCg5wcmVzZW5jZV9zdGF0cxgKIAEoCzI0LmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuUHJlc2VuY2VTdGF0c1Jlc3VsdFINcHJlc2VuY2VTdGF0cxJICgdoaXN0b3J5GAsgASgLMi4uY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5IaXN0b3J5UmVzdWx0UgdoaXN0b3J5Ej8KBHBpbmcYDCABKAsyKy5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLlBpbmdSZXN1bHRSBHBpbmcSPAoDcnBjGA0gASgLMiouY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5SUENSZXN1bHRSA3JwYxJICgdyZWZyZXNoGA4gASgLMi4uY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5SZWZyZXNoUmVzdWx0UgdyZWZyZXNoElIKC3N1Yl9yZWZyZXNoGA8gASgLMjEuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5TdWJSZWZyZXNoUmVzdWx0UgpzdWJSZWZyZXNo'); @$core.Deprecated('Use pushDescriptor instead') const Push$json = const { '1': 'Push', '2': const [ - const { - '1': 'type', - '3': 1, - '4': 1, - '5': 14, - '6': '.centrifugal.centrifuge.protocol.Push.PushType', - '10': 'type' - }, + const {'1': 'type', '3': 1, '4': 1, '5': 14, '6': '.centrifugal.centrifuge.protocol.Push.PushType', '10': 'type'}, const {'1': 'channel', '3': 2, '4': 1, '5': 9, '10': 'channel'}, const {'1': 'data', '3': 3, '4': 1, '5': 12, '10': 'data'}, + const {'1': 'pub', '3': 4, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.Publication', '10': 'pub'}, + const {'1': 'join', '3': 5, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.Join', '10': 'join'}, + const {'1': 'leave', '3': 6, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.Leave', '10': 'leave'}, + const {'1': 'unsubscribe', '3': 7, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.Unsubscribe', '10': 'unsubscribe'}, + const {'1': 'message', '3': 8, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.Message', '10': 'message'}, + const {'1': 'subscribe', '3': 9, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.Subscribe', '10': 'subscribe'}, + const {'1': 'connect', '3': 10, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.Connect', '10': 'connect'}, + const {'1': 'disconnect', '3': 11, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.Disconnect', '10': 'disconnect'}, + const {'1': 'refresh', '3': 12, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.Refresh', '10': 'refresh'}, ], '4': const [Push_PushType$json], }; @@ -116,8 +124,7 @@ const Push_PushType$json = const { }; /// Descriptor for `Push`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List pushDescriptor = $convert.base64Decode( - 'CgRQdXNoEkIKBHR5cGUYASABKA4yLi5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLlB1c2guUHVzaFR5cGVSBHR5cGUSGAoHY2hhbm5lbBgCIAEoCVIHY2hhbm5lbBISCgRkYXRhGAMgASgMUgRkYXRhIocBCghQdXNoVHlwZRIPCgtQVUJMSUNBVElPThAAEggKBEpPSU4QARIJCgVMRUFWRRACEg8KC1VOU1VCU0NSSUJFEAMSCwoHTUVTU0FHRRAEEg0KCVNVQlNDUklCRRAFEgsKB0NPTk5FQ1QQBhIOCgpESVNDT05ORUNUEAcSCwoHUkVGUkVTSBAI'); +final $typed_data.Uint8List pushDescriptor = $convert.base64Decode('CgRQdXNoEkIKBHR5cGUYASABKA4yLi5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLlB1c2guUHVzaFR5cGVSBHR5cGUSGAoHY2hhbm5lbBgCIAEoCVIHY2hhbm5lbBISCgRkYXRhGAMgASgMUgRkYXRhEj4KA3B1YhgEIAEoCzIsLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuUHVibGljYXRpb25SA3B1YhI5CgRqb2luGAUgASgLMiUuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5Kb2luUgRqb2luEjwKBWxlYXZlGAYgASgLMiYuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5MZWF2ZVIFbGVhdmUSTgoLdW5zdWJzY3JpYmUYByABKAsyLC5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLlVuc3Vic2NyaWJlUgt1bnN1YnNjcmliZRJCCgdtZXNzYWdlGAggASgLMiguY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5NZXNzYWdlUgdtZXNzYWdlEkgKCXN1YnNjcmliZRgJIAEoCzIqLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuU3Vic2NyaWJlUglzdWJzY3JpYmUSQgoHY29ubmVjdBgKIAEoCzIoLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuQ29ubmVjdFIHY29ubmVjdBJLCgpkaXNjb25uZWN0GAsgASgLMisuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5EaXNjb25uZWN0UgpkaXNjb25uZWN0EkIKB3JlZnJlc2gYDCABKAsyKC5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLlJlZnJlc2hSB3JlZnJlc2gihwEKCFB1c2hUeXBlEg8KC1BVQkxJQ0FUSU9OEAASCAoESk9JThABEgkKBUxFQVZFEAISDwoLVU5TVUJTQ1JJQkUQAxILCgdNRVNTQUdFEAQSDQoJU1VCU0NSSUJFEAUSCwoHQ09OTkVDVBAGEg4KCkRJU0NPTk5FQ1QQBxILCgdSRUZSRVNIEAg='); @$core.Deprecated('Use clientInfoDescriptor instead') const ClientInfo$json = const { '1': 'ClientInfo', @@ -130,72 +137,58 @@ const ClientInfo$json = const { }; /// Descriptor for `ClientInfo`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List clientInfoDescriptor = $convert.base64Decode( - 'CgpDbGllbnRJbmZvEhIKBHVzZXIYASABKAlSBHVzZXISFgoGY2xpZW50GAIgASgJUgZjbGllbnQSGwoJY29ubl9pbmZvGAMgASgMUghjb25uSW5mbxIbCgljaGFuX2luZm8YBCABKAxSCGNoYW5JbmZv'); +final $typed_data.Uint8List clientInfoDescriptor = $convert.base64Decode('CgpDbGllbnRJbmZvEhIKBHVzZXIYASABKAlSBHVzZXISFgoGY2xpZW50GAIgASgJUgZjbGllbnQSGwoJY29ubl9pbmZvGAMgASgMUghjb25uSW5mbxIbCgljaGFuX2luZm8YBCABKAxSCGNoYW5JbmZv'); @$core.Deprecated('Use publicationDescriptor instead') const Publication$json = const { '1': 'Publication', '2': const [ const {'1': 'data', '3': 4, '4': 1, '5': 12, '10': 'data'}, - const { - '1': 'info', - '3': 5, - '4': 1, - '5': 11, - '6': '.centrifugal.centrifuge.protocol.ClientInfo', - '10': 'info' - }, + const {'1': 'info', '3': 5, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.ClientInfo', '10': 'info'}, const {'1': 'offset', '3': 6, '4': 1, '5': 4, '10': 'offset'}, + const {'1': 'meta', '3': 7, '4': 3, '5': 11, '6': '.centrifugal.centrifuge.protocol.Publication.MetaEntry', '10': 'meta'}, + ], + '3': const [Publication_MetaEntry$json], +}; + +@$core.Deprecated('Use publicationDescriptor instead') +const Publication_MetaEntry$json = const { + '1': 'MetaEntry', + '2': const [ + const {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + const {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, ], + '7': const {'7': true}, }; /// Descriptor for `Publication`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List publicationDescriptor = $convert.base64Decode( - 'CgtQdWJsaWNhdGlvbhISCgRkYXRhGAQgASgMUgRkYXRhEj8KBGluZm8YBSABKAsyKy5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkNsaWVudEluZm9SBGluZm8SFgoGb2Zmc2V0GAYgASgEUgZvZmZzZXQ='); +final $typed_data.Uint8List publicationDescriptor = $convert.base64Decode('CgtQdWJsaWNhdGlvbhISCgRkYXRhGAQgASgMUgRkYXRhEj8KBGluZm8YBSABKAsyKy5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkNsaWVudEluZm9SBGluZm8SFgoGb2Zmc2V0GAYgASgEUgZvZmZzZXQSSgoEbWV0YRgHIAMoCzI2LmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuUHVibGljYXRpb24uTWV0YUVudHJ5UgRtZXRhGjcKCU1ldGFFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB'); @$core.Deprecated('Use joinDescriptor instead') const Join$json = const { '1': 'Join', '2': const [ - const { - '1': 'info', - '3': 1, - '4': 1, - '5': 11, - '6': '.centrifugal.centrifuge.protocol.ClientInfo', - '10': 'info' - }, + const {'1': 'info', '3': 1, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.ClientInfo', '10': 'info'}, ], }; /// Descriptor for `Join`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List joinDescriptor = $convert.base64Decode( - 'CgRKb2luEj8KBGluZm8YASABKAsyKy5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkNsaWVudEluZm9SBGluZm8='); +final $typed_data.Uint8List joinDescriptor = $convert.base64Decode('CgRKb2luEj8KBGluZm8YASABKAsyKy5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkNsaWVudEluZm9SBGluZm8='); @$core.Deprecated('Use leaveDescriptor instead') const Leave$json = const { '1': 'Leave', '2': const [ - const { - '1': 'info', - '3': 1, - '4': 1, - '5': 11, - '6': '.centrifugal.centrifuge.protocol.ClientInfo', - '10': 'info' - }, + const {'1': 'info', '3': 1, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.ClientInfo', '10': 'info'}, ], }; /// Descriptor for `Leave`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List leaveDescriptor = $convert.base64Decode( - 'CgVMZWF2ZRI/CgRpbmZvGAEgASgLMisuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5DbGllbnRJbmZvUgRpbmZv'); +final $typed_data.Uint8List leaveDescriptor = $convert.base64Decode('CgVMZWF2ZRI/CgRpbmZvGAEgASgLMisuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5DbGllbnRJbmZvUgRpbmZv'); @$core.Deprecated('Use unsubscribeDescriptor instead') const Unsubscribe$json = const { '1': 'Unsubscribe', }; /// Descriptor for `Unsubscribe`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List unsubscribeDescriptor = - $convert.base64Decode('CgtVbnN1YnNjcmliZQ=='); +final $typed_data.Uint8List unsubscribeDescriptor = $convert.base64Decode('CgtVbnN1YnNjcmliZQ=='); @$core.Deprecated('Use subscribeDescriptor instead') const Subscribe$json = const { '1': 'Subscribe', @@ -209,8 +202,7 @@ const Subscribe$json = const { }; /// Descriptor for `Subscribe`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List subscribeDescriptor = $convert.base64Decode( - 'CglTdWJzY3JpYmUSIAoLcmVjb3ZlcmFibGUYASABKAhSC3JlY292ZXJhYmxlEhQKBWVwb2NoGAQgASgJUgVlcG9jaBIWCgZvZmZzZXQYBSABKARSBm9mZnNldBIeCgpwb3NpdGlvbmVkGAYgASgIUgpwb3NpdGlvbmVkEhIKBGRhdGEYByABKAxSBGRhdGE='); +final $typed_data.Uint8List subscribeDescriptor = $convert.base64Decode('CglTdWJzY3JpYmUSIAoLcmVjb3ZlcmFibGUYASABKAhSC3JlY292ZXJhYmxlEhQKBWVwb2NoGAQgASgJUgVlcG9jaBIWCgZvZmZzZXQYBSABKARSBm9mZnNldBIeCgpwb3NpdGlvbmVkGAYgASgIUgpwb3NpdGlvbmVkEhIKBGRhdGEYByABKAxSBGRhdGE='); @$core.Deprecated('Use messageDescriptor instead') const Message$json = const { '1': 'Message', @@ -220,8 +212,7 @@ const Message$json = const { }; /// Descriptor for `Message`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List messageDescriptor = - $convert.base64Decode('CgdNZXNzYWdlEhIKBGRhdGEYASABKAxSBGRhdGE='); +final $typed_data.Uint8List messageDescriptor = $convert.base64Decode('CgdNZXNzYWdlEhIKBGRhdGEYASABKAxSBGRhdGE='); @$core.Deprecated('Use connectDescriptor instead') const Connect$json = const { '1': 'Connect', @@ -229,14 +220,7 @@ const Connect$json = const { const {'1': 'client', '3': 1, '4': 1, '5': 9, '10': 'client'}, const {'1': 'version', '3': 2, '4': 1, '5': 9, '10': 'version'}, const {'1': 'data', '3': 3, '4': 1, '5': 12, '10': 'data'}, - const { - '1': 'subs', - '3': 4, - '4': 3, - '5': 11, - '6': '.centrifugal.centrifuge.protocol.Connect.SubsEntry', - '10': 'subs' - }, + const {'1': 'subs', '3': 4, '4': 3, '5': 11, '6': '.centrifugal.centrifuge.protocol.Connect.SubsEntry', '10': 'subs'}, const {'1': 'expires', '3': 5, '4': 1, '5': 8, '10': 'expires'}, const {'1': 'ttl', '3': 6, '4': 1, '5': 13, '10': 'ttl'}, ], @@ -248,21 +232,13 @@ const Connect_SubsEntry$json = const { '1': 'SubsEntry', '2': const [ const {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, - const { - '1': 'value', - '3': 2, - '4': 1, - '5': 11, - '6': '.centrifugal.centrifuge.protocol.SubscribeResult', - '10': 'value' - }, + const {'1': 'value', '3': 2, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.SubscribeResult', '10': 'value'}, ], '7': const {'7': true}, }; /// Descriptor for `Connect`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List connectDescriptor = $convert.base64Decode( - 'CgdDb25uZWN0EhYKBmNsaWVudBgBIAEoCVIGY2xpZW50EhgKB3ZlcnNpb24YAiABKAlSB3ZlcnNpb24SEgoEZGF0YRgDIAEoDFIEZGF0YRJGCgRzdWJzGAQgAygLMjIuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5Db25uZWN0LlN1YnNFbnRyeVIEc3VicxIYCgdleHBpcmVzGAUgASgIUgdleHBpcmVzEhAKA3R0bBgGIAEoDVIDdHRsGmkKCVN1YnNFbnRyeRIQCgNrZXkYASABKAlSA2tleRJGCgV2YWx1ZRgCIAEoCzIwLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuU3Vic2NyaWJlUmVzdWx0UgV2YWx1ZToCOAE='); +final $typed_data.Uint8List connectDescriptor = $convert.base64Decode('CgdDb25uZWN0EhYKBmNsaWVudBgBIAEoCVIGY2xpZW50EhgKB3ZlcnNpb24YAiABKAlSB3ZlcnNpb24SEgoEZGF0YRgDIAEoDFIEZGF0YRJGCgRzdWJzGAQgAygLMjIuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5Db25uZWN0LlN1YnNFbnRyeVIEc3VicxIYCgdleHBpcmVzGAUgASgIUgdleHBpcmVzEhAKA3R0bBgGIAEoDVIDdHRsGmkKCVN1YnNFbnRyeRIQCgNrZXkYASABKAlSA2tleRJGCgV2YWx1ZRgCIAEoCzIwLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuU3Vic2NyaWJlUmVzdWx0UgV2YWx1ZToCOAE='); @$core.Deprecated('Use disconnectDescriptor instead') const Disconnect$json = const { '1': 'Disconnect', @@ -274,8 +250,7 @@ const Disconnect$json = const { }; /// Descriptor for `Disconnect`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List disconnectDescriptor = $convert.base64Decode( - 'CgpEaXNjb25uZWN0EhIKBGNvZGUYASABKA1SBGNvZGUSFgoGcmVhc29uGAIgASgJUgZyZWFzb24SHAoJcmVjb25uZWN0GAMgASgIUglyZWNvbm5lY3Q='); +final $typed_data.Uint8List disconnectDescriptor = $convert.base64Decode('CgpEaXNjb25uZWN0EhIKBGNvZGUYASABKA1SBGNvZGUSFgoGcmVhc29uGAIgASgJUgZyZWFzb24SHAoJcmVjb25uZWN0GAMgASgIUglyZWNvbm5lY3Q='); @$core.Deprecated('Use refreshDescriptor instead') const Refresh$json = const { '1': 'Refresh', @@ -286,22 +261,14 @@ const Refresh$json = const { }; /// Descriptor for `Refresh`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List refreshDescriptor = $convert.base64Decode( - 'CgdSZWZyZXNoEhgKB2V4cGlyZXMYASABKAhSB2V4cGlyZXMSEAoDdHRsGAIgASgNUgN0dGw='); +final $typed_data.Uint8List refreshDescriptor = $convert.base64Decode('CgdSZWZyZXNoEhgKB2V4cGlyZXMYASABKAhSB2V4cGlyZXMSEAoDdHRsGAIgASgNUgN0dGw='); @$core.Deprecated('Use connectRequestDescriptor instead') const ConnectRequest$json = const { '1': 'ConnectRequest', '2': const [ const {'1': 'token', '3': 1, '4': 1, '5': 9, '10': 'token'}, const {'1': 'data', '3': 2, '4': 1, '5': 12, '10': 'data'}, - const { - '1': 'subs', - '3': 3, - '4': 3, - '5': 11, - '6': '.centrifugal.centrifuge.protocol.ConnectRequest.SubsEntry', - '10': 'subs' - }, + const {'1': 'subs', '3': 3, '4': 3, '5': 11, '6': '.centrifugal.centrifuge.protocol.ConnectRequest.SubsEntry', '10': 'subs'}, const {'1': 'name', '3': 4, '4': 1, '5': 9, '10': 'name'}, const {'1': 'version', '3': 5, '4': 1, '5': 9, '10': 'version'}, ], @@ -313,21 +280,13 @@ const ConnectRequest_SubsEntry$json = const { '1': 'SubsEntry', '2': const [ const {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, - const { - '1': 'value', - '3': 2, - '4': 1, - '5': 11, - '6': '.centrifugal.centrifuge.protocol.SubscribeRequest', - '10': 'value' - }, + const {'1': 'value', '3': 2, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.SubscribeRequest', '10': 'value'}, ], '7': const {'7': true}, }; /// Descriptor for `ConnectRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List connectRequestDescriptor = $convert.base64Decode( - 'Cg5Db25uZWN0UmVxdWVzdBIUCgV0b2tlbhgBIAEoCVIFdG9rZW4SEgoEZGF0YRgCIAEoDFIEZGF0YRJNCgRzdWJzGAMgAygLMjkuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5Db25uZWN0UmVxdWVzdC5TdWJzRW50cnlSBHN1YnMSEgoEbmFtZRgEIAEoCVIEbmFtZRIYCgd2ZXJzaW9uGAUgASgJUgd2ZXJzaW9uGmoKCVN1YnNFbnRyeRIQCgNrZXkYASABKAlSA2tleRJHCgV2YWx1ZRgCIAEoCzIxLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuU3Vic2NyaWJlUmVxdWVzdFIFdmFsdWU6AjgB'); +final $typed_data.Uint8List connectRequestDescriptor = $convert.base64Decode('Cg5Db25uZWN0UmVxdWVzdBIUCgV0b2tlbhgBIAEoCVIFdG9rZW4SEgoEZGF0YRgCIAEoDFIEZGF0YRJNCgRzdWJzGAMgAygLMjkuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5Db25uZWN0UmVxdWVzdC5TdWJzRW50cnlSBHN1YnMSEgoEbmFtZRgEIAEoCVIEbmFtZRIYCgd2ZXJzaW9uGAUgASgJUgd2ZXJzaW9uGmoKCVN1YnNFbnRyeRIQCgNrZXkYASABKAlSA2tleRJHCgV2YWx1ZRgCIAEoCzIxLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuU3Vic2NyaWJlUmVxdWVzdFIFdmFsdWU6AjgB'); @$core.Deprecated('Use connectResultDescriptor instead') const ConnectResult$json = const { '1': 'ConnectResult', @@ -337,14 +296,7 @@ const ConnectResult$json = const { const {'1': 'expires', '3': 3, '4': 1, '5': 8, '10': 'expires'}, const {'1': 'ttl', '3': 4, '4': 1, '5': 13, '10': 'ttl'}, const {'1': 'data', '3': 5, '4': 1, '5': 12, '10': 'data'}, - const { - '1': 'subs', - '3': 6, - '4': 3, - '5': 11, - '6': '.centrifugal.centrifuge.protocol.ConnectResult.SubsEntry', - '10': 'subs' - }, + const {'1': 'subs', '3': 6, '4': 3, '5': 11, '6': '.centrifugal.centrifuge.protocol.ConnectResult.SubsEntry', '10': 'subs'}, ], '3': const [ConnectResult_SubsEntry$json], }; @@ -354,21 +306,13 @@ const ConnectResult_SubsEntry$json = const { '1': 'SubsEntry', '2': const [ const {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, - const { - '1': 'value', - '3': 2, - '4': 1, - '5': 11, - '6': '.centrifugal.centrifuge.protocol.SubscribeResult', - '10': 'value' - }, + const {'1': 'value', '3': 2, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.SubscribeResult', '10': 'value'}, ], '7': const {'7': true}, }; /// Descriptor for `ConnectResult`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List connectResultDescriptor = $convert.base64Decode( - 'Cg1Db25uZWN0UmVzdWx0EhYKBmNsaWVudBgBIAEoCVIGY2xpZW50EhgKB3ZlcnNpb24YAiABKAlSB3ZlcnNpb24SGAoHZXhwaXJlcxgDIAEoCFIHZXhwaXJlcxIQCgN0dGwYBCABKA1SA3R0bBISCgRkYXRhGAUgASgMUgRkYXRhEkwKBHN1YnMYBiADKAsyOC5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkNvbm5lY3RSZXN1bHQuU3Vic0VudHJ5UgRzdWJzGmkKCVN1YnNFbnRyeRIQCgNrZXkYASABKAlSA2tleRJGCgV2YWx1ZRgCIAEoCzIwLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuU3Vic2NyaWJlUmVzdWx0UgV2YWx1ZToCOAE='); +final $typed_data.Uint8List connectResultDescriptor = $convert.base64Decode('Cg1Db25uZWN0UmVzdWx0EhYKBmNsaWVudBgBIAEoCVIGY2xpZW50EhgKB3ZlcnNpb24YAiABKAlSB3ZlcnNpb24SGAoHZXhwaXJlcxgDIAEoCFIHZXhwaXJlcxIQCgN0dGwYBCABKA1SA3R0bBISCgRkYXRhGAUgASgMUgRkYXRhEkwKBHN1YnMYBiADKAsyOC5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkNvbm5lY3RSZXN1bHQuU3Vic0VudHJ5UgRzdWJzGmkKCVN1YnNFbnRyeRIQCgNrZXkYASABKAlSA2tleRJGCgV2YWx1ZRgCIAEoCzIwLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuU3Vic2NyaWJlUmVzdWx0UgV2YWx1ZToCOAE='); @$core.Deprecated('Use refreshRequestDescriptor instead') const RefreshRequest$json = const { '1': 'RefreshRequest', @@ -378,8 +322,7 @@ const RefreshRequest$json = const { }; /// Descriptor for `RefreshRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List refreshRequestDescriptor = $convert - .base64Decode('Cg5SZWZyZXNoUmVxdWVzdBIUCgV0b2tlbhgBIAEoCVIFdG9rZW4='); +final $typed_data.Uint8List refreshRequestDescriptor = $convert.base64Decode('Cg5SZWZyZXNoUmVxdWVzdBIUCgV0b2tlbhgBIAEoCVIFdG9rZW4='); @$core.Deprecated('Use refreshResultDescriptor instead') const RefreshResult$json = const { '1': 'RefreshResult', @@ -392,8 +335,7 @@ const RefreshResult$json = const { }; /// Descriptor for `RefreshResult`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List refreshResultDescriptor = $convert.base64Decode( - 'Cg1SZWZyZXNoUmVzdWx0EhYKBmNsaWVudBgBIAEoCVIGY2xpZW50EhgKB3ZlcnNpb24YAiABKAlSB3ZlcnNpb24SGAoHZXhwaXJlcxgDIAEoCFIHZXhwaXJlcxIQCgN0dGwYBCABKA1SA3R0bA=='); +final $typed_data.Uint8List refreshResultDescriptor = $convert.base64Decode('Cg1SZWZyZXNoUmVzdWx0EhYKBmNsaWVudBgBIAEoCVIGY2xpZW50EhgKB3ZlcnNpb24YAiABKAlSB3ZlcnNpb24SGAoHZXhwaXJlcxgDIAEoCFIHZXhwaXJlcxIQCgN0dGwYBCABKA1SA3R0bA=='); @$core.Deprecated('Use subscribeRequestDescriptor instead') const SubscribeRequest$json = const { '1': 'SubscribeRequest', @@ -403,12 +345,12 @@ const SubscribeRequest$json = const { const {'1': 'recover', '3': 3, '4': 1, '5': 8, '10': 'recover'}, const {'1': 'epoch', '3': 6, '4': 1, '5': 9, '10': 'epoch'}, const {'1': 'offset', '3': 7, '4': 1, '5': 4, '10': 'offset'}, + const {'1': 'data', '3': 8, '4': 1, '5': 12, '10': 'data'}, ], }; /// Descriptor for `SubscribeRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List subscribeRequestDescriptor = $convert.base64Decode( - 'ChBTdWJzY3JpYmVSZXF1ZXN0EhgKB2NoYW5uZWwYASABKAlSB2NoYW5uZWwSFAoFdG9rZW4YAiABKAlSBXRva2VuEhgKB3JlY292ZXIYAyABKAhSB3JlY292ZXISFAoFZXBvY2gYBiABKAlSBWVwb2NoEhYKBm9mZnNldBgHIAEoBFIGb2Zmc2V0'); +final $typed_data.Uint8List subscribeRequestDescriptor = $convert.base64Decode('ChBTdWJzY3JpYmVSZXF1ZXN0EhgKB2NoYW5uZWwYASABKAlSB2NoYW5uZWwSFAoFdG9rZW4YAiABKAlSBXRva2VuEhgKB3JlY292ZXIYAyABKAhSB3JlY292ZXISFAoFZXBvY2gYBiABKAlSBWVwb2NoEhYKBm9mZnNldBgHIAEoBFIGb2Zmc2V0EhIKBGRhdGEYCCABKAxSBGRhdGE='); @$core.Deprecated('Use subscribeResultDescriptor instead') const SubscribeResult$json = const { '1': 'SubscribeResult', @@ -417,14 +359,7 @@ const SubscribeResult$json = const { const {'1': 'ttl', '3': 2, '4': 1, '5': 13, '10': 'ttl'}, const {'1': 'recoverable', '3': 3, '4': 1, '5': 8, '10': 'recoverable'}, const {'1': 'epoch', '3': 6, '4': 1, '5': 9, '10': 'epoch'}, - const { - '1': 'publications', - '3': 7, - '4': 3, - '5': 11, - '6': '.centrifugal.centrifuge.protocol.Publication', - '10': 'publications' - }, + const {'1': 'publications', '3': 7, '4': 3, '5': 11, '6': '.centrifugal.centrifuge.protocol.Publication', '10': 'publications'}, const {'1': 'recovered', '3': 8, '4': 1, '5': 8, '10': 'recovered'}, const {'1': 'offset', '3': 9, '4': 1, '5': 4, '10': 'offset'}, const {'1': 'positioned', '3': 10, '4': 1, '5': 8, '10': 'positioned'}, @@ -433,8 +368,7 @@ const SubscribeResult$json = const { }; /// Descriptor for `SubscribeResult`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List subscribeResultDescriptor = $convert.base64Decode( - 'Cg9TdWJzY3JpYmVSZXN1bHQSGAoHZXhwaXJlcxgBIAEoCFIHZXhwaXJlcxIQCgN0dGwYAiABKA1SA3R0bBIgCgtyZWNvdmVyYWJsZRgDIAEoCFILcmVjb3ZlcmFibGUSFAoFZXBvY2gYBiABKAlSBWVwb2NoElAKDHB1YmxpY2F0aW9ucxgHIAMoCzIsLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuUHVibGljYXRpb25SDHB1YmxpY2F0aW9ucxIcCglyZWNvdmVyZWQYCCABKAhSCXJlY292ZXJlZBIWCgZvZmZzZXQYCSABKARSBm9mZnNldBIeCgpwb3NpdGlvbmVkGAogASgIUgpwb3NpdGlvbmVkEhIKBGRhdGEYCyABKAxSBGRhdGE='); +final $typed_data.Uint8List subscribeResultDescriptor = $convert.base64Decode('Cg9TdWJzY3JpYmVSZXN1bHQSGAoHZXhwaXJlcxgBIAEoCFIHZXhwaXJlcxIQCgN0dGwYAiABKA1SA3R0bBIgCgtyZWNvdmVyYWJsZRgDIAEoCFILcmVjb3ZlcmFibGUSFAoFZXBvY2gYBiABKAlSBWVwb2NoElAKDHB1YmxpY2F0aW9ucxgHIAMoCzIsLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuUHVibGljYXRpb25SDHB1YmxpY2F0aW9ucxIcCglyZWNvdmVyZWQYCCABKAhSCXJlY292ZXJlZBIWCgZvZmZzZXQYCSABKARSBm9mZnNldBIeCgpwb3NpdGlvbmVkGAogASgIUgpwb3NpdGlvbmVkEhIKBGRhdGEYCyABKAxSBGRhdGE='); @$core.Deprecated('Use subRefreshRequestDescriptor instead') const SubRefreshRequest$json = const { '1': 'SubRefreshRequest', @@ -445,8 +379,7 @@ const SubRefreshRequest$json = const { }; /// Descriptor for `SubRefreshRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List subRefreshRequestDescriptor = $convert.base64Decode( - 'ChFTdWJSZWZyZXNoUmVxdWVzdBIYCgdjaGFubmVsGAEgASgJUgdjaGFubmVsEhQKBXRva2VuGAIgASgJUgV0b2tlbg=='); +final $typed_data.Uint8List subRefreshRequestDescriptor = $convert.base64Decode('ChFTdWJSZWZyZXNoUmVxdWVzdBIYCgdjaGFubmVsGAEgASgJUgdjaGFubmVsEhQKBXRva2VuGAIgASgJUgV0b2tlbg=='); @$core.Deprecated('Use subRefreshResultDescriptor instead') const SubRefreshResult$json = const { '1': 'SubRefreshResult', @@ -457,8 +390,7 @@ const SubRefreshResult$json = const { }; /// Descriptor for `SubRefreshResult`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List subRefreshResultDescriptor = $convert.base64Decode( - 'ChBTdWJSZWZyZXNoUmVzdWx0EhgKB2V4cGlyZXMYASABKAhSB2V4cGlyZXMSEAoDdHRsGAIgASgNUgN0dGw='); +final $typed_data.Uint8List subRefreshResultDescriptor = $convert.base64Decode('ChBTdWJSZWZyZXNoUmVzdWx0EhgKB2V4cGlyZXMYASABKAhSB2V4cGlyZXMSEAoDdHRsGAIgASgNUgN0dGw='); @$core.Deprecated('Use unsubscribeRequestDescriptor instead') const UnsubscribeRequest$json = const { '1': 'UnsubscribeRequest', @@ -468,17 +400,14 @@ const UnsubscribeRequest$json = const { }; /// Descriptor for `UnsubscribeRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List unsubscribeRequestDescriptor = - $convert.base64Decode( - 'ChJVbnN1YnNjcmliZVJlcXVlc3QSGAoHY2hhbm5lbBgBIAEoCVIHY2hhbm5lbA=='); +final $typed_data.Uint8List unsubscribeRequestDescriptor = $convert.base64Decode('ChJVbnN1YnNjcmliZVJlcXVlc3QSGAoHY2hhbm5lbBgBIAEoCVIHY2hhbm5lbA=='); @$core.Deprecated('Use unsubscribeResultDescriptor instead') const UnsubscribeResult$json = const { '1': 'UnsubscribeResult', }; /// Descriptor for `UnsubscribeResult`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List unsubscribeResultDescriptor = - $convert.base64Decode('ChFVbnN1YnNjcmliZVJlc3VsdA=='); +final $typed_data.Uint8List unsubscribeResultDescriptor = $convert.base64Decode('ChFVbnN1YnNjcmliZVJlc3VsdA=='); @$core.Deprecated('Use publishRequestDescriptor instead') const PublishRequest$json = const { '1': 'PublishRequest', @@ -489,16 +418,14 @@ const PublishRequest$json = const { }; /// Descriptor for `PublishRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List publishRequestDescriptor = $convert.base64Decode( - 'Cg5QdWJsaXNoUmVxdWVzdBIYCgdjaGFubmVsGAEgASgJUgdjaGFubmVsEhIKBGRhdGEYAiABKAxSBGRhdGE='); +final $typed_data.Uint8List publishRequestDescriptor = $convert.base64Decode('Cg5QdWJsaXNoUmVxdWVzdBIYCgdjaGFubmVsGAEgASgJUgdjaGFubmVsEhIKBGRhdGEYAiABKAxSBGRhdGE='); @$core.Deprecated('Use publishResultDescriptor instead') const PublishResult$json = const { '1': 'PublishResult', }; /// Descriptor for `PublishResult`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List publishResultDescriptor = - $convert.base64Decode('Cg1QdWJsaXNoUmVzdWx0'); +final $typed_data.Uint8List publishResultDescriptor = $convert.base64Decode('Cg1QdWJsaXNoUmVzdWx0'); @$core.Deprecated('Use presenceRequestDescriptor instead') const PresenceRequest$json = const { '1': 'PresenceRequest', @@ -508,20 +435,12 @@ const PresenceRequest$json = const { }; /// Descriptor for `PresenceRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List presenceRequestDescriptor = $convert.base64Decode( - 'Cg9QcmVzZW5jZVJlcXVlc3QSGAoHY2hhbm5lbBgBIAEoCVIHY2hhbm5lbA=='); +final $typed_data.Uint8List presenceRequestDescriptor = $convert.base64Decode('Cg9QcmVzZW5jZVJlcXVlc3QSGAoHY2hhbm5lbBgBIAEoCVIHY2hhbm5lbA=='); @$core.Deprecated('Use presenceResultDescriptor instead') const PresenceResult$json = const { '1': 'PresenceResult', '2': const [ - const { - '1': 'presence', - '3': 1, - '4': 3, - '5': 11, - '6': '.centrifugal.centrifuge.protocol.PresenceResult.PresenceEntry', - '10': 'presence' - }, + const {'1': 'presence', '3': 1, '4': 3, '5': 11, '6': '.centrifugal.centrifuge.protocol.PresenceResult.PresenceEntry', '10': 'presence'}, ], '3': const [PresenceResult_PresenceEntry$json], }; @@ -531,21 +450,13 @@ const PresenceResult_PresenceEntry$json = const { '1': 'PresenceEntry', '2': const [ const {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, - const { - '1': 'value', - '3': 2, - '4': 1, - '5': 11, - '6': '.centrifugal.centrifuge.protocol.ClientInfo', - '10': 'value' - }, + const {'1': 'value', '3': 2, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.ClientInfo', '10': 'value'}, ], '7': const {'7': true}, }; /// Descriptor for `PresenceResult`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List presenceResultDescriptor = $convert.base64Decode( - 'Cg5QcmVzZW5jZVJlc3VsdBJZCghwcmVzZW5jZRgBIAMoCzI9LmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuUHJlc2VuY2VSZXN1bHQuUHJlc2VuY2VFbnRyeVIIcHJlc2VuY2UaaAoNUHJlc2VuY2VFbnRyeRIQCgNrZXkYASABKAlSA2tleRJBCgV2YWx1ZRgCIAEoCzIrLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuQ2xpZW50SW5mb1IFdmFsdWU6AjgB'); +final $typed_data.Uint8List presenceResultDescriptor = $convert.base64Decode('Cg5QcmVzZW5jZVJlc3VsdBJZCghwcmVzZW5jZRgBIAMoCzI9LmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuUHJlc2VuY2VSZXN1bHQuUHJlc2VuY2VFbnRyeVIIcHJlc2VuY2UaaAoNUHJlc2VuY2VFbnRyeRIQCgNrZXkYASABKAlSA2tleRJBCgV2YWx1ZRgCIAEoCzIrLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuQ2xpZW50SW5mb1IFdmFsdWU6AjgB'); @$core.Deprecated('Use presenceStatsRequestDescriptor instead') const PresenceStatsRequest$json = const { '1': 'PresenceStatsRequest', @@ -555,9 +466,7 @@ const PresenceStatsRequest$json = const { }; /// Descriptor for `PresenceStatsRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List presenceStatsRequestDescriptor = - $convert.base64Decode( - 'ChRQcmVzZW5jZVN0YXRzUmVxdWVzdBIYCgdjaGFubmVsGAEgASgJUgdjaGFubmVs'); +final $typed_data.Uint8List presenceStatsRequestDescriptor = $convert.base64Decode('ChRQcmVzZW5jZVN0YXRzUmVxdWVzdBIYCgdjaGFubmVsGAEgASgJUgdjaGFubmVs'); @$core.Deprecated('Use presenceStatsResultDescriptor instead') const PresenceStatsResult$json = const { '1': 'PresenceStatsResult', @@ -568,8 +477,7 @@ const PresenceStatsResult$json = const { }; /// Descriptor for `PresenceStatsResult`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List presenceStatsResultDescriptor = $convert.base64Decode( - 'ChNQcmVzZW5jZVN0YXRzUmVzdWx0Eh8KC251bV9jbGllbnRzGAEgASgNUgpudW1DbGllbnRzEhsKCW51bV91c2VycxgCIAEoDVIIbnVtVXNlcnM='); +final $typed_data.Uint8List presenceStatsResultDescriptor = $convert.base64Decode('ChNQcmVzZW5jZVN0YXRzUmVzdWx0Eh8KC251bV9jbGllbnRzGAEgASgNUgpudW1DbGllbnRzEhsKCW51bV91c2VycxgCIAEoDVIIbnVtVXNlcnM='); @$core.Deprecated('Use streamPositionDescriptor instead') const StreamPosition$json = const { '1': 'StreamPosition', @@ -580,65 +488,46 @@ const StreamPosition$json = const { }; /// Descriptor for `StreamPosition`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List streamPositionDescriptor = $convert.base64Decode( - 'Cg5TdHJlYW1Qb3NpdGlvbhIWCgZvZmZzZXQYASABKARSBm9mZnNldBIUCgVlcG9jaBgCIAEoCVIFZXBvY2g='); +final $typed_data.Uint8List streamPositionDescriptor = $convert.base64Decode('Cg5TdHJlYW1Qb3NpdGlvbhIWCgZvZmZzZXQYASABKARSBm9mZnNldBIUCgVlcG9jaBgCIAEoCVIFZXBvY2g='); @$core.Deprecated('Use historyRequestDescriptor instead') const HistoryRequest$json = const { '1': 'HistoryRequest', '2': const [ const {'1': 'channel', '3': 1, '4': 1, '5': 9, '10': 'channel'}, const {'1': 'limit', '3': 7, '4': 1, '5': 5, '10': 'limit'}, - const { - '1': 'since', - '3': 8, - '4': 1, - '5': 11, - '6': '.centrifugal.centrifuge.protocol.StreamPosition', - '10': 'since' - }, + const {'1': 'since', '3': 8, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.StreamPosition', '10': 'since'}, const {'1': 'reverse', '3': 9, '4': 1, '5': 8, '10': 'reverse'}, ], }; /// Descriptor for `HistoryRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List historyRequestDescriptor = $convert.base64Decode( - 'Cg5IaXN0b3J5UmVxdWVzdBIYCgdjaGFubmVsGAEgASgJUgdjaGFubmVsEhQKBWxpbWl0GAcgASgFUgVsaW1pdBJFCgVzaW5jZRgIIAEoCzIvLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuU3RyZWFtUG9zaXRpb25SBXNpbmNlEhgKB3JldmVyc2UYCSABKAhSB3JldmVyc2U='); +final $typed_data.Uint8List historyRequestDescriptor = $convert.base64Decode('Cg5IaXN0b3J5UmVxdWVzdBIYCgdjaGFubmVsGAEgASgJUgdjaGFubmVsEhQKBWxpbWl0GAcgASgFUgVsaW1pdBJFCgVzaW5jZRgIIAEoCzIvLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuU3RyZWFtUG9zaXRpb25SBXNpbmNlEhgKB3JldmVyc2UYCSABKAhSB3JldmVyc2U='); @$core.Deprecated('Use historyResultDescriptor instead') const HistoryResult$json = const { '1': 'HistoryResult', '2': const [ - const { - '1': 'publications', - '3': 1, - '4': 3, - '5': 11, - '6': '.centrifugal.centrifuge.protocol.Publication', - '10': 'publications' - }, + const {'1': 'publications', '3': 1, '4': 3, '5': 11, '6': '.centrifugal.centrifuge.protocol.Publication', '10': 'publications'}, const {'1': 'epoch', '3': 2, '4': 1, '5': 9, '10': 'epoch'}, const {'1': 'offset', '3': 3, '4': 1, '5': 4, '10': 'offset'}, ], }; /// Descriptor for `HistoryResult`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List historyResultDescriptor = $convert.base64Decode( - 'Cg1IaXN0b3J5UmVzdWx0ElAKDHB1YmxpY2F0aW9ucxgBIAMoCzIsLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuUHVibGljYXRpb25SDHB1YmxpY2F0aW9ucxIUCgVlcG9jaBgCIAEoCVIFZXBvY2gSFgoGb2Zmc2V0GAMgASgEUgZvZmZzZXQ='); +final $typed_data.Uint8List historyResultDescriptor = $convert.base64Decode('Cg1IaXN0b3J5UmVzdWx0ElAKDHB1YmxpY2F0aW9ucxgBIAMoCzIsLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuUHVibGljYXRpb25SDHB1YmxpY2F0aW9ucxIUCgVlcG9jaBgCIAEoCVIFZXBvY2gSFgoGb2Zmc2V0GAMgASgEUgZvZmZzZXQ='); @$core.Deprecated('Use pingRequestDescriptor instead') const PingRequest$json = const { '1': 'PingRequest', }; /// Descriptor for `PingRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List pingRequestDescriptor = - $convert.base64Decode('CgtQaW5nUmVxdWVzdA=='); +final $typed_data.Uint8List pingRequestDescriptor = $convert.base64Decode('CgtQaW5nUmVxdWVzdA=='); @$core.Deprecated('Use pingResultDescriptor instead') const PingResult$json = const { '1': 'PingResult', }; /// Descriptor for `PingResult`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List pingResultDescriptor = - $convert.base64Decode('CgpQaW5nUmVzdWx0'); +final $typed_data.Uint8List pingResultDescriptor = $convert.base64Decode('CgpQaW5nUmVzdWx0'); @$core.Deprecated('Use rPCRequestDescriptor instead') const RPCRequest$json = const { '1': 'RPCRequest', @@ -649,8 +538,7 @@ const RPCRequest$json = const { }; /// Descriptor for `RPCRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List rPCRequestDescriptor = $convert.base64Decode( - 'CgpSUENSZXF1ZXN0EhIKBGRhdGEYASABKAxSBGRhdGESFgoGbWV0aG9kGAIgASgJUgZtZXRob2Q='); +final $typed_data.Uint8List rPCRequestDescriptor = $convert.base64Decode('CgpSUENSZXF1ZXN0EhIKBGRhdGEYASABKAxSBGRhdGESFgoGbWV0aG9kGAIgASgJUgZtZXRob2Q='); @$core.Deprecated('Use rPCResultDescriptor instead') const RPCResult$json = const { '1': 'RPCResult', @@ -660,8 +548,7 @@ const RPCResult$json = const { }; /// Descriptor for `RPCResult`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List rPCResultDescriptor = - $convert.base64Decode('CglSUENSZXN1bHQSEgoEZGF0YRgBIAEoDFIEZGF0YQ=='); +final $typed_data.Uint8List rPCResultDescriptor = $convert.base64Decode('CglSUENSZXN1bHQSEgoEZGF0YRgBIAEoDFIEZGF0YQ=='); @$core.Deprecated('Use sendRequestDescriptor instead') const SendRequest$json = const { '1': 'SendRequest', @@ -671,5 +558,4 @@ const SendRequest$json = const { }; /// Descriptor for `SendRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List sendRequestDescriptor = - $convert.base64Decode('CgtTZW5kUmVxdWVzdBISCgRkYXRhGAEgASgMUgRkYXRh'); +final $typed_data.Uint8List sendRequestDescriptor = $convert.base64Decode('CgtTZW5kUmVxdWVzdBISCgRkYXRhGAEgASgMUgRkYXRh'); diff --git a/lib/src/proto/client.pbserver.dart b/lib/src/proto/client.pbserver.dart index 5f1f031..764c544 100644 --- a/lib/src/proto/client.pbserver.dart +++ b/lib/src/proto/client.pbserver.dart @@ -6,3 +6,4 @@ // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package export 'client.pb.dart'; + diff --git a/lib/src/proto/client.proto b/lib/src/proto/client.proto index 5a9fc05..0f10cad 100644 --- a/lib/src/proto/client.proto +++ b/lib/src/proto/client.proto @@ -9,8 +9,13 @@ message Error { string message = 2; } +// Command sent from a client to a server. +// ProtocolVersion1 uses id, method and params fields. +// ProtocolVersion2 uses id and one of the possible request messages. message Command { + // Id of command to let client match replies to commands. uint32 id = 1; + enum MethodType { CONNECT = 0; SUBSCRIBE = 1; @@ -25,16 +30,63 @@ message Command { REFRESH = 10; SUB_REFRESH = 11; } + // Method is used in ProtocolVersion1 only. MethodType method = 2; + + // Params is used in ProtocolVersion1 only. bytes params = 3; -} + // ProtocolVersion2 client can send one of the following requests. Server will + // only take the first non-null request out of these and may return an error if + // client passed more than one request. We are not using oneof here due to JSON + // interoperability concerns. + ConnectRequest connect = 4; + SubscribeRequest subscribe = 5; + UnsubscribeRequest unsubscribe = 6; + PublishRequest publish = 7; + PresenceRequest presence = 8; + PresenceStatsRequest presence_stats = 9; + HistoryRequest history = 10; + PingRequest ping = 11; + SendRequest send = 12; + RPCRequest rpc = 13; + RefreshRequest refresh = 14; + SubRefreshRequest sub_refresh = 15; +} + +// Reply sent from a server to a client. +// ProtocolVersion1 uses id, error and result fields. +// ProtocolVersion2 uses id and one of the possible concrete result messages. message Reply { + // Id will only be set to a value > 0 for replies to commands. For pushes + // it will have zero value. uint32 id = 1; + // Error can only be set in replies to commands. For pushes it will have zero value. Error error = 2; + + // Result is used in ProtocolVersion1 only. bytes result = 3; -} + // ProtocolVersion2 server can send one of the following fields. We are not using + // oneof here due to JSON interoperability concerns. + Push push = 4; + ConnectResult connect = 5; + SubscribeResult subscribe = 6; + UnsubscribeResult unsubscribe = 7; + PublishResult publish = 8; + PresenceResult presence = 9; + PresenceStatsResult presence_stats = 10; + HistoryResult history = 11; + PingResult ping = 12; + RPCResult rpc = 13; + RefreshResult refresh = 14; + SubRefreshResult sub_refresh = 15; +} + +// Push can be sent to a client as part of Reply in case of bidirectional transport or +// without additional wrapping in case of unidirectional transports. +// ProtocolVersion1 uses type, channel and data fields. +// ProtocolVersion2 uses channel and one of the possible concrete push messages. message Push { enum PushType { PUBLICATION = 0; @@ -47,9 +99,24 @@ message Push { DISCONNECT = 7; REFRESH = 8; } + // Type is used in ProtocolVersion1 only. PushType type = 1; string channel = 2; + + // Data is used in ProtocolVersion1 only. bytes data = 3; + + // ProtocolVersion2 server can push one of the following fields to the client. We are + // not using oneof here due to JSON interoperability concerns. + Publication pub = 4; + Join join = 5; + Leave leave = 6; + Unsubscribe unsubscribe = 7; + Message message = 8; + Subscribe subscribe = 9; + Connect connect = 10; + Disconnect disconnect = 11; + Refresh refresh = 12; } message ClientInfo { @@ -64,6 +131,7 @@ message Publication { bytes data = 4; ClientInfo info = 5; uint64 offset = 6; + map meta = 7; } message Join { @@ -146,6 +214,7 @@ message SubscribeRequest { // 4-5 skipped here for backwards compatibility. string epoch = 6; uint64 offset = 7; + bytes data = 8; } message SubscribeResult { @@ -235,4 +304,4 @@ message RPCResult { message SendRequest{ bytes data = 1; -} +} \ No newline at end of file From a889e23b1885c5ad18b2ab4fc4a57fed5f4b3812 Mon Sep 17 00:00:00 2001 From: Alexander Emelin Date: Sun, 23 Jan 2022 22:26:11 +0300 Subject: [PATCH 2/5] support v2 protocol types --- lib/src/client.dart | 195 +++++++++++++++++++++++++++-------------- lib/src/transport.dart | 127 +++++++++++++++++++++++---- 2 files changed, 241 insertions(+), 81 deletions(-) diff --git a/lib/src/client.dart b/lib/src/client.dart index 73f23c3..79cf90b 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -179,8 +179,10 @@ class ClientImpl implements Client { ..channel = channel ..data = data; - final result = - await _transport.sendMessage(request, protocol.PublishResult()); + final result = await _transport.sendMessage( + request, + protocol.PublishResult(), + ); return PublishResult.from(result); } @@ -205,24 +207,30 @@ class ClientImpl implements Client { sp.epoch = since.epoch; request.since = sp; } - final result = - await _transport.sendMessage(request, protocol.HistoryResult()); + final result = await _transport.sendMessage( + request, + protocol.HistoryResult(), + ); return HistoryResult.from(result); } @override Future presence(String channel) async { final request = protocol.PresenceRequest()..channel = channel; - final result = - await _transport.sendMessage(request, protocol.PresenceResult()); + final result = await _transport.sendMessage( + request, + protocol.PresenceResult(), + ); return PresenceResult.from(result); } @override Future presenceStats(String channel) async { final request = protocol.PresenceStatsRequest()..channel = channel; - final result = - await _transport.sendMessage(request, protocol.PresenceStatsResult()); + final result = await _transport.sendMessage( + request, + protocol.PresenceStatsResult(), + ); return PresenceStatsResult.from(result); } @@ -309,6 +317,7 @@ class ClientImpl implements Client { _transport = _transportBuilder( url: _url, config: TransportConfig( + protocolVersion: _config.protocolVersion, headers: _config.headers, pingInterval: _config.pingInterval, timeout: _config.timeout)); @@ -389,83 +398,131 @@ class ClientImpl implements Client { } } - void _onPush(protocol.Push push) { + void _handlePub(String channel, protocol.Publication pub) { + final subscription = _subscriptions[channel]; + if (subscription != null) { + final event = PublishEvent.from(pub); + subscription.addPublish(event); + return; + } + final serverSubscription = _serverSubs[channel]; + if (serverSubscription != null) { + final event = ServerPublishEvent.from(channel, pub); + _publishController.add(event); + if (_serverSubs[channel]!.recoverable && pub.offset > 0) { + _serverSubs[channel]!.offset = pub.offset; + } + } + } + + void _handleJoin(String channel, protocol.Join join) { + final subscription = _subscriptions[channel]; + if (subscription != null) { + final event = JoinEvent.from(join.info); + subscription.addJoin(event); + return; + } + final serverSubscription = _serverSubs[channel]; + if (serverSubscription != null) { + final event = ServerJoinEvent.from(channel, join.info); + _joinController.add(event); + } + } + + void _handleLeave(String channel, protocol.Leave leave) { + final subscription = _subscriptions[channel]; + if (subscription != null) { + final event = LeaveEvent.from(leave.info); + subscription.addLeave(event); + return; + } + final serverSubscription = _serverSubs[channel]; + if (serverSubscription != null) { + final event = ServerLeaveEvent.from(channel, leave.info); + _leaveController.add(event); + } + } + + void _handleMessage(protocol.Message message) { + final event = MessageEvent(message.data); + _messageController.add(event); + } + + void _handleSubscribe(String channel, protocol.Subscribe subscribe) { + final event = + ServerSubscribeEvent.fromSubscribePush(channel, subscribe, false); + _serverSubs[channel] = ServerSubscription.from( + channel, subscribe.recoverable, subscribe.offset, subscribe.epoch); + _subscribeController.add(event); + } + + void _handleUnsubscribe(String channel) { + final subscription = _subscriptions[channel]; + if (subscription != null) { + final event = UnsubscribeEvent(); + subscription.addUnsubscribe(event); + return; + } + final serverSubscription = _serverSubs[channel]; + if (serverSubscription != null) { + final event = ServerUnsubscribeEvent.from(channel); + _serverSubs.remove(channel); + _unsubscribeController.add(event); + } + } + + void _handlePushV1(protocol.Push push) { switch (push.type) { case protocol.Push_PushType.PUBLICATION: final pub = protocol.Publication.fromBuffer(push.data); - final subscription = _subscriptions[push.channel]; - if (subscription != null) { - final event = PublishEvent.from(pub); - subscription.addPublish(event); - break; - } - final serverSubscription = _serverSubs[push.channel]; - if (serverSubscription != null) { - final event = ServerPublishEvent.from(push.channel, pub); - _publishController.add(event); - if (_serverSubs[push.channel]!.recoverable && pub.offset > 0) { - _serverSubs[push.channel]!.offset = pub.offset; - } - } + _handlePub(push.channel, pub); break; case protocol.Push_PushType.LEAVE: final leave = protocol.Leave.fromBuffer(push.data); - final subscription = _subscriptions[push.channel]; - if (subscription != null) { - final event = LeaveEvent.from(leave.info); - subscription.addLeave(event); - break; - } - final serverSubscription = _serverSubs[push.channel]; - if (serverSubscription != null) { - final event = ServerLeaveEvent.from(push.channel, leave.info); - _leaveController.add(event); - } + _handleLeave(push.channel, leave); break; case protocol.Push_PushType.JOIN: final join = protocol.Join.fromBuffer(push.data); - final subscription = _subscriptions[push.channel]; - if (subscription != null) { - final event = JoinEvent.from(join.info); - subscription.addJoin(event); - break; - } - final serverSubscription = _serverSubs[push.channel]; - if (serverSubscription != null) { - final event = ServerJoinEvent.from(push.channel, join.info); - _joinController.add(event); - } + _handleJoin(push.channel, join); break; case protocol.Push_PushType.MESSAGE: final message = protocol.Message.fromBuffer(push.data); - final event = MessageEvent(message.data); - _messageController.add(event); + _handleMessage(message); break; case protocol.Push_PushType.SUBSCRIBE: final subscribe = protocol.Subscribe.fromBuffer(push.data); - final event = ServerSubscribeEvent.fromSubscribePush( - push.channel, subscribe, false); - _serverSubs[push.channel] = ServerSubscription.from(push.channel, - subscribe.recoverable, subscribe.offset, subscribe.epoch); - _subscribeController.add(event); + _handleSubscribe(push.channel, subscribe); break; case protocol.Push_PushType.UNSUBSCRIBE: - final subscription = _subscriptions[push.channel]; - if (subscription != null) { - final event = UnsubscribeEvent(); - subscription.addUnsubscribe(event); - break; - } - final serverSubscription = _serverSubs[push.channel]; - if (serverSubscription != null) { - final event = ServerUnsubscribeEvent.from(push.channel); - _serverSubs.remove(push.channel); - _unsubscribeController.add(event); - } + _handleUnsubscribe(push.channel); break; } } + void _handlePushV2(protocol.Push push) { + if (push.hasPub()) { + _handlePub(push.channel, push.pub); + } else if (push.hasJoin()) { + _handleJoin(push.channel, push.join); + } else if (push.hasLeave()) { + _handleLeave(push.channel, push.leave); + } else if (push.hasSubscribe()) { + _handleSubscribe(push.channel, push.subscribe); + } else if (push.hasUnsubscribe()) { + _handleUnsubscribe(push.channel); + } else if (push.hasMessage()) { + _handleMessage(push.message); + } + } + + void _onPush(protocol.Push push) { + if (_config.protocolVersion == ClientProtocolVersion.v1) { + _handlePushV1(push); + } else { + _handlePushV2(push); + } + } + Future getToken(String channel) async { if (_clientID != null && _isPrivateChannel(channel)) { final event = PrivateSubEvent(_clientID!, channel); @@ -483,7 +540,10 @@ class ClientImpl implements Client { @internal Future sendUnsubscribe(String channel) async { final request = protocol.UnsubscribeRequest()..channel = channel; - return await _transport.sendMessage(request, protocol.UnsubscribeResult()); + return await _transport.sendMessage( + request, + protocol.UnsubscribeResult(), + ); } @internal @@ -492,7 +552,10 @@ class ClientImpl implements Client { final request = protocol.SubscribeRequest() ..channel = channel ..token = token ?? ''; - return await _transport.sendMessage(request, protocol.SubscribeResult()); + return await _transport.sendMessage( + request, + protocol.SubscribeResult(), + ); } @internal diff --git a/lib/src/transport.dart b/lib/src/transport.dart index 62f437a..a41d883 100644 --- a/lib/src/transport.dart +++ b/lib/src/transport.dart @@ -2,6 +2,7 @@ import 'dart:async'; import 'dart:convert'; import 'dart:io'; +import 'package:centrifuge/centrifuge.dart'; import 'package:protobuf/protobuf.dart'; import 'codec.dart'; @@ -18,12 +19,14 @@ typedef WebSocketBuilder = Future Function(); class TransportConfig { TransportConfig( {this.pingInterval = const Duration(seconds: 25), + this.protocolVersion = ClientProtocolVersion.v1, this.headers = const {}, this.timeout = const Duration(seconds: 10)}); final Duration pingInterval; final Map headers; final Duration timeout; + final ClientProtocolVersion protocolVersion; } Transport protobufTransportBuilder( @@ -84,16 +87,61 @@ class Transport implements GeneratedMessageSender { @override Future sendMessage( - Req request, Rep result) async { - final command = _createCommand(request, false); + Req request, + Rep result, + ) async { + final command = _createCommand( + request, + false, + ); try { var fut = _sendCommand(command); if (_config.timeout.inMicroseconds > 0) { fut = fut.timeout(_config.timeout); } final reply = await fut; - final filledResult = _processResult(result, reply); - return filledResult; + if (_config.protocolVersion == ClientProtocolVersion.v1) { + final filledResult = _processResult(result, reply); + return filledResult; + } + if (reply.hasError()) { + throw centrifuge.Error.custom(reply.error.code, reply.error.message); + } + if (reply.hasConnect()) { + result.mergeFromMessage(reply.connect); + return result; + } else if (reply.hasSubscribe()) { + result.mergeFromMessage(reply.subscribe); + return result; + } else if (reply.hasPublish()) { + result.mergeFromMessage(reply.publish); + return result; + } else if (reply.hasPing()) { + result.mergeFromMessage(reply.publish); + return result; + } else if (reply.hasUnsubscribe()) { + result.mergeFromMessage(reply.unsubscribe); + return result; + } else if (reply.hasPresence()) { + result.mergeFromMessage(reply.presence); + return result; + } else if (reply.hasPresenceStats()) { + result.mergeFromMessage(reply.presenceStats); + return result; + } else if (reply.hasHistory()) { + result.mergeFromMessage(reply.history); + return result; + } else if (reply.hasRpc()) { + result.mergeFromMessage(reply.rpc); + return result; + } else if (reply.hasRefresh()) { + result.mergeFromMessage(reply.refresh); + return result; + } else if (reply.hasSubRefresh()) { + result.mergeFromMessage(reply.subRefresh); + return result; + } + throw ArgumentError("unknown reply type " + reply.toString()); } on TimeoutException { if (command.id > 0) { _completers.remove(command.id); @@ -104,11 +152,15 @@ class Transport implements GeneratedMessageSender { @override Future sendAsyncMessage( - Req request) async { + Req request, + ) async { if (_socket == null) { throw centrifuge.ClientDisconnectedError; } - final command = _createCommand(request, true); + final command = _createCommand( + request, + true, + ); final List data = _commandEncoder.convert(command); _socket!.add(data); } @@ -117,10 +169,44 @@ class Transport implements GeneratedMessageSender { return _socket?.close(); } - Command _createCommand(GeneratedMessage request, bool isAsync) { - final cmd = Command() - ..method = _getType(request) - ..params = request.writeToBuffer(); + Command _createCommand( + GeneratedMessage request, + bool isAsync, + ) { + final cmd = Command(); + if (_config.protocolVersion == ClientProtocolVersion.v1) { + cmd + ..method = _getType(request) + ..params = request.writeToBuffer(); + } else { + if (request is ConnectRequest) { + cmd..connect = request; + } else if (request is PublishRequest) { + cmd..publish = request; + } else if (request is PingRequest) { + cmd..ping = request; + } else if (request is SubscribeRequest) { + cmd..subscribe = request; + } else if (request is UnsubscribeRequest) { + cmd..unsubscribe = request; + } else if (request is HistoryRequest) { + cmd..history = request; + } else if (request is PresenceRequest) { + cmd..presence = request; + } else if (request is PresenceStatsRequest) { + cmd..presenceStats = request; + } else if (request is RPCRequest) { + cmd..rpc = request; + } else if (request is RefreshRequest) { + cmd..refresh = request; + } else if (request is SubRefreshRequest) { + cmd..subRefresh = request; + } else if (request is SendRequest) { + cmd..send = request; + } else { + throw ArgumentError('unknown request type'); + } + } if (!isAsync) { cmd.id = _messageId++; } @@ -157,10 +243,12 @@ class Transport implements GeneratedMessageSender { return Command_MethodType.CONNECT; case PublishRequest: return Command_MethodType.PUBLISH; - case UnsubscribeRequest: - return Command_MethodType.UNSUBSCRIBE; + case PingRequest: + return Command_MethodType.PING; case SubscribeRequest: return Command_MethodType.SUBSCRIBE; + case UnsubscribeRequest: + return Command_MethodType.UNSUBSCRIBE; case HistoryRequest: return Command_MethodType.HISTORY; case PresenceRequest: @@ -169,6 +257,12 @@ class Transport implements GeneratedMessageSender { return Command_MethodType.PRESENCE_STATS; case RPCRequest: return Command_MethodType.RPC; + case RefreshRequest: + return Command_MethodType.REFRESH; + case SubRefreshRequest: + return Command_MethodType.SUB_REFRESH; + case SendRequest: + return Command_MethodType.SEND; default: throw ArgumentError('unknown request type'); } @@ -200,9 +294,12 @@ class Transport implements GeneratedMessageSender { if (reply.id > 0) { _completers.remove(reply.id)?.complete(reply); } else { - final push = Push.fromBuffer(reply.result); - - onPush(push); + if (_config.protocolVersion == ClientProtocolVersion.v1) { + final push = Push.fromBuffer(reply.result); + onPush(push); + } else { + onPush(reply.push); + } } }); }; From 8589c2b5ca58841f7725da3b9846eb8615b8c43c Mon Sep 17 00:00:00 2001 From: Alexander Emelin Date: Sun, 23 Jan 2022 22:45:26 +0300 Subject: [PATCH 3/5] support protocol v2 disconnect semantics --- lib/src/client.dart | 23 ++++++++++++++--------- lib/src/events.dart | 5 +++-- lib/src/subscription.dart | 6 ++++-- lib/src/transport.dart | 35 ++++++++++++++++++++++++----------- test/client_test.dart | 6 +++--- test/src/utils.dart | 4 ++-- test/transport_test.dart | 18 +++++++++--------- 7 files changed, 59 insertions(+), 38 deletions(-) diff --git a/lib/src/client.dart b/lib/src/client.dart index 79cf90b..9098f7a 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -242,7 +242,7 @@ class ClientImpl implements Client { @override Future disconnect() async { - _processDisconnect(reason: 'client disconnect', reconnect: false); + _processDisconnect(code: 0, reason: 'client disconnect', reconnect: false); _new = true; await _transport.close(); } @@ -275,7 +275,9 @@ class ClientImpl implements Client { int _retryCount = 0; void _processDisconnect( - {required String reason, required bool reconnect}) async { + {required int code, + required String reason, + required bool reconnect}) async { if (_state == _ClientState.disconnected) { return; } @@ -288,7 +290,7 @@ class ClientImpl implements Client { final event = ServerUnsubscribeEvent.from(key); _unsubscribeController.add(event); }); - final disconnect = DisconnectEvent(reason, reconnect); + final disconnect = DisconnectEvent(code, reason, reconnect); _disconnectController.add(disconnect); _new = false; } @@ -328,13 +330,14 @@ class ClientImpl implements Client { if (_state != _ClientState.connected) { return; } - _processDisconnect(reason: "connection closed", reconnect: true); - }, onDone: (reason, reconnect) { + _processDisconnect( + code: 4, reason: "connection closed", reconnect: true); + }, onDone: (code, reason, reconnect) { if (_state != _ClientState.connected && !(_state == _ClientState.connecting && _new)) { return; } - _processDisconnect(reason: reason, reconnect: reconnect); + _processDisconnect(code: code, reason: reason, reconnect: reconnect); }); final request = protocol.ConnectRequest(); @@ -393,7 +396,7 @@ class ClientImpl implements Client { } catch (ex) { final event = ErrorEvent(ex); _errorController.add(event); - _processDisconnect(reason: "connect error", reconnect: true); + _processDisconnect(code: 6, reason: "connect error", reconnect: true); await _transport.close(); } } @@ -560,8 +563,10 @@ class ClientImpl implements Client { @internal void processDisconnect( - {required String reason, required bool reconnect}) async { - return _processDisconnect(reason: reason, reconnect: reconnect); + {required int code, + required String reason, + required bool reconnect}) async { + return _processDisconnect(code: code, reason: reason, reconnect: reconnect); } @internal diff --git a/lib/src/events.dart b/lib/src/events.dart index 534046b..c4f3af7 100644 --- a/lib/src/events.dart +++ b/lib/src/events.dart @@ -43,14 +43,15 @@ class ErrorEvent { } class DisconnectEvent { - DisconnectEvent(this.reason, this.shouldReconnect); + DisconnectEvent(this.code, this.reason, this.shouldReconnect); + final int code; final String reason; final bool shouldReconnect; @override String toString() { - return 'DisconnectEvent{reason: $reason, shouldReconnect: $shouldReconnect}'; + return 'DisconnectEvent{code: $code, reason: $reason, shouldReconnect: $shouldReconnect}'; } } diff --git a/lib/src/subscription.dart b/lib/src/subscription.dart index ad4dd75..ae8f0fa 100644 --- a/lib/src/subscription.dart +++ b/lib/src/subscription.dart @@ -155,14 +155,16 @@ class SubscriptionImpl implements Subscription { _onSubscribeSuccess(event); _recover(result); } on TimeoutException { - _client.processDisconnect(reason: 'subscribe timeout', reconnect: true); + _client.processDisconnect( + code: 10, reason: 'subscribe timeout', reconnect: true); _client.closeTransport(); return; } catch (exception) { _state = _SubscriptionState.error; if (exception is errors.Error) { if (exception.code == 100) { - _client.processDisconnect(reason: 'subscribe error', reconnect: true); + _client.processDisconnect( + code: 8, reason: 'subscribe error', reconnect: true); _client.closeTransport(); return; } diff --git a/lib/src/transport.dart b/lib/src/transport.dart index a41d883..aa971a8 100644 --- a/lib/src/transport.dart +++ b/lib/src/transport.dart @@ -67,7 +67,7 @@ class Transport implements GeneratedMessageSender { Future open(void onPush(Push push), {Function? onError, - void onDone(String reason, bool shouldReconnect)?}) async { + void onDone(int code, String reason, bool shouldReconnect)?}) async { _socket = await _socketBuilder(); if (_config.pingInterval != Duration.zero) { _socket!.pingInterval = _config.pingInterval; @@ -268,22 +268,35 @@ class Transport implements GeneratedMessageSender { } } - Function _onDone(void Function(String, bool)? onDone) { + Function _onDone(void Function(int, String, bool)? onDone) { return () { - String reason = "connection closed"; - bool reconnect = true; _completers.forEach((key, value) { _completers[key]?.completeError(centrifuge.ClientDisconnectedError); }); _completers = >{}; - if (_socket!.closeReason != null) { - try { - final Map info = jsonDecode(_socket!.closeReason!); - reason = info['reason']; - reconnect = info['reconnect'] ?? true; - } catch (_) {} + if (_config.protocolVersion == ClientProtocolVersion.v1) { + String reason = "connection closed"; + bool reconnect = true; + if (_socket!.closeReason != null) { + try { + final Map info = jsonDecode(_socket!.closeReason!); + reason = info['reason']; + reconnect = info['reconnect'] ?? true; + } catch (_) {} + } + onDone!(0, reason, reconnect); + } else { + int code = 4; + String reason = "connection closed"; + bool reconnect = true; + if (_socket != null && _socket!.closeCode! > 0) { + code = _socket!.closeCode!; + reason = _socket!.closeReason!; + reconnect = + code < 3500 || code >= 5000 || (code >= 4000 && code < 4500); + } + onDone!(code, reason, reconnect); } - onDone!(reason, reconnect); }; } diff --git a/test/client_test.dart b/test/client_test.dart index 526b18a..8aecc16 100644 --- a/test/client_test.dart +++ b/test/client_test.dart @@ -140,7 +140,7 @@ void main() { test('socket closing triggers the corresponding events', () async { final disconnectFuture = client.disconnectStream.first; - transport.onDone!('test reason', true); + transport.onDone!(0, 'test reason', true); final disconnect = await disconnectFuture; @@ -167,7 +167,7 @@ void main() { }; for (var i = 1; i < 20; i++) { - transport.onDone!('test reason', false); + transport.onDone!(0, 'test reason', false); expect(retryCalled, isFalse); } }); @@ -203,7 +203,7 @@ void main() { retry = (_) => fail('retry shouldn\'t be called'); client.disconnect(); - transport.onDone!("", true); + transport.onDone!(0, "", true); expect(transport.sendList, hasLength(expectedMessages)); }); diff --git a/test/src/utils.dart b/test/src/utils.dart index d0cda1f..c133fac 100644 --- a/test/src/utils.dart +++ b/test/src/utils.dart @@ -111,7 +111,7 @@ class MockTransport implements Transport { void Function(Push push)? onPush; void Function(dynamic)? onError; - void Function(String, bool)? onDone; + void Function(int, String, bool)? onDone; Completer? _openCompleter; @@ -131,7 +131,7 @@ class MockTransport implements Transport { @override Future open(void Function(Push push) onPush, - {Function? onError, void Function(String, bool)? onDone}) { + {Function? onError, void Function(int, String, bool)? onDone}) { assert(_openCompleter == null); _openCompleter = Completer.sync(); diff --git a/test/transport_test.dart b/test/transport_test.dart index d4fbff1..2e2cbdd 100644 --- a/test/transport_test.dart +++ b/test/transport_test.dart @@ -17,8 +17,9 @@ void main() { Function(Push) onPush = (_) => fail('unexpected invocation'); final Function(dynamic) onError = (dynamic error) => fail('unexpected invocation'); - Function(String?, bool) onDone = - (String? reason, bool reconnect) => fail('unexpected invocation'); + Function(int, String?, bool) onDone = + (int code, String? reason, bool reconnect) => + fail('unexpected invocation'); setUp(() { webSocket = MockWebSocket(); @@ -35,7 +36,7 @@ void main() { await transport.open( (p) => onPush(p), onError: (dynamic e) => onError(e), - onDone: (reason, reconnect) => onDone(reason, reconnect), + onDone: (code, reason, reconnect) => onDone(code, reason, reconnect), ); expect(webSocket.onData, isNotNull); @@ -47,7 +48,7 @@ void main() { setUp(() => transport.open( (p) => onPush(p), onError: (dynamic e) => onError(e), - onDone: (reason, reconnect) => onDone(reason, reconnect), + onDone: (code, reason, reconnect) => onDone(code, reason, reconnect), )); test('Transport.send() returns result', () async { @@ -104,13 +105,12 @@ void main() { String? reason; bool? reconnect; - onDone = (r, rc) { + onDone = (_, r, rc) { reason = r; reconnect = rc; }; webSocket.close(3001, '{"reason":"test reason", "reconnect":true}'); - expect(reason, equals('test reason')); expect(reconnect, isTrue); }); @@ -119,7 +119,7 @@ void main() { String? reason; bool? reconnect; - onDone = (r, rc) { + onDone = (_, r, rc) { reason = r; reconnect = rc; }; @@ -135,7 +135,7 @@ void main() { String? reason; bool? reconnect; - onDone = (r, rc) { + onDone = (_, r, rc) { reason = r; reconnect = rc; }; @@ -150,7 +150,7 @@ void main() { String? reason; bool? reconnect; - onDone = (r, rc) { + onDone = (_, r, rc) { reason = r; reconnect = rc; }; From dd479a331426262c79334036c0e3565a7fc0b784 Mon Sep 17 00:00:00 2001 From: Alexander Emelin Date: Sun, 23 Jan 2022 22:47:19 +0300 Subject: [PATCH 4/5] hide ws transport codes --- lib/src/transport.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/src/transport.dart b/lib/src/transport.dart index aa971a8..5ae280a 100644 --- a/lib/src/transport.dart +++ b/lib/src/transport.dart @@ -294,6 +294,12 @@ class Transport implements GeneratedMessageSender { reason = _socket!.closeReason!; reconnect = code < 3500 || code >= 5000 || (code >= 4000 && code < 4500); + if (code < 3000) { + // We expose codes defined by Centrifuge protocol, hiding + // details about transport-specific error codes. We may have extra + // optional transportCode field in the future. + code = 4; + } } onDone!(code, reason, reconnect); } From 18e33dd368f73db9a95d4773f3e1675e0c85a3b1 Mon Sep 17 00:00:00 2001 From: Alexander Emelin Date: Tue, 25 Jan 2022 11:00:30 +0300 Subject: [PATCH 5/5] update to latest protocol --- lib/src/proto/client.pb.dart | 10 +++++----- lib/src/proto/client.pbjson.dart | 10 +++++----- lib/src/proto/client.proto | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/src/proto/client.pb.dart b/lib/src/proto/client.pb.dart index 94f917f..5d9518e 100644 --- a/lib/src/proto/client.pb.dart +++ b/lib/src/proto/client.pb.dart @@ -924,7 +924,7 @@ class Publication extends $pb.GeneratedMessage { ..a<$core.List<$core.int>>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'data', $pb.PbFieldType.OY) ..aOM(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'info', subBuilder: ClientInfo.create) ..a<$fixnum.Int64>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'offset', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..m<$core.String, $core.String>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'meta', entryClassName: 'Publication.MetaEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('centrifugal.centrifuge.protocol')) + ..m<$core.String, $core.String>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'tags', entryClassName: 'Publication.TagsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('centrifugal.centrifuge.protocol')) ..hasRequiredFields = false ; @@ -933,7 +933,7 @@ class Publication extends $pb.GeneratedMessage { $core.List<$core.int>? data, ClientInfo? info, $fixnum.Int64? offset, - $core.Map<$core.String, $core.String>? meta, + $core.Map<$core.String, $core.String>? tags, }) { final _result = create(); if (data != null) { @@ -945,8 +945,8 @@ class Publication extends $pb.GeneratedMessage { if (offset != null) { _result.offset = offset; } - if (meta != null) { - _result.meta.addAll(meta); + if (tags != null) { + _result.tags.addAll(tags); } return _result; } @@ -1001,7 +1001,7 @@ class Publication extends $pb.GeneratedMessage { void clearOffset() => clearField(6); @$pb.TagNumber(7) - $core.Map<$core.String, $core.String> get meta => $_getMap(3); + $core.Map<$core.String, $core.String> get tags => $_getMap(3); } class Join extends $pb.GeneratedMessage { diff --git a/lib/src/proto/client.pbjson.dart b/lib/src/proto/client.pbjson.dart index b92d755..08a24e7 100644 --- a/lib/src/proto/client.pbjson.dart +++ b/lib/src/proto/client.pbjson.dart @@ -145,14 +145,14 @@ const Publication$json = const { const {'1': 'data', '3': 4, '4': 1, '5': 12, '10': 'data'}, const {'1': 'info', '3': 5, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.ClientInfo', '10': 'info'}, const {'1': 'offset', '3': 6, '4': 1, '5': 4, '10': 'offset'}, - const {'1': 'meta', '3': 7, '4': 3, '5': 11, '6': '.centrifugal.centrifuge.protocol.Publication.MetaEntry', '10': 'meta'}, + const {'1': 'tags', '3': 7, '4': 3, '5': 11, '6': '.centrifugal.centrifuge.protocol.Publication.TagsEntry', '10': 'tags'}, ], - '3': const [Publication_MetaEntry$json], + '3': const [Publication_TagsEntry$json], }; @$core.Deprecated('Use publicationDescriptor instead') -const Publication_MetaEntry$json = const { - '1': 'MetaEntry', +const Publication_TagsEntry$json = const { + '1': 'TagsEntry', '2': const [ const {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, const {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, @@ -161,7 +161,7 @@ const Publication_MetaEntry$json = const { }; /// Descriptor for `Publication`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List publicationDescriptor = $convert.base64Decode('CgtQdWJsaWNhdGlvbhISCgRkYXRhGAQgASgMUgRkYXRhEj8KBGluZm8YBSABKAsyKy5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkNsaWVudEluZm9SBGluZm8SFgoGb2Zmc2V0GAYgASgEUgZvZmZzZXQSSgoEbWV0YRgHIAMoCzI2LmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuUHVibGljYXRpb24uTWV0YUVudHJ5UgRtZXRhGjcKCU1ldGFFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB'); +final $typed_data.Uint8List publicationDescriptor = $convert.base64Decode('CgtQdWJsaWNhdGlvbhISCgRkYXRhGAQgASgMUgRkYXRhEj8KBGluZm8YBSABKAsyKy5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkNsaWVudEluZm9SBGluZm8SFgoGb2Zmc2V0GAYgASgEUgZvZmZzZXQSSgoEdGFncxgHIAMoCzI2LmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuUHVibGljYXRpb24uVGFnc0VudHJ5UgR0YWdzGjcKCVRhZ3NFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB'); @$core.Deprecated('Use joinDescriptor instead') const Join$json = const { '1': 'Join', diff --git a/lib/src/proto/client.proto b/lib/src/proto/client.proto index 0f10cad..2a77b2c 100644 --- a/lib/src/proto/client.proto +++ b/lib/src/proto/client.proto @@ -131,7 +131,7 @@ message Publication { bytes data = 4; ClientInfo info = 5; uint64 offset = 6; - map meta = 7; + map tags = 7; } message Join {