diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2a4a4b5..5389a96 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,11 +6,10 @@ jobs: build: # Prevent duplicate builds on internal PRs. if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository - environment: test_ci runs-on: ubuntu-latest strategy: matrix: - sdk: [2.19, stable, beta] + sdk: [3.4, stable, beta] # note, not testing on 3.3 due to build_runner CI dependency problem. steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..a62a26c --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,12 @@ +name: Publish to pub.dev + +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+*' + +jobs: + publish: + permissions: + id-token: write # Required for authentication using OIDC + uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 diff --git a/README.md b/README.md index ec9c907..d01be8e 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ Websocket client for [Centrifugo](https://github.com/centrifugal/centrifugo) server and [Centrifuge](https://github.com/centrifugal/centrifuge) library. -There is no v1 release of this library yet – API still evolves. At the moment patch version updates only contain backwards compatible changes, minor version updates can have backwards incompatible API changes. +Since there is no v1 release yet, patch version updates only contain backwards compatible changes, minor version updates can have backwards incompatible API changes. Check out [client SDK API specification](https://centrifugal.dev/docs/transports/client_api) to learn how this SDK behaves. It's recommended to read that before starting to work with this SDK as the spec covers common SDK behavior - describes client and subscription state transitions, main options and methods. Also check out examples folder. The features implemented by this SDK can be found in [SDK feature matrix](https://centrifugal.dev/docs/transports/client_sdk#sdk-feature-matrix). -Note that custom WebSocket connection Upgrade headers can only be set on platforms that support `dart:io`. So notably custom headers set in the configuration of `Client` are ignored on the web platform. +Note that custom WebSocket connection Upgrade headers are sent natively on platforms that support `dart:io` and in web context headers are sent using Centrifugo v6 [Headers Emulation](https://centrifugal.dev/blog/2025/01/16/centrifugo-v6-released#headers-emulation) feature. > **The latest `centrifuge-dart` is compatible with [Centrifugo](https://github.com/centrifugal/centrifugo) server v6, v5 and v4 and [Centrifuge](https://github.com/centrifugal/centrifuge) >= 0.25.0. For Centrifugo v2, Centrifugo v3 and Centrifuge < 0.25.0 you should use `centrifuge-dart` v0.8.0.** @@ -20,6 +20,10 @@ Note that custom WebSocket connection Upgrade headers can only be set on platfor When a mobile application goes to the background there are OS-specific limitations for established persistent connections - which can be silently closed shortly. Thus in most cases you need to disconnect from a server when app moves to the background and connect again when app goes to the foreground. +## Alternative SDK + +See also [PlugFox/spinify](https://github.com/PlugFox/spinify) for an alternative Dart (Flutter) real-time client SDK implementation. + ## Instructions for maintainers/contributors ### How to update protobuf definitions @@ -31,9 +35,8 @@ When a mobile application goes to the background there are OS-specific limitatio ### How to release -1) Update changelog -2) Bump version in `pubspec.yaml`, push, create new tag -3) `dart pub publish` +1) Bump version in `pubspec.yaml`, push, create new tag +2) [ONLY IF THERE ARE ISSUES WITH CI PUBLISH] `dart pub publish` ## Author diff --git a/analysis_options.yaml b/analysis_options.yaml index b2777fc..96ac04c 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -38,8 +38,6 @@ linter: - empty_statements - hash_and_equals # - invariant_booleans # https://github.com/flutter/flutter/issues/5790 - - iterable_contains_unrelated_type - - list_remove_unrelated_type # - literal_only_boolean_expressions # https://github.com/flutter/flutter/issues/5791 - no_adjacent_strings_in_list - no_duplicate_case_values @@ -51,7 +49,6 @@ linter: # === style rules === - always_declare_return_types # - always_put_control_body_on_new_line - - always_require_non_null_named_parameters # - always_specify_types - annotate_overrides # - avoid_annotating_with_dynamic # not yet tested diff --git a/example/chat_app/lib/client/client.dart b/example/chat_app/lib/client/client.dart index 7b23c30..f1fa5ac 100644 --- a/example/chat_app/lib/client/client.dart +++ b/example/chat_app/lib/client/client.dart @@ -31,8 +31,8 @@ class ChatClient { url, ClientConfig( token: conf.userJwtToken, - headers: { - 'user-id': chatUserId, + headers: { + 'user-id': chatUserId.toString(), 'user-name': chatUserName, }, ), diff --git a/example/chat_app/pubspec.yaml b/example/chat_app/pubspec.yaml index 063d6e5..5f616e7 100644 --- a/example/chat_app/pubspec.yaml +++ b/example/chat_app/pubspec.yaml @@ -8,7 +8,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev version: 0.1.0 environment: - sdk: ">=2.19.0 <4.0.0" + sdk: ">=3.3.0 <4.0.0" dependencies: centrifuge: diff --git a/example/console/example.dart b/example/console/example.dart index 13d1b6e..adb34a7 100644 --- a/example/console/example.dart +++ b/example/console/example.dart @@ -8,12 +8,18 @@ void main() async { final channel = 'chat:index'; // generate user JWT token for user "dart": // ./centrifugo gentoken --user dart + // For this example we generated token using HMAC secret key "secret". Don't forget + // that it's just an example, and tokens must NEVER be generated on client side and + // HMAC secret must NEVER be revealed to client side. final userJwtToken = - 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJkYXJ0IiwiZXhwIjoyMjc5NDQzNjgwLCJpYXQiOjE2NzQ2NDM2ODB9.XgsPZzAD4kMj7HdybJfpMGuDaRmuLvhUUxCGHs3mtXA'; + 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJkYXJ0IiwiaWF0IjoxNzM3ODAwOTcxfQ.m30QzH9nxqMSJw3g5gL5Tjqnu-veQSn4RcH47ZozqQI'; // generate subscription JWT token for user "dart" and channel "chat:index": // ./centrifugo gensubtoken --user dart --channel chat:index + // For this example we generated subscription token using HMAC secret key "secret". Don't forget + // that it's just an example, and tokens must NEVER be generated on client side and + // HMAC secret must NEVER be revealed to client side. final subscriptionJwtToken = - 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJkYXJ0IiwiZXhwIjoyMjc5NDQ0MDE4LCJpYXQiOjE2NzQ2NDQwMTgsImNoYW5uZWwiOiJjaGF0OmluZGV4In0.FjpnF6ofq3XCr1iqnwTZcpxCx6btuzCnn29DAIJbsBo'; + 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJkYXJ0IiwiaWF0IjoxNzM3ODAxMDIwLCJjaGFubmVsIjoiY2hhdDppbmRleCJ9.fe3WguZKkGiTyacpUW-WJW-1yzpZTHAFO6FWo7gbbTs'; final onEvent = (dynamic event) { print('client> $event'); @@ -24,8 +30,10 @@ void main() async { url, centrifuge.ClientConfig( token: userJwtToken, - // Headers are only supported on platforms that support dart:io - headers: {'X-Example-Header': 'example'}, + // If you want to use Headers in web environment – make sure your headers use + // string values, centrifuge-dart will then automatically attach them to connect + // frame (using Headers Emulation feature). + headers: {'X-Example-Header': 'example'}, )); // State changes. diff --git a/example/flutter_app/analysis_options.yaml b/example/flutter_app/analysis_options.yaml index aab839c..aac985a 100644 --- a/example/flutter_app/analysis_options.yaml +++ b/example/flutter_app/analysis_options.yaml @@ -39,8 +39,6 @@ linter: - empty_statements - hash_and_equals # - invariant_booleans # https://github.com/flutter/flutter/issues/5790 - - iterable_contains_unrelated_type - - list_remove_unrelated_type # - literal_only_boolean_expressions # https://github.com/flutter/flutter/issues/5791 - no_adjacent_strings_in_list - no_duplicate_case_values @@ -52,7 +50,6 @@ linter: # === style rules === - always_declare_return_types # - always_put_control_body_on_new_line - - always_require_non_null_named_parameters # - always_specify_types - annotate_overrides # - avoid_annotating_with_dynamic # not yet tested diff --git a/example/flutter_app/ios/Flutter/flutter_export_environment.sh b/example/flutter_app/ios/Flutter/flutter_export_environment.sh index e3a8af2..080cf5d 100755 --- a/example/flutter_app/ios/Flutter/flutter_export_environment.sh +++ b/example/flutter_app/ios/Flutter/flutter_export_environment.sh @@ -1,6 +1,6 @@ #!/bin/sh # This is a generated file; do not edit or check into version control. -export "FLUTTER_ROOT=/usr/local/Caskroom/flutter/3.10.6/flutter" +export "FLUTTER_ROOT=/usr/local/Caskroom/flutter/3.24.4/flutter" export "FLUTTER_APPLICATION_PATH=/Users/fz/projects/centrifugal/centrifuge-dart/example/flutter_app" export "COCOAPODS_PARALLEL_CODE_SIGN=true" export "FLUTTER_TARGET=lib/main.dart" diff --git a/example/flutter_app/pubspec.yaml b/example/flutter_app/pubspec.yaml index 0e5bd59..88a2877 100644 --- a/example/flutter_app/pubspec.yaml +++ b/example/flutter_app/pubspec.yaml @@ -2,7 +2,7 @@ name: centrifuge_app description: A new Flutter project. environment: - sdk: '>=2.19.0 <4.0.0' + sdk: '>=3.3.0 <4.0.0' dependencies: flutter: diff --git a/example/web_app/pubspec.yaml b/example/web_app/pubspec.yaml index 113e28c..2a14b99 100644 --- a/example/web_app/pubspec.yaml +++ b/example/web_app/pubspec.yaml @@ -10,6 +10,7 @@ environment: dependencies: centrifuge: path: ../../ + web: ^1.1.0 publish_to: none diff --git a/example/web_app/web/main.dart b/example/web_app/web/main.dart index 9f4c41e..6cfe4ad 100644 --- a/example/web_app/web/main.dart +++ b/example/web_app/web/main.dart @@ -1,18 +1,20 @@ -import 'dart:html'; +import 'package:web/web.dart' as web; import 'package:centrifuge/centrifuge.dart'; void main() { - querySelector('#output')?.text = 'Your Dart app is running.'; + web.document.querySelector('#output')?.text = 'Your Dart app is running.'; void onEvent(dynamic event) { - querySelector('#output')?.text = 'client> $event'; + web.document.querySelector('#output')?.text = 'client> $event'; } const url = 'ws://localhost:8000/connection/websocket'; Client client = createClient( url, - ClientConfig(), + ClientConfig( + headers: {'Authorization': 'example'}, + ), ); // State changes. diff --git a/lib/src/client.dart b/lib/src/client.dart index 26ffaa5..b345c49 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -7,6 +7,7 @@ import 'package:centrifuge/src/server_subscription.dart'; import 'package:centrifuge/src/transport.dart'; import 'package:meta/meta.dart'; +import 'platform/vm.dart' if (dart.library.js_interop) 'platform/js.dart'; import 'proto/client.pb.dart' as protocol; import 'subscription.dart'; @@ -50,6 +51,10 @@ abstract class Client { /// void setToken(String token); + /// Set allows updating connection headers. + /// + void setHeaders(Map headers); + /// Ready resolves when client successfully connected. /// Throws exceptions if called not in connecting or connected state. Future ready(); @@ -101,6 +106,7 @@ class ClientImpl implements Client { ClientImpl(this._url, this._config, this._transportBuilder) { _token = _config.token; _data = _config.data; + _headers = Map.of(_config.headers); } final TransportBuilder _transportBuilder; @@ -113,6 +119,7 @@ class ClientImpl implements Client { ClientConfig _config; ClientConfig get config => _config; + Map _headers = {}; String _token = ''; List? _data; String? _client; @@ -197,6 +204,11 @@ class ClientImpl implements Client { _token = token; } + @override + void setHeaders(Map headers) { + _headers = Map.of(headers); + } + @override Future disconnect() async { _reconnectAttempts = 0; @@ -422,8 +434,8 @@ class ClientImpl implements Client { return; } - final transport = _transportBuilder( - url: _url, config: TransportConfig(headers: _config.headers, timeout: _config.timeout)); + final transport = + _transportBuilder(url: _url, config: TransportConfig(headers: _headers, timeout: _config.timeout)); try { await transport.open(_onPush, onError: (dynamic error) { @@ -470,6 +482,11 @@ class ClientImpl implements Client { request.name = _config.name; request.version = _config.version; + if (isWeb) { + // Use headers emulation in web context. + request.headers.addAll(_headers); + } + if (_serverSubs.isNotEmpty) { _serverSubs.forEach((key, value) { final subRequest = protocol.SubscribeRequest(); @@ -560,7 +577,7 @@ class ClientImpl implements Client { _inConnect = false; return; } else { - _processDisconnect(code: err.code, reason: err.message, reconnect: false); + _processDisconnect(code: err.code, reason: err.message, reconnect: true); await transport.close(); _inConnect = false; return; diff --git a/lib/src/client_config.dart b/lib/src/client_config.dart index 59a3475..dacbfaf 100644 --- a/lib/src/client_config.dart +++ b/lib/src/client_config.dart @@ -14,7 +14,7 @@ class ClientConfig { this.getToken, this.data, this.getData, - this.headers = const {}, + this.headers = const {}, this.tlsSkipVerify = false, this.timeout = const Duration(seconds: 10), this.minReconnectDelay = const Duration(milliseconds: 500), @@ -41,8 +41,10 @@ class ClientConfig { /// Headers that are set when connecting the web socket on dart:io platforms. /// - /// Note that headers are ignored on the web platform. - final Map headers; + /// Note that headers on the web platform use Headers Emulation (since Centrifugo v6) + /// – i.e. headers are sent to Centrifugo in first protocol message but then automatically + /// translated to HTTP headers by Centrifugo in the proxy request to the backend. + final Map headers; final bool tlsSkipVerify; final Duration minReconnectDelay; diff --git a/lib/src/codec.dart b/lib/src/codec.dart index da08c02..723f302 100644 --- a/lib/src/codec.dart +++ b/lib/src/codec.dart @@ -11,12 +11,11 @@ class ProtobufCommandEncoder extends CommandEncoder { @override List convert(Command input) { final commandData = input.writeToBuffer(); - final length = commandData.lengthInBytes; - final writer = CodedBufferWriter(); - writer.writeInt32NoTag(length); - - return writer.toBuffer() + commandData; + return (CodedBufferWriter() + ..writeInt32NoTag(commandData.length) + ..writeRawBytes(commandData)) + .toBuffer(); } } diff --git a/lib/src/platform/js.dart b/lib/src/platform/js.dart new file mode 100644 index 0000000..69fda2b --- /dev/null +++ b/lib/src/platform/js.dart @@ -0,0 +1 @@ +const bool isWeb = true; diff --git a/lib/src/platform/vm.dart b/lib/src/platform/vm.dart new file mode 100644 index 0000000..2cdc506 --- /dev/null +++ b/lib/src/platform/vm.dart @@ -0,0 +1 @@ +const bool isWeb = false; diff --git a/lib/src/proto/client.pb.dart b/lib/src/proto/client.pb.dart index 9a244bf..95a5e83 100644 --- a/lib/src/proto/client.pb.dart +++ b/lib/src/proto/client.pb.dart @@ -1,9 +1,13 @@ -/// +// // Generated code. Do not modify. // source: client.proto // // @dart = 2.12 -// 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 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import import 'dart:core' as $core; @@ -11,33 +15,34 @@ import 'package:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; 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') - ..aOB(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'temporary') - ..hasRequiredFields = false - ; - - Error._() : super(); factory Error({ $core.int? code, $core.String? message, $core.bool? temporary, }) { - final _result = create(); + final $result = create(); if (code != null) { - _result.code = code; + $result.code = code; } if (message != null) { - _result.message = message; + $result.message = message; } if (temporary != null) { - _result.temporary = temporary; + $result.temporary = temporary; } - return _result; + return $result; } + Error._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Error', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'code', $pb.PbFieldType.OU3) + ..aOS(2, _omitFieldNames ? '' : 'message') + ..aOB(3, _omitFieldNames ? '' : 'temporary') + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -47,8 +52,10 @@ class Error extends $pb.GeneratedMessage { '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 + Error copyWith(void Function(Error) updates) => super.copyWith((message) => updates(message as Error)) as Error; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Error create() => Error._(); Error createEmptyInstance() => create(); @@ -86,33 +93,34 @@ class Error extends $pb.GeneratedMessage { } class EmulationRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'EmulationRequest', 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') ? '' : 'node') - ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'session') - ..a<$core.List<$core.int>>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'data', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; - - EmulationRequest._() : super(); factory EmulationRequest({ $core.String? node, $core.String? session, $core.List<$core.int>? data, }) { - final _result = create(); + final $result = create(); if (node != null) { - _result.node = node; + $result.node = node; } if (session != null) { - _result.session = session; + $result.session = session; } if (data != null) { - _result.data = data; + $result.data = data; } - return _result; + return $result; } + EmulationRequest._() : super(); factory EmulationRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory EmulationRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EmulationRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'node') + ..aOS(2, _omitFieldNames ? '' : 'session') + ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'data', $pb.PbFieldType.OY) + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -122,8 +130,10 @@ class EmulationRequest extends $pb.GeneratedMessage { 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') - EmulationRequest copyWith(void Function(EmulationRequest) updates) => super.copyWith((message) => updates(message as EmulationRequest)) as EmulationRequest; // ignore: deprecated_member_use + EmulationRequest copyWith(void Function(EmulationRequest) updates) => super.copyWith((message) => updates(message as EmulationRequest)) as EmulationRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EmulationRequest create() => EmulationRequest._(); EmulationRequest createEmptyInstance() => create(); @@ -160,25 +170,9 @@ class EmulationRequest extends $pb.GeneratedMessage { void clearData() => clearField(3); } +/// Command sent from a client to a server. +/// ProtocolVersion2 uses id and one of the possible request messages. 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) - ..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, ConnectRequest? connect, @@ -194,50 +188,69 @@ class Command extends $pb.GeneratedMessage { RefreshRequest? refresh, SubRefreshRequest? subRefresh, }) { - final _result = create(); + final $result = create(); if (id != null) { - _result.id = id; + $result.id = id; } if (connect != null) { - _result.connect = connect; + $result.connect = connect; } if (subscribe != null) { - _result.subscribe = subscribe; + $result.subscribe = subscribe; } if (unsubscribe != null) { - _result.unsubscribe = unsubscribe; + $result.unsubscribe = unsubscribe; } if (publish != null) { - _result.publish = publish; + $result.publish = publish; } if (presence != null) { - _result.presence = presence; + $result.presence = presence; } if (presenceStats != null) { - _result.presenceStats = presenceStats; + $result.presenceStats = presenceStats; } if (history != null) { - _result.history = history; + $result.history = history; } if (ping != null) { - _result.ping = ping; + $result.ping = ping; } if (send != null) { - _result.send = send; + $result.send = send; } if (rpc != null) { - _result.rpc = rpc; + $result.rpc = rpc; } if (refresh != null) { - _result.refresh = refresh; + $result.refresh = refresh; } if (subRefresh != null) { - _result.subRefresh = subRefresh; + $result.subRefresh = subRefresh; } - return _result; + return $result; } + Command._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Command', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) + ..aOM(4, _omitFieldNames ? '' : 'connect', subBuilder: ConnectRequest.create) + ..aOM(5, _omitFieldNames ? '' : 'subscribe', subBuilder: SubscribeRequest.create) + ..aOM(6, _omitFieldNames ? '' : 'unsubscribe', subBuilder: UnsubscribeRequest.create) + ..aOM(7, _omitFieldNames ? '' : 'publish', subBuilder: PublishRequest.create) + ..aOM(8, _omitFieldNames ? '' : 'presence', subBuilder: PresenceRequest.create) + ..aOM(9, _omitFieldNames ? '' : 'presenceStats', subBuilder: PresenceStatsRequest.create) + ..aOM(10, _omitFieldNames ? '' : 'history', subBuilder: HistoryRequest.create) + ..aOM(11, _omitFieldNames ? '' : 'ping', subBuilder: PingRequest.create) + ..aOM(12, _omitFieldNames ? '' : 'send', subBuilder: SendRequest.create) + ..aOM(13, _omitFieldNames ? '' : 'rpc', subBuilder: RPCRequest.create) + ..aOM(14, _omitFieldNames ? '' : 'refresh', subBuilder: RefreshRequest.create) + ..aOM(15, _omitFieldNames ? '' : 'subRefresh', subBuilder: SubRefreshRequest.create) + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -247,8 +260,10 @@ class Command extends $pb.GeneratedMessage { '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 + Command copyWith(void Function(Command) updates) => super.copyWith((message) => updates(message as Command)) as Command; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Command create() => Command._(); Command createEmptyInstance() => create(); @@ -257,6 +272,7 @@ class Command extends $pb.GeneratedMessage { static Command getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Command? _defaultInstance; + /// Id of command to let client match replies to commands. @$pb.TagNumber(1) $core.int get id => $_getIZ(0); @$pb.TagNumber(1) @@ -266,6 +282,10 @@ class Command extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearId() => clearField(1); + /// 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. @$pb.TagNumber(4) ConnectRequest get connect => $_getN(1); @$pb.TagNumber(4) @@ -399,26 +419,9 @@ class Command extends $pb.GeneratedMessage { SubRefreshRequest ensureSubRefresh() => $_ensure(12); } +/// Reply sent from a server to a client. +/// ProtocolVersion2 uses id and one of the possible concrete result messages. 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) - ..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, @@ -435,53 +438,73 @@ class Reply extends $pb.GeneratedMessage { RefreshResult? refresh, SubRefreshResult? subRefresh, }) { - final _result = create(); + final $result = create(); if (id != null) { - _result.id = id; + $result.id = id; } if (error != null) { - _result.error = error; + $result.error = error; } if (push != null) { - _result.push = push; + $result.push = push; } if (connect != null) { - _result.connect = connect; + $result.connect = connect; } if (subscribe != null) { - _result.subscribe = subscribe; + $result.subscribe = subscribe; } if (unsubscribe != null) { - _result.unsubscribe = unsubscribe; + $result.unsubscribe = unsubscribe; } if (publish != null) { - _result.publish = publish; + $result.publish = publish; } if (presence != null) { - _result.presence = presence; + $result.presence = presence; } if (presenceStats != null) { - _result.presenceStats = presenceStats; + $result.presenceStats = presenceStats; } if (history != null) { - _result.history = history; + $result.history = history; } if (ping != null) { - _result.ping = ping; + $result.ping = ping; } if (rpc != null) { - _result.rpc = rpc; + $result.rpc = rpc; } if (refresh != null) { - _result.refresh = refresh; + $result.refresh = refresh; } if (subRefresh != null) { - _result.subRefresh = subRefresh; + $result.subRefresh = subRefresh; } - return _result; + return $result; } + Reply._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Reply', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) + ..aOM(2, _omitFieldNames ? '' : 'error', subBuilder: Error.create) + ..aOM(4, _omitFieldNames ? '' : 'push', subBuilder: Push.create) + ..aOM(5, _omitFieldNames ? '' : 'connect', subBuilder: ConnectResult.create) + ..aOM(6, _omitFieldNames ? '' : 'subscribe', subBuilder: SubscribeResult.create) + ..aOM(7, _omitFieldNames ? '' : 'unsubscribe', subBuilder: UnsubscribeResult.create) + ..aOM(8, _omitFieldNames ? '' : 'publish', subBuilder: PublishResult.create) + ..aOM(9, _omitFieldNames ? '' : 'presence', subBuilder: PresenceResult.create) + ..aOM(10, _omitFieldNames ? '' : 'presenceStats', subBuilder: PresenceStatsResult.create) + ..aOM(11, _omitFieldNames ? '' : 'history', subBuilder: HistoryResult.create) + ..aOM(12, _omitFieldNames ? '' : 'ping', subBuilder: PingResult.create) + ..aOM(13, _omitFieldNames ? '' : 'rpc', subBuilder: RPCResult.create) + ..aOM(14, _omitFieldNames ? '' : 'refresh', subBuilder: RefreshResult.create) + ..aOM(15, _omitFieldNames ? '' : 'subRefresh', subBuilder: SubRefreshResult.create) + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -491,8 +514,10 @@ class Reply extends $pb.GeneratedMessage { '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 + Reply copyWith(void Function(Reply) updates) => super.copyWith((message) => updates(message as Reply)) as Reply; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Reply create() => Reply._(); Reply createEmptyInstance() => create(); @@ -501,6 +526,8 @@ class Reply extends $pb.GeneratedMessage { static Reply getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Reply? _defaultInstance; + /// Id will only be set to a value > 0 for replies to commands. For pushes + /// it will have zero value. @$pb.TagNumber(1) $core.int get id => $_getIZ(0); @$pb.TagNumber(1) @@ -510,6 +537,7 @@ class Reply extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearId() => clearField(1); + /// Error can only be set in replies to commands. For pushes it will have zero value. @$pb.TagNumber(2) Error get error => $_getN(1); @$pb.TagNumber(2) @@ -521,6 +549,8 @@ class Reply extends $pb.GeneratedMessage { @$pb.TagNumber(2) Error ensureError() => $_ensure(1); + /// ProtocolVersion2 server can send one of the following fields. We are not using + /// oneof here due to JSON interoperability concerns. @$pb.TagNumber(4) Push get push => $_getN(2); @$pb.TagNumber(4) @@ -654,22 +684,10 @@ class Reply extends $pb.GeneratedMessage { SubRefreshResult ensureSubRefresh() => $_ensure(13); } +/// 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. +/// ProtocolVersion2 uses channel and one of the possible concrete push messages. 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) - ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'channel') - ..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({ $core.String? channel, Publication? pub, @@ -682,41 +700,57 @@ class Push extends $pb.GeneratedMessage { Disconnect? disconnect, Refresh? refresh, }) { - final _result = create(); + final $result = create(); if (channel != null) { - _result.channel = channel; + $result.channel = channel; } if (pub != null) { - _result.pub = pub; + $result.pub = pub; } if (join != null) { - _result.join = join; + $result.join = join; } if (leave != null) { - _result.leave = leave; + $result.leave = leave; } if (unsubscribe != null) { - _result.unsubscribe = unsubscribe; + $result.unsubscribe = unsubscribe; } if (message != null) { - _result.message = message; + $result.message = message; } if (subscribe != null) { - _result.subscribe = subscribe; + $result.subscribe = subscribe; } if (connect != null) { - _result.connect = connect; + $result.connect = connect; } if (disconnect != null) { - _result.disconnect = disconnect; + $result.disconnect = disconnect; } if (refresh != null) { - _result.refresh = refresh; + $result.refresh = refresh; } - return _result; + return $result; } + Push._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Push', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(2, _omitFieldNames ? '' : 'channel') + ..aOM(4, _omitFieldNames ? '' : 'pub', subBuilder: Publication.create) + ..aOM(5, _omitFieldNames ? '' : 'join', subBuilder: Join.create) + ..aOM(6, _omitFieldNames ? '' : 'leave', subBuilder: Leave.create) + ..aOM(7, _omitFieldNames ? '' : 'unsubscribe', subBuilder: Unsubscribe.create) + ..aOM(8, _omitFieldNames ? '' : 'message', subBuilder: Message.create) + ..aOM(9, _omitFieldNames ? '' : 'subscribe', subBuilder: Subscribe.create) + ..aOM(10, _omitFieldNames ? '' : 'connect', subBuilder: Connect.create) + ..aOM(11, _omitFieldNames ? '' : 'disconnect', subBuilder: Disconnect.create) + ..aOM(12, _omitFieldNames ? '' : 'refresh', subBuilder: Refresh.create) + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -726,8 +760,10 @@ class Push extends $pb.GeneratedMessage { '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 + Push copyWith(void Function(Push) updates) => super.copyWith((message) => updates(message as Push)) as Push; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Push create() => Push._(); Push createEmptyInstance() => create(); @@ -745,6 +781,8 @@ class Push extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearChannel() => clearField(2); + /// ProtocolVersion2 server can push one of the following fields to the client. We are + /// not using oneof here due to JSON interoperability concerns. @$pb.TagNumber(4) Publication get pub => $_getN(1); @$pb.TagNumber(4) @@ -846,38 +884,39 @@ class Push extends $pb.GeneratedMessage { } 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 - ; - - ClientInfo._() : super(); factory ClientInfo({ $core.String? user, $core.String? client, $core.List<$core.int>? connInfo, $core.List<$core.int>? chanInfo, }) { - final _result = create(); + final $result = create(); if (user != null) { - _result.user = user; + $result.user = user; } if (client != null) { - _result.client = client; + $result.client = client; } if (connInfo != null) { - _result.connInfo = connInfo; + $result.connInfo = connInfo; } if (chanInfo != null) { - _result.chanInfo = chanInfo; + $result.chanInfo = chanInfo; } - return _result; + return $result; } + ClientInfo._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ClientInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'user') + ..aOS(2, _omitFieldNames ? '' : 'client') + ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'connInfo', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>(4, _omitFieldNames ? '' : 'chanInfo', $pb.PbFieldType.OY) + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -887,8 +926,10 @@ class ClientInfo extends $pb.GeneratedMessage { '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 + ClientInfo copyWith(void Function(ClientInfo) updates) => super.copyWith((message) => updates(message as ClientInfo)) as ClientInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ClientInfo create() => ClientInfo._(); ClientInfo createEmptyInstance() => create(); @@ -935,38 +976,54 @@ 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) - ..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 - ; - - Publication._() : super(); factory Publication({ $core.List<$core.int>? data, ClientInfo? info, $fixnum.Int64? offset, $core.Map<$core.String, $core.String>? tags, + $core.bool? delta, + $fixnum.Int64? time, + $core.String? channel, }) { - final _result = create(); + final $result = create(); if (data != null) { - _result.data = data; + $result.data = data; } if (info != null) { - _result.info = info; + $result.info = info; } if (offset != null) { - _result.offset = offset; + $result.offset = offset; } if (tags != null) { - _result.tags.addAll(tags); + $result.tags.addAll(tags); + } + if (delta != null) { + $result.delta = delta; + } + if (time != null) { + $result.time = time; } - return _result; + if (channel != null) { + $result.channel = channel; + } + return $result; } + Publication._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Publication', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..a<$core.List<$core.int>>(4, _omitFieldNames ? '' : 'data', $pb.PbFieldType.OY) + ..aOM(5, _omitFieldNames ? '' : 'info', subBuilder: ClientInfo.create) + ..a<$fixnum.Int64>(6, _omitFieldNames ? '' : 'offset', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..m<$core.String, $core.String>(7, _omitFieldNames ? '' : 'tags', entryClassName: 'Publication.TagsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('centrifugal.centrifuge.protocol')) + ..aOB(8, _omitFieldNames ? '' : 'delta') + ..aInt64(9, _omitFieldNames ? '' : 'time') + ..aOS(10, _omitFieldNames ? '' : 'channel') + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -976,8 +1033,10 @@ class Publication extends $pb.GeneratedMessage { '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 + Publication copyWith(void Function(Publication) updates) => super.copyWith((message) => updates(message as Publication)) as Publication; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Publication create() => Publication._(); Publication createEmptyInstance() => create(); @@ -1017,26 +1076,54 @@ class Publication extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.Map<$core.String, $core.String> get tags => $_getMap(3); + + @$pb.TagNumber(8) + $core.bool get delta => $_getBF(4); + @$pb.TagNumber(8) + set delta($core.bool v) { $_setBool(4, v); } + @$pb.TagNumber(8) + $core.bool hasDelta() => $_has(4); + @$pb.TagNumber(8) + void clearDelta() => clearField(8); + + @$pb.TagNumber(9) + $fixnum.Int64 get time => $_getI64(5); + @$pb.TagNumber(9) + set time($fixnum.Int64 v) { $_setInt64(5, v); } + @$pb.TagNumber(9) + $core.bool hasTime() => $_has(5); + @$pb.TagNumber(9) + void clearTime() => clearField(9); + + @$pb.TagNumber(10) + $core.String get channel => $_getSZ(6); + @$pb.TagNumber(10) + set channel($core.String v) { $_setString(6, v); } + @$pb.TagNumber(10) + $core.bool hasChannel() => $_has(6); + @$pb.TagNumber(10) + void clearChannel() => clearField(10); } 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 - ; - - Join._() : super(); factory Join({ ClientInfo? info, }) { - final _result = create(); + final $result = create(); if (info != null) { - _result.info = info; + $result.info = info; } - return _result; + return $result; } + Join._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Join', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'info', subBuilder: ClientInfo.create) + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -1046,8 +1133,10 @@ class Join extends $pb.GeneratedMessage { '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 + Join copyWith(void Function(Join) updates) => super.copyWith((message) => updates(message as Join)) as Join; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Join create() => Join._(); Join createEmptyInstance() => create(); @@ -1069,23 +1158,24 @@ 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 - ; - - Leave._() : super(); factory Leave({ ClientInfo? info, }) { - final _result = create(); + final $result = create(); if (info != null) { - _result.info = info; + $result.info = info; } - return _result; + return $result; } + Leave._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Leave', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'info', subBuilder: ClientInfo.create) + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -1095,8 +1185,10 @@ class Leave extends $pb.GeneratedMessage { '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 + Leave copyWith(void Function(Leave) updates) => super.copyWith((message) => updates(message as Leave)) as Leave; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Leave create() => Leave._(); Leave createEmptyInstance() => create(); @@ -1118,28 +1210,29 @@ 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) - ..a<$core.int>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'code', $pb.PbFieldType.OU3) - ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'reason') - ..hasRequiredFields = false - ; - - Unsubscribe._() : super(); factory Unsubscribe({ $core.int? code, $core.String? reason, }) { - final _result = create(); + final $result = create(); if (code != null) { - _result.code = code; + $result.code = code; } if (reason != null) { - _result.reason = reason; + $result.reason = reason; } - return _result; + return $result; } + Unsubscribe._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Unsubscribe', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..a<$core.int>(2, _omitFieldNames ? '' : 'code', $pb.PbFieldType.OU3) + ..aOS(3, _omitFieldNames ? '' : 'reason') + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -1149,8 +1242,10 @@ class Unsubscribe extends $pb.GeneratedMessage { '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 + Unsubscribe copyWith(void Function(Unsubscribe) updates) => super.copyWith((message) => updates(message as Unsubscribe)) as Unsubscribe; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Unsubscribe create() => Unsubscribe._(); Unsubscribe createEmptyInstance() => create(); @@ -1179,16 +1274,6 @@ class Unsubscribe extends $pb.GeneratedMessage { } 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) - ..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 - ; - - Subscribe._() : super(); factory Subscribe({ $core.bool? recoverable, $core.String? epoch, @@ -1196,26 +1281,37 @@ class Subscribe extends $pb.GeneratedMessage { $core.bool? positioned, $core.List<$core.int>? data, }) { - final _result = create(); + final $result = create(); if (recoverable != null) { - _result.recoverable = recoverable; + $result.recoverable = recoverable; } if (epoch != null) { - _result.epoch = epoch; + $result.epoch = epoch; } if (offset != null) { - _result.offset = offset; + $result.offset = offset; } if (positioned != null) { - _result.positioned = positioned; + $result.positioned = positioned; } if (data != null) { - _result.data = data; + $result.data = data; } - return _result; + return $result; } + Subscribe._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Subscribe', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'recoverable') + ..aOS(4, _omitFieldNames ? '' : 'epoch') + ..a<$fixnum.Int64>(5, _omitFieldNames ? '' : 'offset', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..aOB(6, _omitFieldNames ? '' : 'positioned') + ..a<$core.List<$core.int>>(7, _omitFieldNames ? '' : 'data', $pb.PbFieldType.OY) + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -1225,8 +1321,10 @@ class Subscribe extends $pb.GeneratedMessage { '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 + Subscribe copyWith(void Function(Subscribe) updates) => super.copyWith((message) => updates(message as Subscribe)) as Subscribe; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Subscribe create() => Subscribe._(); Subscribe createEmptyInstance() => create(); @@ -1282,23 +1380,24 @@ 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 - ; - - Message._() : super(); factory Message({ $core.List<$core.int>? data, }) { - final _result = create(); + final $result = create(); if (data != null) { - _result.data = data; + $result.data = data; } - return _result; + return $result; } + Message._() : super(); factory Message.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Message.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Message', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'data', $pb.PbFieldType.OY) + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -1308,8 +1407,10 @@ class Message extends $pb.GeneratedMessage { '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 + Message copyWith(void Function(Message) updates) => super.copyWith((message) => updates(message as Message)) as Message; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Message create() => Message._(); Message createEmptyInstance() => create(); @@ -1329,21 +1430,6 @@ 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')) - ..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) - ..a<$core.int>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'ping', $pb.PbFieldType.OU3) - ..aOB(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'pong') - ..aOS(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'session') - ..aOS(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'node') - ..hasRequiredFields = false - ; - - Connect._() : super(); factory Connect({ $core.String? client, $core.String? version, @@ -1355,42 +1441,63 @@ class Connect extends $pb.GeneratedMessage { $core.bool? pong, $core.String? session, $core.String? node, + $fixnum.Int64? time, }) { - final _result = create(); + final $result = create(); if (client != null) { - _result.client = client; + $result.client = client; } if (version != null) { - _result.version = version; + $result.version = version; } if (data != null) { - _result.data = data; + $result.data = data; } if (subs != null) { - _result.subs.addAll(subs); + $result.subs.addAll(subs); } if (expires != null) { - _result.expires = expires; + $result.expires = expires; } if (ttl != null) { - _result.ttl = ttl; + $result.ttl = ttl; } if (ping != null) { - _result.ping = ping; + $result.ping = ping; } if (pong != null) { - _result.pong = pong; + $result.pong = pong; } if (session != null) { - _result.session = session; + $result.session = session; } if (node != null) { - _result.node = node; + $result.node = node; } - return _result; + if (time != null) { + $result.time = time; + } + return $result; } + Connect._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Connect', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'client') + ..aOS(2, _omitFieldNames ? '' : 'version') + ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'data', $pb.PbFieldType.OY) + ..m<$core.String, SubscribeResult>(4, _omitFieldNames ? '' : 'subs', entryClassName: 'Connect.SubsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: SubscribeResult.create, valueDefaultOrMaker: SubscribeResult.getDefault, packageName: const $pb.PackageName('centrifugal.centrifuge.protocol')) + ..aOB(5, _omitFieldNames ? '' : 'expires') + ..a<$core.int>(6, _omitFieldNames ? '' : 'ttl', $pb.PbFieldType.OU3) + ..a<$core.int>(7, _omitFieldNames ? '' : 'ping', $pb.PbFieldType.OU3) + ..aOB(8, _omitFieldNames ? '' : 'pong') + ..aOS(9, _omitFieldNames ? '' : 'session') + ..aOS(10, _omitFieldNames ? '' : 'node') + ..aInt64(11, _omitFieldNames ? '' : 'time') + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -1400,8 +1507,10 @@ class Connect extends $pb.GeneratedMessage { '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 + Connect copyWith(void Function(Connect) updates) => super.copyWith((message) => updates(message as Connect)) as Connect; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Connect create() => Connect._(); Connect createEmptyInstance() => create(); @@ -1493,36 +1602,46 @@ class Connect extends $pb.GeneratedMessage { $core.bool hasNode() => $_has(9); @$pb.TagNumber(10) void clearNode() => clearField(10); + + @$pb.TagNumber(11) + $fixnum.Int64 get time => $_getI64(10); + @$pb.TagNumber(11) + set time($fixnum.Int64 v) { $_setInt64(10, v); } + @$pb.TagNumber(11) + $core.bool hasTime() => $_has(10); + @$pb.TagNumber(11) + void clearTime() => clearField(11); } 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 - ; - - Disconnect._() : super(); factory Disconnect({ $core.int? code, $core.String? reason, $core.bool? reconnect, }) { - final _result = create(); + final $result = create(); if (code != null) { - _result.code = code; + $result.code = code; } if (reason != null) { - _result.reason = reason; + $result.reason = reason; } if (reconnect != null) { - _result.reconnect = reconnect; + $result.reconnect = reconnect; } - return _result; + return $result; } + Disconnect._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Disconnect', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'code', $pb.PbFieldType.OU3) + ..aOS(2, _omitFieldNames ? '' : 'reason') + ..aOB(3, _omitFieldNames ? '' : 'reconnect') + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -1532,8 +1651,10 @@ class Disconnect extends $pb.GeneratedMessage { '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 + Disconnect copyWith(void Function(Disconnect) updates) => super.copyWith((message) => updates(message as Disconnect)) as Disconnect; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Disconnect create() => Disconnect._(); Disconnect createEmptyInstance() => create(); @@ -1571,28 +1692,29 @@ 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 - ; - - Refresh._() : super(); factory Refresh({ $core.bool? expires, $core.int? ttl, }) { - final _result = create(); + final $result = create(); if (expires != null) { - _result.expires = expires; + $result.expires = expires; } if (ttl != null) { - _result.ttl = ttl; + $result.ttl = ttl; } - return _result; + return $result; } + Refresh._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Refresh', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'expires') + ..a<$core.int>(2, _omitFieldNames ? '' : 'ttl', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -1602,8 +1724,10 @@ class Refresh extends $pb.GeneratedMessage { '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 + Refresh copyWith(void Function(Refresh) updates) => super.copyWith((message) => updates(message as Refresh)) as Refresh; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Refresh create() => Refresh._(); Refresh createEmptyInstance() => create(); @@ -1632,43 +1756,49 @@ 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')) - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'name') - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'version') - ..hasRequiredFields = false - ; - - ConnectRequest._() : super(); factory ConnectRequest({ $core.String? token, $core.List<$core.int>? data, $core.Map<$core.String, SubscribeRequest>? subs, $core.String? name, $core.String? version, + $core.Map<$core.String, $core.String>? headers, }) { - final _result = create(); + final $result = create(); if (token != null) { - _result.token = token; + $result.token = token; } if (data != null) { - _result.data = data; + $result.data = data; } if (subs != null) { - _result.subs.addAll(subs); + $result.subs.addAll(subs); } if (name != null) { - _result.name = name; + $result.name = name; } if (version != null) { - _result.version = version; + $result.version = version; } - return _result; + if (headers != null) { + $result.headers.addAll(headers); + } + return $result; } + ConnectRequest._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ConnectRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'token') + ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'data', $pb.PbFieldType.OY) + ..m<$core.String, SubscribeRequest>(3, _omitFieldNames ? '' : 'subs', entryClassName: 'ConnectRequest.SubsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: SubscribeRequest.create, valueDefaultOrMaker: SubscribeRequest.getDefault, packageName: const $pb.PackageName('centrifugal.centrifuge.protocol')) + ..aOS(4, _omitFieldNames ? '' : 'name') + ..aOS(5, _omitFieldNames ? '' : 'version') + ..m<$core.String, $core.String>(6, _omitFieldNames ? '' : 'headers', entryClassName: 'ConnectRequest.HeadersEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('centrifugal.centrifuge.protocol')) + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -1678,8 +1808,10 @@ class ConnectRequest extends $pb.GeneratedMessage { '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 + ConnectRequest copyWith(void Function(ConnectRequest) updates) => super.copyWith((message) => updates(message as ConnectRequest)) as ConnectRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ConnectRequest create() => ConnectRequest._(); ConnectRequest createEmptyInstance() => create(); @@ -1726,24 +1858,12 @@ class ConnectRequest extends $pb.GeneratedMessage { $core.bool hasVersion() => $_has(4); @$pb.TagNumber(5) void clearVersion() => clearField(5); + + @$pb.TagNumber(6) + $core.Map<$core.String, $core.String> get headers => $_getMap(5); } 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) - ..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')) - ..a<$core.int>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'ping', $pb.PbFieldType.OU3) - ..aOB(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'pong') - ..aOS(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'session') - ..aOS(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'node') - ..hasRequiredFields = false - ; - - ConnectResult._() : super(); factory ConnectResult({ $core.String? client, $core.String? version, @@ -1755,42 +1875,63 @@ class ConnectResult extends $pb.GeneratedMessage { $core.bool? pong, $core.String? session, $core.String? node, + $fixnum.Int64? time, }) { - final _result = create(); + final $result = create(); if (client != null) { - _result.client = client; + $result.client = client; } if (version != null) { - _result.version = version; + $result.version = version; } if (expires != null) { - _result.expires = expires; + $result.expires = expires; } if (ttl != null) { - _result.ttl = ttl; + $result.ttl = ttl; } if (data != null) { - _result.data = data; + $result.data = data; } if (subs != null) { - _result.subs.addAll(subs); + $result.subs.addAll(subs); } if (ping != null) { - _result.ping = ping; + $result.ping = ping; } if (pong != null) { - _result.pong = pong; + $result.pong = pong; } if (session != null) { - _result.session = session; + $result.session = session; } if (node != null) { - _result.node = node; + $result.node = node; + } + if (time != null) { + $result.time = time; } - return _result; + return $result; } + ConnectResult._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ConnectResult', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'client') + ..aOS(2, _omitFieldNames ? '' : 'version') + ..aOB(3, _omitFieldNames ? '' : 'expires') + ..a<$core.int>(4, _omitFieldNames ? '' : 'ttl', $pb.PbFieldType.OU3) + ..a<$core.List<$core.int>>(5, _omitFieldNames ? '' : 'data', $pb.PbFieldType.OY) + ..m<$core.String, SubscribeResult>(6, _omitFieldNames ? '' : 'subs', entryClassName: 'ConnectResult.SubsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: SubscribeResult.create, valueDefaultOrMaker: SubscribeResult.getDefault, packageName: const $pb.PackageName('centrifugal.centrifuge.protocol')) + ..a<$core.int>(7, _omitFieldNames ? '' : 'ping', $pb.PbFieldType.OU3) + ..aOB(8, _omitFieldNames ? '' : 'pong') + ..aOS(9, _omitFieldNames ? '' : 'session') + ..aOS(10, _omitFieldNames ? '' : 'node') + ..aInt64(11, _omitFieldNames ? '' : 'time') + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -1800,8 +1941,10 @@ class ConnectResult extends $pb.GeneratedMessage { '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 + ConnectResult copyWith(void Function(ConnectResult) updates) => super.copyWith((message) => updates(message as ConnectResult)) as ConnectResult; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ConnectResult create() => ConnectResult._(); ConnectResult createEmptyInstance() => create(); @@ -1893,26 +2036,36 @@ class ConnectResult extends $pb.GeneratedMessage { $core.bool hasNode() => $_has(9); @$pb.TagNumber(10) void clearNode() => clearField(10); + + @$pb.TagNumber(11) + $fixnum.Int64 get time => $_getI64(10); + @$pb.TagNumber(11) + set time($fixnum.Int64 v) { $_setInt64(10, v); } + @$pb.TagNumber(11) + $core.bool hasTime() => $_has(10); + @$pb.TagNumber(11) + void clearTime() => clearField(11); } 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 - ; - - RefreshRequest._() : super(); factory RefreshRequest({ $core.String? token, }) { - final _result = create(); + final $result = create(); if (token != null) { - _result.token = token; + $result.token = token; } - return _result; + return $result; } + RefreshRequest._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RefreshRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'token') + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -1922,8 +2075,10 @@ class RefreshRequest extends $pb.GeneratedMessage { '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 + RefreshRequest copyWith(void Function(RefreshRequest) updates) => super.copyWith((message) => updates(message as RefreshRequest)) as RefreshRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static RefreshRequest create() => RefreshRequest._(); RefreshRequest createEmptyInstance() => create(); @@ -1943,38 +2098,39 @@ 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 - ; - - RefreshResult._() : super(); factory RefreshResult({ $core.String? client, $core.String? version, $core.bool? expires, $core.int? ttl, }) { - final _result = create(); + final $result = create(); if (client != null) { - _result.client = client; + $result.client = client; } if (version != null) { - _result.version = version; + $result.version = version; } if (expires != null) { - _result.expires = expires; + $result.expires = expires; } if (ttl != null) { - _result.ttl = ttl; + $result.ttl = ttl; } - return _result; + return $result; } + RefreshResult._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RefreshResult', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'client') + ..aOS(2, _omitFieldNames ? '' : 'version') + ..aOB(3, _omitFieldNames ? '' : 'expires') + ..a<$core.int>(4, _omitFieldNames ? '' : 'ttl', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -1984,8 +2140,10 @@ class RefreshResult extends $pb.GeneratedMessage { '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 + RefreshResult copyWith(void Function(RefreshResult) updates) => super.copyWith((message) => updates(message as RefreshResult)) as RefreshResult; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static RefreshResult create() => RefreshResult._(); RefreshResult createEmptyInstance() => create(); @@ -2032,20 +2190,6 @@ 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') - ..a<$fixnum.Int64>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'offset', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$core.List<$core.int>>(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'data', $pb.PbFieldType.OY) - ..aOB(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'positioned') - ..aOB(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'recoverable') - ..aOB(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'joinLeave') - ..hasRequiredFields = false - ; - - SubscribeRequest._() : super(); factory SubscribeRequest({ $core.String? channel, $core.String? token, @@ -2056,39 +2200,59 @@ class SubscribeRequest extends $pb.GeneratedMessage { $core.bool? positioned, $core.bool? recoverable, $core.bool? joinLeave, + $core.String? delta, }) { - final _result = create(); + final $result = create(); if (channel != null) { - _result.channel = channel; + $result.channel = channel; } if (token != null) { - _result.token = token; + $result.token = token; } if (recover != null) { - _result.recover = recover; + $result.recover = recover; } if (epoch != null) { - _result.epoch = epoch; + $result.epoch = epoch; } if (offset != null) { - _result.offset = offset; + $result.offset = offset; } if (data != null) { - _result.data = data; + $result.data = data; } if (positioned != null) { - _result.positioned = positioned; + $result.positioned = positioned; } if (recoverable != null) { - _result.recoverable = recoverable; + $result.recoverable = recoverable; } if (joinLeave != null) { - _result.joinLeave = joinLeave; + $result.joinLeave = joinLeave; } - return _result; + if (delta != null) { + $result.delta = delta; + } + return $result; } + SubscribeRequest._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SubscribeRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'channel') + ..aOS(2, _omitFieldNames ? '' : 'token') + ..aOB(3, _omitFieldNames ? '' : 'recover') + ..aOS(6, _omitFieldNames ? '' : 'epoch') + ..a<$fixnum.Int64>(7, _omitFieldNames ? '' : 'offset', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.List<$core.int>>(8, _omitFieldNames ? '' : 'data', $pb.PbFieldType.OY) + ..aOB(9, _omitFieldNames ? '' : 'positioned') + ..aOB(10, _omitFieldNames ? '' : 'recoverable') + ..aOB(11, _omitFieldNames ? '' : 'joinLeave') + ..aOS(12, _omitFieldNames ? '' : 'delta') + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -2098,8 +2262,10 @@ class SubscribeRequest extends $pb.GeneratedMessage { '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 + SubscribeRequest copyWith(void Function(SubscribeRequest) updates) => super.copyWith((message) => updates(message as SubscribeRequest)) as SubscribeRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SubscribeRequest create() => SubscribeRequest._(); SubscribeRequest createEmptyInstance() => create(); @@ -2188,24 +2354,18 @@ class SubscribeRequest extends $pb.GeneratedMessage { $core.bool hasJoinLeave() => $_has(8); @$pb.TagNumber(11) void clearJoinLeave() => clearField(11); + + @$pb.TagNumber(12) + $core.String get delta => $_getSZ(9); + @$pb.TagNumber(12) + set delta($core.String v) { $_setString(9, v); } + @$pb.TagNumber(12) + $core.bool hasDelta() => $_has(9); + @$pb.TagNumber(12) + void clearDelta() => clearField(12); } 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') - ..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) - ..aOB(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'wasRecovering') - ..hasRequiredFields = false - ; - - SubscribeResult._() : super(); factory SubscribeResult({ $core.bool? expires, $core.int? ttl, @@ -2217,42 +2377,63 @@ class SubscribeResult extends $pb.GeneratedMessage { $core.bool? positioned, $core.List<$core.int>? data, $core.bool? wasRecovering, + $core.bool? delta, }) { - final _result = create(); + final $result = create(); if (expires != null) { - _result.expires = expires; + $result.expires = expires; } if (ttl != null) { - _result.ttl = ttl; + $result.ttl = ttl; } if (recoverable != null) { - _result.recoverable = recoverable; + $result.recoverable = recoverable; } if (epoch != null) { - _result.epoch = epoch; + $result.epoch = epoch; } if (publications != null) { - _result.publications.addAll(publications); + $result.publications.addAll(publications); } if (recovered != null) { - _result.recovered = recovered; + $result.recovered = recovered; } if (offset != null) { - _result.offset = offset; + $result.offset = offset; } if (positioned != null) { - _result.positioned = positioned; + $result.positioned = positioned; } if (data != null) { - _result.data = data; + $result.data = data; } if (wasRecovering != null) { - _result.wasRecovering = wasRecovering; + $result.wasRecovering = wasRecovering; } - return _result; + if (delta != null) { + $result.delta = delta; + } + return $result; } + SubscribeResult._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SubscribeResult', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'expires') + ..a<$core.int>(2, _omitFieldNames ? '' : 'ttl', $pb.PbFieldType.OU3) + ..aOB(3, _omitFieldNames ? '' : 'recoverable') + ..aOS(6, _omitFieldNames ? '' : 'epoch') + ..pc(7, _omitFieldNames ? '' : 'publications', $pb.PbFieldType.PM, subBuilder: Publication.create) + ..aOB(8, _omitFieldNames ? '' : 'recovered') + ..a<$fixnum.Int64>(9, _omitFieldNames ? '' : 'offset', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..aOB(10, _omitFieldNames ? '' : 'positioned') + ..a<$core.List<$core.int>>(11, _omitFieldNames ? '' : 'data', $pb.PbFieldType.OY) + ..aOB(12, _omitFieldNames ? '' : 'wasRecovering') + ..aOB(13, _omitFieldNames ? '' : 'delta') + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -2262,8 +2443,10 @@ class SubscribeResult extends $pb.GeneratedMessage { '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 + SubscribeResult copyWith(void Function(SubscribeResult) updates) => super.copyWith((message) => updates(message as SubscribeResult)) as SubscribeResult; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SubscribeResult create() => SubscribeResult._(); SubscribeResult createEmptyInstance() => create(); @@ -2355,31 +2538,41 @@ class SubscribeResult extends $pb.GeneratedMessage { $core.bool hasWasRecovering() => $_has(9); @$pb.TagNumber(12) void clearWasRecovering() => clearField(12); + + @$pb.TagNumber(13) + $core.bool get delta => $_getBF(10); + @$pb.TagNumber(13) + set delta($core.bool v) { $_setBool(10, v); } + @$pb.TagNumber(13) + $core.bool hasDelta() => $_has(10); + @$pb.TagNumber(13) + void clearDelta() => clearField(13); } 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 - ; - - SubRefreshRequest._() : super(); factory SubRefreshRequest({ $core.String? channel, $core.String? token, }) { - final _result = create(); + final $result = create(); if (channel != null) { - _result.channel = channel; + $result.channel = channel; } if (token != null) { - _result.token = token; + $result.token = token; } - return _result; + return $result; } + SubRefreshRequest._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SubRefreshRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'channel') + ..aOS(2, _omitFieldNames ? '' : 'token') + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -2389,8 +2582,10 @@ class SubRefreshRequest extends $pb.GeneratedMessage { '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 + SubRefreshRequest copyWith(void Function(SubRefreshRequest) updates) => super.copyWith((message) => updates(message as SubRefreshRequest)) as SubRefreshRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SubRefreshRequest create() => SubRefreshRequest._(); SubRefreshRequest createEmptyInstance() => create(); @@ -2419,28 +2614,29 @@ 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 - ; - - SubRefreshResult._() : super(); factory SubRefreshResult({ $core.bool? expires, $core.int? ttl, }) { - final _result = create(); + final $result = create(); if (expires != null) { - _result.expires = expires; + $result.expires = expires; } if (ttl != null) { - _result.ttl = ttl; + $result.ttl = ttl; } - return _result; + return $result; } + SubRefreshResult._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SubRefreshResult', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'expires') + ..a<$core.int>(2, _omitFieldNames ? '' : 'ttl', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -2450,8 +2646,10 @@ class SubRefreshResult extends $pb.GeneratedMessage { '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 + SubRefreshResult copyWith(void Function(SubRefreshResult) updates) => super.copyWith((message) => updates(message as SubRefreshResult)) as SubRefreshResult; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SubRefreshResult create() => SubRefreshResult._(); SubRefreshResult createEmptyInstance() => create(); @@ -2480,23 +2678,24 @@ 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 - ; - - UnsubscribeRequest._() : super(); factory UnsubscribeRequest({ $core.String? channel, }) { - final _result = create(); + final $result = create(); if (channel != null) { - _result.channel = channel; + $result.channel = channel; } - return _result; + return $result; } + UnsubscribeRequest._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UnsubscribeRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'channel') + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -2506,8 +2705,10 @@ class UnsubscribeRequest extends $pb.GeneratedMessage { '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 + UnsubscribeRequest copyWith(void Function(UnsubscribeRequest) updates) => super.copyWith((message) => updates(message as UnsubscribeRequest)) as UnsubscribeRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UnsubscribeRequest create() => UnsubscribeRequest._(); UnsubscribeRequest createEmptyInstance() => create(); @@ -2527,14 +2728,15 @@ 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 - ; - - UnsubscribeResult._() : super(); factory UnsubscribeResult() => create(); + UnsubscribeResult._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UnsubscribeResult', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -2544,8 +2746,10 @@ class UnsubscribeResult extends $pb.GeneratedMessage { '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 + UnsubscribeResult copyWith(void Function(UnsubscribeResult) updates) => super.copyWith((message) => updates(message as UnsubscribeResult)) as UnsubscribeResult; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UnsubscribeResult create() => UnsubscribeResult._(); UnsubscribeResult createEmptyInstance() => create(); @@ -2556,28 +2760,29 @@ class UnsubscribeResult extends $pb.GeneratedMessage { } 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 - ; - - PublishRequest._() : super(); factory PublishRequest({ $core.String? channel, $core.List<$core.int>? data, }) { - final _result = create(); + final $result = create(); if (channel != null) { - _result.channel = channel; + $result.channel = channel; } if (data != null) { - _result.data = data; + $result.data = data; } - return _result; + return $result; } + PublishRequest._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PublishRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'channel') + ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'data', $pb.PbFieldType.OY) + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -2587,8 +2792,10 @@ class PublishRequest extends $pb.GeneratedMessage { '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 + PublishRequest copyWith(void Function(PublishRequest) updates) => super.copyWith((message) => updates(message as PublishRequest)) as PublishRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static PublishRequest create() => PublishRequest._(); PublishRequest createEmptyInstance() => create(); @@ -2617,14 +2824,15 @@ 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 - ; - - PublishResult._() : super(); factory PublishResult() => create(); + PublishResult._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PublishResult', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -2634,8 +2842,10 @@ class PublishResult extends $pb.GeneratedMessage { '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 + PublishResult copyWith(void Function(PublishResult) updates) => super.copyWith((message) => updates(message as PublishResult)) as PublishResult; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static PublishResult create() => PublishResult._(); PublishResult createEmptyInstance() => create(); @@ -2646,23 +2856,24 @@ class PublishResult extends $pb.GeneratedMessage { } 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 - ; - - PresenceRequest._() : super(); factory PresenceRequest({ $core.String? channel, }) { - final _result = create(); + final $result = create(); if (channel != null) { - _result.channel = channel; + $result.channel = channel; } - return _result; + return $result; } + PresenceRequest._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PresenceRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'channel') + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -2672,8 +2883,10 @@ class PresenceRequest extends $pb.GeneratedMessage { '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 + PresenceRequest copyWith(void Function(PresenceRequest) updates) => super.copyWith((message) => updates(message as PresenceRequest)) as PresenceRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static PresenceRequest create() => PresenceRequest._(); PresenceRequest createEmptyInstance() => create(); @@ -2693,23 +2906,24 @@ 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 - ; - - PresenceResult._() : super(); factory PresenceResult({ $core.Map<$core.String, ClientInfo>? presence, }) { - final _result = create(); + final $result = create(); if (presence != null) { - _result.presence.addAll(presence); + $result.presence.addAll(presence); } - return _result; + return $result; } + PresenceResult._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PresenceResult', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..m<$core.String, ClientInfo>(1, _omitFieldNames ? '' : 'presence', entryClassName: 'PresenceResult.PresenceEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: ClientInfo.create, valueDefaultOrMaker: ClientInfo.getDefault, packageName: const $pb.PackageName('centrifugal.centrifuge.protocol')) + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -2719,8 +2933,10 @@ class PresenceResult extends $pb.GeneratedMessage { '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 + PresenceResult copyWith(void Function(PresenceResult) updates) => super.copyWith((message) => updates(message as PresenceResult)) as PresenceResult; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static PresenceResult create() => PresenceResult._(); PresenceResult createEmptyInstance() => create(); @@ -2734,23 +2950,24 @@ 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 - ; - - PresenceStatsRequest._() : super(); factory PresenceStatsRequest({ $core.String? channel, }) { - final _result = create(); + final $result = create(); if (channel != null) { - _result.channel = channel; + $result.channel = channel; } - return _result; + return $result; } + PresenceStatsRequest._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PresenceStatsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'channel') + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -2760,8 +2977,10 @@ class PresenceStatsRequest extends $pb.GeneratedMessage { '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 + PresenceStatsRequest copyWith(void Function(PresenceStatsRequest) updates) => super.copyWith((message) => updates(message as PresenceStatsRequest)) as PresenceStatsRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static PresenceStatsRequest create() => PresenceStatsRequest._(); PresenceStatsRequest createEmptyInstance() => create(); @@ -2781,28 +3000,29 @@ 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 - ; - - PresenceStatsResult._() : super(); factory PresenceStatsResult({ $core.int? numClients, $core.int? numUsers, }) { - final _result = create(); + final $result = create(); if (numClients != null) { - _result.numClients = numClients; + $result.numClients = numClients; } if (numUsers != null) { - _result.numUsers = numUsers; + $result.numUsers = numUsers; } - return _result; + return $result; } + PresenceStatsResult._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PresenceStatsResult', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'numClients', $pb.PbFieldType.OU3) + ..a<$core.int>(2, _omitFieldNames ? '' : 'numUsers', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -2812,8 +3032,10 @@ class PresenceStatsResult extends $pb.GeneratedMessage { '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 + PresenceStatsResult copyWith(void Function(PresenceStatsResult) updates) => super.copyWith((message) => updates(message as PresenceStatsResult)) as PresenceStatsResult; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static PresenceStatsResult create() => PresenceStatsResult._(); PresenceStatsResult createEmptyInstance() => create(); @@ -2842,28 +3064,29 @@ 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 - ; - - StreamPosition._() : super(); factory StreamPosition({ $fixnum.Int64? offset, $core.String? epoch, }) { - final _result = create(); + final $result = create(); if (offset != null) { - _result.offset = offset; + $result.offset = offset; } if (epoch != null) { - _result.epoch = epoch; + $result.epoch = epoch; } - return _result; + return $result; } + StreamPosition._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StreamPosition', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'offset', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..aOS(2, _omitFieldNames ? '' : 'epoch') + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -2873,8 +3096,10 @@ class StreamPosition extends $pb.GeneratedMessage { '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 + StreamPosition copyWith(void Function(StreamPosition) updates) => super.copyWith((message) => updates(message as StreamPosition)) as StreamPosition; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static StreamPosition create() => StreamPosition._(); StreamPosition createEmptyInstance() => create(); @@ -2903,38 +3128,39 @@ 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) - ..aOB(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'reverse') - ..hasRequiredFields = false - ; - - HistoryRequest._() : super(); factory HistoryRequest({ $core.String? channel, $core.int? limit, StreamPosition? since, $core.bool? reverse, }) { - final _result = create(); + final $result = create(); if (channel != null) { - _result.channel = channel; + $result.channel = channel; } if (limit != null) { - _result.limit = limit; + $result.limit = limit; } if (since != null) { - _result.since = since; + $result.since = since; } if (reverse != null) { - _result.reverse = reverse; + $result.reverse = reverse; } - return _result; + return $result; } + HistoryRequest._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'HistoryRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'channel') + ..a<$core.int>(7, _omitFieldNames ? '' : 'limit', $pb.PbFieldType.O3) + ..aOM(8, _omitFieldNames ? '' : 'since', subBuilder: StreamPosition.create) + ..aOB(9, _omitFieldNames ? '' : 'reverse') + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -2944,8 +3170,10 @@ class HistoryRequest extends $pb.GeneratedMessage { '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 + HistoryRequest copyWith(void Function(HistoryRequest) updates) => super.copyWith((message) => updates(message as HistoryRequest)) as HistoryRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static HistoryRequest create() => HistoryRequest._(); HistoryRequest createEmptyInstance() => create(); @@ -2994,33 +3222,34 @@ 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') - ..a<$fixnum.Int64>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'offset', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..hasRequiredFields = false - ; - - HistoryResult._() : super(); factory HistoryResult({ $core.Iterable? publications, $core.String? epoch, $fixnum.Int64? offset, }) { - final _result = create(); + final $result = create(); if (publications != null) { - _result.publications.addAll(publications); + $result.publications.addAll(publications); } if (epoch != null) { - _result.epoch = epoch; + $result.epoch = epoch; } if (offset != null) { - _result.offset = offset; + $result.offset = offset; } - return _result; + return $result; } + HistoryResult._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'HistoryResult', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'publications', $pb.PbFieldType.PM, subBuilder: Publication.create) + ..aOS(2, _omitFieldNames ? '' : 'epoch') + ..a<$fixnum.Int64>(3, _omitFieldNames ? '' : 'offset', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -3030,8 +3259,10 @@ class HistoryResult extends $pb.GeneratedMessage { '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 + HistoryResult copyWith(void Function(HistoryResult) updates) => super.copyWith((message) => updates(message as HistoryResult)) as HistoryResult; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static HistoryResult create() => HistoryResult._(); HistoryResult createEmptyInstance() => create(); @@ -3063,14 +3294,15 @@ 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 - ; - - PingRequest._() : super(); factory PingRequest() => create(); + PingRequest._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PingRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -3080,8 +3312,10 @@ class PingRequest extends $pb.GeneratedMessage { '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 + PingRequest copyWith(void Function(PingRequest) updates) => super.copyWith((message) => updates(message as PingRequest)) as PingRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static PingRequest create() => PingRequest._(); PingRequest createEmptyInstance() => create(); @@ -3092,14 +3326,15 @@ class PingRequest extends $pb.GeneratedMessage { } 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 - ; - - PingResult._() : super(); factory PingResult() => create(); + PingResult._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PingResult', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -3109,8 +3344,10 @@ class PingResult extends $pb.GeneratedMessage { '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 + PingResult copyWith(void Function(PingResult) updates) => super.copyWith((message) => updates(message as PingResult)) as PingResult; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static PingResult create() => PingResult._(); PingResult createEmptyInstance() => create(); @@ -3121,28 +3358,29 @@ class PingResult extends $pb.GeneratedMessage { } 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 - ; - - RPCRequest._() : super(); factory RPCRequest({ $core.List<$core.int>? data, $core.String? method, }) { - final _result = create(); + final $result = create(); if (data != null) { - _result.data = data; + $result.data = data; } if (method != null) { - _result.method = method; + $result.method = method; } - return _result; + return $result; } + RPCRequest._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RPCRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'data', $pb.PbFieldType.OY) + ..aOS(2, _omitFieldNames ? '' : 'method') + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -3152,8 +3390,10 @@ class RPCRequest extends $pb.GeneratedMessage { '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 + RPCRequest copyWith(void Function(RPCRequest) updates) => super.copyWith((message) => updates(message as RPCRequest)) as RPCRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static RPCRequest create() => RPCRequest._(); RPCRequest createEmptyInstance() => create(); @@ -3182,23 +3422,24 @@ 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 - ; - - RPCResult._() : super(); factory RPCResult({ $core.List<$core.int>? data, }) { - final _result = create(); + final $result = create(); if (data != null) { - _result.data = data; + $result.data = data; } - return _result; + return $result; } + RPCResult._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RPCResult', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'data', $pb.PbFieldType.OY) + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -3208,8 +3449,10 @@ class RPCResult extends $pb.GeneratedMessage { '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 + RPCResult copyWith(void Function(RPCResult) updates) => super.copyWith((message) => updates(message as RPCResult)) as RPCResult; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static RPCResult create() => RPCResult._(); RPCResult createEmptyInstance() => create(); @@ -3229,23 +3472,24 @@ 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 - ; - - SendRequest._() : super(); factory SendRequest({ $core.List<$core.int>? data, }) { - final _result = create(); + final $result = create(); if (data != null) { - _result.data = data; + $result.data = data; } - return _result; + return $result; } + SendRequest._() : super(); 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SendRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'centrifugal.centrifuge.protocol'), createEmptyInstance: create) + ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'data', $pb.PbFieldType.OY) + ..hasRequiredFields = false + ; + @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -3255,8 +3499,10 @@ class SendRequest extends $pb.GeneratedMessage { '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 + SendRequest copyWith(void Function(SendRequest) updates) => super.copyWith((message) => updates(message as SendRequest)) as SendRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SendRequest create() => SendRequest._(); SendRequest createEmptyInstance() => create(); @@ -3275,3 +3521,6 @@ class SendRequest extends $pb.GeneratedMessage { void clearData() => clearField(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/src/proto/client.pbenum.dart b/lib/src/proto/client.pbenum.dart index 7bab1b1..dd571a0 100644 --- a/lib/src/proto/client.pbenum.dart +++ b/lib/src/proto/client.pbenum.dart @@ -1,7 +1,11 @@ -/// +// // Generated code. Do not modify. // source: client.proto // // @dart = 2.12 -// 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 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import diff --git a/lib/src/proto/client.pbjson.dart b/lib/src/proto/client.pbjson.dart index df5f606..f020ec7 100644 --- a/lib/src/proto/client.pbjson.dart +++ b/lib/src/proto/client.pbjson.dart @@ -1,586 +1,795 @@ -/// +// // Generated code. Do not modify. // source: client.proto // // @dart = 2.12 -// 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 -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import + import 'dart:convert' as $convert; +import 'dart:core' as $core; import 'dart:typed_data' as $typed_data; + @$core.Deprecated('Use errorDescriptor instead') -const Error$json = const { +const Error$json = { '1': 'Error', - '2': const [ - const {'1': 'code', '3': 1, '4': 1, '5': 13, '10': 'code'}, - const {'1': 'message', '3': 2, '4': 1, '5': 9, '10': 'message'}, - const {'1': 'temporary', '3': 3, '4': 1, '5': 8, '10': 'temporary'}, + '2': [ + {'1': 'code', '3': 1, '4': 1, '5': 13, '10': 'code'}, + {'1': 'message', '3': 2, '4': 1, '5': 9, '10': 'message'}, + {'1': 'temporary', '3': 3, '4': 1, '5': 8, '10': 'temporary'}, ], }; /// Descriptor for `Error`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List errorDescriptor = $convert.base64Decode('CgVFcnJvchISCgRjb2RlGAEgASgNUgRjb2RlEhgKB21lc3NhZ2UYAiABKAlSB21lc3NhZ2USHAoJdGVtcG9yYXJ5GAMgASgIUgl0ZW1wb3Jhcnk='); +final $typed_data.Uint8List errorDescriptor = $convert.base64Decode( + 'CgVFcnJvchISCgRjb2RlGAEgASgNUgRjb2RlEhgKB21lc3NhZ2UYAiABKAlSB21lc3NhZ2USHA' + 'oJdGVtcG9yYXJ5GAMgASgIUgl0ZW1wb3Jhcnk='); + @$core.Deprecated('Use emulationRequestDescriptor instead') -const EmulationRequest$json = const { +const EmulationRequest$json = { '1': 'EmulationRequest', - '2': const [ - const {'1': 'node', '3': 1, '4': 1, '5': 9, '10': 'node'}, - const {'1': 'session', '3': 2, '4': 1, '5': 9, '10': 'session'}, - const {'1': 'data', '3': 3, '4': 1, '5': 12, '10': 'data'}, + '2': [ + {'1': 'node', '3': 1, '4': 1, '5': 9, '10': 'node'}, + {'1': 'session', '3': 2, '4': 1, '5': 9, '10': 'session'}, + {'1': 'data', '3': 3, '4': 1, '5': 12, '10': 'data'}, ], }; /// Descriptor for `EmulationRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List emulationRequestDescriptor = $convert.base64Decode('ChBFbXVsYXRpb25SZXF1ZXN0EhIKBG5vZGUYASABKAlSBG5vZGUSGAoHc2Vzc2lvbhgCIAEoCVIHc2Vzc2lvbhISCgRkYXRhGAMgASgMUgRkYXRh'); +final $typed_data.Uint8List emulationRequestDescriptor = $convert.base64Decode( + 'ChBFbXVsYXRpb25SZXF1ZXN0EhIKBG5vZGUYASABKAlSBG5vZGUSGAoHc2Vzc2lvbhgCIAEoCV' + 'IHc2Vzc2lvbhISCgRkYXRhGAMgASgMUgRkYXRh'); + @$core.Deprecated('Use commandDescriptor instead') -const Command$json = const { +const Command$json = { '1': 'Command', - '2': const [ - const {'1': 'id', '3': 1, '4': 1, '5': 13, '10': 'id'}, - 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'}, - ], - '9': const [ - const {'1': 2, '2': 3}, - const {'1': 3, '2': 4}, + '2': [ + {'1': 'id', '3': 1, '4': 1, '5': 13, '10': 'id'}, + {'1': 'connect', '3': 4, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.ConnectRequest', '10': 'connect'}, + {'1': 'subscribe', '3': 5, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.SubscribeRequest', '10': 'subscribe'}, + {'1': 'unsubscribe', '3': 6, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.UnsubscribeRequest', '10': 'unsubscribe'}, + {'1': 'publish', '3': 7, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.PublishRequest', '10': 'publish'}, + {'1': 'presence', '3': 8, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.PresenceRequest', '10': 'presence'}, + {'1': 'presence_stats', '3': 9, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.PresenceStatsRequest', '10': 'presenceStats'}, + {'1': 'history', '3': 10, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.HistoryRequest', '10': 'history'}, + {'1': 'ping', '3': 11, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.PingRequest', '10': 'ping'}, + {'1': 'send', '3': 12, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.SendRequest', '10': 'send'}, + {'1': 'rpc', '3': 13, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.RPCRequest', '10': 'rpc'}, + {'1': 'refresh', '3': 14, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.RefreshRequest', '10': 'refresh'}, + {'1': 'sub_refresh', '3': 15, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.SubRefreshRequest', '10': 'subRefresh'}, + ], + '9': [ + {'1': 2, '2': 3}, + {'1': 3, '2': 4}, ], }; /// Descriptor for `Command`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List commandDescriptor = $convert.base64Decode('CgdDb21tYW5kEg4KAmlkGAEgASgNUgJpZBJJCgdjb25uZWN0GAQgASgLMi8uY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5Db25uZWN0UmVxdWVzdFIHY29ubmVjdBJPCglzdWJzY3JpYmUYBSABKAsyMS5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLlN1YnNjcmliZVJlcXVlc3RSCXN1YnNjcmliZRJVCgt1bnN1YnNjcmliZRgGIAEoCzIzLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuVW5zdWJzY3JpYmVSZXF1ZXN0Ugt1bnN1YnNjcmliZRJJCgdwdWJsaXNoGAcgASgLMi8uY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5QdWJsaXNoUmVxdWVzdFIHcHVibGlzaBJMCghwcmVzZW5jZRgIIAEoCzIwLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuUHJlc2VuY2VSZXF1ZXN0UghwcmVzZW5jZRJcCg5wcmVzZW5jZV9zdGF0cxgJIAEoCzI1LmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuUHJlc2VuY2VTdGF0c1JlcXVlc3RSDXByZXNlbmNlU3RhdHMSSQoHaGlzdG9yeRgKIAEoCzIvLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuSGlzdG9yeVJlcXVlc3RSB2hpc3RvcnkSQAoEcGluZxgLIAEoCzIsLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuUGluZ1JlcXVlc3RSBHBpbmcSQAoEc2VuZBgMIAEoCzIsLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuU2VuZFJlcXVlc3RSBHNlbmQSPQoDcnBjGA0gASgLMisuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5SUENSZXF1ZXN0UgNycGMSSQoHcmVmcmVzaBgOIAEoCzIvLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuUmVmcmVzaFJlcXVlc3RSB3JlZnJlc2gSUwoLc3ViX3JlZnJlc2gYDyABKAsyMi5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLlN1YlJlZnJlc2hSZXF1ZXN0UgpzdWJSZWZyZXNoSgQIAhADSgQIAxAE'); +final $typed_data.Uint8List commandDescriptor = $convert.base64Decode( + 'CgdDb21tYW5kEg4KAmlkGAEgASgNUgJpZBJJCgdjb25uZWN0GAQgASgLMi8uY2VudHJpZnVnYW' + 'wuY2VudHJpZnVnZS5wcm90b2NvbC5Db25uZWN0UmVxdWVzdFIHY29ubmVjdBJPCglzdWJzY3Jp' + 'YmUYBSABKAsyMS5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLlN1YnNjcmliZVJlcX' + 'Vlc3RSCXN1YnNjcmliZRJVCgt1bnN1YnNjcmliZRgGIAEoCzIzLmNlbnRyaWZ1Z2FsLmNlbnRy' + 'aWZ1Z2UucHJvdG9jb2wuVW5zdWJzY3JpYmVSZXF1ZXN0Ugt1bnN1YnNjcmliZRJJCgdwdWJsaX' + 'NoGAcgASgLMi8uY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5QdWJsaXNoUmVxdWVz' + 'dFIHcHVibGlzaBJMCghwcmVzZW5jZRgIIAEoCzIwLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucH' + 'JvdG9jb2wuUHJlc2VuY2VSZXF1ZXN0UghwcmVzZW5jZRJcCg5wcmVzZW5jZV9zdGF0cxgJIAEo' + 'CzI1LmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuUHJlc2VuY2VTdGF0c1JlcXVlc3' + 'RSDXByZXNlbmNlU3RhdHMSSQoHaGlzdG9yeRgKIAEoCzIvLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1' + 'Z2UucHJvdG9jb2wuSGlzdG9yeVJlcXVlc3RSB2hpc3RvcnkSQAoEcGluZxgLIAEoCzIsLmNlbn' + 'RyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuUGluZ1JlcXVlc3RSBHBpbmcSQAoEc2VuZBgM' + 'IAEoCzIsLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuU2VuZFJlcXVlc3RSBHNlbm' + 'QSPQoDcnBjGA0gASgLMisuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5SUENSZXF1' + 'ZXN0UgNycGMSSQoHcmVmcmVzaBgOIAEoCzIvLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG' + '9jb2wuUmVmcmVzaFJlcXVlc3RSB3JlZnJlc2gSUwoLc3ViX3JlZnJlc2gYDyABKAsyMi5jZW50' + 'cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLlN1YlJlZnJlc2hSZXF1ZXN0UgpzdWJSZWZyZX' + 'NoSgQIAhADSgQIAxAE'); + @$core.Deprecated('Use replyDescriptor instead') -const Reply$json = const { +const Reply$json = { '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': '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'}, - ], - '9': const [ - const {'1': 3, '2': 4}, + '2': [ + {'1': 'id', '3': 1, '4': 1, '5': 13, '10': 'id'}, + {'1': 'error', '3': 2, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.Error', '10': 'error'}, + {'1': 'push', '3': 4, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.Push', '10': 'push'}, + {'1': 'connect', '3': 5, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.ConnectResult', '10': 'connect'}, + {'1': 'subscribe', '3': 6, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.SubscribeResult', '10': 'subscribe'}, + {'1': 'unsubscribe', '3': 7, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.UnsubscribeResult', '10': 'unsubscribe'}, + {'1': 'publish', '3': 8, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.PublishResult', '10': 'publish'}, + {'1': 'presence', '3': 9, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.PresenceResult', '10': 'presence'}, + {'1': 'presence_stats', '3': 10, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.PresenceStatsResult', '10': 'presenceStats'}, + {'1': 'history', '3': 11, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.HistoryResult', '10': 'history'}, + {'1': 'ping', '3': 12, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.PingResult', '10': 'ping'}, + {'1': 'rpc', '3': 13, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.RPCResult', '10': 'rpc'}, + {'1': 'refresh', '3': 14, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.RefreshResult', '10': 'refresh'}, + {'1': 'sub_refresh', '3': 15, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.SubRefreshResult', '10': 'subRefresh'}, + ], + '9': [ + {'1': 3, '2': 4}, ], }; /// Descriptor for `Reply`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List replyDescriptor = $convert.base64Decode('CgVSZXBseRIOCgJpZBgBIAEoDVICaWQSPAoFZXJyb3IYAiABKAsyJi5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkVycm9yUgVlcnJvchI5CgRwdXNoGAQgASgLMiUuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5QdXNoUgRwdXNoEkgKB2Nvbm5lY3QYBSABKAsyLi5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkNvbm5lY3RSZXN1bHRSB2Nvbm5lY3QSTgoJc3Vic2NyaWJlGAYgASgLMjAuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5TdWJzY3JpYmVSZXN1bHRSCXN1YnNjcmliZRJUCgt1bnN1YnNjcmliZRgHIAEoCzIyLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuVW5zdWJzY3JpYmVSZXN1bHRSC3Vuc3Vic2NyaWJlEkgKB3B1Ymxpc2gYCCABKAsyLi5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLlB1Ymxpc2hSZXN1bHRSB3B1Ymxpc2gSSwoIcHJlc2VuY2UYCSABKAsyLy5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLlByZXNlbmNlUmVzdWx0UghwcmVzZW5jZRJbCg5wcmVzZW5jZV9zdGF0cxgKIAEoCzI0LmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuUHJlc2VuY2VTdGF0c1Jlc3VsdFINcHJlc2VuY2VTdGF0cxJICgdoaXN0b3J5GAsgASgLMi4uY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5IaXN0b3J5UmVzdWx0UgdoaXN0b3J5Ej8KBHBpbmcYDCABKAsyKy5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLlBpbmdSZXN1bHRSBHBpbmcSPAoDcnBjGA0gASgLMiouY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5SUENSZXN1bHRSA3JwYxJICgdyZWZyZXNoGA4gASgLMi4uY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5SZWZyZXNoUmVzdWx0UgdyZWZyZXNoElIKC3N1Yl9yZWZyZXNoGA8gASgLMjEuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5TdWJSZWZyZXNoUmVzdWx0UgpzdWJSZWZyZXNoSgQIAxAE'); +final $typed_data.Uint8List replyDescriptor = $convert.base64Decode( + 'CgVSZXBseRIOCgJpZBgBIAEoDVICaWQSPAoFZXJyb3IYAiABKAsyJi5jZW50cmlmdWdhbC5jZW' + '50cmlmdWdlLnByb3RvY29sLkVycm9yUgVlcnJvchI5CgRwdXNoGAQgASgLMiUuY2VudHJpZnVn' + 'YWwuY2VudHJpZnVnZS5wcm90b2NvbC5QdXNoUgRwdXNoEkgKB2Nvbm5lY3QYBSABKAsyLi5jZW' + '50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkNvbm5lY3RSZXN1bHRSB2Nvbm5lY3QSTgoJ' + 'c3Vic2NyaWJlGAYgASgLMjAuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5TdWJzY3' + 'JpYmVSZXN1bHRSCXN1YnNjcmliZRJUCgt1bnN1YnNjcmliZRgHIAEoCzIyLmNlbnRyaWZ1Z2Fs' + 'LmNlbnRyaWZ1Z2UucHJvdG9jb2wuVW5zdWJzY3JpYmVSZXN1bHRSC3Vuc3Vic2NyaWJlEkgKB3' + 'B1Ymxpc2gYCCABKAsyLi5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLlB1Ymxpc2hS' + 'ZXN1bHRSB3B1Ymxpc2gSSwoIcHJlc2VuY2UYCSABKAsyLy5jZW50cmlmdWdhbC5jZW50cmlmdW' + 'dlLnByb3RvY29sLlByZXNlbmNlUmVzdWx0UghwcmVzZW5jZRJbCg5wcmVzZW5jZV9zdGF0cxgK' + 'IAEoCzI0LmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuUHJlc2VuY2VTdGF0c1Jlc3' + 'VsdFINcHJlc2VuY2VTdGF0cxJICgdoaXN0b3J5GAsgASgLMi4uY2VudHJpZnVnYWwuY2VudHJp' + 'ZnVnZS5wcm90b2NvbC5IaXN0b3J5UmVzdWx0UgdoaXN0b3J5Ej8KBHBpbmcYDCABKAsyKy5jZW' + '50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLlBpbmdSZXN1bHRSBHBpbmcSPAoDcnBjGA0g' + 'ASgLMiouY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5SUENSZXN1bHRSA3JwYxJICg' + 'dyZWZyZXNoGA4gASgLMi4uY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5SZWZyZXNo' + 'UmVzdWx0UgdyZWZyZXNoElIKC3N1Yl9yZWZyZXNoGA8gASgLMjEuY2VudHJpZnVnYWwuY2VudH' + 'JpZnVnZS5wcm90b2NvbC5TdWJSZWZyZXNoUmVzdWx0UgpzdWJSZWZyZXNoSgQIAxAE'); + @$core.Deprecated('Use pushDescriptor instead') -const Push$json = const { +const Push$json = { '1': 'Push', - '2': const [ - const {'1': 'channel', '3': 2, '4': 1, '5': 9, '10': 'channel'}, - 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'}, + '2': [ + {'1': 'channel', '3': 2, '4': 1, '5': 9, '10': 'channel'}, + {'1': 'pub', '3': 4, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.Publication', '10': 'pub'}, + {'1': 'join', '3': 5, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.Join', '10': 'join'}, + {'1': 'leave', '3': 6, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.Leave', '10': 'leave'}, + {'1': 'unsubscribe', '3': 7, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.Unsubscribe', '10': 'unsubscribe'}, + {'1': 'message', '3': 8, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.Message', '10': 'message'}, + {'1': 'subscribe', '3': 9, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.Subscribe', '10': 'subscribe'}, + {'1': 'connect', '3': 10, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.Connect', '10': 'connect'}, + {'1': 'disconnect', '3': 11, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.Disconnect', '10': 'disconnect'}, + {'1': 'refresh', '3': 12, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.Refresh', '10': 'refresh'}, ], - '9': const [ - const {'1': 1, '2': 2}, - const {'1': 3, '2': 4}, + '9': [ + {'1': 1, '2': 2}, + {'1': 3, '2': 4}, ], }; /// Descriptor for `Push`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List pushDescriptor = $convert.base64Decode('CgRQdXNoEhgKB2NoYW5uZWwYAiABKAlSB2NoYW5uZWwSPgoDcHViGAQgASgLMiwuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5QdWJsaWNhdGlvblIDcHViEjkKBGpvaW4YBSABKAsyJS5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkpvaW5SBGpvaW4SPAoFbGVhdmUYBiABKAsyJi5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkxlYXZlUgVsZWF2ZRJOCgt1bnN1YnNjcmliZRgHIAEoCzIsLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuVW5zdWJzY3JpYmVSC3Vuc3Vic2NyaWJlEkIKB21lc3NhZ2UYCCABKAsyKC5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLk1lc3NhZ2VSB21lc3NhZ2USSAoJc3Vic2NyaWJlGAkgASgLMiouY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5TdWJzY3JpYmVSCXN1YnNjcmliZRJCCgdjb25uZWN0GAogASgLMiguY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5Db25uZWN0Ugdjb25uZWN0EksKCmRpc2Nvbm5lY3QYCyABKAsyKy5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkRpc2Nvbm5lY3RSCmRpc2Nvbm5lY3QSQgoHcmVmcmVzaBgMIAEoCzIoLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuUmVmcmVzaFIHcmVmcmVzaEoECAEQAkoECAMQBA=='); +final $typed_data.Uint8List pushDescriptor = $convert.base64Decode( + 'CgRQdXNoEhgKB2NoYW5uZWwYAiABKAlSB2NoYW5uZWwSPgoDcHViGAQgASgLMiwuY2VudHJpZn' + 'VnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5QdWJsaWNhdGlvblIDcHViEjkKBGpvaW4YBSABKAsy' + 'JS5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkpvaW5SBGpvaW4SPAoFbGVhdmUYBi' + 'ABKAsyJi5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkxlYXZlUgVsZWF2ZRJOCgt1' + 'bnN1YnNjcmliZRgHIAEoCzIsLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuVW5zdW' + 'JzY3JpYmVSC3Vuc3Vic2NyaWJlEkIKB21lc3NhZ2UYCCABKAsyKC5jZW50cmlmdWdhbC5jZW50' + 'cmlmdWdlLnByb3RvY29sLk1lc3NhZ2VSB21lc3NhZ2USSAoJc3Vic2NyaWJlGAkgASgLMiouY2' + 'VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5TdWJzY3JpYmVSCXN1YnNjcmliZRJCCgdj' + 'b25uZWN0GAogASgLMiguY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5Db25uZWN0Ug' + 'djb25uZWN0EksKCmRpc2Nvbm5lY3QYCyABKAsyKy5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnBy' + 'b3RvY29sLkRpc2Nvbm5lY3RSCmRpc2Nvbm5lY3QSQgoHcmVmcmVzaBgMIAEoCzIoLmNlbnRyaW' + 'Z1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuUmVmcmVzaFIHcmVmcmVzaEoECAEQAkoECAMQBA=='); + @$core.Deprecated('Use clientInfoDescriptor instead') -const ClientInfo$json = const { +const ClientInfo$json = { '1': 'ClientInfo', - '2': const [ - const {'1': 'user', '3': 1, '4': 1, '5': 9, '10': 'user'}, - const {'1': 'client', '3': 2, '4': 1, '5': 9, '10': 'client'}, - const {'1': 'conn_info', '3': 3, '4': 1, '5': 12, '10': 'connInfo'}, - const {'1': 'chan_info', '3': 4, '4': 1, '5': 12, '10': 'chanInfo'}, + '2': [ + {'1': 'user', '3': 1, '4': 1, '5': 9, '10': 'user'}, + {'1': 'client', '3': 2, '4': 1, '5': 9, '10': 'client'}, + {'1': 'conn_info', '3': 3, '4': 1, '5': 12, '10': 'connInfo'}, + {'1': 'chan_info', '3': 4, '4': 1, '5': 12, '10': 'chanInfo'}, ], }; /// Descriptor for `ClientInfo`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List clientInfoDescriptor = $convert.base64Decode('CgpDbGllbnRJbmZvEhIKBHVzZXIYASABKAlSBHVzZXISFgoGY2xpZW50GAIgASgJUgZjbGllbnQSGwoJY29ubl9pbmZvGAMgASgMUghjb25uSW5mbxIbCgljaGFuX2luZm8YBCABKAxSCGNoYW5JbmZv'); +final $typed_data.Uint8List clientInfoDescriptor = $convert.base64Decode( + 'CgpDbGllbnRJbmZvEhIKBHVzZXIYASABKAlSBHVzZXISFgoGY2xpZW50GAIgASgJUgZjbGllbn' + 'QSGwoJY29ubl9pbmZvGAMgASgMUghjb25uSW5mbxIbCgljaGFuX2luZm8YBCABKAxSCGNoYW5J' + 'bmZv'); + @$core.Deprecated('Use publicationDescriptor instead') -const Publication$json = const { +const Publication$json = { '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': 'offset', '3': 6, '4': 1, '5': 4, '10': 'offset'}, - const {'1': 'tags', '3': 7, '4': 3, '5': 11, '6': '.centrifugal.centrifuge.protocol.Publication.TagsEntry', '10': 'tags'}, + '2': [ + {'1': 'data', '3': 4, '4': 1, '5': 12, '10': 'data'}, + {'1': 'info', '3': 5, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.ClientInfo', '10': 'info'}, + {'1': 'offset', '3': 6, '4': 1, '5': 4, '10': 'offset'}, + {'1': 'tags', '3': 7, '4': 3, '5': 11, '6': '.centrifugal.centrifuge.protocol.Publication.TagsEntry', '10': 'tags'}, + {'1': 'delta', '3': 8, '4': 1, '5': 8, '10': 'delta'}, + {'1': 'time', '3': 9, '4': 1, '5': 3, '10': 'time'}, + {'1': 'channel', '3': 10, '4': 1, '5': 9, '10': 'channel'}, ], - '3': const [Publication_TagsEntry$json], - '9': const [ - const {'1': 1, '2': 2}, - const {'1': 2, '2': 3}, - const {'1': 3, '2': 4}, + '3': [Publication_TagsEntry$json], + '9': [ + {'1': 1, '2': 2}, + {'1': 2, '2': 3}, + {'1': 3, '2': 4}, ], }; @$core.Deprecated('Use publicationDescriptor instead') -const Publication_TagsEntry$json = const { +const Publication_TagsEntry$json = { '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'}, + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, ], - '7': const {'7': true}, + '7': {'7': true}, }; /// Descriptor for `Publication`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List publicationDescriptor = $convert.base64Decode('CgtQdWJsaWNhdGlvbhISCgRkYXRhGAQgASgMUgRkYXRhEj8KBGluZm8YBSABKAsyKy5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkNsaWVudEluZm9SBGluZm8SFgoGb2Zmc2V0GAYgASgEUgZvZmZzZXQSSgoEdGFncxgHIAMoCzI2LmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuUHVibGljYXRpb24uVGFnc0VudHJ5UgR0YWdzGjcKCVRhZ3NFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgBSgQIARACSgQIAhADSgQIAxAE'); +final $typed_data.Uint8List publicationDescriptor = $convert.base64Decode( + 'CgtQdWJsaWNhdGlvbhISCgRkYXRhGAQgASgMUgRkYXRhEj8KBGluZm8YBSABKAsyKy5jZW50cm' + 'lmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkNsaWVudEluZm9SBGluZm8SFgoGb2Zmc2V0GAYg' + 'ASgEUgZvZmZzZXQSSgoEdGFncxgHIAMoCzI2LmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG' + '9jb2wuUHVibGljYXRpb24uVGFnc0VudHJ5UgR0YWdzEhQKBWRlbHRhGAggASgIUgVkZWx0YRIS' + 'CgR0aW1lGAkgASgDUgR0aW1lEhgKB2NoYW5uZWwYCiABKAlSB2NoYW5uZWwaNwoJVGFnc0VudH' + 'J5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAFKBAgBEAJKBAgC' + 'EANKBAgDEAQ='); + @$core.Deprecated('Use joinDescriptor instead') -const Join$json = const { +const Join$json = { '1': 'Join', - '2': const [ - const {'1': 'info', '3': 1, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.ClientInfo', '10': 'info'}, + '2': [ + {'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( + 'CgRKb2luEj8KBGluZm8YASABKAsyKy5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLk' + 'NsaWVudEluZm9SBGluZm8='); + @$core.Deprecated('Use leaveDescriptor instead') -const Leave$json = const { +const Leave$json = { '1': 'Leave', - '2': const [ - const {'1': 'info', '3': 1, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.ClientInfo', '10': 'info'}, + '2': [ + {'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/CgRpbmZvGAEgASgLMisuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC' + '5DbGllbnRJbmZvUgRpbmZv'); + @$core.Deprecated('Use unsubscribeDescriptor instead') -const Unsubscribe$json = const { +const Unsubscribe$json = { '1': 'Unsubscribe', - '2': const [ - const {'1': 'code', '3': 2, '4': 1, '5': 13, '10': 'code'}, - const {'1': 'reason', '3': 3, '4': 1, '5': 9, '10': 'reason'}, + '2': [ + {'1': 'code', '3': 2, '4': 1, '5': 13, '10': 'code'}, + {'1': 'reason', '3': 3, '4': 1, '5': 9, '10': 'reason'}, ], - '9': const [ - const {'1': 1, '2': 2}, + '9': [ + {'1': 1, '2': 2}, ], }; /// Descriptor for `Unsubscribe`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List unsubscribeDescriptor = $convert.base64Decode('CgtVbnN1YnNjcmliZRISCgRjb2RlGAIgASgNUgRjb2RlEhYKBnJlYXNvbhgDIAEoCVIGcmVhc29uSgQIARAC'); +final $typed_data.Uint8List unsubscribeDescriptor = $convert.base64Decode( + 'CgtVbnN1YnNjcmliZRISCgRjb2RlGAIgASgNUgRjb2RlEhYKBnJlYXNvbhgDIAEoCVIGcmVhc2' + '9uSgQIARAC'); + @$core.Deprecated('Use subscribeDescriptor instead') -const Subscribe$json = const { +const Subscribe$json = { '1': 'Subscribe', - '2': const [ - const {'1': 'recoverable', '3': 1, '4': 1, '5': 8, '10': 'recoverable'}, - const {'1': 'epoch', '3': 4, '4': 1, '5': 9, '10': 'epoch'}, - const {'1': 'offset', '3': 5, '4': 1, '5': 4, '10': 'offset'}, - const {'1': 'positioned', '3': 6, '4': 1, '5': 8, '10': 'positioned'}, - const {'1': 'data', '3': 7, '4': 1, '5': 12, '10': 'data'}, + '2': [ + {'1': 'recoverable', '3': 1, '4': 1, '5': 8, '10': 'recoverable'}, + {'1': 'epoch', '3': 4, '4': 1, '5': 9, '10': 'epoch'}, + {'1': 'offset', '3': 5, '4': 1, '5': 4, '10': 'offset'}, + {'1': 'positioned', '3': 6, '4': 1, '5': 8, '10': 'positioned'}, + {'1': 'data', '3': 7, '4': 1, '5': 12, '10': 'data'}, ], - '9': const [ - const {'1': 2, '2': 3}, - const {'1': 3, '2': 4}, + '9': [ + {'1': 2, '2': 3}, + {'1': 3, '2': 4}, ], }; /// Descriptor for `Subscribe`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List subscribeDescriptor = $convert.base64Decode('CglTdWJzY3JpYmUSIAoLcmVjb3ZlcmFibGUYASABKAhSC3JlY292ZXJhYmxlEhQKBWVwb2NoGAQgASgJUgVlcG9jaBIWCgZvZmZzZXQYBSABKARSBm9mZnNldBIeCgpwb3NpdGlvbmVkGAYgASgIUgpwb3NpdGlvbmVkEhIKBGRhdGEYByABKAxSBGRhdGFKBAgCEANKBAgDEAQ='); +final $typed_data.Uint8List subscribeDescriptor = $convert.base64Decode( + 'CglTdWJzY3JpYmUSIAoLcmVjb3ZlcmFibGUYASABKAhSC3JlY292ZXJhYmxlEhQKBWVwb2NoGA' + 'QgASgJUgVlcG9jaBIWCgZvZmZzZXQYBSABKARSBm9mZnNldBIeCgpwb3NpdGlvbmVkGAYgASgI' + 'Ugpwb3NpdGlvbmVkEhIKBGRhdGEYByABKAxSBGRhdGFKBAgCEANKBAgDEAQ='); + @$core.Deprecated('Use messageDescriptor instead') -const Message$json = const { +const Message$json = { '1': 'Message', - '2': const [ - const {'1': 'data', '3': 1, '4': 1, '5': 12, '10': 'data'}, + '2': [ + {'1': 'data', '3': 1, '4': 1, '5': 12, '10': 'data'}, ], }; /// 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 { +const Connect$json = { '1': 'Connect', - '2': 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': 'expires', '3': 5, '4': 1, '5': 8, '10': 'expires'}, - const {'1': 'ttl', '3': 6, '4': 1, '5': 13, '10': 'ttl'}, - const {'1': 'ping', '3': 7, '4': 1, '5': 13, '10': 'ping'}, - const {'1': 'pong', '3': 8, '4': 1, '5': 8, '10': 'pong'}, - const {'1': 'session', '3': 9, '4': 1, '5': 9, '10': 'session'}, - const {'1': 'node', '3': 10, '4': 1, '5': 9, '10': 'node'}, - ], - '3': const [Connect_SubsEntry$json], + '2': [ + {'1': 'client', '3': 1, '4': 1, '5': 9, '10': 'client'}, + {'1': 'version', '3': 2, '4': 1, '5': 9, '10': 'version'}, + {'1': 'data', '3': 3, '4': 1, '5': 12, '10': 'data'}, + {'1': 'subs', '3': 4, '4': 3, '5': 11, '6': '.centrifugal.centrifuge.protocol.Connect.SubsEntry', '10': 'subs'}, + {'1': 'expires', '3': 5, '4': 1, '5': 8, '10': 'expires'}, + {'1': 'ttl', '3': 6, '4': 1, '5': 13, '10': 'ttl'}, + {'1': 'ping', '3': 7, '4': 1, '5': 13, '10': 'ping'}, + {'1': 'pong', '3': 8, '4': 1, '5': 8, '10': 'pong'}, + {'1': 'session', '3': 9, '4': 1, '5': 9, '10': 'session'}, + {'1': 'node', '3': 10, '4': 1, '5': 9, '10': 'node'}, + {'1': 'time', '3': 11, '4': 1, '5': 3, '10': 'time'}, + ], + '3': [Connect_SubsEntry$json], }; @$core.Deprecated('Use connectDescriptor instead') -const Connect_SubsEntry$json = const { +const Connect_SubsEntry$json = { '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'}, + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.SubscribeResult', '10': 'value'}, ], - '7': const {'7': true}, + '7': {'7': true}, }; /// Descriptor for `Connect`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List connectDescriptor = $convert.base64Decode('CgdDb25uZWN0EhYKBmNsaWVudBgBIAEoCVIGY2xpZW50EhgKB3ZlcnNpb24YAiABKAlSB3ZlcnNpb24SEgoEZGF0YRgDIAEoDFIEZGF0YRJGCgRzdWJzGAQgAygLMjIuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5Db25uZWN0LlN1YnNFbnRyeVIEc3VicxIYCgdleHBpcmVzGAUgASgIUgdleHBpcmVzEhAKA3R0bBgGIAEoDVIDdHRsEhIKBHBpbmcYByABKA1SBHBpbmcSEgoEcG9uZxgIIAEoCFIEcG9uZxIYCgdzZXNzaW9uGAkgASgJUgdzZXNzaW9uEhIKBG5vZGUYCiABKAlSBG5vZGUaaQoJU3Vic0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EkYKBXZhbHVlGAIgASgLMjAuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5TdWJzY3JpYmVSZXN1bHRSBXZhbHVlOgI4AQ=='); +final $typed_data.Uint8List connectDescriptor = $convert.base64Decode( + 'CgdDb25uZWN0EhYKBmNsaWVudBgBIAEoCVIGY2xpZW50EhgKB3ZlcnNpb24YAiABKAlSB3Zlcn' + 'Npb24SEgoEZGF0YRgDIAEoDFIEZGF0YRJGCgRzdWJzGAQgAygLMjIuY2VudHJpZnVnYWwuY2Vu' + 'dHJpZnVnZS5wcm90b2NvbC5Db25uZWN0LlN1YnNFbnRyeVIEc3VicxIYCgdleHBpcmVzGAUgAS' + 'gIUgdleHBpcmVzEhAKA3R0bBgGIAEoDVIDdHRsEhIKBHBpbmcYByABKA1SBHBpbmcSEgoEcG9u' + 'ZxgIIAEoCFIEcG9uZxIYCgdzZXNzaW9uGAkgASgJUgdzZXNzaW9uEhIKBG5vZGUYCiABKAlSBG' + '5vZGUSEgoEdGltZRgLIAEoA1IEdGltZRppCglTdWJzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkS' + 'RgoFdmFsdWUYAiABKAsyMC5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLlN1YnNjcm' + 'liZVJlc3VsdFIFdmFsdWU6AjgB'); + @$core.Deprecated('Use disconnectDescriptor instead') -const Disconnect$json = const { +const Disconnect$json = { '1': 'Disconnect', - '2': const [ - const {'1': 'code', '3': 1, '4': 1, '5': 13, '10': 'code'}, - const {'1': 'reason', '3': 2, '4': 1, '5': 9, '10': 'reason'}, - const {'1': 'reconnect', '3': 3, '4': 1, '5': 8, '10': 'reconnect'}, + '2': [ + {'1': 'code', '3': 1, '4': 1, '5': 13, '10': 'code'}, + {'1': 'reason', '3': 2, '4': 1, '5': 9, '10': 'reason'}, + {'1': 'reconnect', '3': 3, '4': 1, '5': 8, '10': 'reconnect'}, ], }; /// Descriptor for `Disconnect`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List disconnectDescriptor = $convert.base64Decode('CgpEaXNjb25uZWN0EhIKBGNvZGUYASABKA1SBGNvZGUSFgoGcmVhc29uGAIgASgJUgZyZWFzb24SHAoJcmVjb25uZWN0GAMgASgIUglyZWNvbm5lY3Q='); +final $typed_data.Uint8List disconnectDescriptor = $convert.base64Decode( + 'CgpEaXNjb25uZWN0EhIKBGNvZGUYASABKA1SBGNvZGUSFgoGcmVhc29uGAIgASgJUgZyZWFzb2' + '4SHAoJcmVjb25uZWN0GAMgASgIUglyZWNvbm5lY3Q='); + @$core.Deprecated('Use refreshDescriptor instead') -const Refresh$json = const { +const Refresh$json = { '1': 'Refresh', - '2': const [ - const {'1': 'expires', '3': 1, '4': 1, '5': 8, '10': 'expires'}, - const {'1': 'ttl', '3': 2, '4': 1, '5': 13, '10': 'ttl'}, + '2': [ + {'1': 'expires', '3': 1, '4': 1, '5': 8, '10': 'expires'}, + {'1': 'ttl', '3': 2, '4': 1, '5': 13, '10': 'ttl'}, ], }; /// 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 { +const ConnectRequest$json = { '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': 'name', '3': 4, '4': 1, '5': 9, '10': 'name'}, - const {'1': 'version', '3': 5, '4': 1, '5': 9, '10': 'version'}, + '2': [ + {'1': 'token', '3': 1, '4': 1, '5': 9, '10': 'token'}, + {'1': 'data', '3': 2, '4': 1, '5': 12, '10': 'data'}, + {'1': 'subs', '3': 3, '4': 3, '5': 11, '6': '.centrifugal.centrifuge.protocol.ConnectRequest.SubsEntry', '10': 'subs'}, + {'1': 'name', '3': 4, '4': 1, '5': 9, '10': 'name'}, + {'1': 'version', '3': 5, '4': 1, '5': 9, '10': 'version'}, + {'1': 'headers', '3': 6, '4': 3, '5': 11, '6': '.centrifugal.centrifuge.protocol.ConnectRequest.HeadersEntry', '10': 'headers'}, ], - '3': const [ConnectRequest_SubsEntry$json], + '3': [ConnectRequest_SubsEntry$json, ConnectRequest_HeadersEntry$json], }; @$core.Deprecated('Use connectRequestDescriptor instead') -const ConnectRequest_SubsEntry$json = const { +const ConnectRequest_SubsEntry$json = { '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'}, + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.SubscribeRequest', '10': 'value'}, + ], + '7': {'7': true}, +}; + +@$core.Deprecated('Use connectRequestDescriptor instead') +const ConnectRequest_HeadersEntry$json = { + '1': 'HeadersEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, ], - '7': const {'7': true}, + '7': {'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( + 'Cg5Db25uZWN0UmVxdWVzdBIUCgV0b2tlbhgBIAEoCVIFdG9rZW4SEgoEZGF0YRgCIAEoDFIEZG' + 'F0YRJNCgRzdWJzGAMgAygLMjkuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5Db25u' + 'ZWN0UmVxdWVzdC5TdWJzRW50cnlSBHN1YnMSEgoEbmFtZRgEIAEoCVIEbmFtZRIYCgd2ZXJzaW' + '9uGAUgASgJUgd2ZXJzaW9uElYKB2hlYWRlcnMYBiADKAsyPC5jZW50cmlmdWdhbC5jZW50cmlm' + 'dWdlLnByb3RvY29sLkNvbm5lY3RSZXF1ZXN0LkhlYWRlcnNFbnRyeVIHaGVhZGVycxpqCglTdW' + 'JzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSRwoFdmFsdWUYAiABKAsyMS5jZW50cmlmdWdhbC5j' + 'ZW50cmlmdWdlLnByb3RvY29sLlN1YnNjcmliZVJlcXVlc3RSBXZhbHVlOgI4ARo6CgxIZWFkZX' + 'JzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4AQ=='); + @$core.Deprecated('Use connectResultDescriptor instead') -const ConnectResult$json = const { +const ConnectResult$json = { '1': 'ConnectResult', - '2': 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': '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': 'ping', '3': 7, '4': 1, '5': 13, '10': 'ping'}, - const {'1': 'pong', '3': 8, '4': 1, '5': 8, '10': 'pong'}, - const {'1': 'session', '3': 9, '4': 1, '5': 9, '10': 'session'}, - const {'1': 'node', '3': 10, '4': 1, '5': 9, '10': 'node'}, - ], - '3': const [ConnectResult_SubsEntry$json], + '2': [ + {'1': 'client', '3': 1, '4': 1, '5': 9, '10': 'client'}, + {'1': 'version', '3': 2, '4': 1, '5': 9, '10': 'version'}, + {'1': 'expires', '3': 3, '4': 1, '5': 8, '10': 'expires'}, + {'1': 'ttl', '3': 4, '4': 1, '5': 13, '10': 'ttl'}, + {'1': 'data', '3': 5, '4': 1, '5': 12, '10': 'data'}, + {'1': 'subs', '3': 6, '4': 3, '5': 11, '6': '.centrifugal.centrifuge.protocol.ConnectResult.SubsEntry', '10': 'subs'}, + {'1': 'ping', '3': 7, '4': 1, '5': 13, '10': 'ping'}, + {'1': 'pong', '3': 8, '4': 1, '5': 8, '10': 'pong'}, + {'1': 'session', '3': 9, '4': 1, '5': 9, '10': 'session'}, + {'1': 'node', '3': 10, '4': 1, '5': 9, '10': 'node'}, + {'1': 'time', '3': 11, '4': 1, '5': 3, '10': 'time'}, + ], + '3': [ConnectResult_SubsEntry$json], }; @$core.Deprecated('Use connectResultDescriptor instead') -const ConnectResult_SubsEntry$json = const { +const ConnectResult_SubsEntry$json = { '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'}, + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.SubscribeResult', '10': 'value'}, ], - '7': const {'7': true}, + '7': {'7': true}, }; /// Descriptor for `ConnectResult`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List connectResultDescriptor = $convert.base64Decode('Cg1Db25uZWN0UmVzdWx0EhYKBmNsaWVudBgBIAEoCVIGY2xpZW50EhgKB3ZlcnNpb24YAiABKAlSB3ZlcnNpb24SGAoHZXhwaXJlcxgDIAEoCFIHZXhwaXJlcxIQCgN0dGwYBCABKA1SA3R0bBISCgRkYXRhGAUgASgMUgRkYXRhEkwKBHN1YnMYBiADKAsyOC5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3RvY29sLkNvbm5lY3RSZXN1bHQuU3Vic0VudHJ5UgRzdWJzEhIKBHBpbmcYByABKA1SBHBpbmcSEgoEcG9uZxgIIAEoCFIEcG9uZxIYCgdzZXNzaW9uGAkgASgJUgdzZXNzaW9uEhIKBG5vZGUYCiABKAlSBG5vZGUaaQoJU3Vic0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EkYKBXZhbHVlGAIgASgLMjAuY2VudHJpZnVnYWwuY2VudHJpZnVnZS5wcm90b2NvbC5TdWJzY3JpYmVSZXN1bHRSBXZhbHVlOgI4AQ=='); +final $typed_data.Uint8List connectResultDescriptor = $convert.base64Decode( + 'Cg1Db25uZWN0UmVzdWx0EhYKBmNsaWVudBgBIAEoCVIGY2xpZW50EhgKB3ZlcnNpb24YAiABKA' + 'lSB3ZlcnNpb24SGAoHZXhwaXJlcxgDIAEoCFIHZXhwaXJlcxIQCgN0dGwYBCABKA1SA3R0bBIS' + 'CgRkYXRhGAUgASgMUgRkYXRhEkwKBHN1YnMYBiADKAsyOC5jZW50cmlmdWdhbC5jZW50cmlmdW' + 'dlLnByb3RvY29sLkNvbm5lY3RSZXN1bHQuU3Vic0VudHJ5UgRzdWJzEhIKBHBpbmcYByABKA1S' + 'BHBpbmcSEgoEcG9uZxgIIAEoCFIEcG9uZxIYCgdzZXNzaW9uGAkgASgJUgdzZXNzaW9uEhIKBG' + '5vZGUYCiABKAlSBG5vZGUSEgoEdGltZRgLIAEoA1IEdGltZRppCglTdWJzRW50cnkSEAoDa2V5' + 'GAEgASgJUgNrZXkSRgoFdmFsdWUYAiABKAsyMC5jZW50cmlmdWdhbC5jZW50cmlmdWdlLnByb3' + 'RvY29sLlN1YnNjcmliZVJlc3VsdFIFdmFsdWU6AjgB'); + @$core.Deprecated('Use refreshRequestDescriptor instead') -const RefreshRequest$json = const { +const RefreshRequest$json = { '1': 'RefreshRequest', - '2': const [ - const {'1': 'token', '3': 1, '4': 1, '5': 9, '10': 'token'}, + '2': [ + {'1': 'token', '3': 1, '4': 1, '5': 9, '10': 'token'}, ], }; /// 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 { +const RefreshResult$json = { '1': 'RefreshResult', - '2': 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': 'expires', '3': 3, '4': 1, '5': 8, '10': 'expires'}, - const {'1': 'ttl', '3': 4, '4': 1, '5': 13, '10': 'ttl'}, + '2': [ + {'1': 'client', '3': 1, '4': 1, '5': 9, '10': 'client'}, + {'1': 'version', '3': 2, '4': 1, '5': 9, '10': 'version'}, + {'1': 'expires', '3': 3, '4': 1, '5': 8, '10': 'expires'}, + {'1': 'ttl', '3': 4, '4': 1, '5': 13, '10': 'ttl'}, ], }; /// Descriptor for `RefreshResult`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List refreshResultDescriptor = $convert.base64Decode('Cg1SZWZyZXNoUmVzdWx0EhYKBmNsaWVudBgBIAEoCVIGY2xpZW50EhgKB3ZlcnNpb24YAiABKAlSB3ZlcnNpb24SGAoHZXhwaXJlcxgDIAEoCFIHZXhwaXJlcxIQCgN0dGwYBCABKA1SA3R0bA=='); +final $typed_data.Uint8List refreshResultDescriptor = $convert.base64Decode( + 'Cg1SZWZyZXNoUmVzdWx0EhYKBmNsaWVudBgBIAEoCVIGY2xpZW50EhgKB3ZlcnNpb24YAiABKA' + 'lSB3ZlcnNpb24SGAoHZXhwaXJlcxgDIAEoCFIHZXhwaXJlcxIQCgN0dGwYBCABKA1SA3R0bA=='); + @$core.Deprecated('Use subscribeRequestDescriptor instead') -const SubscribeRequest$json = const { +const SubscribeRequest$json = { '1': 'SubscribeRequest', - '2': const [ - const {'1': 'channel', '3': 1, '4': 1, '5': 9, '10': 'channel'}, - const {'1': 'token', '3': 2, '4': 1, '5': 9, '10': 'token'}, - 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'}, - const {'1': 'positioned', '3': 9, '4': 1, '5': 8, '10': 'positioned'}, - const {'1': 'recoverable', '3': 10, '4': 1, '5': 8, '10': 'recoverable'}, - const {'1': 'join_leave', '3': 11, '4': 1, '5': 8, '10': 'joinLeave'}, + '2': [ + {'1': 'channel', '3': 1, '4': 1, '5': 9, '10': 'channel'}, + {'1': 'token', '3': 2, '4': 1, '5': 9, '10': 'token'}, + {'1': 'recover', '3': 3, '4': 1, '5': 8, '10': 'recover'}, + {'1': 'epoch', '3': 6, '4': 1, '5': 9, '10': 'epoch'}, + {'1': 'offset', '3': 7, '4': 1, '5': 4, '10': 'offset'}, + {'1': 'data', '3': 8, '4': 1, '5': 12, '10': 'data'}, + {'1': 'positioned', '3': 9, '4': 1, '5': 8, '10': 'positioned'}, + {'1': 'recoverable', '3': 10, '4': 1, '5': 8, '10': 'recoverable'}, + {'1': 'join_leave', '3': 11, '4': 1, '5': 8, '10': 'joinLeave'}, + {'1': 'delta', '3': 12, '4': 1, '5': 9, '10': 'delta'}, ], - '9': const [ - const {'1': 4, '2': 5}, - const {'1': 5, '2': 6}, + '9': [ + {'1': 4, '2': 5}, + {'1': 5, '2': 6}, ], }; /// Descriptor for `SubscribeRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List subscribeRequestDescriptor = $convert.base64Decode('ChBTdWJzY3JpYmVSZXF1ZXN0EhgKB2NoYW5uZWwYASABKAlSB2NoYW5uZWwSFAoFdG9rZW4YAiABKAlSBXRva2VuEhgKB3JlY292ZXIYAyABKAhSB3JlY292ZXISFAoFZXBvY2gYBiABKAlSBWVwb2NoEhYKBm9mZnNldBgHIAEoBFIGb2Zmc2V0EhIKBGRhdGEYCCABKAxSBGRhdGESHgoKcG9zaXRpb25lZBgJIAEoCFIKcG9zaXRpb25lZBIgCgtyZWNvdmVyYWJsZRgKIAEoCFILcmVjb3ZlcmFibGUSHQoKam9pbl9sZWF2ZRgLIAEoCFIJam9pbkxlYXZlSgQIBBAFSgQIBRAG'); +final $typed_data.Uint8List subscribeRequestDescriptor = $convert.base64Decode( + 'ChBTdWJzY3JpYmVSZXF1ZXN0EhgKB2NoYW5uZWwYASABKAlSB2NoYW5uZWwSFAoFdG9rZW4YAi' + 'ABKAlSBXRva2VuEhgKB3JlY292ZXIYAyABKAhSB3JlY292ZXISFAoFZXBvY2gYBiABKAlSBWVw' + 'b2NoEhYKBm9mZnNldBgHIAEoBFIGb2Zmc2V0EhIKBGRhdGEYCCABKAxSBGRhdGESHgoKcG9zaX' + 'Rpb25lZBgJIAEoCFIKcG9zaXRpb25lZBIgCgtyZWNvdmVyYWJsZRgKIAEoCFILcmVjb3ZlcmFi' + 'bGUSHQoKam9pbl9sZWF2ZRgLIAEoCFIJam9pbkxlYXZlEhQKBWRlbHRhGAwgASgJUgVkZWx0YU' + 'oECAQQBUoECAUQBg=='); + @$core.Deprecated('Use subscribeResultDescriptor instead') -const SubscribeResult$json = const { +const SubscribeResult$json = { '1': 'SubscribeResult', - '2': const [ - const {'1': 'expires', '3': 1, '4': 1, '5': 8, '10': 'expires'}, - 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': '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'}, - const {'1': 'data', '3': 11, '4': 1, '5': 12, '10': 'data'}, - const {'1': 'was_recovering', '3': 12, '4': 1, '5': 8, '10': 'wasRecovering'}, + '2': [ + {'1': 'expires', '3': 1, '4': 1, '5': 8, '10': 'expires'}, + {'1': 'ttl', '3': 2, '4': 1, '5': 13, '10': 'ttl'}, + {'1': 'recoverable', '3': 3, '4': 1, '5': 8, '10': 'recoverable'}, + {'1': 'epoch', '3': 6, '4': 1, '5': 9, '10': 'epoch'}, + {'1': 'publications', '3': 7, '4': 3, '5': 11, '6': '.centrifugal.centrifuge.protocol.Publication', '10': 'publications'}, + {'1': 'recovered', '3': 8, '4': 1, '5': 8, '10': 'recovered'}, + {'1': 'offset', '3': 9, '4': 1, '5': 4, '10': 'offset'}, + {'1': 'positioned', '3': 10, '4': 1, '5': 8, '10': 'positioned'}, + {'1': 'data', '3': 11, '4': 1, '5': 12, '10': 'data'}, + {'1': 'was_recovering', '3': 12, '4': 1, '5': 8, '10': 'wasRecovering'}, + {'1': 'delta', '3': 13, '4': 1, '5': 8, '10': 'delta'}, ], - '9': const [ - const {'1': 4, '2': 5}, - const {'1': 5, '2': 6}, + '9': [ + {'1': 4, '2': 5}, + {'1': 5, '2': 6}, ], }; /// Descriptor for `SubscribeResult`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List subscribeResultDescriptor = $convert.base64Decode('Cg9TdWJzY3JpYmVSZXN1bHQSGAoHZXhwaXJlcxgBIAEoCFIHZXhwaXJlcxIQCgN0dGwYAiABKA1SA3R0bBIgCgtyZWNvdmVyYWJsZRgDIAEoCFILcmVjb3ZlcmFibGUSFAoFZXBvY2gYBiABKAlSBWVwb2NoElAKDHB1YmxpY2F0aW9ucxgHIAMoCzIsLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuUHVibGljYXRpb25SDHB1YmxpY2F0aW9ucxIcCglyZWNvdmVyZWQYCCABKAhSCXJlY292ZXJlZBIWCgZvZmZzZXQYCSABKARSBm9mZnNldBIeCgpwb3NpdGlvbmVkGAogASgIUgpwb3NpdGlvbmVkEhIKBGRhdGEYCyABKAxSBGRhdGESJQoOd2FzX3JlY292ZXJpbmcYDCABKAhSDXdhc1JlY292ZXJpbmdKBAgEEAVKBAgFEAY='); +final $typed_data.Uint8List subscribeResultDescriptor = $convert.base64Decode( + 'Cg9TdWJzY3JpYmVSZXN1bHQSGAoHZXhwaXJlcxgBIAEoCFIHZXhwaXJlcxIQCgN0dGwYAiABKA' + '1SA3R0bBIgCgtyZWNvdmVyYWJsZRgDIAEoCFILcmVjb3ZlcmFibGUSFAoFZXBvY2gYBiABKAlS' + 'BWVwb2NoElAKDHB1YmxpY2F0aW9ucxgHIAMoCzIsLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucH' + 'JvdG9jb2wuUHVibGljYXRpb25SDHB1YmxpY2F0aW9ucxIcCglyZWNvdmVyZWQYCCABKAhSCXJl' + 'Y292ZXJlZBIWCgZvZmZzZXQYCSABKARSBm9mZnNldBIeCgpwb3NpdGlvbmVkGAogASgIUgpwb3' + 'NpdGlvbmVkEhIKBGRhdGEYCyABKAxSBGRhdGESJQoOd2FzX3JlY292ZXJpbmcYDCABKAhSDXdh' + 'c1JlY292ZXJpbmcSFAoFZGVsdGEYDSABKAhSBWRlbHRhSgQIBBAFSgQIBRAG'); + @$core.Deprecated('Use subRefreshRequestDescriptor instead') -const SubRefreshRequest$json = const { +const SubRefreshRequest$json = { '1': 'SubRefreshRequest', - '2': const [ - const {'1': 'channel', '3': 1, '4': 1, '5': 9, '10': 'channel'}, - const {'1': 'token', '3': 2, '4': 1, '5': 9, '10': 'token'}, + '2': [ + {'1': 'channel', '3': 1, '4': 1, '5': 9, '10': 'channel'}, + {'1': 'token', '3': 2, '4': 1, '5': 9, '10': 'token'}, ], }; /// Descriptor for `SubRefreshRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List subRefreshRequestDescriptor = $convert.base64Decode('ChFTdWJSZWZyZXNoUmVxdWVzdBIYCgdjaGFubmVsGAEgASgJUgdjaGFubmVsEhQKBXRva2VuGAIgASgJUgV0b2tlbg=='); +final $typed_data.Uint8List subRefreshRequestDescriptor = $convert.base64Decode( + 'ChFTdWJSZWZyZXNoUmVxdWVzdBIYCgdjaGFubmVsGAEgASgJUgdjaGFubmVsEhQKBXRva2VuGA' + 'IgASgJUgV0b2tlbg=='); + @$core.Deprecated('Use subRefreshResultDescriptor instead') -const SubRefreshResult$json = const { +const SubRefreshResult$json = { '1': 'SubRefreshResult', - '2': const [ - const {'1': 'expires', '3': 1, '4': 1, '5': 8, '10': 'expires'}, - const {'1': 'ttl', '3': 2, '4': 1, '5': 13, '10': 'ttl'}, + '2': [ + {'1': 'expires', '3': 1, '4': 1, '5': 8, '10': 'expires'}, + {'1': 'ttl', '3': 2, '4': 1, '5': 13, '10': 'ttl'}, ], }; /// Descriptor for `SubRefreshResult`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List subRefreshResultDescriptor = $convert.base64Decode('ChBTdWJSZWZyZXNoUmVzdWx0EhgKB2V4cGlyZXMYASABKAhSB2V4cGlyZXMSEAoDdHRsGAIgASgNUgN0dGw='); +final $typed_data.Uint8List subRefreshResultDescriptor = $convert.base64Decode( + 'ChBTdWJSZWZyZXNoUmVzdWx0EhgKB2V4cGlyZXMYASABKAhSB2V4cGlyZXMSEAoDdHRsGAIgAS' + 'gNUgN0dGw='); + @$core.Deprecated('Use unsubscribeRequestDescriptor instead') -const UnsubscribeRequest$json = const { +const UnsubscribeRequest$json = { '1': 'UnsubscribeRequest', - '2': const [ - const {'1': 'channel', '3': 1, '4': 1, '5': 9, '10': 'channel'}, + '2': [ + {'1': 'channel', '3': 1, '4': 1, '5': 9, '10': 'channel'}, ], }; /// 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 { +const UnsubscribeResult$json = { '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 { +const PublishRequest$json = { '1': 'PublishRequest', - '2': const [ - const {'1': 'channel', '3': 1, '4': 1, '5': 9, '10': 'channel'}, - const {'1': 'data', '3': 2, '4': 1, '5': 12, '10': 'data'}, + '2': [ + {'1': 'channel', '3': 1, '4': 1, '5': 9, '10': 'channel'}, + {'1': 'data', '3': 2, '4': 1, '5': 12, '10': 'data'}, ], }; /// Descriptor for `PublishRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List publishRequestDescriptor = $convert.base64Decode('Cg5QdWJsaXNoUmVxdWVzdBIYCgdjaGFubmVsGAEgASgJUgdjaGFubmVsEhIKBGRhdGEYAiABKAxSBGRhdGE='); +final $typed_data.Uint8List publishRequestDescriptor = $convert.base64Decode( + 'Cg5QdWJsaXNoUmVxdWVzdBIYCgdjaGFubmVsGAEgASgJUgdjaGFubmVsEhIKBGRhdGEYAiABKA' + 'xSBGRhdGE='); + @$core.Deprecated('Use publishResultDescriptor instead') -const PublishResult$json = const { +const PublishResult$json = { '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 { +const PresenceRequest$json = { '1': 'PresenceRequest', - '2': const [ - const {'1': 'channel', '3': 1, '4': 1, '5': 9, '10': 'channel'}, + '2': [ + {'1': 'channel', '3': 1, '4': 1, '5': 9, '10': 'channel'}, ], }; /// 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 { +const PresenceResult$json = { '1': 'PresenceResult', - '2': const [ - const {'1': 'presence', '3': 1, '4': 3, '5': 11, '6': '.centrifugal.centrifuge.protocol.PresenceResult.PresenceEntry', '10': 'presence'}, + '2': [ + {'1': 'presence', '3': 1, '4': 3, '5': 11, '6': '.centrifugal.centrifuge.protocol.PresenceResult.PresenceEntry', '10': 'presence'}, ], - '3': const [PresenceResult_PresenceEntry$json], + '3': [PresenceResult_PresenceEntry$json], }; @$core.Deprecated('Use presenceResultDescriptor instead') -const PresenceResult_PresenceEntry$json = const { +const PresenceResult_PresenceEntry$json = { '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'}, + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.ClientInfo', '10': 'value'}, ], - '7': const {'7': true}, + '7': {'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( + 'Cg5QcmVzZW5jZVJlc3VsdBJZCghwcmVzZW5jZRgBIAMoCzI9LmNlbnRyaWZ1Z2FsLmNlbnRyaW' + 'Z1Z2UucHJvdG9jb2wuUHJlc2VuY2VSZXN1bHQuUHJlc2VuY2VFbnRyeVIIcHJlc2VuY2UaaAoN' + 'UHJlc2VuY2VFbnRyeRIQCgNrZXkYASABKAlSA2tleRJBCgV2YWx1ZRgCIAEoCzIrLmNlbnRyaW' + 'Z1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuQ2xpZW50SW5mb1IFdmFsdWU6AjgB'); + @$core.Deprecated('Use presenceStatsRequestDescriptor instead') -const PresenceStatsRequest$json = const { +const PresenceStatsRequest$json = { '1': 'PresenceStatsRequest', - '2': const [ - const {'1': 'channel', '3': 1, '4': 1, '5': 9, '10': 'channel'}, + '2': [ + {'1': 'channel', '3': 1, '4': 1, '5': 9, '10': 'channel'}, ], }; /// 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 { +const PresenceStatsResult$json = { '1': 'PresenceStatsResult', - '2': const [ - const {'1': 'num_clients', '3': 1, '4': 1, '5': 13, '10': 'numClients'}, - const {'1': 'num_users', '3': 2, '4': 1, '5': 13, '10': 'numUsers'}, + '2': [ + {'1': 'num_clients', '3': 1, '4': 1, '5': 13, '10': 'numClients'}, + {'1': 'num_users', '3': 2, '4': 1, '5': 13, '10': 'numUsers'}, ], }; /// Descriptor for `PresenceStatsResult`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List presenceStatsResultDescriptor = $convert.base64Decode('ChNQcmVzZW5jZVN0YXRzUmVzdWx0Eh8KC251bV9jbGllbnRzGAEgASgNUgpudW1DbGllbnRzEhsKCW51bV91c2VycxgCIAEoDVIIbnVtVXNlcnM='); +final $typed_data.Uint8List presenceStatsResultDescriptor = $convert.base64Decode( + 'ChNQcmVzZW5jZVN0YXRzUmVzdWx0Eh8KC251bV9jbGllbnRzGAEgASgNUgpudW1DbGllbnRzEh' + 'sKCW51bV91c2VycxgCIAEoDVIIbnVtVXNlcnM='); + @$core.Deprecated('Use streamPositionDescriptor instead') -const StreamPosition$json = const { +const StreamPosition$json = { '1': 'StreamPosition', - '2': const [ - const {'1': 'offset', '3': 1, '4': 1, '5': 4, '10': 'offset'}, - const {'1': 'epoch', '3': 2, '4': 1, '5': 9, '10': 'epoch'}, + '2': [ + {'1': 'offset', '3': 1, '4': 1, '5': 4, '10': 'offset'}, + {'1': 'epoch', '3': 2, '4': 1, '5': 9, '10': 'epoch'}, ], }; /// Descriptor for `StreamPosition`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List streamPositionDescriptor = $convert.base64Decode('Cg5TdHJlYW1Qb3NpdGlvbhIWCgZvZmZzZXQYASABKARSBm9mZnNldBIUCgVlcG9jaBgCIAEoCVIFZXBvY2g='); +final $typed_data.Uint8List streamPositionDescriptor = $convert.base64Decode( + 'Cg5TdHJlYW1Qb3NpdGlvbhIWCgZvZmZzZXQYASABKARSBm9mZnNldBIUCgVlcG9jaBgCIAEoCV' + 'IFZXBvY2g='); + @$core.Deprecated('Use historyRequestDescriptor instead') -const HistoryRequest$json = const { +const HistoryRequest$json = { '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': 'reverse', '3': 9, '4': 1, '5': 8, '10': 'reverse'}, + '2': [ + {'1': 'channel', '3': 1, '4': 1, '5': 9, '10': 'channel'}, + {'1': 'limit', '3': 7, '4': 1, '5': 5, '10': 'limit'}, + {'1': 'since', '3': 8, '4': 1, '5': 11, '6': '.centrifugal.centrifuge.protocol.StreamPosition', '10': 'since'}, + {'1': 'reverse', '3': 9, '4': 1, '5': 8, '10': 'reverse'}, ], - '9': const [ - const {'1': 2, '2': 3}, - const {'1': 3, '2': 4}, - const {'1': 4, '2': 5}, - const {'1': 5, '2': 6}, - const {'1': 6, '2': 7}, + '9': [ + {'1': 2, '2': 3}, + {'1': 3, '2': 4}, + {'1': 4, '2': 5}, + {'1': 5, '2': 6}, + {'1': 6, '2': 7}, ], }; /// Descriptor for `HistoryRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List historyRequestDescriptor = $convert.base64Decode('Cg5IaXN0b3J5UmVxdWVzdBIYCgdjaGFubmVsGAEgASgJUgdjaGFubmVsEhQKBWxpbWl0GAcgASgFUgVsaW1pdBJFCgVzaW5jZRgIIAEoCzIvLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9jb2wuU3RyZWFtUG9zaXRpb25SBXNpbmNlEhgKB3JldmVyc2UYCSABKAhSB3JldmVyc2VKBAgCEANKBAgDEARKBAgEEAVKBAgFEAZKBAgGEAc='); +final $typed_data.Uint8List historyRequestDescriptor = $convert.base64Decode( + 'Cg5IaXN0b3J5UmVxdWVzdBIYCgdjaGFubmVsGAEgASgJUgdjaGFubmVsEhQKBWxpbWl0GAcgAS' + 'gFUgVsaW1pdBJFCgVzaW5jZRgIIAEoCzIvLmNlbnRyaWZ1Z2FsLmNlbnRyaWZ1Z2UucHJvdG9j' + 'b2wuU3RyZWFtUG9zaXRpb25SBXNpbmNlEhgKB3JldmVyc2UYCSABKAhSB3JldmVyc2VKBAgCEA' + 'NKBAgDEARKBAgEEAVKBAgFEAZKBAgGEAc='); + @$core.Deprecated('Use historyResultDescriptor instead') -const HistoryResult$json = const { +const HistoryResult$json = { '1': 'HistoryResult', - '2': const [ - 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'}, + '2': [ + {'1': 'publications', '3': 1, '4': 3, '5': 11, '6': '.centrifugal.centrifuge.protocol.Publication', '10': 'publications'}, + {'1': 'epoch', '3': 2, '4': 1, '5': 9, '10': 'epoch'}, + {'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( + 'Cg1IaXN0b3J5UmVzdWx0ElAKDHB1YmxpY2F0aW9ucxgBIAMoCzIsLmNlbnRyaWZ1Z2FsLmNlbn' + 'RyaWZ1Z2UucHJvdG9jb2wuUHVibGljYXRpb25SDHB1YmxpY2F0aW9ucxIUCgVlcG9jaBgCIAEo' + 'CVIFZXBvY2gSFgoGb2Zmc2V0GAMgASgEUgZvZmZzZXQ='); + @$core.Deprecated('Use pingRequestDescriptor instead') -const PingRequest$json = const { +const PingRequest$json = { '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 { +const PingResult$json = { '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 { +const RPCRequest$json = { '1': 'RPCRequest', - '2': const [ - const {'1': 'data', '3': 1, '4': 1, '5': 12, '10': 'data'}, - const {'1': 'method', '3': 2, '4': 1, '5': 9, '10': 'method'}, + '2': [ + {'1': 'data', '3': 1, '4': 1, '5': 12, '10': 'data'}, + {'1': 'method', '3': 2, '4': 1, '5': 9, '10': 'method'}, ], }; /// Descriptor for `RPCRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List rPCRequestDescriptor = $convert.base64Decode('CgpSUENSZXF1ZXN0EhIKBGRhdGEYASABKAxSBGRhdGESFgoGbWV0aG9kGAIgASgJUgZtZXRob2Q='); +final $typed_data.Uint8List rPCRequestDescriptor = $convert.base64Decode( + 'CgpSUENSZXF1ZXN0EhIKBGRhdGEYASABKAxSBGRhdGESFgoGbWV0aG9kGAIgASgJUgZtZXRob2' + 'Q='); + @$core.Deprecated('Use rPCResultDescriptor instead') -const RPCResult$json = const { +const RPCResult$json = { '1': 'RPCResult', - '2': const [ - const {'1': 'data', '3': 1, '4': 1, '5': 12, '10': 'data'}, + '2': [ + {'1': 'data', '3': 1, '4': 1, '5': 12, '10': 'data'}, ], }; /// 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 { +const SendRequest$json = { '1': 'SendRequest', - '2': const [ - const {'1': 'data', '3': 1, '4': 1, '5': 12, '10': 'data'}, + '2': [ + {'1': 'data', '3': 1, '4': 1, '5': 12, '10': 'data'}, ], }; /// 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 764c544..4139cea 100644 --- a/lib/src/proto/client.pbserver.dart +++ b/lib/src/proto/client.pbserver.dart @@ -1,9 +1,14 @@ -/// +// // Generated code. Do not modify. // source: client.proto // // @dart = 2.12 -// 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 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// ignore_for_file: constant_identifier_names +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import export 'client.pb.dart'; diff --git a/lib/src/proto/client.proto b/lib/src/proto/client.proto index 48edefa..5ace50b 100644 --- a/lib/src/proto/client.proto +++ b/lib/src/proto/client.proto @@ -102,6 +102,9 @@ message Publication { ClientInfo info = 5; uint64 offset = 6; map tags = 7; + bool delta = 8; // When set indicates that data in Publication is a delta from previous data. + int64 time = 9; // Optional time of publication as Unix timestamp milliseconds. + string channel = 10; // Optional channel name if Publication relates to wildcard subscription. } message Join { @@ -142,6 +145,7 @@ message Connect { bool pong = 8; string session = 9; string node = 10; + int64 time = 11; // Server time as Unix timestamp in milliseconds (not sent by default). } message Disconnect { @@ -161,6 +165,7 @@ message ConnectRequest { map subs = 3; string name = 4; string version = 5; + map headers = 6; } message ConnectResult { @@ -174,6 +179,7 @@ message ConnectResult { bool pong = 8; string session = 9; string node = 10; + int64 time = 11; // Server time as Unix timestamp in milliseconds (not sent by default). } message RefreshRequest { @@ -198,6 +204,7 @@ message SubscribeRequest { bool positioned = 9; bool recoverable = 10; bool join_leave = 11; + string delta = 12; } message SubscribeResult { @@ -212,6 +219,7 @@ message SubscribeResult { bool positioned = 10; bytes data = 11; bool was_recovering = 12; + bool delta = 13; } message SubRefreshRequest { @@ -288,4 +296,4 @@ message RPCResult { message SendRequest{ bytes data = 1; -} +} \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index af66119..b68a53d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -8,13 +8,13 @@ description: > homepage: https://github.com/centrifugal/centrifuge-dart environment: - sdk: '>=2.19.0 <4.0.0' + sdk: '>=3.3.0 <4.0.0' dependencies: fixnum: ^1.0.0 meta: ^1.3.0 protobuf: ">=2.0.0 <4.0.0" - web_socket_channel: ^2.4.0 + web_socket_channel: ">=3.0.0 <4.0.0" dev_dependencies: build_runner: ^2.0.3 diff --git a/test/client_test.dart b/test/client_test.dart index 8c6ac16..b5f458a 100644 --- a/test/client_test.dart +++ b/test/client_test.dart @@ -4,7 +4,7 @@ import 'package:centrifuge/centrifuge.dart' as centrifuge; import 'package:test/test.dart'; void main() { - final url = 'ws://localhost:8000/connection/websocket?cf_protocol_version=v2'; + final url = 'ws://localhost:8000/connection/websocket'; setUp(() {}); @@ -28,6 +28,18 @@ void main() { expect(true, event.error.toString().contains('Unsupported URL scheme')); }); + test('invalid token - disconnect code received', () async { + final client = centrifuge.createClient( + url, + centrifuge.ClientConfig(token: "invalid"), + ); + final disconnectFinish = client.disconnected.first; + client.connect(); + final disconnect = await disconnectFinish; + expect(centrifuge.State.disconnected, client.state); + expect(disconnect.code, 3500); + }); + test('can connect and disconnect', () async { final client = centrifuge.createClient( url,