diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..028d8e27 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "prop"] + path = prop + url = git@github.com:OpenBikeControl/prop.git diff --git a/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist index 1dc6cf76..391a902b 100644 --- a/ios/Flutter/AppFrameworkInfo.plist +++ b/ios/Flutter/AppFrameworkInfo.plist @@ -20,7 +20,5 @@ ???? CFBundleVersion 1.0 - MinimumOSVersion - 13.0 diff --git a/lib/bluetooth/connection.dart b/lib/bluetooth/connection.dart index a7ad9934..07584efc 100644 --- a/lib/bluetooth/connection.dart +++ b/lib/bluetooth/connection.dart @@ -7,7 +7,7 @@ import 'package:bike_control/bluetooth/devices/gyroscope/gyroscope_steering.dart import 'package:bike_control/bluetooth/devices/hid/hid_device.dart'; import 'package:bike_control/bluetooth/devices/wahoo/wahoo_kickr_headwind.dart'; import 'package:bike_control/bluetooth/devices/zwift/ftms_mdns_emulator.dart'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pb.dart'; +import 'package:prop/prop.dart'; import 'package:bike_control/gen/l10n.dart'; import 'package:bike_control/main.dart'; import 'package:bike_control/utils/core.dart'; diff --git a/lib/bluetooth/devices/base_device.dart b/lib/bluetooth/devices/base_device.dart index cbcaf77a..1d5ede11 100644 --- a/lib/bluetooth/devices/base_device.dart +++ b/lib/bluetooth/devices/base_device.dart @@ -1,7 +1,6 @@ import 'dart:async'; import 'package:bike_control/bluetooth/devices/zwift/constants.dart'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pb.dart' show LogLevel; import 'package:bike_control/gen/l10n.dart'; import 'package:bike_control/main.dart'; import 'package:bike_control/utils/actions/desktop.dart'; @@ -12,6 +11,7 @@ import 'package:bike_control/utils/keymap/manager.dart'; import 'package:dartx/dartx.dart'; import 'package:flutter/material.dart'; import 'package:flutter_local_notifications/flutter_local_notifications.dart'; +import 'package:prop/prop.dart' show LogLevel; import '../../utils/keymap/buttons.dart'; import '../messages/notification.dart'; @@ -19,12 +19,25 @@ import '../messages/notification.dart'; abstract class BaseDevice { final String? _name; final bool isBeta; + final String uniqueId; final List availableButtons; - BaseDevice(this._name, {required this.availableButtons, this.isBeta = false}) { + BaseDevice( + this._name, { + required this.uniqueId, + required this.availableButtons, + this.isBeta = false, + String? buttonPrefix, + }) { if (availableButtons.isEmpty && core.actionHandler.supportedApp is CustomApp) { - // TODO we should verify where the buttons came from - final allButtons = core.actionHandler.supportedApp!.keymap.keyPairs.flatMap((e) => e.buttons); + final allButtons = core.actionHandler.supportedApp!.keymap.keyPairs + .flatMap((e) => e.buttons) + .filter( + (e) => + e.sourceDeviceId == uniqueId || + (e.sourceDeviceId == null && buttonPrefix != null && e.name.startsWith(buttonPrefix)), + ) + .toSet(); availableButtons.addAll(allButtons); } } @@ -214,7 +227,11 @@ abstract class BaseDevice { // should we display this to the user? KeymapManager().duplicateSync(currentProfile, '$currentProfile (Copy)'); } - final button = core.actionHandler.supportedApp!.keymap.getOrAddButton(key, creator); + var createdButton = creator(); + if (createdButton.sourceDeviceId == null) { + createdButton = createdButton.copyWith(sourceDeviceId: uniqueId); + } + final button = core.actionHandler.supportedApp!.keymap.getOrAddButton(key, createdButton); if (availableButtons.none((e) => e.name == button.name)) { availableButtons.add(button); diff --git a/lib/bluetooth/devices/bluetooth_device.dart b/lib/bluetooth/devices/bluetooth_device.dart index 8df71f27..970a4125 100644 --- a/lib/bluetooth/devices/bluetooth_device.dart +++ b/lib/bluetooth/devices/bluetooth_device.dart @@ -42,12 +42,15 @@ abstract class BluetoothDevice extends BaseDevice { required List availableButtons, bool allowMultiple = false, bool isBeta = false, + String? buttonPrefix, }) : super( scanResult.name, + uniqueId: scanResult.deviceId, availableButtons: allowMultiple ? availableButtons.map((b) => b.copyWith(sourceDeviceId: scanResult.deviceId)).toList() : availableButtons, isBeta: isBeta, + buttonPrefix: buttonPrefix, ) { rssi = scanResult.rssi; } diff --git a/lib/bluetooth/devices/gamepad/gamepad_device.dart b/lib/bluetooth/devices/gamepad/gamepad_device.dart index 235be630..b6714ea3 100644 --- a/lib/bluetooth/devices/gamepad/gamepad_device.dart +++ b/lib/bluetooth/devices/gamepad/gamepad_device.dart @@ -14,7 +14,7 @@ import 'package:shadcn_flutter/shadcn_flutter.dart'; class GamepadDevice extends BaseDevice { final String id; - GamepadDevice(super.name, {required this.id}) : super(availableButtons: []); + GamepadDevice(super.name, {required this.id}) : super(availableButtons: [], uniqueId: id); List _lastButtonsClicked = []; @@ -32,7 +32,7 @@ class GamepadDevice extends BaseDevice { final buttonKey = event.type == KeyType.analog ? '${event.key}_$normalizedValue' : event.key; ControllerButton button = getOrAddButton( buttonKey, - () => ControllerButton(buttonKey), + () => ControllerButton(buttonKey, sourceDeviceId: id), ); switch (event.type) { diff --git a/lib/bluetooth/devices/gyroscope/gyroscope_steering.dart b/lib/bluetooth/devices/gyroscope/gyroscope_steering.dart index 0d73ddda..dac417d2 100644 --- a/lib/bluetooth/devices/gyroscope/gyroscope_steering.dart +++ b/lib/bluetooth/devices/gyroscope/gyroscope_steering.dart @@ -2,7 +2,6 @@ import 'dart:async'; import 'package:bike_control/bluetooth/devices/base_device.dart'; import 'package:bike_control/bluetooth/devices/gyroscope/steering_estimator.dart'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pb.dart'; import 'package:bike_control/bluetooth/messages/notification.dart'; import 'package:bike_control/pages/device.dart'; import 'package:bike_control/utils/core.dart'; @@ -11,6 +10,7 @@ import 'package:bike_control/widgets/ui/beta_pill.dart'; import 'package:bike_control/widgets/ui/device_info.dart'; import 'package:bike_control/widgets/ui/small_progress_indicator.dart'; import 'package:flutter/foundation.dart'; +import 'package:prop/prop.dart'; import 'package:sensors_plus/sensors_plus.dart'; import 'package:shadcn_flutter/shadcn_flutter.dart'; @@ -22,6 +22,8 @@ class GyroscopeSteering extends BaseDevice { 'Phone Steering', availableButtons: GyroscopeSteeringButtons.values, isBeta: true, + uniqueId: 'gyroscope_steering_device', + buttonPrefix: 'gyro', ); StreamSubscription? _gyroscopeSubscription; diff --git a/lib/bluetooth/devices/hid/hid_device.dart b/lib/bluetooth/devices/hid/hid_device.dart index 56fd4801..004d716b 100644 --- a/lib/bluetooth/devices/hid/hid_device.dart +++ b/lib/bluetooth/devices/hid/hid_device.dart @@ -8,7 +8,7 @@ import 'package:flutter/material.dart' show PopupMenuButton, PopupMenuItem; import 'package:shadcn_flutter/shadcn_flutter.dart'; class HidDevice extends BaseDevice { - HidDevice(super.name) : super(availableButtons: []); + HidDevice(super.name) : super(availableButtons: [], uniqueId: name!); @override Future connect() { @@ -21,7 +21,7 @@ class HidDevice extends BaseDevice { children: [ Row( children: [ - Expanded(child: Text(toString())), + Expanded(child: Text(toString()).bold), PopupMenuButton( itemBuilder: (c) => [ PopupMenuItem( diff --git a/lib/bluetooth/devices/mywhoosh/link.dart b/lib/bluetooth/devices/mywhoosh/link.dart index ece136df..227cabed 100644 --- a/lib/bluetooth/devices/mywhoosh/link.dart +++ b/lib/bluetooth/devices/mywhoosh/link.dart @@ -2,7 +2,7 @@ import 'dart:convert'; import 'dart:io'; import 'package:bike_control/bluetooth/devices/trainer_connection.dart'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pb.dart'; +import 'package:prop/prop.dart'; import 'package:bike_control/bluetooth/messages/notification.dart'; import 'package:bike_control/gen/l10n.dart'; import 'package:bike_control/utils/actions/base_actions.dart'; diff --git a/lib/bluetooth/devices/openbikecontrol/obc_ble_emulator.dart b/lib/bluetooth/devices/openbikecontrol/obc_ble_emulator.dart index 6a310ef8..7a20e49a 100644 --- a/lib/bluetooth/devices/openbikecontrol/obc_ble_emulator.dart +++ b/lib/bluetooth/devices/openbikecontrol/obc_ble_emulator.dart @@ -4,8 +4,6 @@ import 'package:bike_control/bluetooth/ble.dart'; import 'package:bike_control/bluetooth/devices/openbikecontrol/openbikecontrol_device.dart'; import 'package:bike_control/bluetooth/devices/openbikecontrol/protocol_parser.dart'; import 'package:bike_control/bluetooth/devices/trainer_connection.dart'; -import 'package:bike_control/bluetooth/devices/zwift/ftms_mdns_emulator.dart'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pbenum.dart'; import 'package:bike_control/bluetooth/messages/notification.dart' show AlertNotification, LogNotification; import 'package:bike_control/utils/actions/base_actions.dart'; import 'package:bike_control/utils/core.dart'; @@ -15,6 +13,7 @@ import 'package:bike_control/widgets/title.dart'; import 'package:bluetooth_low_energy/bluetooth_low_energy.dart'; import 'package:dartx/dartx.dart'; import 'package:flutter/foundation.dart'; +import 'package:prop/prop.dart'; class OpenBikeControlBluetoothEmulator extends TrainerConnection { late final _peripheralManager = PeripheralManager(); diff --git a/lib/bluetooth/devices/openbikecontrol/obc_mdns_emulator.dart b/lib/bluetooth/devices/openbikecontrol/obc_mdns_emulator.dart index 38a5bbb5..7c84bb14 100644 --- a/lib/bluetooth/devices/openbikecontrol/obc_mdns_emulator.dart +++ b/lib/bluetooth/devices/openbikecontrol/obc_mdns_emulator.dart @@ -3,8 +3,6 @@ import 'dart:io'; import 'package:bike_control/bluetooth/devices/openbikecontrol/openbikecontrol_device.dart'; import 'package:bike_control/bluetooth/devices/openbikecontrol/protocol_parser.dart'; import 'package:bike_control/bluetooth/devices/trainer_connection.dart'; -import 'package:bike_control/bluetooth/devices/zwift/ftms_mdns_emulator.dart'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pb.dart'; import 'package:bike_control/bluetooth/messages/notification.dart'; import 'package:bike_control/utils/actions/base_actions.dart'; import 'package:bike_control/utils/core.dart'; @@ -13,6 +11,7 @@ import 'package:bike_control/utils/keymap/keymap.dart'; import 'package:dartx/dartx.dart'; import 'package:flutter/foundation.dart'; import 'package:nsd/nsd.dart'; +import 'package:prop/prop.dart'; class OpenBikeControlMdnsEmulator extends TrainerConnection { ServerSocket? _server; diff --git a/lib/bluetooth/devices/openbikecontrol/openbikecontrol_device.dart b/lib/bluetooth/devices/openbikecontrol/openbikecontrol_device.dart index 5c1fcda7..97563bc6 100644 --- a/lib/bluetooth/devices/openbikecontrol/openbikecontrol_device.dart +++ b/lib/bluetooth/devices/openbikecontrol/openbikecontrol_device.dart @@ -1,6 +1,6 @@ import 'dart:typed_data'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pb.dart'; +import 'package:prop/prop.dart'; import 'package:bike_control/bluetooth/messages/notification.dart'; import 'package:bike_control/widgets/title.dart'; import 'package:universal_ble/universal_ble.dart'; diff --git a/lib/bluetooth/devices/openbikecontrol/protocol_parser.dart b/lib/bluetooth/devices/openbikecontrol/protocol_parser.dart index 6fa08d61..d1cb5768 100644 --- a/lib/bluetooth/devices/openbikecontrol/protocol_parser.dart +++ b/lib/bluetooth/devices/openbikecontrol/protocol_parser.dart @@ -8,9 +8,9 @@ import 'dart:convert'; import 'dart:typed_data'; -import 'package:bike_control/bluetooth/devices/zwift/ftms_mdns_emulator.dart'; import 'package:bike_control/utils/keymap/buttons.dart'; import 'package:dartx/dartx.dart'; +import 'package:prop/prop.dart'; class ProtocolParseException implements Exception { final String message; diff --git a/lib/bluetooth/devices/shimano/shimano_di2.dart b/lib/bluetooth/devices/shimano/shimano_di2.dart index 96d214cb..f4defe59 100644 --- a/lib/bluetooth/devices/shimano/shimano_di2.dart +++ b/lib/bluetooth/devices/shimano/shimano_di2.dart @@ -10,7 +10,7 @@ import 'package:universal_ble/universal_ble.dart'; import '../bluetooth_device.dart'; class ShimanoDi2 extends BluetoothDevice { - ShimanoDi2(super.scanResult) : super(availableButtons: []); + ShimanoDi2(super.scanResult) : super(availableButtons: [], buttonPrefix: 'D-Fly Channel '); @override Future handleServices(List services) async { @@ -42,7 +42,7 @@ class ShimanoDi2 extends BluetoothDevice { getOrAddButton( 'D-Fly Channel $readableIndex', - () => ControllerButton('D-Fly Channel $readableIndex'), + () => ControllerButton('D-Fly Channel $readableIndex', sourceDeviceId: device.deviceId), ); }); _isInitialized = true; @@ -59,7 +59,7 @@ class ShimanoDi2 extends BluetoothDevice { final button = getOrAddButton( 'D-Fly Channel $readableIndex', - () => ControllerButton('D-Fly Channel $readableIndex'), + () => ControllerButton('D-Fly Channel $readableIndex', sourceDeviceId: device.deviceId), ); if (didChange) { clickedButtons.add(button); diff --git a/lib/bluetooth/devices/sram/sram_axs.dart b/lib/bluetooth/devices/sram/sram_axs.dart index 997f8b34..c78670a7 100644 --- a/lib/bluetooth/devices/sram/sram_axs.dart +++ b/lib/bluetooth/devices/sram/sram_axs.dart @@ -1,9 +1,9 @@ import 'dart:async'; -import 'package:bike_control/bluetooth/devices/zwift/ftms_mdns_emulator.dart'; import 'package:bike_control/utils/core.dart'; import 'package:bike_control/utils/keymap/buttons.dart'; import 'package:flutter/foundation.dart'; +import 'package:prop/prop.dart'; import 'package:shadcn_flutter/shadcn_flutter.dart'; import 'package:universal_ble/universal_ble.dart'; @@ -43,12 +43,12 @@ class SramAxs extends BluetoothDevice { ControllerButton _singleClickButton() => getOrAddButton( 'SRAM Tap', - () => const ControllerButton('SRAM Tap', action: InGameAction.shiftUp), + () => ControllerButton('SRAM Tap', action: InGameAction.shiftUp, sourceDeviceId: device.deviceId), ); ControllerButton _doubleClickButton() => getOrAddButton( 'SRAM Double Tap', - () => const ControllerButton('SRAM Double Tap', action: InGameAction.shiftDown), + () => ControllerButton('SRAM Double Tap', action: InGameAction.shiftDown, sourceDeviceId: device.deviceId), ); void _emitClick(ControllerButton button) { diff --git a/lib/bluetooth/devices/wahoo/wahoo_kickr_headwind.dart b/lib/bluetooth/devices/wahoo/wahoo_kickr_headwind.dart index a5703ce4..8312a32a 100644 --- a/lib/bluetooth/devices/wahoo/wahoo_kickr_headwind.dart +++ b/lib/bluetooth/devices/wahoo/wahoo_kickr_headwind.dart @@ -1,10 +1,10 @@ import 'dart:typed_data'; -import 'package:bike_control/bluetooth/devices/zwift/ftms_mdns_emulator.dart'; import 'package:bike_control/bluetooth/messages/notification.dart'; import 'package:bike_control/utils/actions/base_actions.dart'; import 'package:bike_control/utils/keymap/buttons.dart'; import 'package:bike_control/utils/keymap/keymap.dart'; +import 'package:prop/prop.dart'; import 'package:universal_ble/universal_ble.dart'; import '../bluetooth_device.dart'; diff --git a/lib/bluetooth/devices/zwift/ftms_mdns_emulator.dart b/lib/bluetooth/devices/zwift/ftms_mdns_emulator.dart index d5f5e30f..46b25d55 100644 --- a/lib/bluetooth/devices/zwift/ftms_mdns_emulator.dart +++ b/lib/bluetooth/devices/zwift/ftms_mdns_emulator.dart @@ -1,9 +1,4 @@ -import 'dart:io'; - import 'package:bike_control/bluetooth/devices/trainer_connection.dart'; -import 'package:bike_control/bluetooth/devices/zwift/constants.dart'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pbenum.dart'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zwift.pb.dart' show RideKeyPadStatus; import 'package:bike_control/bluetooth/devices/zwift/zwift_ride.dart'; import 'package:bike_control/bluetooth/messages/notification.dart'; import 'package:bike_control/gen/l10n.dart'; @@ -11,17 +6,13 @@ import 'package:bike_control/utils/actions/base_actions.dart'; import 'package:bike_control/utils/core.dart'; import 'package:bike_control/utils/keymap/buttons.dart'; import 'package:bike_control/utils/keymap/keymap.dart'; -import 'package:dartx/dartx.dart'; import 'package:flutter/foundation.dart'; -import 'package:nsd/nsd.dart'; +import 'package:prop/prop.dart' hide RideButtonMask; class FtmsMdnsEmulator extends TrainerConnection { - ServerSocket? _tcpServer; - Registration? _mdnsRegistration; - static const String connectionTitle = 'Zwift Network Emulator'; - Socket? _socket; + late final ClickEmulator clickEmulator = ClickEmulator(); var lastMessageId = 0; FtmsMdnsEmulator() @@ -39,299 +30,30 @@ class FtmsMdnsEmulator extends TrainerConnection { InGameAction.back, InGameAction.rideOnBomb, ], - ); - - Future startServer() async { - isStarted.value = true; - print('Starting mDNS server...'); - - // Get local IP - final interfaces = await NetworkInterface.list(); - InternetAddress? localIP; - - for (final interface in interfaces) { - for (final addr in interface.addresses) { - if (addr.type == InternetAddressType.IPv4 && !addr.isLoopback) { - localIP = addr; - break; - } - } - if (localIP != null) break; - } - - if (localIP == null) { - throw 'Could not find network interface'; - } - - await _createTcpServer(); - - if (kDebugMode) { - enableLogging(LogTopic.calls); - enableLogging(LogTopic.errors); - } - disableServiceTypeValidation(true); - - _mdnsRegistration = await register( - Service( - name: 'KICKR BIKE PRO 1337', - addresses: [localIP], - port: 36867, - type: '_wahoo-fitness-tnp._tcp', - txt: { - 'ble-service-uuids': Uint8List.fromList('FC82'.codeUnits), - 'mac-address': Uint8List.fromList('50-50-25-6C-66-9C'.codeUnits), - 'serial-number': Uint8List.fromList('244700181'.codeUnits), - 'manufacturer-data': Uint8List.fromList('094A0BAAAA'.codeUnits), - }, - ), - ); - print('Server started - advertising service!'); - } - - void stop() { - isStarted.value = false; - isConnected.value = false; - _tcpServer?.close(); - if (_mdnsRegistration != null) { - unregister(_mdnsRegistration!); - } - _tcpServer = null; - _mdnsRegistration = null; - _socket = null; - print('Stopped FtmsMdnsEmulator'); - } - - Future _createTcpServer() async { - try { - _tcpServer = await ServerSocket.bind( - InternetAddress.anyIPv6, - 36867, - shared: true, - v6Only: false, - ); - } catch (e) { - if (kDebugMode) { - print('Failed to start server: $e'); - } - rethrow; - } - if (kDebugMode) { - print('Server started on port ${_tcpServer!.port}'); - } - - // Accept connection - _tcpServer!.listen( - (Socket socket) { - _socket = socket; - isConnected.value = true; - if (kDebugMode) { - print('Client connected: ${socket.remoteAddress.address}:${socket.remotePort}'); - } + ) { + clickEmulator.isStarted.addListener(() { + isStarted.value = clickEmulator.isStarted.value; + }); + clickEmulator.isConnected.addListener(() { + isConnected.value = clickEmulator.isConnected.value; + if (isConnected.value) { core.connection.signalNotification( AlertNotification(LogLevel.LOGLEVEL_INFO, AppLocalizations.current.connected), ); - - // Listen for data from the client - socket.listen( - (List data) { - if (kDebugMode) { - print('Received message: ${bytesToHex(data)}'); - } - - final mutable = data.toList(); - while (mutable.isNotEmpty) { - final msgVersion = mutable.takeUInt8(); - final msgId = mutable.takeUInt8(); - lastMessageId = msgId; - final seqNum = mutable.takeUInt8(); - final respCode = mutable.takeUInt8(); // Response Code - final length = mutable.takeUInt16BE(); // Length of the message body - - final body = mutable.takeBytes(length); - if (kDebugMode) { - print('Parsed message: ID: $msgId, Body: ${bytesToHex(body)}'); - } - - Uint8List buildHeader(int responseCode, int bodyLength) { - return Uint8List.fromList([ - msgVersion, - msgId, - seqNum, - responseCode, - (bodyLength >> 8) & 0xFF, - bodyLength & 0xFF, - ]); - } - - switch (msgId) { - case FtmsMdnsConstants.DC_MESSAGE_DISCOVER_SERVICES: - final body = hexToBytes(ZwiftConstants.ZWIFT_RIDE_CUSTOM_SERVICE_UUID.toNonDash()); - - final header = buildHeader(FtmsMdnsConstants.DC_RC_REQUEST_COMPLETED_SUCCESSFULLY, body.length); - final bytes = [...header, ...body]; - - // Expected 0101000000100000fc8200001000800000805f9b34fb - // Got 0101000000100000fc8200001000800000805f9b34fb - _write(socket, bytes); - case FtmsMdnsConstants.DC_MESSAGE_DISCOVER_CHARACTERISTICS: - final rawUUID = body.takeBytes(16); - final serviceUUID = bytesToHex(rawUUID).toUUID(); - if (serviceUUID == ZwiftConstants.ZWIFT_RIDE_CUSTOM_SERVICE_UUID) { - final responseBody = [ - ...rawUUID, - ...hexToBytes(ZwiftConstants.ZWIFT_SYNC_RX_CHARACTERISTIC_UUID.toNonDash()), - ...[ - _propertyVal(['write']), - ], - ...hexToBytes(ZwiftConstants.ZWIFT_ASYNC_CHARACTERISTIC_UUID.toNonDash()), - ...[ - _propertyVal(['notify']), - ], - ...hexToBytes(ZwiftConstants.ZWIFT_SYNC_TX_CHARACTERISTIC_UUID.toNonDash()), - ...[ - _propertyVal(['notify']), - ], - ]; - - final responseData = [ - ...buildHeader( - FtmsMdnsConstants.DC_RC_REQUEST_COMPLETED_SUCCESSFULLY, - responseBody.length, - ), - ...responseBody, - ]; - - // OK: 0102010000430000fc8200001000800000805f9b34fb0000000319ca465186e5fa29dcdd09d1020000000219ca465186e5fa29dcdd09d1040000000419ca465186e5fa29dcdd09d104 - _write(socket, responseData); - } - case FtmsMdnsConstants.DC_MESSAGE_READ_CHARACTERISTIC: - final rawUUID = body.takeBytes(16); - final characteristicUUID = bytesToHex(rawUUID).toUUID(); - - print( - 'Got Read Characteristic UUID: $characteristicUUID', - ); - - final responseBody = rawUUID; - final responseData = [ - ...buildHeader( - FtmsMdnsConstants.DC_RC_REQUEST_COMPLETED_SUCCESSFULLY, - responseBody.length, - ), - ...responseBody, - ]; - - _write(socket, responseData); - case FtmsMdnsConstants.DC_MESSAGE_WRITE_CHARACTERISTIC: - final rawUUID = body.takeBytes(16); - final characteristicUUID = bytesToHex(rawUUID).toUUID(); - final characteristicData = body.takeBytes(body.length); - - print( - 'Got Write Characteristic UUID: $characteristicUUID, Data: ${bytesToHex(characteristicData)}', - ); - - final responseBody = rawUUID; - final responseData = [ - ...buildHeader( - FtmsMdnsConstants.DC_RC_REQUEST_COMPLETED_SUCCESSFULLY, - responseBody.length, - ), - ...responseBody, - ]; - - _write(socket, responseData); - - final response = core.zwiftEmulator.handleWriteRequest( - characteristicUUID, - Uint8List.fromList(characteristicData), - ); - - if (response != null) { - final seqNum = (lastMessageId + 1) % 256; - lastMessageId = seqNum; - - final responseBody = [ - ...hexToBytes(ZwiftConstants.ZWIFT_SYNC_TX_CHARACTERISTIC_UUID.toLowerCase().toNonDash()), - ...response, - ]; - final responseData = [ - // header - ...Uint8List.fromList([ - msgVersion, - FtmsMdnsConstants.DC_MESSAGE_CHARACTERISTIC_NOTIFICATION, - seqNum, - FtmsMdnsConstants.DC_RC_REQUEST_COMPLETED_SUCCESSFULLY, - (responseBody.length >> 8) & 0xFF, - responseBody.length & 0xFF, - ]), - // body - ...responseBody, - ]; - - // 0106050000180000000419ca465186e5fa29dcdd09d1526964654f6e0203 - _write(socket, responseData); - - if (response.contentEquals(ZwiftConstants.RIDE_ON)) { - _sendKeepAlive(); - } - } - return; - case FtmsMdnsConstants.DC_MESSAGE_ENABLE_CHARACTERISTIC_NOTIFICATIONS: - final rawUUID = body.takeBytes(16); - final characteristicUUID = bytesToHex(rawUUID).toUUID(); - final enabled = body.takeUInt8(); - print( - 'Got Enable Notifications for Characteristic UUID: $characteristicUUID, Enabled: $enabled', - ); - - final responseBody = rawUUID; - final responseData = [ - ...buildHeader( - FtmsMdnsConstants.DC_RC_REQUEST_COMPLETED_SUCCESSFULLY, - responseBody.length, - ), - ...responseBody, - ]; - - _write(socket, responseData); - case FtmsMdnsConstants.DC_MESSAGE_CHARACTERISTIC_NOTIFICATION: - print('Hamlo'); - default: - throw 'DC_ERROR_UNKNOWN_MESSAGE_TYPE'; - } - } - }, - onDone: () { - print('Client disconnected: $socket'); - isConnected.value = false; - - core.connection.signalNotification( - AlertNotification(LogLevel.LOGLEVEL_INFO, AppLocalizations.current.disconnected), - ); - _socket = null; - }, + } else { + core.connection.signalNotification( + AlertNotification(LogLevel.LOGLEVEL_INFO, AppLocalizations.current.disconnected), ); - }, - ); + } + }); } - void _write(Socket socket, List responseData) { - if (kDebugMode) { - print('Sending response: ${bytesToHex(responseData)}'); - } - socket.add(responseData); + Future startServer() async { + return clickEmulator.startServer(); } - int _propertyVal(List properties) { - int res = 0; - - if (properties.contains('read')) res |= 0x01; - if (properties.contains('write')) res |= 0x02; - if (properties.contains('indicate')) res |= 0x03; - if (properties.contains('notify')) res |= 0x04; - - return res; + void stop() { + clickEmulator.stop(); } @override @@ -361,125 +83,19 @@ class FtmsMdnsEmulator extends TrainerConnection { final bytes = status.writeToBuffer(); - final commandProto = _buildNotify( - ZwiftConstants.ZWIFT_ASYNC_CHARACTERISTIC_UUID, - Uint8List.fromList([ - Opcode.CONTROLLER_NOTIFICATION.value, - ...bytes, - ]), - ); - - _write(_socket!, commandProto); + clickEmulator.write(bytes); } if (isKeyUp) { - final zero = _buildNotify( - ZwiftConstants.ZWIFT_ASYNC_CHARACTERISTIC_UUID, + clickEmulator.write( Uint8List.fromList([Opcode.CONTROLLER_NOTIFICATION.value, 0x08, 0xFF, 0xFF, 0xFF, 0xFF, 0x0F]), ); - - _write(_socket!, zero); } if (kDebugMode) { print('Sent action $isKeyUp vs $isKeyDown ${keyPair.inGameAction!.title} to Zwift Emulator'); } return Success('Sent action: ${keyPair.inGameAction!.title}'); } - - List _buildNotify(String uuid, final List data) { - final seqNum = (lastMessageId + 1) % 256; - lastMessageId = seqNum; - - final responseBody = [ - ...hexToBytes(uuid.toLowerCase().toNonDash()), - ...data, - ]; - final responseData = [ - // header - ...Uint8List.fromList([ - 0x01, - FtmsMdnsConstants.DC_MESSAGE_CHARACTERISTIC_NOTIFICATION, - seqNum, - FtmsMdnsConstants.DC_RC_REQUEST_COMPLETED_SUCCESSFULLY, - (responseBody.length >> 8) & 0xFF, - responseBody.length & 0xFF, - ]), - // body - ...responseBody, - ]; - return responseData; - } - - Future _sendKeepAlive() async { - await Future.delayed(const Duration(seconds: 5)); - if (_socket != null) { - _write( - _socket!, - _buildNotify( - ZwiftConstants.ZWIFT_SYNC_TX_CHARACTERISTIC_UUID, - hexToBytes('B70100002041201C00180004001B4F00B701000020798EC5BDEFCBE4563418269E4926FBE1'), - ), - ); - _sendKeepAlive(); - } - } -} - -extension on String { - String toNonDash() { - return replaceAll('-', ''); - } - - String toUUID() { - return '${substring(0, 8)}-${substring(8, 12)}-${substring(12, 16)}-${substring(16, 20)}-${substring(20)}'; - } -} - -extension on List { - int takeUInt8() { - final value = this[0]; - removeAt(0); - return value; - } - - int readUInt8(int offset) { - return this[offset]; - } - - int takeUInt16BE() { - final value = (this[0] << 8) | this[0 + 1]; - removeAt(0); - removeAt(0); - return value; - } - - List takeBytes(int length) { - final value = sublist(0, length); - removeRange(0, length); - return value; - } - - int readUInt16BE(int i) { - final value = (this[i] << 8) | this[i + 1]; - return value; - } -} - -String bytesToHex(List bytes, {bool spaced = false}) { - return bytes.map((byte) => byte.toRadixString(16).padLeft(2, '0')).join(spaced ? ' ' : ''); -} - -String bytesToReadableHex(List bytes) { - return bytes.map((byte) => byte.toRadixString(16).padLeft(2, '0')).join(' '); -} - -List hexToBytes(String hex) { - final bytes = []; - for (var i = 0; i < hex.length; i += 2) { - final byte = hex.substring(i, i + 2); - bytes.add(int.parse(byte, radix: 16)); - } - return bytes; } class FtmsMdnsConstants { diff --git a/lib/bluetooth/devices/zwift/protocol/zp.pb.dart b/lib/bluetooth/devices/zwift/protocol/zp.pb.dart deleted file mode 100644 index 5396da80..00000000 --- a/lib/bluetooth/devices/zwift/protocol/zp.pb.dart +++ /dev/null @@ -1,6146 +0,0 @@ -// -// Generated code. Do not modify. -// source: zp.proto -// -// @dart = 2.12 - -// 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; - -import 'package:protobuf/protobuf.dart' as $pb; - -import 'zp.pbenum.dart'; - -export 'zp.pbenum.dart'; - -class TrainerEnvSim extends $pb.GeneratedMessage { - factory TrainerEnvSim({ - $core.int? simulatedWind, - $core.int? simulatedGrade, - $core.int? simulatedCW, - $core.int? simulatedCRR, - }) { - final $result = create(); - if (simulatedWind != null) { - $result.simulatedWind = simulatedWind; - } - if (simulatedGrade != null) { - $result.simulatedGrade = simulatedGrade; - } - if (simulatedCW != null) { - $result.simulatedCW = simulatedCW; - } - if (simulatedCRR != null) { - $result.simulatedCRR = simulatedCRR; - } - return $result; - } - TrainerEnvSim._() : super(); - factory TrainerEnvSim.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory TrainerEnvSim.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrainerEnvSim', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'simulatedWind', $pb.PbFieldType.OS3, protoName: 'simulatedWind') - ..a<$core.int>(2, _omitFieldNames ? '' : 'simulatedGrade', $pb.PbFieldType.OS3, protoName: 'simulatedGrade') - ..a<$core.int>(3, _omitFieldNames ? '' : 'simulatedCW', $pb.PbFieldType.OU3, protoName: 'simulatedCW') - ..a<$core.int>(4, _omitFieldNames ? '' : 'simulatedCRR', $pb.PbFieldType.OU3, protoName: 'simulatedCRR') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - TrainerEnvSim clone() => TrainerEnvSim()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TrainerEnvSim copyWith(void Function(TrainerEnvSim) updates) => super.copyWith((message) => updates(message as TrainerEnvSim)) as TrainerEnvSim; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static TrainerEnvSim create() => TrainerEnvSim._(); - TrainerEnvSim createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static TrainerEnvSim getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static TrainerEnvSim? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get simulatedWind => $_getIZ(0); - @$pb.TagNumber(1) - set simulatedWind($core.int v) { $_setSignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasSimulatedWind() => $_has(0); - @$pb.TagNumber(1) - void clearSimulatedWind() => clearField(1); - - @$pb.TagNumber(2) - $core.int get simulatedGrade => $_getIZ(1); - @$pb.TagNumber(2) - set simulatedGrade($core.int v) { $_setSignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasSimulatedGrade() => $_has(1); - @$pb.TagNumber(2) - void clearSimulatedGrade() => clearField(2); - - @$pb.TagNumber(3) - $core.int get simulatedCW => $_getIZ(2); - @$pb.TagNumber(3) - set simulatedCW($core.int v) { $_setUnsignedInt32(2, v); } - @$pb.TagNumber(3) - $core.bool hasSimulatedCW() => $_has(2); - @$pb.TagNumber(3) - void clearSimulatedCW() => clearField(3); - - @$pb.TagNumber(4) - $core.int get simulatedCRR => $_getIZ(3); - @$pb.TagNumber(4) - set simulatedCRR($core.int v) { $_setUnsignedInt32(3, v); } - @$pb.TagNumber(4) - $core.bool hasSimulatedCRR() => $_has(3); - @$pb.TagNumber(4) - void clearSimulatedCRR() => clearField(4); -} - -class TrainerBikeSim extends $pb.GeneratedMessage { - factory TrainerBikeSim({ - $core.int? simulatedRealGearRatio, - $core.int? simulatedVirtualGearRatio, - $core.int? simulatedWheelDiameter, - $core.int? simulatedBikeMass, - $core.int? simulatedRiderMass, - $core.int? simulatedFrontalArea, - $core.int? eBrake, - }) { - final $result = create(); - if (simulatedRealGearRatio != null) { - $result.simulatedRealGearRatio = simulatedRealGearRatio; - } - if (simulatedVirtualGearRatio != null) { - $result.simulatedVirtualGearRatio = simulatedVirtualGearRatio; - } - if (simulatedWheelDiameter != null) { - $result.simulatedWheelDiameter = simulatedWheelDiameter; - } - if (simulatedBikeMass != null) { - $result.simulatedBikeMass = simulatedBikeMass; - } - if (simulatedRiderMass != null) { - $result.simulatedRiderMass = simulatedRiderMass; - } - if (simulatedFrontalArea != null) { - $result.simulatedFrontalArea = simulatedFrontalArea; - } - if (eBrake != null) { - $result.eBrake = eBrake; - } - return $result; - } - TrainerBikeSim._() : super(); - factory TrainerBikeSim.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory TrainerBikeSim.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrainerBikeSim', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'simulatedRealGearRatio', $pb.PbFieldType.OU3, protoName: 'simulatedRealGearRatio') - ..a<$core.int>(2, _omitFieldNames ? '' : 'simulatedVirtualGearRatio', $pb.PbFieldType.OU3, protoName: 'simulatedVirtualGearRatio') - ..a<$core.int>(3, _omitFieldNames ? '' : 'simulatedWheelDiameter', $pb.PbFieldType.OU3, protoName: 'simulatedWheelDiameter') - ..a<$core.int>(4, _omitFieldNames ? '' : 'simulatedBikeMass', $pb.PbFieldType.OU3, protoName: 'simulatedBikeMass') - ..a<$core.int>(5, _omitFieldNames ? '' : 'simulatedRiderMass', $pb.PbFieldType.OU3, protoName: 'simulatedRiderMass') - ..a<$core.int>(6, _omitFieldNames ? '' : 'simulatedFrontalArea', $pb.PbFieldType.OU3, protoName: 'simulatedFrontalArea') - ..a<$core.int>(7, _omitFieldNames ? '' : 'eBrake', $pb.PbFieldType.OU3, protoName: 'eBrake') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - TrainerBikeSim clone() => TrainerBikeSim()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TrainerBikeSim copyWith(void Function(TrainerBikeSim) updates) => super.copyWith((message) => updates(message as TrainerBikeSim)) as TrainerBikeSim; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static TrainerBikeSim create() => TrainerBikeSim._(); - TrainerBikeSim createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static TrainerBikeSim getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static TrainerBikeSim? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get simulatedRealGearRatio => $_getIZ(0); - @$pb.TagNumber(1) - set simulatedRealGearRatio($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasSimulatedRealGearRatio() => $_has(0); - @$pb.TagNumber(1) - void clearSimulatedRealGearRatio() => clearField(1); - - @$pb.TagNumber(2) - $core.int get simulatedVirtualGearRatio => $_getIZ(1); - @$pb.TagNumber(2) - set simulatedVirtualGearRatio($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasSimulatedVirtualGearRatio() => $_has(1); - @$pb.TagNumber(2) - void clearSimulatedVirtualGearRatio() => clearField(2); - - @$pb.TagNumber(3) - $core.int get simulatedWheelDiameter => $_getIZ(2); - @$pb.TagNumber(3) - set simulatedWheelDiameter($core.int v) { $_setUnsignedInt32(2, v); } - @$pb.TagNumber(3) - $core.bool hasSimulatedWheelDiameter() => $_has(2); - @$pb.TagNumber(3) - void clearSimulatedWheelDiameter() => clearField(3); - - @$pb.TagNumber(4) - $core.int get simulatedBikeMass => $_getIZ(3); - @$pb.TagNumber(4) - set simulatedBikeMass($core.int v) { $_setUnsignedInt32(3, v); } - @$pb.TagNumber(4) - $core.bool hasSimulatedBikeMass() => $_has(3); - @$pb.TagNumber(4) - void clearSimulatedBikeMass() => clearField(4); - - @$pb.TagNumber(5) - $core.int get simulatedRiderMass => $_getIZ(4); - @$pb.TagNumber(5) - set simulatedRiderMass($core.int v) { $_setUnsignedInt32(4, v); } - @$pb.TagNumber(5) - $core.bool hasSimulatedRiderMass() => $_has(4); - @$pb.TagNumber(5) - void clearSimulatedRiderMass() => clearField(5); - - @$pb.TagNumber(6) - $core.int get simulatedFrontalArea => $_getIZ(5); - @$pb.TagNumber(6) - set simulatedFrontalArea($core.int v) { $_setUnsignedInt32(5, v); } - @$pb.TagNumber(6) - $core.bool hasSimulatedFrontalArea() => $_has(5); - @$pb.TagNumber(6) - void clearSimulatedFrontalArea() => clearField(6); - - @$pb.TagNumber(7) - $core.int get eBrake => $_getIZ(6); - @$pb.TagNumber(7) - set eBrake($core.int v) { $_setUnsignedInt32(6, v); } - @$pb.TagNumber(7) - $core.bool hasEBrake() => $_has(6); - @$pb.TagNumber(7) - void clearEBrake() => clearField(7); -} - -class ControllerAnalogEvent extends $pb.GeneratedMessage { - factory ControllerAnalogEvent({ - $core.int? sensorId, - $core.int? value, - }) { - final $result = create(); - if (sensorId != null) { - $result.sensorId = sensorId; - } - if (value != null) { - $result.value = value; - } - return $result; - } - ControllerAnalogEvent._() : super(); - factory ControllerAnalogEvent.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ControllerAnalogEvent.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ControllerAnalogEvent', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'sensorId', $pb.PbFieldType.OU3, protoName: 'sensorId') - ..a<$core.int>(2, _omitFieldNames ? '' : 'value', $pb.PbFieldType.OS3) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ControllerAnalogEvent clone() => ControllerAnalogEvent()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ControllerAnalogEvent copyWith(void Function(ControllerAnalogEvent) updates) => super.copyWith((message) => updates(message as ControllerAnalogEvent)) as ControllerAnalogEvent; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static ControllerAnalogEvent create() => ControllerAnalogEvent._(); - ControllerAnalogEvent createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static ControllerAnalogEvent getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static ControllerAnalogEvent? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get sensorId => $_getIZ(0); - @$pb.TagNumber(1) - set sensorId($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasSensorId() => $_has(0); - @$pb.TagNumber(1) - void clearSensorId() => clearField(1); - - @$pb.TagNumber(2) - $core.int get value => $_getIZ(1); - @$pb.TagNumber(2) - set value($core.int v) { $_setSignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasValue() => $_has(1); - @$pb.TagNumber(2) - void clearValue() => clearField(2); -} - -class InputAnalogRange extends $pb.GeneratedMessage { - factory InputAnalogRange({ - $core.int? sensorId, - $core.int? minAnalogValue, - $core.int? maxAnalogValue, - }) { - final $result = create(); - if (sensorId != null) { - $result.sensorId = sensorId; - } - if (minAnalogValue != null) { - $result.minAnalogValue = minAnalogValue; - } - if (maxAnalogValue != null) { - $result.maxAnalogValue = maxAnalogValue; - } - return $result; - } - InputAnalogRange._() : super(); - factory InputAnalogRange.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory InputAnalogRange.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'InputAnalogRange', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'sensorId', $pb.PbFieldType.OU3, protoName: 'sensorId') - ..a<$core.int>(2, _omitFieldNames ? '' : 'minAnalogValue', $pb.PbFieldType.OS3, protoName: 'minAnalogValue') - ..a<$core.int>(3, _omitFieldNames ? '' : 'maxAnalogValue', $pb.PbFieldType.OS3, protoName: 'maxAnalogValue') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - InputAnalogRange clone() => InputAnalogRange()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - InputAnalogRange copyWith(void Function(InputAnalogRange) updates) => super.copyWith((message) => updates(message as InputAnalogRange)) as InputAnalogRange; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static InputAnalogRange create() => InputAnalogRange._(); - InputAnalogRange createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static InputAnalogRange getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static InputAnalogRange? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get sensorId => $_getIZ(0); - @$pb.TagNumber(1) - set sensorId($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasSensorId() => $_has(0); - @$pb.TagNumber(1) - void clearSensorId() => clearField(1); - - @$pb.TagNumber(2) - $core.int get minAnalogValue => $_getIZ(1); - @$pb.TagNumber(2) - set minAnalogValue($core.int v) { $_setSignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasMinAnalogValue() => $_has(1); - @$pb.TagNumber(2) - void clearMinAnalogValue() => clearField(2); - - @$pb.TagNumber(3) - $core.int get maxAnalogValue => $_getIZ(2); - @$pb.TagNumber(3) - set maxAnalogValue($core.int v) { $_setSignedInt32(2, v); } - @$pb.TagNumber(3) - $core.bool hasMaxAnalogValue() => $_has(2); - @$pb.TagNumber(3) - void clearMaxAnalogValue() => clearField(3); -} - -class InputAnalogDeadzone extends $pb.GeneratedMessage { - factory InputAnalogDeadzone({ - $core.int? sensorId, - $core.int? negDeadzoneValue, - $core.int? posDeadzoneValue, - }) { - final $result = create(); - if (sensorId != null) { - $result.sensorId = sensorId; - } - if (negDeadzoneValue != null) { - $result.negDeadzoneValue = negDeadzoneValue; - } - if (posDeadzoneValue != null) { - $result.posDeadzoneValue = posDeadzoneValue; - } - return $result; - } - InputAnalogDeadzone._() : super(); - factory InputAnalogDeadzone.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory InputAnalogDeadzone.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'InputAnalogDeadzone', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'sensorId', $pb.PbFieldType.OU3, protoName: 'sensorId') - ..a<$core.int>(2, _omitFieldNames ? '' : 'negDeadzoneValue', $pb.PbFieldType.OS3, protoName: 'negDeadzoneValue') - ..a<$core.int>(3, _omitFieldNames ? '' : 'posDeadzoneValue', $pb.PbFieldType.OS3, protoName: 'posDeadzoneValue') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - InputAnalogDeadzone clone() => InputAnalogDeadzone()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - InputAnalogDeadzone copyWith(void Function(InputAnalogDeadzone) updates) => super.copyWith((message) => updates(message as InputAnalogDeadzone)) as InputAnalogDeadzone; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static InputAnalogDeadzone create() => InputAnalogDeadzone._(); - InputAnalogDeadzone createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static InputAnalogDeadzone getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static InputAnalogDeadzone? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get sensorId => $_getIZ(0); - @$pb.TagNumber(1) - set sensorId($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasSensorId() => $_has(0); - @$pb.TagNumber(1) - void clearSensorId() => clearField(1); - - @$pb.TagNumber(2) - $core.int get negDeadzoneValue => $_getIZ(1); - @$pb.TagNumber(2) - set negDeadzoneValue($core.int v) { $_setSignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasNegDeadzoneValue() => $_has(1); - @$pb.TagNumber(2) - void clearNegDeadzoneValue() => clearField(2); - - @$pb.TagNumber(3) - $core.int get posDeadzoneValue => $_getIZ(2); - @$pb.TagNumber(3) - set posDeadzoneValue($core.int v) { $_setSignedInt32(2, v); } - @$pb.TagNumber(3) - $core.bool hasPosDeadzoneValue() => $_has(2); - @$pb.TagNumber(3) - void clearPosDeadzoneValue() => clearField(3); -} - -class WifiNetwork extends $pb.GeneratedMessage { - factory WifiNetwork({ - $core.int? networkId, - $core.List<$core.int>? ssid, - $core.List<$core.int>? password, - }) { - final $result = create(); - if (networkId != null) { - $result.networkId = networkId; - } - if (ssid != null) { - $result.ssid = ssid; - } - if (password != null) { - $result.password = password; - } - return $result; - } - WifiNetwork._() : super(); - factory WifiNetwork.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory WifiNetwork.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'WifiNetwork', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'networkId', $pb.PbFieldType.OU3, protoName: 'networkId') - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'ssid', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'password', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - WifiNetwork clone() => WifiNetwork()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - WifiNetwork copyWith(void Function(WifiNetwork) updates) => super.copyWith((message) => updates(message as WifiNetwork)) as WifiNetwork; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static WifiNetwork create() => WifiNetwork._(); - WifiNetwork createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static WifiNetwork getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static WifiNetwork? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get networkId => $_getIZ(0); - @$pb.TagNumber(1) - set networkId($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasNetworkId() => $_has(0); - @$pb.TagNumber(1) - void clearNetworkId() => clearField(1); - - @$pb.TagNumber(2) - $core.List<$core.int> get ssid => $_getN(1); - @$pb.TagNumber(2) - set ssid($core.List<$core.int> v) { $_setBytes(1, v); } - @$pb.TagNumber(2) - $core.bool hasSsid() => $_has(1); - @$pb.TagNumber(2) - void clearSsid() => clearField(2); - - @$pb.TagNumber(3) - $core.List<$core.int> get password => $_getN(2); - @$pb.TagNumber(3) - set password($core.List<$core.int> v) { $_setBytes(2, v); } - @$pb.TagNumber(3) - $core.bool hasPassword() => $_has(2); - @$pb.TagNumber(3) - void clearPassword() => clearField(3); -} - -class WifiRegionCode extends $pb.GeneratedMessage { - factory WifiRegionCode({ - WifiRegionCode_RegionCodeType? regionCodeType, - $core.List<$core.int>? regionCode, - }) { - final $result = create(); - if (regionCodeType != null) { - $result.regionCodeType = regionCodeType; - } - if (regionCode != null) { - $result.regionCode = regionCode; - } - return $result; - } - WifiRegionCode._() : super(); - factory WifiRegionCode.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory WifiRegionCode.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'WifiRegionCode', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'regionCodeType', $pb.PbFieldType.OE, protoName: 'regionCodeType', defaultOrMaker: WifiRegionCode_RegionCodeType.ALPHA_2, valueOf: WifiRegionCode_RegionCodeType.valueOf, enumValues: WifiRegionCode_RegionCodeType.values) - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'regionCode', $pb.PbFieldType.OY, protoName: 'regionCode') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - WifiRegionCode clone() => WifiRegionCode()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - WifiRegionCode copyWith(void Function(WifiRegionCode) updates) => super.copyWith((message) => updates(message as WifiRegionCode)) as WifiRegionCode; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static WifiRegionCode create() => WifiRegionCode._(); - WifiRegionCode createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static WifiRegionCode getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static WifiRegionCode? _defaultInstance; - - @$pb.TagNumber(1) - WifiRegionCode_RegionCodeType get regionCodeType => $_getN(0); - @$pb.TagNumber(1) - set regionCodeType(WifiRegionCode_RegionCodeType v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasRegionCodeType() => $_has(0); - @$pb.TagNumber(1) - void clearRegionCodeType() => clearField(1); - - @$pb.TagNumber(2) - $core.List<$core.int> get regionCode => $_getN(1); - @$pb.TagNumber(2) - set regionCode($core.List<$core.int> v) { $_setBytes(1, v); } - @$pb.TagNumber(2) - $core.bool hasRegionCode() => $_has(1); - @$pb.TagNumber(2) - void clearRegionCode() => clearField(2); -} - -class WifiNetworkDetails extends $pb.GeneratedMessage { - factory WifiNetworkDetails({ - $core.int? networkId, - $core.List<$core.int>? bssid, - $core.List<$core.int>? ssid, - $core.int? securityType, - $core.int? band, - $core.int? rssi, - }) { - final $result = create(); - if (networkId != null) { - $result.networkId = networkId; - } - if (bssid != null) { - $result.bssid = bssid; - } - if (ssid != null) { - $result.ssid = ssid; - } - if (securityType != null) { - $result.securityType = securityType; - } - if (band != null) { - $result.band = band; - } - if (rssi != null) { - $result.rssi = rssi; - } - return $result; - } - WifiNetworkDetails._() : super(); - factory WifiNetworkDetails.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory WifiNetworkDetails.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'WifiNetworkDetails', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'networkId', $pb.PbFieldType.OU3, protoName: 'networkId') - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'bssid', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'ssid', $pb.PbFieldType.OY) - ..a<$core.int>(4, _omitFieldNames ? '' : 'securityType', $pb.PbFieldType.OU3, protoName: 'securityType') - ..a<$core.int>(5, _omitFieldNames ? '' : 'band', $pb.PbFieldType.OU3) - ..a<$core.int>(6, _omitFieldNames ? '' : 'rssi', $pb.PbFieldType.OS3) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - WifiNetworkDetails clone() => WifiNetworkDetails()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - WifiNetworkDetails copyWith(void Function(WifiNetworkDetails) updates) => super.copyWith((message) => updates(message as WifiNetworkDetails)) as WifiNetworkDetails; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static WifiNetworkDetails create() => WifiNetworkDetails._(); - WifiNetworkDetails createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static WifiNetworkDetails getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static WifiNetworkDetails? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get networkId => $_getIZ(0); - @$pb.TagNumber(1) - set networkId($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasNetworkId() => $_has(0); - @$pb.TagNumber(1) - void clearNetworkId() => clearField(1); - - @$pb.TagNumber(2) - $core.List<$core.int> get bssid => $_getN(1); - @$pb.TagNumber(2) - set bssid($core.List<$core.int> v) { $_setBytes(1, v); } - @$pb.TagNumber(2) - $core.bool hasBssid() => $_has(1); - @$pb.TagNumber(2) - void clearBssid() => clearField(2); - - @$pb.TagNumber(3) - $core.List<$core.int> get ssid => $_getN(2); - @$pb.TagNumber(3) - set ssid($core.List<$core.int> v) { $_setBytes(2, v); } - @$pb.TagNumber(3) - $core.bool hasSsid() => $_has(2); - @$pb.TagNumber(3) - void clearSsid() => clearField(3); - - @$pb.TagNumber(4) - $core.int get securityType => $_getIZ(3); - @$pb.TagNumber(4) - set securityType($core.int v) { $_setUnsignedInt32(3, v); } - @$pb.TagNumber(4) - $core.bool hasSecurityType() => $_has(3); - @$pb.TagNumber(4) - void clearSecurityType() => clearField(4); - - @$pb.TagNumber(5) - $core.int get band => $_getIZ(4); - @$pb.TagNumber(5) - set band($core.int v) { $_setUnsignedInt32(4, v); } - @$pb.TagNumber(5) - $core.bool hasBand() => $_has(4); - @$pb.TagNumber(5) - void clearBand() => clearField(5); - - @$pb.TagNumber(6) - $core.int get rssi => $_getIZ(5); - @$pb.TagNumber(6) - set rssi($core.int v) { $_setSignedInt32(5, v); } - @$pb.TagNumber(6) - $core.bool hasRssi() => $_has(5); - @$pb.TagNumber(6) - void clearRssi() => clearField(6); -} - -class SensorInfo extends $pb.GeneratedMessage { - factory SensorInfo({ - $core.int? relayAssignedId, - $core.List<$core.int>? sensorName, - $core.List<$core.int>? sensorAddress, - InterfaceType? interfaceType, - SensorConnectionStatus? connectionStatus, - $core.Iterable? deviceTypes, - $core.bool? supportsZp, - }) { - final $result = create(); - if (relayAssignedId != null) { - $result.relayAssignedId = relayAssignedId; - } - if (sensorName != null) { - $result.sensorName = sensorName; - } - if (sensorAddress != null) { - $result.sensorAddress = sensorAddress; - } - if (interfaceType != null) { - $result.interfaceType = interfaceType; - } - if (connectionStatus != null) { - $result.connectionStatus = connectionStatus; - } - if (deviceTypes != null) { - $result.deviceTypes.addAll(deviceTypes); - } - if (supportsZp != null) { - $result.supportsZp = supportsZp; - } - return $result; - } - SensorInfo._() : super(); - factory SensorInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SensorInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SensorInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'relayAssignedId', $pb.PbFieldType.OU3, protoName: 'relayAssignedId') - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'sensorName', $pb.PbFieldType.OY, protoName: 'sensorName') - ..a<$core.List<$core.int>>(4, _omitFieldNames ? '' : 'sensorAddress', $pb.PbFieldType.OY, protoName: 'sensorAddress') - ..e(5, _omitFieldNames ? '' : 'interfaceType', $pb.PbFieldType.OE, protoName: 'interfaceType', defaultOrMaker: InterfaceType.INTERFACE_BLE, valueOf: InterfaceType.valueOf, enumValues: InterfaceType.values) - ..e(6, _omitFieldNames ? '' : 'connectionStatus', $pb.PbFieldType.OE, protoName: 'connectionStatus', defaultOrMaker: SensorConnectionStatus.SENSOR_STATUS_DISCOVERED, valueOf: SensorConnectionStatus.valueOf, enumValues: SensorConnectionStatus.values) - ..pc(7, _omitFieldNames ? '' : 'deviceTypes', $pb.PbFieldType.PE, protoName: 'deviceTypes', valueOf: DeviceType.valueOf, enumValues: DeviceType.values, defaultEnumValue: DeviceType.UNDEFINED) - ..aOB(8, _omitFieldNames ? '' : 'supportsZp', protoName: 'supportsZp') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SensorInfo clone() => SensorInfo()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SensorInfo copyWith(void Function(SensorInfo) updates) => super.copyWith((message) => updates(message as SensorInfo)) as SensorInfo; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SensorInfo create() => SensorInfo._(); - SensorInfo createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SensorInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static SensorInfo? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get relayAssignedId => $_getIZ(0); - @$pb.TagNumber(1) - set relayAssignedId($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasRelayAssignedId() => $_has(0); - @$pb.TagNumber(1) - void clearRelayAssignedId() => clearField(1); - - @$pb.TagNumber(2) - $core.List<$core.int> get sensorName => $_getN(1); - @$pb.TagNumber(2) - set sensorName($core.List<$core.int> v) { $_setBytes(1, v); } - @$pb.TagNumber(2) - $core.bool hasSensorName() => $_has(1); - @$pb.TagNumber(2) - void clearSensorName() => clearField(2); - - @$pb.TagNumber(4) - $core.List<$core.int> get sensorAddress => $_getN(2); - @$pb.TagNumber(4) - set sensorAddress($core.List<$core.int> v) { $_setBytes(2, v); } - @$pb.TagNumber(4) - $core.bool hasSensorAddress() => $_has(2); - @$pb.TagNumber(4) - void clearSensorAddress() => clearField(4); - - @$pb.TagNumber(5) - InterfaceType get interfaceType => $_getN(3); - @$pb.TagNumber(5) - set interfaceType(InterfaceType v) { setField(5, v); } - @$pb.TagNumber(5) - $core.bool hasInterfaceType() => $_has(3); - @$pb.TagNumber(5) - void clearInterfaceType() => clearField(5); - - @$pb.TagNumber(6) - SensorConnectionStatus get connectionStatus => $_getN(4); - @$pb.TagNumber(6) - set connectionStatus(SensorConnectionStatus v) { setField(6, v); } - @$pb.TagNumber(6) - $core.bool hasConnectionStatus() => $_has(4); - @$pb.TagNumber(6) - void clearConnectionStatus() => clearField(6); - - @$pb.TagNumber(7) - $core.List get deviceTypes => $_getList(5); - - @$pb.TagNumber(8) - $core.bool get supportsZp => $_getBF(6); - @$pb.TagNumber(8) - set supportsZp($core.bool v) { $_setBool(6, v); } - @$pb.TagNumber(8) - $core.bool hasSupportsZp() => $_has(6); - @$pb.TagNumber(8) - void clearSupportsZp() => clearField(8); -} - -class SensorInfoList extends $pb.GeneratedMessage { - factory SensorInfoList({ - $core.Iterable? sensorInfo, - }) { - final $result = create(); - if (sensorInfo != null) { - $result.sensorInfo.addAll(sensorInfo); - } - return $result; - } - SensorInfoList._() : super(); - factory SensorInfoList.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SensorInfoList.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SensorInfoList', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'sensorInfo', $pb.PbFieldType.PM, protoName: 'sensorInfo', subBuilder: SensorInfo.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SensorInfoList clone() => SensorInfoList()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SensorInfoList copyWith(void Function(SensorInfoList) updates) => super.copyWith((message) => updates(message as SensorInfoList)) as SensorInfoList; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SensorInfoList create() => SensorInfoList._(); - SensorInfoList createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SensorInfoList getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static SensorInfoList? _defaultInstance; - - @$pb.TagNumber(1) - $core.List get sensorInfo => $_getList(0); -} - -class DeviceUpdatePage extends $pb.GeneratedMessage { - factory DeviceUpdatePage({ - $core.int? updateStatus, - $core.int? newVersion, - }) { - final $result = create(); - if (updateStatus != null) { - $result.updateStatus = updateStatus; - } - if (newVersion != null) { - $result.newVersion = newVersion; - } - return $result; - } - DeviceUpdatePage._() : super(); - factory DeviceUpdatePage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DeviceUpdatePage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeviceUpdatePage', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'updateStatus', $pb.PbFieldType.OU3, protoName: 'updateStatus') - ..a<$core.int>(2, _omitFieldNames ? '' : 'newVersion', $pb.PbFieldType.OU3, protoName: 'newVersion') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - DeviceUpdatePage clone() => DeviceUpdatePage()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DeviceUpdatePage copyWith(void Function(DeviceUpdatePage) updates) => super.copyWith((message) => updates(message as DeviceUpdatePage)) as DeviceUpdatePage; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static DeviceUpdatePage create() => DeviceUpdatePage._(); - DeviceUpdatePage createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static DeviceUpdatePage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static DeviceUpdatePage? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get updateStatus => $_getIZ(0); - @$pb.TagNumber(1) - set updateStatus($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasUpdateStatus() => $_has(0); - @$pb.TagNumber(1) - void clearUpdateStatus() => clearField(1); - - @$pb.TagNumber(2) - $core.int get newVersion => $_getIZ(1); - @$pb.TagNumber(2) - set newVersion($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasNewVersion() => $_has(1); - @$pb.TagNumber(2) - void clearNewVersion() => clearField(2); -} - -class DateTimePage extends $pb.GeneratedMessage { - factory DateTimePage({ - $core.int? utcDateTime, - }) { - final $result = create(); - if (utcDateTime != null) { - $result.utcDateTime = utcDateTime; - } - return $result; - } - DateTimePage._() : super(); - factory DateTimePage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DateTimePage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DateTimePage', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'utcDateTime', $pb.PbFieldType.OU3, protoName: 'utcDateTime') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - DateTimePage clone() => DateTimePage()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DateTimePage copyWith(void Function(DateTimePage) updates) => super.copyWith((message) => updates(message as DateTimePage)) as DateTimePage; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static DateTimePage create() => DateTimePage._(); - DateTimePage createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static DateTimePage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static DateTimePage? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get utcDateTime => $_getIZ(0); - @$pb.TagNumber(1) - set utcDateTime($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasUtcDateTime() => $_has(0); - @$pb.TagNumber(1) - void clearUtcDateTime() => clearField(1); -} - -class BleSecurityPage extends $pb.GeneratedMessage { - factory BleSecurityPage({ - BleSecureConnectionStatus? secureConnectionStatus, - BleSecureConnectionWindowStatus? secureConnectionWindowStatus, - }) { - final $result = create(); - if (secureConnectionStatus != null) { - $result.secureConnectionStatus = secureConnectionStatus; - } - if (secureConnectionWindowStatus != null) { - $result.secureConnectionWindowStatus = secureConnectionWindowStatus; - } - return $result; - } - BleSecurityPage._() : super(); - factory BleSecurityPage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory BleSecurityPage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BleSecurityPage', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'secureConnectionStatus', $pb.PbFieldType.OE, protoName: 'secureConnectionStatus', defaultOrMaker: BleSecureConnectionStatus.BLE_CONNECTION_SECURITY_STATUS_NONE, valueOf: BleSecureConnectionStatus.valueOf, enumValues: BleSecureConnectionStatus.values) - ..e(2, _omitFieldNames ? '' : 'secureConnectionWindowStatus', $pb.PbFieldType.OE, protoName: 'secureConnectionWindowStatus', defaultOrMaker: BleSecureConnectionWindowStatus.BLE_SECURE_CONNECTION_WINDOW_STATUS_CLOSED, valueOf: BleSecureConnectionWindowStatus.valueOf, enumValues: BleSecureConnectionWindowStatus.values) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - BleSecurityPage clone() => BleSecurityPage()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - BleSecurityPage copyWith(void Function(BleSecurityPage) updates) => super.copyWith((message) => updates(message as BleSecurityPage)) as BleSecurityPage; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static BleSecurityPage create() => BleSecurityPage._(); - BleSecurityPage createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static BleSecurityPage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static BleSecurityPage? _defaultInstance; - - @$pb.TagNumber(1) - BleSecureConnectionStatus get secureConnectionStatus => $_getN(0); - @$pb.TagNumber(1) - set secureConnectionStatus(BleSecureConnectionStatus v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasSecureConnectionStatus() => $_has(0); - @$pb.TagNumber(1) - void clearSecureConnectionStatus() => clearField(1); - - @$pb.TagNumber(2) - BleSecureConnectionWindowStatus get secureConnectionWindowStatus => $_getN(1); - @$pb.TagNumber(2) - set secureConnectionWindowStatus(BleSecureConnectionWindowStatus v) { setField(2, v); } - @$pb.TagNumber(2) - $core.bool hasSecureConnectionWindowStatus() => $_has(1); - @$pb.TagNumber(2) - void clearSecureConnectionWindowStatus() => clearField(2); -} - -class DevInfoPage_DeviceCapabilities extends $pb.GeneratedMessage { - factory DevInfoPage_DeviceCapabilities({ - $core.int? deviceType, - $core.int? capabilities, - }) { - final $result = create(); - if (deviceType != null) { - $result.deviceType = deviceType; - } - if (capabilities != null) { - $result.capabilities = capabilities; - } - return $result; - } - DevInfoPage_DeviceCapabilities._() : super(); - factory DevInfoPage_DeviceCapabilities.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DevInfoPage_DeviceCapabilities.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DevInfoPage.DeviceCapabilities', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'deviceType', $pb.PbFieldType.QU3, protoName: 'deviceType') - ..a<$core.int>(2, _omitFieldNames ? '' : 'capabilities', $pb.PbFieldType.QU3) - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - DevInfoPage_DeviceCapabilities clone() => DevInfoPage_DeviceCapabilities()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DevInfoPage_DeviceCapabilities copyWith(void Function(DevInfoPage_DeviceCapabilities) updates) => super.copyWith((message) => updates(message as DevInfoPage_DeviceCapabilities)) as DevInfoPage_DeviceCapabilities; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static DevInfoPage_DeviceCapabilities create() => DevInfoPage_DeviceCapabilities._(); - DevInfoPage_DeviceCapabilities createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static DevInfoPage_DeviceCapabilities getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static DevInfoPage_DeviceCapabilities? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get deviceType => $_getIZ(0); - @$pb.TagNumber(1) - set deviceType($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasDeviceType() => $_has(0); - @$pb.TagNumber(1) - void clearDeviceType() => clearField(1); - - @$pb.TagNumber(2) - $core.int get capabilities => $_getIZ(1); - @$pb.TagNumber(2) - set capabilities($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasCapabilities() => $_has(1); - @$pb.TagNumber(2) - void clearCapabilities() => clearField(2); -} - -/// Page ID 0x000 -class DevInfoPage extends $pb.GeneratedMessage { - factory DevInfoPage({ - $core.int? protocolVersion, - $core.List<$core.int>? systemFwVersion, - $core.List<$core.int>? deviceName, - $core.List<$core.int>? serialNumber, - $core.List<$core.int>? systemHwRevision, - $core.Iterable? deviceCapabilities, - $core.int? manufacturerId, - $core.int? productId, - $core.List<$core.int>? deviceUid, - }) { - final $result = create(); - if (protocolVersion != null) { - $result.protocolVersion = protocolVersion; - } - if (systemFwVersion != null) { - $result.systemFwVersion = systemFwVersion; - } - if (deviceName != null) { - $result.deviceName = deviceName; - } - if (serialNumber != null) { - $result.serialNumber = serialNumber; - } - if (systemHwRevision != null) { - $result.systemHwRevision = systemHwRevision; - } - if (deviceCapabilities != null) { - $result.deviceCapabilities.addAll(deviceCapabilities); - } - if (manufacturerId != null) { - $result.manufacturerId = manufacturerId; - } - if (productId != null) { - $result.productId = productId; - } - if (deviceUid != null) { - $result.deviceUid = deviceUid; - } - return $result; - } - DevInfoPage._() : super(); - factory DevInfoPage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DevInfoPage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DevInfoPage', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'protocolVersion', $pb.PbFieldType.OU3, protoName: 'protocolVersion') - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'systemFwVersion', $pb.PbFieldType.OY, protoName: 'systemFwVersion') - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'deviceName', $pb.PbFieldType.OY, protoName: 'deviceName') - ..a<$core.List<$core.int>>(6, _omitFieldNames ? '' : 'serialNumber', $pb.PbFieldType.OY, protoName: 'serialNumber') - ..a<$core.List<$core.int>>(7, _omitFieldNames ? '' : 'systemHwRevision', $pb.PbFieldType.OY, protoName: 'systemHwRevision') - ..pc(8, _omitFieldNames ? '' : 'deviceCapabilities', $pb.PbFieldType.PM, protoName: 'deviceCapabilities', subBuilder: DevInfoPage_DeviceCapabilities.create) - ..a<$core.int>(9, _omitFieldNames ? '' : 'manufacturerId', $pb.PbFieldType.OU3, protoName: 'manufacturerId') - ..a<$core.int>(10, _omitFieldNames ? '' : 'productId', $pb.PbFieldType.OU3, protoName: 'productId') - ..a<$core.List<$core.int>>(11, _omitFieldNames ? '' : 'deviceUid', $pb.PbFieldType.OY, protoName: 'deviceUid') - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - DevInfoPage clone() => DevInfoPage()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DevInfoPage copyWith(void Function(DevInfoPage) updates) => super.copyWith((message) => updates(message as DevInfoPage)) as DevInfoPage; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static DevInfoPage create() => DevInfoPage._(); - DevInfoPage createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static DevInfoPage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static DevInfoPage? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get protocolVersion => $_getIZ(0); - @$pb.TagNumber(1) - set protocolVersion($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasProtocolVersion() => $_has(0); - @$pb.TagNumber(1) - void clearProtocolVersion() => clearField(1); - - @$pb.TagNumber(2) - $core.List<$core.int> get systemFwVersion => $_getN(1); - @$pb.TagNumber(2) - set systemFwVersion($core.List<$core.int> v) { $_setBytes(1, v); } - @$pb.TagNumber(2) - $core.bool hasSystemFwVersion() => $_has(1); - @$pb.TagNumber(2) - void clearSystemFwVersion() => clearField(2); - - @$pb.TagNumber(3) - $core.List<$core.int> get deviceName => $_getN(2); - @$pb.TagNumber(3) - set deviceName($core.List<$core.int> v) { $_setBytes(2, v); } - @$pb.TagNumber(3) - $core.bool hasDeviceName() => $_has(2); - @$pb.TagNumber(3) - void clearDeviceName() => clearField(3); - - @$pb.TagNumber(6) - $core.List<$core.int> get serialNumber => $_getN(3); - @$pb.TagNumber(6) - set serialNumber($core.List<$core.int> v) { $_setBytes(3, v); } - @$pb.TagNumber(6) - $core.bool hasSerialNumber() => $_has(3); - @$pb.TagNumber(6) - void clearSerialNumber() => clearField(6); - - @$pb.TagNumber(7) - $core.List<$core.int> get systemHwRevision => $_getN(4); - @$pb.TagNumber(7) - set systemHwRevision($core.List<$core.int> v) { $_setBytes(4, v); } - @$pb.TagNumber(7) - $core.bool hasSystemHwRevision() => $_has(4); - @$pb.TagNumber(7) - void clearSystemHwRevision() => clearField(7); - - @$pb.TagNumber(8) - $core.List get deviceCapabilities => $_getList(5); - - @$pb.TagNumber(9) - $core.int get manufacturerId => $_getIZ(6); - @$pb.TagNumber(9) - set manufacturerId($core.int v) { $_setUnsignedInt32(6, v); } - @$pb.TagNumber(9) - $core.bool hasManufacturerId() => $_has(6); - @$pb.TagNumber(9) - void clearManufacturerId() => clearField(9); - - @$pb.TagNumber(10) - $core.int get productId => $_getIZ(7); - @$pb.TagNumber(10) - set productId($core.int v) { $_setUnsignedInt32(7, v); } - @$pb.TagNumber(10) - $core.bool hasProductId() => $_has(7); - @$pb.TagNumber(10) - void clearProductId() => clearField(10); - - @$pb.TagNumber(11) - $core.List<$core.int> get deviceUid => $_getN(8); - @$pb.TagNumber(11) - set deviceUid($core.List<$core.int> v) { $_setBytes(8, v); } - @$pb.TagNumber(11) - $core.bool hasDeviceUid() => $_has(8); - @$pb.TagNumber(11) - void clearDeviceUid() => clearField(11); -} - -/// Page ID 0x010 -class ClientServerCfgPage extends $pb.GeneratedMessage { - factory ClientServerCfgPage({ - $core.int? notifications, - }) { - final $result = create(); - if (notifications != null) { - $result.notifications = notifications; - } - return $result; - } - ClientServerCfgPage._() : super(); - factory ClientServerCfgPage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ClientServerCfgPage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ClientServerCfgPage', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'notifications', $pb.PbFieldType.OU3) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ClientServerCfgPage clone() => ClientServerCfgPage()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ClientServerCfgPage copyWith(void Function(ClientServerCfgPage) updates) => super.copyWith((message) => updates(message as ClientServerCfgPage)) as ClientServerCfgPage; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static ClientServerCfgPage create() => ClientServerCfgPage._(); - ClientServerCfgPage createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static ClientServerCfgPage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static ClientServerCfgPage? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get notifications => $_getIZ(0); - @$pb.TagNumber(1) - set notifications($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasNotifications() => $_has(0); - @$pb.TagNumber(1) - void clearNotifications() => clearField(1); -} - -/// Page ID 0x020 -class TrainerSimulationParam extends $pb.GeneratedMessage { - factory TrainerSimulationParam({ - $core.int? configuredResistance, - $core.int? ergPower, - $core.int? averagingWindow, - $core.int? simulatedWind, - $core.int? simulatedGrade, - $core.int? simulatedRealGearRatio, - $core.int? simulatedVirtualGearRatio, - $core.int? simulatedCW, - $core.int? simulatedWheelDiameter, - $core.int? simulatedBikeMass, - $core.int? simulatedRiderMass, - $core.int? simulatedCRR, - $core.int? simulatedFrontalArea, - $core.int? simulatedEBrake, - }) { - final $result = create(); - if (configuredResistance != null) { - $result.configuredResistance = configuredResistance; - } - if (ergPower != null) { - $result.ergPower = ergPower; - } - if (averagingWindow != null) { - $result.averagingWindow = averagingWindow; - } - if (simulatedWind != null) { - $result.simulatedWind = simulatedWind; - } - if (simulatedGrade != null) { - $result.simulatedGrade = simulatedGrade; - } - if (simulatedRealGearRatio != null) { - $result.simulatedRealGearRatio = simulatedRealGearRatio; - } - if (simulatedVirtualGearRatio != null) { - $result.simulatedVirtualGearRatio = simulatedVirtualGearRatio; - } - if (simulatedCW != null) { - $result.simulatedCW = simulatedCW; - } - if (simulatedWheelDiameter != null) { - $result.simulatedWheelDiameter = simulatedWheelDiameter; - } - if (simulatedBikeMass != null) { - $result.simulatedBikeMass = simulatedBikeMass; - } - if (simulatedRiderMass != null) { - $result.simulatedRiderMass = simulatedRiderMass; - } - if (simulatedCRR != null) { - $result.simulatedCRR = simulatedCRR; - } - if (simulatedFrontalArea != null) { - $result.simulatedFrontalArea = simulatedFrontalArea; - } - if (simulatedEBrake != null) { - $result.simulatedEBrake = simulatedEBrake; - } - return $result; - } - TrainerSimulationParam._() : super(); - factory TrainerSimulationParam.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory TrainerSimulationParam.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrainerSimulationParam', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'configuredResistance', $pb.PbFieldType.OU3, protoName: 'configuredResistance') - ..a<$core.int>(2, _omitFieldNames ? '' : 'ergPower', $pb.PbFieldType.OU3, protoName: 'ergPower') - ..a<$core.int>(3, _omitFieldNames ? '' : 'averagingWindow', $pb.PbFieldType.OU3, protoName: 'averagingWindow') - ..a<$core.int>(4, _omitFieldNames ? '' : 'simulatedWind', $pb.PbFieldType.OS3, protoName: 'simulatedWind') - ..a<$core.int>(5, _omitFieldNames ? '' : 'simulatedGrade', $pb.PbFieldType.OS3, protoName: 'simulatedGrade') - ..a<$core.int>(6, _omitFieldNames ? '' : 'simulatedRealGearRatio', $pb.PbFieldType.OU3, protoName: 'simulatedRealGearRatio') - ..a<$core.int>(7, _omitFieldNames ? '' : 'simulatedVirtualGearRatio', $pb.PbFieldType.OU3, protoName: 'simulatedVirtualGearRatio') - ..a<$core.int>(8, _omitFieldNames ? '' : 'simulatedCW', $pb.PbFieldType.OU3, protoName: 'simulatedCW') - ..a<$core.int>(9, _omitFieldNames ? '' : 'simulatedWheelDiameter', $pb.PbFieldType.OU3, protoName: 'simulatedWheelDiameter') - ..a<$core.int>(10, _omitFieldNames ? '' : 'simulatedBikeMass', $pb.PbFieldType.OU3, protoName: 'simulatedBikeMass') - ..a<$core.int>(11, _omitFieldNames ? '' : 'simulatedRiderMass', $pb.PbFieldType.OU3, protoName: 'simulatedRiderMass') - ..a<$core.int>(12, _omitFieldNames ? '' : 'simulatedCRR', $pb.PbFieldType.OU3, protoName: 'simulatedCRR') - ..a<$core.int>(13, _omitFieldNames ? '' : 'simulatedFrontalArea', $pb.PbFieldType.OU3, protoName: 'simulatedFrontalArea') - ..a<$core.int>(14, _omitFieldNames ? '' : 'simulatedEBrake', $pb.PbFieldType.OU3, protoName: 'simulatedEBrake') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - TrainerSimulationParam clone() => TrainerSimulationParam()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TrainerSimulationParam copyWith(void Function(TrainerSimulationParam) updates) => super.copyWith((message) => updates(message as TrainerSimulationParam)) as TrainerSimulationParam; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static TrainerSimulationParam create() => TrainerSimulationParam._(); - TrainerSimulationParam createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static TrainerSimulationParam getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static TrainerSimulationParam? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get configuredResistance => $_getIZ(0); - @$pb.TagNumber(1) - set configuredResistance($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasConfiguredResistance() => $_has(0); - @$pb.TagNumber(1) - void clearConfiguredResistance() => clearField(1); - - @$pb.TagNumber(2) - $core.int get ergPower => $_getIZ(1); - @$pb.TagNumber(2) - set ergPower($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasErgPower() => $_has(1); - @$pb.TagNumber(2) - void clearErgPower() => clearField(2); - - @$pb.TagNumber(3) - $core.int get averagingWindow => $_getIZ(2); - @$pb.TagNumber(3) - set averagingWindow($core.int v) { $_setUnsignedInt32(2, v); } - @$pb.TagNumber(3) - $core.bool hasAveragingWindow() => $_has(2); - @$pb.TagNumber(3) - void clearAveragingWindow() => clearField(3); - - @$pb.TagNumber(4) - $core.int get simulatedWind => $_getIZ(3); - @$pb.TagNumber(4) - set simulatedWind($core.int v) { $_setSignedInt32(3, v); } - @$pb.TagNumber(4) - $core.bool hasSimulatedWind() => $_has(3); - @$pb.TagNumber(4) - void clearSimulatedWind() => clearField(4); - - @$pb.TagNumber(5) - $core.int get simulatedGrade => $_getIZ(4); - @$pb.TagNumber(5) - set simulatedGrade($core.int v) { $_setSignedInt32(4, v); } - @$pb.TagNumber(5) - $core.bool hasSimulatedGrade() => $_has(4); - @$pb.TagNumber(5) - void clearSimulatedGrade() => clearField(5); - - @$pb.TagNumber(6) - $core.int get simulatedRealGearRatio => $_getIZ(5); - @$pb.TagNumber(6) - set simulatedRealGearRatio($core.int v) { $_setUnsignedInt32(5, v); } - @$pb.TagNumber(6) - $core.bool hasSimulatedRealGearRatio() => $_has(5); - @$pb.TagNumber(6) - void clearSimulatedRealGearRatio() => clearField(6); - - @$pb.TagNumber(7) - $core.int get simulatedVirtualGearRatio => $_getIZ(6); - @$pb.TagNumber(7) - set simulatedVirtualGearRatio($core.int v) { $_setUnsignedInt32(6, v); } - @$pb.TagNumber(7) - $core.bool hasSimulatedVirtualGearRatio() => $_has(6); - @$pb.TagNumber(7) - void clearSimulatedVirtualGearRatio() => clearField(7); - - @$pb.TagNumber(8) - $core.int get simulatedCW => $_getIZ(7); - @$pb.TagNumber(8) - set simulatedCW($core.int v) { $_setUnsignedInt32(7, v); } - @$pb.TagNumber(8) - $core.bool hasSimulatedCW() => $_has(7); - @$pb.TagNumber(8) - void clearSimulatedCW() => clearField(8); - - @$pb.TagNumber(9) - $core.int get simulatedWheelDiameter => $_getIZ(8); - @$pb.TagNumber(9) - set simulatedWheelDiameter($core.int v) { $_setUnsignedInt32(8, v); } - @$pb.TagNumber(9) - $core.bool hasSimulatedWheelDiameter() => $_has(8); - @$pb.TagNumber(9) - void clearSimulatedWheelDiameter() => clearField(9); - - @$pb.TagNumber(10) - $core.int get simulatedBikeMass => $_getIZ(9); - @$pb.TagNumber(10) - set simulatedBikeMass($core.int v) { $_setUnsignedInt32(9, v); } - @$pb.TagNumber(10) - $core.bool hasSimulatedBikeMass() => $_has(9); - @$pb.TagNumber(10) - void clearSimulatedBikeMass() => clearField(10); - - @$pb.TagNumber(11) - $core.int get simulatedRiderMass => $_getIZ(10); - @$pb.TagNumber(11) - set simulatedRiderMass($core.int v) { $_setUnsignedInt32(10, v); } - @$pb.TagNumber(11) - $core.bool hasSimulatedRiderMass() => $_has(10); - @$pb.TagNumber(11) - void clearSimulatedRiderMass() => clearField(11); - - @$pb.TagNumber(12) - $core.int get simulatedCRR => $_getIZ(11); - @$pb.TagNumber(12) - set simulatedCRR($core.int v) { $_setUnsignedInt32(11, v); } - @$pb.TagNumber(12) - $core.bool hasSimulatedCRR() => $_has(11); - @$pb.TagNumber(12) - void clearSimulatedCRR() => clearField(12); - - @$pb.TagNumber(13) - $core.int get simulatedFrontalArea => $_getIZ(12); - @$pb.TagNumber(13) - set simulatedFrontalArea($core.int v) { $_setUnsignedInt32(12, v); } - @$pb.TagNumber(13) - $core.bool hasSimulatedFrontalArea() => $_has(12); - @$pb.TagNumber(13) - void clearSimulatedFrontalArea() => clearField(13); - - @$pb.TagNumber(14) - $core.int get simulatedEBrake => $_getIZ(13); - @$pb.TagNumber(14) - set simulatedEBrake($core.int v) { $_setUnsignedInt32(13, v); } - @$pb.TagNumber(14) - $core.bool hasSimulatedEBrake() => $_has(13); - @$pb.TagNumber(14) - void clearSimulatedEBrake() => clearField(14); -} - -/// Page ID 0x022 -class TrainerOptions extends $pb.GeneratedMessage { - factory TrainerOptions({ - $core.bool? highSpeedDataEnabled, - $core.bool? ergPowerSmoothingEnabled, - $core.int? virtualShiftingMode, - }) { - final $result = create(); - if (highSpeedDataEnabled != null) { - $result.highSpeedDataEnabled = highSpeedDataEnabled; - } - if (ergPowerSmoothingEnabled != null) { - $result.ergPowerSmoothingEnabled = ergPowerSmoothingEnabled; - } - if (virtualShiftingMode != null) { - $result.virtualShiftingMode = virtualShiftingMode; - } - return $result; - } - TrainerOptions._() : super(); - factory TrainerOptions.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory TrainerOptions.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrainerOptions', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..aOB(1, _omitFieldNames ? '' : 'highSpeedDataEnabled', protoName: 'highSpeedDataEnabled') - ..aOB(2, _omitFieldNames ? '' : 'ergPowerSmoothingEnabled', protoName: 'ergPowerSmoothingEnabled') - ..a<$core.int>(3, _omitFieldNames ? '' : 'virtualShiftingMode', $pb.PbFieldType.OU3, protoName: 'virtualShiftingMode') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - TrainerOptions clone() => TrainerOptions()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TrainerOptions copyWith(void Function(TrainerOptions) updates) => super.copyWith((message) => updates(message as TrainerOptions)) as TrainerOptions; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static TrainerOptions create() => TrainerOptions._(); - TrainerOptions createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static TrainerOptions getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static TrainerOptions? _defaultInstance; - - @$pb.TagNumber(1) - $core.bool get highSpeedDataEnabled => $_getBF(0); - @$pb.TagNumber(1) - set highSpeedDataEnabled($core.bool v) { $_setBool(0, v); } - @$pb.TagNumber(1) - $core.bool hasHighSpeedDataEnabled() => $_has(0); - @$pb.TagNumber(1) - void clearHighSpeedDataEnabled() => clearField(1); - - @$pb.TagNumber(2) - $core.bool get ergPowerSmoothingEnabled => $_getBF(1); - @$pb.TagNumber(2) - set ergPowerSmoothingEnabled($core.bool v) { $_setBool(1, v); } - @$pb.TagNumber(2) - $core.bool hasErgPowerSmoothingEnabled() => $_has(1); - @$pb.TagNumber(2) - void clearErgPowerSmoothingEnabled() => clearField(2); - - @$pb.TagNumber(3) - $core.int get virtualShiftingMode => $_getIZ(2); - @$pb.TagNumber(3) - set virtualShiftingMode($core.int v) { $_setUnsignedInt32(2, v); } - @$pb.TagNumber(3) - $core.bool hasVirtualShiftingMode() => $_has(2); - @$pb.TagNumber(3) - void clearVirtualShiftingMode() => clearField(3); -} - -/// Page ID 0x020 and 0x022 (Get Response) -class TrainerCfgPage extends $pb.GeneratedMessage { - factory TrainerCfgPage({ - TrainerMode? trainerMode, - $core.int? configuredResistance, - $core.int? ergPower, - $core.int? averagingWindow, - $core.int? simulatedWind, - $core.int? simulatedGrade, - $core.int? simulatedRealGearRatio, - $core.int? simulatedVirtualGearRatio, - $core.int? simulatedCW, - $core.int? simulatedWheelDiameter, - $core.int? simulatedBikeMass, - $core.int? simulatedRiderMass, - $core.int? simulatedCRR, - $core.int? simulatedFrontalArea, - $core.int? simulatedEBrake, - $core.bool? highSpeedDataEnabled, - $core.bool? ergPowerSmoothingEnabled, - $core.int? virtualShiftingMode, - }) { - final $result = create(); - if (trainerMode != null) { - $result.trainerMode = trainerMode; - } - if (configuredResistance != null) { - $result.configuredResistance = configuredResistance; - } - if (ergPower != null) { - $result.ergPower = ergPower; - } - if (averagingWindow != null) { - $result.averagingWindow = averagingWindow; - } - if (simulatedWind != null) { - $result.simulatedWind = simulatedWind; - } - if (simulatedGrade != null) { - $result.simulatedGrade = simulatedGrade; - } - if (simulatedRealGearRatio != null) { - $result.simulatedRealGearRatio = simulatedRealGearRatio; - } - if (simulatedVirtualGearRatio != null) { - $result.simulatedVirtualGearRatio = simulatedVirtualGearRatio; - } - if (simulatedCW != null) { - $result.simulatedCW = simulatedCW; - } - if (simulatedWheelDiameter != null) { - $result.simulatedWheelDiameter = simulatedWheelDiameter; - } - if (simulatedBikeMass != null) { - $result.simulatedBikeMass = simulatedBikeMass; - } - if (simulatedRiderMass != null) { - $result.simulatedRiderMass = simulatedRiderMass; - } - if (simulatedCRR != null) { - $result.simulatedCRR = simulatedCRR; - } - if (simulatedFrontalArea != null) { - $result.simulatedFrontalArea = simulatedFrontalArea; - } - if (simulatedEBrake != null) { - $result.simulatedEBrake = simulatedEBrake; - } - if (highSpeedDataEnabled != null) { - $result.highSpeedDataEnabled = highSpeedDataEnabled; - } - if (ergPowerSmoothingEnabled != null) { - $result.ergPowerSmoothingEnabled = ergPowerSmoothingEnabled; - } - if (virtualShiftingMode != null) { - $result.virtualShiftingMode = virtualShiftingMode; - } - return $result; - } - TrainerCfgPage._() : super(); - factory TrainerCfgPage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory TrainerCfgPage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrainerCfgPage', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'trainerMode', $pb.PbFieldType.OE, protoName: 'trainerMode', defaultOrMaker: TrainerMode.MODE_UNKNOWN, valueOf: TrainerMode.valueOf, enumValues: TrainerMode.values) - ..a<$core.int>(2, _omitFieldNames ? '' : 'configuredResistance', $pb.PbFieldType.OU3, protoName: 'configuredResistance') - ..a<$core.int>(3, _omitFieldNames ? '' : 'ergPower', $pb.PbFieldType.OU3, protoName: 'ergPower') - ..a<$core.int>(4, _omitFieldNames ? '' : 'averagingWindow', $pb.PbFieldType.OU3, protoName: 'averagingWindow') - ..a<$core.int>(5, _omitFieldNames ? '' : 'simulatedWind', $pb.PbFieldType.OS3, protoName: 'simulatedWind') - ..a<$core.int>(6, _omitFieldNames ? '' : 'simulatedGrade', $pb.PbFieldType.OS3, protoName: 'simulatedGrade') - ..a<$core.int>(7, _omitFieldNames ? '' : 'simulatedRealGearRatio', $pb.PbFieldType.OU3, protoName: 'simulatedRealGearRatio') - ..a<$core.int>(8, _omitFieldNames ? '' : 'simulatedVirtualGearRatio', $pb.PbFieldType.OU3, protoName: 'simulatedVirtualGearRatio') - ..a<$core.int>(9, _omitFieldNames ? '' : 'simulatedCW', $pb.PbFieldType.OU3, protoName: 'simulatedCW') - ..a<$core.int>(10, _omitFieldNames ? '' : 'simulatedWheelDiameter', $pb.PbFieldType.OU3, protoName: 'simulatedWheelDiameter') - ..a<$core.int>(11, _omitFieldNames ? '' : 'simulatedBikeMass', $pb.PbFieldType.OU3, protoName: 'simulatedBikeMass') - ..a<$core.int>(12, _omitFieldNames ? '' : 'simulatedRiderMass', $pb.PbFieldType.OU3, protoName: 'simulatedRiderMass') - ..a<$core.int>(13, _omitFieldNames ? '' : 'simulatedCRR', $pb.PbFieldType.OU3, protoName: 'simulatedCRR') - ..a<$core.int>(14, _omitFieldNames ? '' : 'simulatedFrontalArea', $pb.PbFieldType.OU3, protoName: 'simulatedFrontalArea') - ..a<$core.int>(15, _omitFieldNames ? '' : 'simulatedEBrake', $pb.PbFieldType.OU3, protoName: 'simulatedEBrake') - ..aOB(16, _omitFieldNames ? '' : 'highSpeedDataEnabled', protoName: 'highSpeedDataEnabled') - ..aOB(17, _omitFieldNames ? '' : 'ergPowerSmoothingEnabled', protoName: 'ergPowerSmoothingEnabled') - ..a<$core.int>(18, _omitFieldNames ? '' : 'virtualShiftingMode', $pb.PbFieldType.OU3, protoName: 'virtualShiftingMode') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - TrainerCfgPage clone() => TrainerCfgPage()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TrainerCfgPage copyWith(void Function(TrainerCfgPage) updates) => super.copyWith((message) => updates(message as TrainerCfgPage)) as TrainerCfgPage; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static TrainerCfgPage create() => TrainerCfgPage._(); - TrainerCfgPage createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static TrainerCfgPage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static TrainerCfgPage? _defaultInstance; - - @$pb.TagNumber(1) - TrainerMode get trainerMode => $_getN(0); - @$pb.TagNumber(1) - set trainerMode(TrainerMode v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasTrainerMode() => $_has(0); - @$pb.TagNumber(1) - void clearTrainerMode() => clearField(1); - - @$pb.TagNumber(2) - $core.int get configuredResistance => $_getIZ(1); - @$pb.TagNumber(2) - set configuredResistance($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasConfiguredResistance() => $_has(1); - @$pb.TagNumber(2) - void clearConfiguredResistance() => clearField(2); - - @$pb.TagNumber(3) - $core.int get ergPower => $_getIZ(2); - @$pb.TagNumber(3) - set ergPower($core.int v) { $_setUnsignedInt32(2, v); } - @$pb.TagNumber(3) - $core.bool hasErgPower() => $_has(2); - @$pb.TagNumber(3) - void clearErgPower() => clearField(3); - - @$pb.TagNumber(4) - $core.int get averagingWindow => $_getIZ(3); - @$pb.TagNumber(4) - set averagingWindow($core.int v) { $_setUnsignedInt32(3, v); } - @$pb.TagNumber(4) - $core.bool hasAveragingWindow() => $_has(3); - @$pb.TagNumber(4) - void clearAveragingWindow() => clearField(4); - - @$pb.TagNumber(5) - $core.int get simulatedWind => $_getIZ(4); - @$pb.TagNumber(5) - set simulatedWind($core.int v) { $_setSignedInt32(4, v); } - @$pb.TagNumber(5) - $core.bool hasSimulatedWind() => $_has(4); - @$pb.TagNumber(5) - void clearSimulatedWind() => clearField(5); - - @$pb.TagNumber(6) - $core.int get simulatedGrade => $_getIZ(5); - @$pb.TagNumber(6) - set simulatedGrade($core.int v) { $_setSignedInt32(5, v); } - @$pb.TagNumber(6) - $core.bool hasSimulatedGrade() => $_has(5); - @$pb.TagNumber(6) - void clearSimulatedGrade() => clearField(6); - - @$pb.TagNumber(7) - $core.int get simulatedRealGearRatio => $_getIZ(6); - @$pb.TagNumber(7) - set simulatedRealGearRatio($core.int v) { $_setUnsignedInt32(6, v); } - @$pb.TagNumber(7) - $core.bool hasSimulatedRealGearRatio() => $_has(6); - @$pb.TagNumber(7) - void clearSimulatedRealGearRatio() => clearField(7); - - @$pb.TagNumber(8) - $core.int get simulatedVirtualGearRatio => $_getIZ(7); - @$pb.TagNumber(8) - set simulatedVirtualGearRatio($core.int v) { $_setUnsignedInt32(7, v); } - @$pb.TagNumber(8) - $core.bool hasSimulatedVirtualGearRatio() => $_has(7); - @$pb.TagNumber(8) - void clearSimulatedVirtualGearRatio() => clearField(8); - - @$pb.TagNumber(9) - $core.int get simulatedCW => $_getIZ(8); - @$pb.TagNumber(9) - set simulatedCW($core.int v) { $_setUnsignedInt32(8, v); } - @$pb.TagNumber(9) - $core.bool hasSimulatedCW() => $_has(8); - @$pb.TagNumber(9) - void clearSimulatedCW() => clearField(9); - - @$pb.TagNumber(10) - $core.int get simulatedWheelDiameter => $_getIZ(9); - @$pb.TagNumber(10) - set simulatedWheelDiameter($core.int v) { $_setUnsignedInt32(9, v); } - @$pb.TagNumber(10) - $core.bool hasSimulatedWheelDiameter() => $_has(9); - @$pb.TagNumber(10) - void clearSimulatedWheelDiameter() => clearField(10); - - @$pb.TagNumber(11) - $core.int get simulatedBikeMass => $_getIZ(10); - @$pb.TagNumber(11) - set simulatedBikeMass($core.int v) { $_setUnsignedInt32(10, v); } - @$pb.TagNumber(11) - $core.bool hasSimulatedBikeMass() => $_has(10); - @$pb.TagNumber(11) - void clearSimulatedBikeMass() => clearField(11); - - @$pb.TagNumber(12) - $core.int get simulatedRiderMass => $_getIZ(11); - @$pb.TagNumber(12) - set simulatedRiderMass($core.int v) { $_setUnsignedInt32(11, v); } - @$pb.TagNumber(12) - $core.bool hasSimulatedRiderMass() => $_has(11); - @$pb.TagNumber(12) - void clearSimulatedRiderMass() => clearField(12); - - @$pb.TagNumber(13) - $core.int get simulatedCRR => $_getIZ(12); - @$pb.TagNumber(13) - set simulatedCRR($core.int v) { $_setUnsignedInt32(12, v); } - @$pb.TagNumber(13) - $core.bool hasSimulatedCRR() => $_has(12); - @$pb.TagNumber(13) - void clearSimulatedCRR() => clearField(13); - - @$pb.TagNumber(14) - $core.int get simulatedFrontalArea => $_getIZ(13); - @$pb.TagNumber(14) - set simulatedFrontalArea($core.int v) { $_setUnsignedInt32(13, v); } - @$pb.TagNumber(14) - $core.bool hasSimulatedFrontalArea() => $_has(13); - @$pb.TagNumber(14) - void clearSimulatedFrontalArea() => clearField(14); - - @$pb.TagNumber(15) - $core.int get simulatedEBrake => $_getIZ(14); - @$pb.TagNumber(15) - set simulatedEBrake($core.int v) { $_setUnsignedInt32(14, v); } - @$pb.TagNumber(15) - $core.bool hasSimulatedEBrake() => $_has(14); - @$pb.TagNumber(15) - void clearSimulatedEBrake() => clearField(15); - - @$pb.TagNumber(16) - $core.bool get highSpeedDataEnabled => $_getBF(15); - @$pb.TagNumber(16) - set highSpeedDataEnabled($core.bool v) { $_setBool(15, v); } - @$pb.TagNumber(16) - $core.bool hasHighSpeedDataEnabled() => $_has(15); - @$pb.TagNumber(16) - void clearHighSpeedDataEnabled() => clearField(16); - - @$pb.TagNumber(17) - $core.bool get ergPowerSmoothingEnabled => $_getBF(16); - @$pb.TagNumber(17) - set ergPowerSmoothingEnabled($core.bool v) { $_setBool(16, v); } - @$pb.TagNumber(17) - $core.bool hasErgPowerSmoothingEnabled() => $_has(16); - @$pb.TagNumber(17) - void clearErgPowerSmoothingEnabled() => clearField(17); - - @$pb.TagNumber(18) - $core.int get virtualShiftingMode => $_getIZ(17); - @$pb.TagNumber(18) - set virtualShiftingMode($core.int v) { $_setUnsignedInt32(17, v); } - @$pb.TagNumber(18) - $core.bool hasVirtualShiftingMode() => $_has(17); - @$pb.TagNumber(18) - void clearVirtualShiftingMode() => clearField(18); -} - -/// Page ID 0x021 -class TrainerGearIndexConfigPage extends $pb.GeneratedMessage { - factory TrainerGearIndexConfigPage({ - $core.int? frontGearIdx, - $core.int? frontGearIdxMax, - $core.int? frontGearIdxMin, - $core.int? rearGearIdx, - $core.int? rearGearIdxMax, - $core.int? rearGearIdxMin, - }) { - final $result = create(); - if (frontGearIdx != null) { - $result.frontGearIdx = frontGearIdx; - } - if (frontGearIdxMax != null) { - $result.frontGearIdxMax = frontGearIdxMax; - } - if (frontGearIdxMin != null) { - $result.frontGearIdxMin = frontGearIdxMin; - } - if (rearGearIdx != null) { - $result.rearGearIdx = rearGearIdx; - } - if (rearGearIdxMax != null) { - $result.rearGearIdxMax = rearGearIdxMax; - } - if (rearGearIdxMin != null) { - $result.rearGearIdxMin = rearGearIdxMin; - } - return $result; - } - TrainerGearIndexConfigPage._() : super(); - factory TrainerGearIndexConfigPage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory TrainerGearIndexConfigPage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrainerGearIndexConfigPage', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'frontGearIdx', $pb.PbFieldType.OU3, protoName: 'frontGearIdx') - ..a<$core.int>(2, _omitFieldNames ? '' : 'frontGearIdxMax', $pb.PbFieldType.OU3, protoName: 'frontGearIdxMax') - ..a<$core.int>(3, _omitFieldNames ? '' : 'frontGearIdxMin', $pb.PbFieldType.OU3, protoName: 'frontGearIdxMin') - ..a<$core.int>(4, _omitFieldNames ? '' : 'rearGearIdx', $pb.PbFieldType.OU3, protoName: 'rearGearIdx') - ..a<$core.int>(5, _omitFieldNames ? '' : 'rearGearIdxMax', $pb.PbFieldType.OU3, protoName: 'rearGearIdxMax') - ..a<$core.int>(6, _omitFieldNames ? '' : 'rearGearIdxMin', $pb.PbFieldType.OU3, protoName: 'rearGearIdxMin') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - TrainerGearIndexConfigPage clone() => TrainerGearIndexConfigPage()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TrainerGearIndexConfigPage copyWith(void Function(TrainerGearIndexConfigPage) updates) => super.copyWith((message) => updates(message as TrainerGearIndexConfigPage)) as TrainerGearIndexConfigPage; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static TrainerGearIndexConfigPage create() => TrainerGearIndexConfigPage._(); - TrainerGearIndexConfigPage createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static TrainerGearIndexConfigPage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static TrainerGearIndexConfigPage? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get frontGearIdx => $_getIZ(0); - @$pb.TagNumber(1) - set frontGearIdx($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasFrontGearIdx() => $_has(0); - @$pb.TagNumber(1) - void clearFrontGearIdx() => clearField(1); - - @$pb.TagNumber(2) - $core.int get frontGearIdxMax => $_getIZ(1); - @$pb.TagNumber(2) - set frontGearIdxMax($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasFrontGearIdxMax() => $_has(1); - @$pb.TagNumber(2) - void clearFrontGearIdxMax() => clearField(2); - - @$pb.TagNumber(3) - $core.int get frontGearIdxMin => $_getIZ(2); - @$pb.TagNumber(3) - set frontGearIdxMin($core.int v) { $_setUnsignedInt32(2, v); } - @$pb.TagNumber(3) - $core.bool hasFrontGearIdxMin() => $_has(2); - @$pb.TagNumber(3) - void clearFrontGearIdxMin() => clearField(3); - - @$pb.TagNumber(4) - $core.int get rearGearIdx => $_getIZ(3); - @$pb.TagNumber(4) - set rearGearIdx($core.int v) { $_setUnsignedInt32(3, v); } - @$pb.TagNumber(4) - $core.bool hasRearGearIdx() => $_has(3); - @$pb.TagNumber(4) - void clearRearGearIdx() => clearField(4); - - @$pb.TagNumber(5) - $core.int get rearGearIdxMax => $_getIZ(4); - @$pb.TagNumber(5) - set rearGearIdxMax($core.int v) { $_setUnsignedInt32(4, v); } - @$pb.TagNumber(5) - $core.bool hasRearGearIdxMax() => $_has(4); - @$pb.TagNumber(5) - void clearRearGearIdxMax() => clearField(5); - - @$pb.TagNumber(6) - $core.int get rearGearIdxMin => $_getIZ(5); - @$pb.TagNumber(6) - set rearGearIdxMin($core.int v) { $_setUnsignedInt32(5, v); } - @$pb.TagNumber(6) - $core.bool hasRearGearIdxMin() => $_has(5); - @$pb.TagNumber(6) - void clearRearGearIdxMin() => clearField(6); -} - -/// Page ID 0x023 -class DeviceTiltConfigPage extends $pb.GeneratedMessage { - factory DeviceTiltConfigPage({ - $core.bool? tiltEnabled, - $core.int? tiltGradientMin, - $core.int? tiltGradientMax, - $core.int? tiltGradient, - }) { - final $result = create(); - if (tiltEnabled != null) { - $result.tiltEnabled = tiltEnabled; - } - if (tiltGradientMin != null) { - $result.tiltGradientMin = tiltGradientMin; - } - if (tiltGradientMax != null) { - $result.tiltGradientMax = tiltGradientMax; - } - if (tiltGradient != null) { - $result.tiltGradient = tiltGradient; - } - return $result; - } - DeviceTiltConfigPage._() : super(); - factory DeviceTiltConfigPage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DeviceTiltConfigPage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeviceTiltConfigPage', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..aOB(1, _omitFieldNames ? '' : 'tiltEnabled', protoName: 'tiltEnabled') - ..a<$core.int>(2, _omitFieldNames ? '' : 'tiltGradientMin', $pb.PbFieldType.OS3, protoName: 'tiltGradientMin') - ..a<$core.int>(3, _omitFieldNames ? '' : 'tiltGradientMax', $pb.PbFieldType.OS3, protoName: 'tiltGradientMax') - ..a<$core.int>(4, _omitFieldNames ? '' : 'tiltGradient', $pb.PbFieldType.OS3, protoName: 'tiltGradient') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - DeviceTiltConfigPage clone() => DeviceTiltConfigPage()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DeviceTiltConfigPage copyWith(void Function(DeviceTiltConfigPage) updates) => super.copyWith((message) => updates(message as DeviceTiltConfigPage)) as DeviceTiltConfigPage; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static DeviceTiltConfigPage create() => DeviceTiltConfigPage._(); - DeviceTiltConfigPage createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static DeviceTiltConfigPage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static DeviceTiltConfigPage? _defaultInstance; - - @$pb.TagNumber(1) - $core.bool get tiltEnabled => $_getBF(0); - @$pb.TagNumber(1) - set tiltEnabled($core.bool v) { $_setBool(0, v); } - @$pb.TagNumber(1) - $core.bool hasTiltEnabled() => $_has(0); - @$pb.TagNumber(1) - void clearTiltEnabled() => clearField(1); - - @$pb.TagNumber(2) - $core.int get tiltGradientMin => $_getIZ(1); - @$pb.TagNumber(2) - set tiltGradientMin($core.int v) { $_setSignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasTiltGradientMin() => $_has(1); - @$pb.TagNumber(2) - void clearTiltGradientMin() => clearField(2); - - @$pb.TagNumber(3) - $core.int get tiltGradientMax => $_getIZ(2); - @$pb.TagNumber(3) - set tiltGradientMax($core.int v) { $_setSignedInt32(2, v); } - @$pb.TagNumber(3) - $core.bool hasTiltGradientMax() => $_has(2); - @$pb.TagNumber(3) - void clearTiltGradientMax() => clearField(3); - - @$pb.TagNumber(4) - $core.int get tiltGradient => $_getIZ(3); - @$pb.TagNumber(4) - set tiltGradient($core.int v) { $_setSignedInt32(3, v); } - @$pb.TagNumber(4) - $core.bool hasTiltGradient() => $_has(3); - @$pb.TagNumber(4) - void clearTiltGradient() => clearField(4); -} - -/// Page ID 0x040 -class ControllerInputConfigPage extends $pb.GeneratedMessage { - factory ControllerInputConfigPage({ - $core.int? supportedDigitalInputs, - $core.int? supportedAnalogInputs, - $core.Iterable? analogInputRange, - $core.Iterable? analogDeadZone, - }) { - final $result = create(); - if (supportedDigitalInputs != null) { - $result.supportedDigitalInputs = supportedDigitalInputs; - } - if (supportedAnalogInputs != null) { - $result.supportedAnalogInputs = supportedAnalogInputs; - } - if (analogInputRange != null) { - $result.analogInputRange.addAll(analogInputRange); - } - if (analogDeadZone != null) { - $result.analogDeadZone.addAll(analogDeadZone); - } - return $result; - } - ControllerInputConfigPage._() : super(); - factory ControllerInputConfigPage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ControllerInputConfigPage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ControllerInputConfigPage', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'supportedDigitalInputs', $pb.PbFieldType.OU3, protoName: 'supportedDigitalInputs') - ..a<$core.int>(2, _omitFieldNames ? '' : 'supportedAnalogInputs', $pb.PbFieldType.OU3, protoName: 'supportedAnalogInputs') - ..pc(3, _omitFieldNames ? '' : 'analogInputRange', $pb.PbFieldType.PM, protoName: 'analogInputRange', subBuilder: InputAnalogRange.create) - ..pc(4, _omitFieldNames ? '' : 'analogDeadZone', $pb.PbFieldType.PM, protoName: 'analogDeadZone', subBuilder: InputAnalogDeadzone.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ControllerInputConfigPage clone() => ControllerInputConfigPage()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ControllerInputConfigPage copyWith(void Function(ControllerInputConfigPage) updates) => super.copyWith((message) => updates(message as ControllerInputConfigPage)) as ControllerInputConfigPage; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static ControllerInputConfigPage create() => ControllerInputConfigPage._(); - ControllerInputConfigPage createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static ControllerInputConfigPage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static ControllerInputConfigPage? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get supportedDigitalInputs => $_getIZ(0); - @$pb.TagNumber(1) - set supportedDigitalInputs($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasSupportedDigitalInputs() => $_has(0); - @$pb.TagNumber(1) - void clearSupportedDigitalInputs() => clearField(1); - - @$pb.TagNumber(2) - $core.int get supportedAnalogInputs => $_getIZ(1); - @$pb.TagNumber(2) - set supportedAnalogInputs($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasSupportedAnalogInputs() => $_has(1); - @$pb.TagNumber(2) - void clearSupportedAnalogInputs() => clearField(2); - - @$pb.TagNumber(3) - $core.List get analogInputRange => $_getList(2); - - @$pb.TagNumber(4) - $core.List get analogDeadZone => $_getList(3); -} - -/// Page 0x041 -class IpTransportPage extends $pb.GeneratedMessage { - factory IpTransportPage({ - $core.int? ipv4Address, - $core.int? tcpPort, - }) { - final $result = create(); - if (ipv4Address != null) { - $result.ipv4Address = ipv4Address; - } - if (tcpPort != null) { - $result.tcpPort = tcpPort; - } - return $result; - } - IpTransportPage._() : super(); - factory IpTransportPage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory IpTransportPage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'IpTransportPage', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'ipv4Address', $pb.PbFieldType.OU3, protoName: 'ipv4Address') - ..a<$core.int>(2, _omitFieldNames ? '' : 'tcpPort', $pb.PbFieldType.OU3, protoName: 'tcpPort') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - IpTransportPage clone() => IpTransportPage()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - IpTransportPage copyWith(void Function(IpTransportPage) updates) => super.copyWith((message) => updates(message as IpTransportPage)) as IpTransportPage; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static IpTransportPage create() => IpTransportPage._(); - IpTransportPage createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static IpTransportPage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static IpTransportPage? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get ipv4Address => $_getIZ(0); - @$pb.TagNumber(1) - set ipv4Address($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasIpv4Address() => $_has(0); - @$pb.TagNumber(1) - void clearIpv4Address() => clearField(1); - - @$pb.TagNumber(2) - $core.int get tcpPort => $_getIZ(1); - @$pb.TagNumber(2) - set tcpPort($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasTcpPort() => $_has(1); - @$pb.TagNumber(2) - void clearTcpPort() => clearField(2); -} - -/// Page 0x042 -class WifiConfigurationPage extends $pb.GeneratedMessage { - factory WifiConfigurationPage({ - $core.bool? wifiEnabled, - $core.int? wifiStatus, - $core.List<$core.int>? wifiSsid, - $core.int? wifiBand, - $core.int? wifiRssi, - $core.List<$core.int>? wifiRegionCode, - }) { - final $result = create(); - if (wifiEnabled != null) { - $result.wifiEnabled = wifiEnabled; - } - if (wifiStatus != null) { - $result.wifiStatus = wifiStatus; - } - if (wifiSsid != null) { - $result.wifiSsid = wifiSsid; - } - if (wifiBand != null) { - $result.wifiBand = wifiBand; - } - if (wifiRssi != null) { - $result.wifiRssi = wifiRssi; - } - if (wifiRegionCode != null) { - $result.wifiRegionCode = wifiRegionCode; - } - return $result; - } - WifiConfigurationPage._() : super(); - factory WifiConfigurationPage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory WifiConfigurationPage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'WifiConfigurationPage', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..aOB(1, _omitFieldNames ? '' : 'wifiEnabled', protoName: 'wifiEnabled') - ..a<$core.int>(2, _omitFieldNames ? '' : 'wifiStatus', $pb.PbFieldType.OU3, protoName: 'wifiStatus') - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'wifiSsid', $pb.PbFieldType.OY, protoName: 'wifiSsid') - ..a<$core.int>(4, _omitFieldNames ? '' : 'wifiBand', $pb.PbFieldType.OU3, protoName: 'wifiBand') - ..a<$core.int>(5, _omitFieldNames ? '' : 'wifiRssi', $pb.PbFieldType.OS3, protoName: 'wifiRssi') - ..a<$core.List<$core.int>>(6, _omitFieldNames ? '' : 'wifiRegionCode', $pb.PbFieldType.OY, protoName: 'wifiRegionCode') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - WifiConfigurationPage clone() => WifiConfigurationPage()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - WifiConfigurationPage copyWith(void Function(WifiConfigurationPage) updates) => super.copyWith((message) => updates(message as WifiConfigurationPage)) as WifiConfigurationPage; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static WifiConfigurationPage create() => WifiConfigurationPage._(); - WifiConfigurationPage createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static WifiConfigurationPage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static WifiConfigurationPage? _defaultInstance; - - @$pb.TagNumber(1) - $core.bool get wifiEnabled => $_getBF(0); - @$pb.TagNumber(1) - set wifiEnabled($core.bool v) { $_setBool(0, v); } - @$pb.TagNumber(1) - $core.bool hasWifiEnabled() => $_has(0); - @$pb.TagNumber(1) - void clearWifiEnabled() => clearField(1); - - @$pb.TagNumber(2) - $core.int get wifiStatus => $_getIZ(1); - @$pb.TagNumber(2) - set wifiStatus($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasWifiStatus() => $_has(1); - @$pb.TagNumber(2) - void clearWifiStatus() => clearField(2); - - @$pb.TagNumber(3) - $core.List<$core.int> get wifiSsid => $_getN(2); - @$pb.TagNumber(3) - set wifiSsid($core.List<$core.int> v) { $_setBytes(2, v); } - @$pb.TagNumber(3) - $core.bool hasWifiSsid() => $_has(2); - @$pb.TagNumber(3) - void clearWifiSsid() => clearField(3); - - @$pb.TagNumber(4) - $core.int get wifiBand => $_getIZ(3); - @$pb.TagNumber(4) - set wifiBand($core.int v) { $_setUnsignedInt32(3, v); } - @$pb.TagNumber(4) - $core.bool hasWifiBand() => $_has(3); - @$pb.TagNumber(4) - void clearWifiBand() => clearField(4); - - @$pb.TagNumber(5) - $core.int get wifiRssi => $_getIZ(4); - @$pb.TagNumber(5) - set wifiRssi($core.int v) { $_setSignedInt32(4, v); } - @$pb.TagNumber(5) - $core.bool hasWifiRssi() => $_has(4); - @$pb.TagNumber(5) - void clearWifiRssi() => clearField(5); - - @$pb.TagNumber(6) - $core.List<$core.int> get wifiRegionCode => $_getN(5); - @$pb.TagNumber(6) - set wifiRegionCode($core.List<$core.int> v) { $_setBytes(5, v); } - @$pb.TagNumber(6) - $core.bool hasWifiRegionCode() => $_has(5); - @$pb.TagNumber(6) - void clearWifiRegionCode() => clearField(6); -} - -/// Page ID 0x050 -class SensorRelayDataPage extends $pb.GeneratedMessage { - factory SensorRelayDataPage({ - $core.Iterable<$core.int>? supportedSensors, - $core.Iterable<$core.int>? pairedSensors, - }) { - final $result = create(); - if (supportedSensors != null) { - $result.supportedSensors.addAll(supportedSensors); - } - if (pairedSensors != null) { - $result.pairedSensors.addAll(pairedSensors); - } - return $result; - } - SensorRelayDataPage._() : super(); - factory SensorRelayDataPage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SensorRelayDataPage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SensorRelayDataPage', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..p<$core.int>(1, _omitFieldNames ? '' : 'supportedSensors', $pb.PbFieldType.PU3, protoName: 'supportedSensors') - ..p<$core.int>(2, _omitFieldNames ? '' : 'pairedSensors', $pb.PbFieldType.PU3, protoName: 'pairedSensors') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SensorRelayDataPage clone() => SensorRelayDataPage()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SensorRelayDataPage copyWith(void Function(SensorRelayDataPage) updates) => super.copyWith((message) => updates(message as SensorRelayDataPage)) as SensorRelayDataPage; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SensorRelayDataPage create() => SensorRelayDataPage._(); - SensorRelayDataPage createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SensorRelayDataPage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static SensorRelayDataPage? _defaultInstance; - - @$pb.TagNumber(1) - $core.List<$core.int> get supportedSensors => $_getList(0); - - @$pb.TagNumber(2) - $core.List<$core.int> get pairedSensors => $_getList(1); -} - -/// OpCode 0x00 -class Get extends $pb.GeneratedMessage { - factory Get({ - $core.int? dataObjectId, - }) { - final $result = create(); - if (dataObjectId != null) { - $result.dataObjectId = dataObjectId; - } - return $result; - } - Get._() : super(); - factory Get.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Get.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Get', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'dataObjectId', $pb.PbFieldType.QU3, protoName: 'dataObjectId') - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - Get clone() => Get()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Get copyWith(void Function(Get) updates) => super.copyWith((message) => updates(message as Get)) as Get; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static Get create() => Get._(); - Get createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static Get getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static Get? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get dataObjectId => $_getIZ(0); - @$pb.TagNumber(1) - set dataObjectId($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasDataObjectId() => $_has(0); - @$pb.TagNumber(1) - void clearDataObjectId() => clearField(1); -} - -/// OpCode 0x01 -class DevInfo extends $pb.GeneratedMessage { - factory DevInfo({ - DevInfoPage? devInfo, - }) { - final $result = create(); - if (devInfo != null) { - $result.devInfo = devInfo; - } - return $result; - } - DevInfo._() : super(); - factory DevInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DevInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DevInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..aQM(1, _omitFieldNames ? '' : 'devInfo', protoName: 'devInfo', subBuilder: DevInfoPage.create) - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - DevInfo clone() => DevInfo()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DevInfo copyWith(void Function(DevInfo) updates) => super.copyWith((message) => updates(message as DevInfo)) as DevInfo; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static DevInfo create() => DevInfo._(); - DevInfo createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static DevInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static DevInfo? _defaultInstance; - - @$pb.TagNumber(1) - DevInfoPage get devInfo => $_getN(0); - @$pb.TagNumber(1) - set devInfo(DevInfoPage v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasDevInfo() => $_has(0); - @$pb.TagNumber(1) - void clearDevInfo() => clearField(1); - @$pb.TagNumber(1) - DevInfoPage ensureDevInfo() => $_ensure(0); -} - -enum BleSecurityRequest_Request { - startSecureConnection, - notSet -} - -/// OpCode 0x02 -class BleSecurityRequest extends $pb.GeneratedMessage { - factory BleSecurityRequest({ - $core.bool? startSecureConnection, - }) { - final $result = create(); - if (startSecureConnection != null) { - $result.startSecureConnection = startSecureConnection; - } - return $result; - } - BleSecurityRequest._() : super(); - factory BleSecurityRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory BleSecurityRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static const $core.Map<$core.int, BleSecurityRequest_Request> _BleSecurityRequest_RequestByTag = { - 1 : BleSecurityRequest_Request.startSecureConnection, - 0 : BleSecurityRequest_Request.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BleSecurityRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..oo(0, [1]) - ..aOB(1, _omitFieldNames ? '' : 'startSecureConnection', protoName: 'startSecureConnection') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - BleSecurityRequest clone() => BleSecurityRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - BleSecurityRequest copyWith(void Function(BleSecurityRequest) updates) => super.copyWith((message) => updates(message as BleSecurityRequest)) as BleSecurityRequest; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static BleSecurityRequest create() => BleSecurityRequest._(); - BleSecurityRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static BleSecurityRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static BleSecurityRequest? _defaultInstance; - - BleSecurityRequest_Request whichRequest() => _BleSecurityRequest_RequestByTag[$_whichOneof(0)]!; - void clearRequest() => clearField($_whichOneof(0)); - - @$pb.TagNumber(1) - $core.bool get startSecureConnection => $_getBF(0); - @$pb.TagNumber(1) - set startSecureConnection($core.bool v) { $_setBool(0, v); } - @$pb.TagNumber(1) - $core.bool hasStartSecureConnection() => $_has(0); - @$pb.TagNumber(1) - void clearStartSecureConnection() => clearField(1); -} - -/// OpCode 0x03 -class TrainerNotification extends $pb.GeneratedMessage { - factory TrainerNotification({ - $core.int? power, - $core.int? cadence, - $core.int? bikeSpeed, - $core.int? averagedPower, - $core.int? wheelSpeed, - $core.int? calculatedRealGearRatio, - }) { - final $result = create(); - if (power != null) { - $result.power = power; - } - if (cadence != null) { - $result.cadence = cadence; - } - if (bikeSpeed != null) { - $result.bikeSpeed = bikeSpeed; - } - if (averagedPower != null) { - $result.averagedPower = averagedPower; - } - if (wheelSpeed != null) { - $result.wheelSpeed = wheelSpeed; - } - if (calculatedRealGearRatio != null) { - $result.calculatedRealGearRatio = calculatedRealGearRatio; - } - return $result; - } - TrainerNotification._() : super(); - factory TrainerNotification.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory TrainerNotification.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrainerNotification', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'power', $pb.PbFieldType.QU3) - ..a<$core.int>(2, _omitFieldNames ? '' : 'cadence', $pb.PbFieldType.QU3) - ..a<$core.int>(3, _omitFieldNames ? '' : 'bikeSpeed', $pb.PbFieldType.QU3, protoName: 'bikeSpeed') - ..a<$core.int>(4, _omitFieldNames ? '' : 'averagedPower', $pb.PbFieldType.QU3, protoName: 'averagedPower') - ..a<$core.int>(5, _omitFieldNames ? '' : 'wheelSpeed', $pb.PbFieldType.QU3, protoName: 'wheelSpeed') - ..a<$core.int>(6, _omitFieldNames ? '' : 'calculatedRealGearRatio', $pb.PbFieldType.OU3, protoName: 'calculatedRealGearRatio') - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - TrainerNotification clone() => TrainerNotification()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TrainerNotification copyWith(void Function(TrainerNotification) updates) => super.copyWith((message) => updates(message as TrainerNotification)) as TrainerNotification; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static TrainerNotification create() => TrainerNotification._(); - TrainerNotification createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static TrainerNotification getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static TrainerNotification? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get power => $_getIZ(0); - @$pb.TagNumber(1) - set power($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasPower() => $_has(0); - @$pb.TagNumber(1) - void clearPower() => clearField(1); - - @$pb.TagNumber(2) - $core.int get cadence => $_getIZ(1); - @$pb.TagNumber(2) - set cadence($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasCadence() => $_has(1); - @$pb.TagNumber(2) - void clearCadence() => clearField(2); - - @$pb.TagNumber(3) - $core.int get bikeSpeed => $_getIZ(2); - @$pb.TagNumber(3) - set bikeSpeed($core.int v) { $_setUnsignedInt32(2, v); } - @$pb.TagNumber(3) - $core.bool hasBikeSpeed() => $_has(2); - @$pb.TagNumber(3) - void clearBikeSpeed() => clearField(3); - - @$pb.TagNumber(4) - $core.int get averagedPower => $_getIZ(3); - @$pb.TagNumber(4) - set averagedPower($core.int v) { $_setUnsignedInt32(3, v); } - @$pb.TagNumber(4) - $core.bool hasAveragedPower() => $_has(3); - @$pb.TagNumber(4) - void clearAveragedPower() => clearField(4); - - @$pb.TagNumber(5) - $core.int get wheelSpeed => $_getIZ(4); - @$pb.TagNumber(5) - set wheelSpeed($core.int v) { $_setUnsignedInt32(4, v); } - @$pb.TagNumber(5) - $core.bool hasWheelSpeed() => $_has(4); - @$pb.TagNumber(5) - void clearWheelSpeed() => clearField(5); - - @$pb.TagNumber(6) - $core.int get calculatedRealGearRatio => $_getIZ(5); - @$pb.TagNumber(6) - set calculatedRealGearRatio($core.int v) { $_setUnsignedInt32(5, v); } - @$pb.TagNumber(6) - $core.bool hasCalculatedRealGearRatio() => $_has(5); - @$pb.TagNumber(6) - void clearCalculatedRealGearRatio() => clearField(6); -} - -enum TrainerConfigSet_Config { - configuredResistance, - ergPower, - envSim, - bikeSim, - averagingWindow, - trainerOptions, - notSet -} - -/// OpCode 0x04 -class TrainerConfigSet extends $pb.GeneratedMessage { - factory TrainerConfigSet({ - $core.int? configuredResistance, - $core.int? ergPower, - TrainerEnvSim? envSim, - TrainerBikeSim? bikeSim, - $core.int? averagingWindow, - TrainerOptions? trainerOptions, - }) { - final $result = create(); - if (configuredResistance != null) { - $result.configuredResistance = configuredResistance; - } - if (ergPower != null) { - $result.ergPower = ergPower; - } - if (envSim != null) { - $result.envSim = envSim; - } - if (bikeSim != null) { - $result.bikeSim = bikeSim; - } - if (averagingWindow != null) { - $result.averagingWindow = averagingWindow; - } - if (trainerOptions != null) { - $result.trainerOptions = trainerOptions; - } - return $result; - } - TrainerConfigSet._() : super(); - factory TrainerConfigSet.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory TrainerConfigSet.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static const $core.Map<$core.int, TrainerConfigSet_Config> _TrainerConfigSet_ConfigByTag = { - 2 : TrainerConfigSet_Config.configuredResistance, - 3 : TrainerConfigSet_Config.ergPower, - 4 : TrainerConfigSet_Config.envSim, - 5 : TrainerConfigSet_Config.bikeSim, - 6 : TrainerConfigSet_Config.averagingWindow, - 7 : TrainerConfigSet_Config.trainerOptions, - 0 : TrainerConfigSet_Config.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrainerConfigSet', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..oo(0, [2, 3, 4, 5, 6, 7]) - ..a<$core.int>(2, _omitFieldNames ? '' : 'configuredResistance', $pb.PbFieldType.OU3, protoName: 'configuredResistance') - ..a<$core.int>(3, _omitFieldNames ? '' : 'ergPower', $pb.PbFieldType.OU3, protoName: 'ergPower') - ..aOM(4, _omitFieldNames ? '' : 'envSim', protoName: 'envSim', subBuilder: TrainerEnvSim.create) - ..aOM(5, _omitFieldNames ? '' : 'bikeSim', protoName: 'bikeSim', subBuilder: TrainerBikeSim.create) - ..a<$core.int>(6, _omitFieldNames ? '' : 'averagingWindow', $pb.PbFieldType.OU3, protoName: 'averagingWindow') - ..aOM(7, _omitFieldNames ? '' : 'trainerOptions', protoName: 'trainerOptions', subBuilder: TrainerOptions.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - TrainerConfigSet clone() => TrainerConfigSet()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TrainerConfigSet copyWith(void Function(TrainerConfigSet) updates) => super.copyWith((message) => updates(message as TrainerConfigSet)) as TrainerConfigSet; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static TrainerConfigSet create() => TrainerConfigSet._(); - TrainerConfigSet createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static TrainerConfigSet getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static TrainerConfigSet? _defaultInstance; - - TrainerConfigSet_Config whichConfig() => _TrainerConfigSet_ConfigByTag[$_whichOneof(0)]!; - void clearConfig() => clearField($_whichOneof(0)); - - @$pb.TagNumber(2) - $core.int get configuredResistance => $_getIZ(0); - @$pb.TagNumber(2) - set configuredResistance($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(2) - $core.bool hasConfiguredResistance() => $_has(0); - @$pb.TagNumber(2) - void clearConfiguredResistance() => clearField(2); - - @$pb.TagNumber(3) - $core.int get ergPower => $_getIZ(1); - @$pb.TagNumber(3) - set ergPower($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(3) - $core.bool hasErgPower() => $_has(1); - @$pb.TagNumber(3) - void clearErgPower() => clearField(3); - - @$pb.TagNumber(4) - TrainerEnvSim get envSim => $_getN(2); - @$pb.TagNumber(4) - set envSim(TrainerEnvSim v) { setField(4, v); } - @$pb.TagNumber(4) - $core.bool hasEnvSim() => $_has(2); - @$pb.TagNumber(4) - void clearEnvSim() => clearField(4); - @$pb.TagNumber(4) - TrainerEnvSim ensureEnvSim() => $_ensure(2); - - @$pb.TagNumber(5) - TrainerBikeSim get bikeSim => $_getN(3); - @$pb.TagNumber(5) - set bikeSim(TrainerBikeSim v) { setField(5, v); } - @$pb.TagNumber(5) - $core.bool hasBikeSim() => $_has(3); - @$pb.TagNumber(5) - void clearBikeSim() => clearField(5); - @$pb.TagNumber(5) - TrainerBikeSim ensureBikeSim() => $_ensure(3); - - @$pb.TagNumber(6) - $core.int get averagingWindow => $_getIZ(4); - @$pb.TagNumber(6) - set averagingWindow($core.int v) { $_setUnsignedInt32(4, v); } - @$pb.TagNumber(6) - $core.bool hasAveragingWindow() => $_has(4); - @$pb.TagNumber(6) - void clearAveragingWindow() => clearField(6); - - @$pb.TagNumber(7) - TrainerOptions get trainerOptions => $_getN(5); - @$pb.TagNumber(7) - set trainerOptions(TrainerOptions v) { setField(7, v); } - @$pb.TagNumber(7) - $core.bool hasTrainerOptions() => $_has(5); - @$pb.TagNumber(7) - void clearTrainerOptions() => clearField(7); - @$pb.TagNumber(7) - TrainerOptions ensureTrainerOptions() => $_ensure(5); -} - -/// OpCode 0x05 -class TrainerConfigStatus extends $pb.GeneratedMessage { - factory TrainerConfigStatus({ - TrainerCfgPage? trainerCfg, - }) { - final $result = create(); - if (trainerCfg != null) { - $result.trainerCfg = trainerCfg; - } - return $result; - } - TrainerConfigStatus._() : super(); - factory TrainerConfigStatus.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory TrainerConfigStatus.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrainerConfigStatus', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..aQM(1, _omitFieldNames ? '' : 'trainerCfg', protoName: 'trainerCfg', subBuilder: TrainerCfgPage.create) - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - TrainerConfigStatus clone() => TrainerConfigStatus()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TrainerConfigStatus copyWith(void Function(TrainerConfigStatus) updates) => super.copyWith((message) => updates(message as TrainerConfigStatus)) as TrainerConfigStatus; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static TrainerConfigStatus create() => TrainerConfigStatus._(); - TrainerConfigStatus createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static TrainerConfigStatus getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static TrainerConfigStatus? _defaultInstance; - - @$pb.TagNumber(1) - TrainerCfgPage get trainerCfg => $_getN(0); - @$pb.TagNumber(1) - set trainerCfg(TrainerCfgPage v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasTrainerCfg() => $_has(0); - @$pb.TagNumber(1) - void clearTrainerCfg() => clearField(1); - @$pb.TagNumber(1) - TrainerCfgPage ensureTrainerCfg() => $_ensure(0); -} - -enum DevInfoSet_DevInfo { - deviceName, - notSet -} - -/// OpCode 0x0C -class DevInfoSet extends $pb.GeneratedMessage { - factory DevInfoSet({ - $core.List<$core.int>? deviceName, - }) { - final $result = create(); - if (deviceName != null) { - $result.deviceName = deviceName; - } - return $result; - } - DevInfoSet._() : super(); - factory DevInfoSet.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DevInfoSet.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static const $core.Map<$core.int, DevInfoSet_DevInfo> _DevInfoSet_DevInfoByTag = { - 1 : DevInfoSet_DevInfo.deviceName, - 0 : DevInfoSet_DevInfo.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DevInfoSet', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..oo(0, [1]) - ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'deviceName', $pb.PbFieldType.OY, protoName: 'deviceName') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - DevInfoSet clone() => DevInfoSet()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DevInfoSet copyWith(void Function(DevInfoSet) updates) => super.copyWith((message) => updates(message as DevInfoSet)) as DevInfoSet; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static DevInfoSet create() => DevInfoSet._(); - DevInfoSet createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static DevInfoSet getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static DevInfoSet? _defaultInstance; - - DevInfoSet_DevInfo whichDevInfo() => _DevInfoSet_DevInfoByTag[$_whichOneof(0)]!; - void clearDevInfo() => clearField($_whichOneof(0)); - - @$pb.TagNumber(1) - $core.List<$core.int> get deviceName => $_getN(0); - @$pb.TagNumber(1) - set deviceName($core.List<$core.int> v) { $_setBytes(0, v); } - @$pb.TagNumber(1) - $core.bool hasDeviceName() => $_has(0); - @$pb.TagNumber(1) - void clearDeviceName() => clearField(1); -} - -/// OpCode 0x18 -class Reset extends $pb.GeneratedMessage { - factory Reset({ - $core.int? resetProcedure, - }) { - final $result = create(); - if (resetProcedure != null) { - $result.resetProcedure = resetProcedure; - } - return $result; - } - Reset._() : super(); - factory Reset.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Reset.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Reset', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'resetProcedure', $pb.PbFieldType.OU3, protoName: 'resetProcedure') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - Reset clone() => Reset()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Reset copyWith(void Function(Reset) updates) => super.copyWith((message) => updates(message as Reset)) as Reset; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static Reset create() => Reset._(); - Reset createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static Reset getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static Reset? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get resetProcedure => $_getIZ(0); - @$pb.TagNumber(1) - set resetProcedure($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasResetProcedure() => $_has(0); - @$pb.TagNumber(1) - void clearResetProcedure() => clearField(1); -} - -enum BatteryNotification_Alert { - newChgState, - newPercLevel, - notSet -} - -/// OpCode 0x19 -class BatteryNotification extends $pb.GeneratedMessage { - factory BatteryNotification({ - ChargingState? newChgState, - $core.int? newPercLevel, - $core.int? source, - }) { - final $result = create(); - if (newChgState != null) { - $result.newChgState = newChgState; - } - if (newPercLevel != null) { - $result.newPercLevel = newPercLevel; - } - if (source != null) { - $result.source = source; - } - return $result; - } - BatteryNotification._() : super(); - factory BatteryNotification.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory BatteryNotification.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static const $core.Map<$core.int, BatteryNotification_Alert> _BatteryNotification_AlertByTag = { - 1 : BatteryNotification_Alert.newChgState, - 2 : BatteryNotification_Alert.newPercLevel, - 0 : BatteryNotification_Alert.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BatteryNotification', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..oo(0, [1, 2]) - ..e(1, _omitFieldNames ? '' : 'newChgState', $pb.PbFieldType.OE, protoName: 'newChgState', defaultOrMaker: ChargingState.CHARGING_IDLE, valueOf: ChargingState.valueOf, enumValues: ChargingState.values) - ..a<$core.int>(2, _omitFieldNames ? '' : 'newPercLevel', $pb.PbFieldType.OU3, protoName: 'newPercLevel') - ..a<$core.int>(3, _omitFieldNames ? '' : 'source', $pb.PbFieldType.OU3) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - BatteryNotification clone() => BatteryNotification()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - BatteryNotification copyWith(void Function(BatteryNotification) updates) => super.copyWith((message) => updates(message as BatteryNotification)) as BatteryNotification; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static BatteryNotification create() => BatteryNotification._(); - BatteryNotification createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static BatteryNotification getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static BatteryNotification? _defaultInstance; - - BatteryNotification_Alert whichAlert() => _BatteryNotification_AlertByTag[$_whichOneof(0)]!; - void clearAlert() => clearField($_whichOneof(0)); - - @$pb.TagNumber(1) - ChargingState get newChgState => $_getN(0); - @$pb.TagNumber(1) - set newChgState(ChargingState v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasNewChgState() => $_has(0); - @$pb.TagNumber(1) - void clearNewChgState() => clearField(1); - - @$pb.TagNumber(2) - $core.int get newPercLevel => $_getIZ(1); - @$pb.TagNumber(2) - set newPercLevel($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasNewPercLevel() => $_has(1); - @$pb.TagNumber(2) - void clearNewPercLevel() => clearField(2); - - @$pb.TagNumber(3) - $core.int get source => $_getIZ(2); - @$pb.TagNumber(3) - set source($core.int v) { $_setUnsignedInt32(2, v); } - @$pb.TagNumber(3) - $core.bool hasSource() => $_has(2); - @$pb.TagNumber(3) - void clearSource() => clearField(3); -} - -/// OpCode 0x1A -class BatteryStatus extends $pb.GeneratedMessage { - factory BatteryStatus({ - ChargingState? chgState, - $core.int? percLevel, - $core.int? timeToEmpty, - $core.int? timeToFull, - }) { - final $result = create(); - if (chgState != null) { - $result.chgState = chgState; - } - if (percLevel != null) { - $result.percLevel = percLevel; - } - if (timeToEmpty != null) { - $result.timeToEmpty = timeToEmpty; - } - if (timeToFull != null) { - $result.timeToFull = timeToFull; - } - return $result; - } - BatteryStatus._() : super(); - factory BatteryStatus.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory BatteryStatus.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BatteryStatus', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'chgState', $pb.PbFieldType.QE, protoName: 'chgState', defaultOrMaker: ChargingState.CHARGING_IDLE, valueOf: ChargingState.valueOf, enumValues: ChargingState.values) - ..a<$core.int>(2, _omitFieldNames ? '' : 'percLevel', $pb.PbFieldType.QU3, protoName: 'percLevel') - ..a<$core.int>(3, _omitFieldNames ? '' : 'timeToEmpty', $pb.PbFieldType.QU3, protoName: 'timeToEmpty') - ..a<$core.int>(4, _omitFieldNames ? '' : 'timeToFull', $pb.PbFieldType.QU3, protoName: 'timeToFull') - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - BatteryStatus clone() => BatteryStatus()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - BatteryStatus copyWith(void Function(BatteryStatus) updates) => super.copyWith((message) => updates(message as BatteryStatus)) as BatteryStatus; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static BatteryStatus create() => BatteryStatus._(); - BatteryStatus createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static BatteryStatus getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static BatteryStatus? _defaultInstance; - - @$pb.TagNumber(1) - ChargingState get chgState => $_getN(0); - @$pb.TagNumber(1) - set chgState(ChargingState v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasChgState() => $_has(0); - @$pb.TagNumber(1) - void clearChgState() => clearField(1); - - @$pb.TagNumber(2) - $core.int get percLevel => $_getIZ(1); - @$pb.TagNumber(2) - set percLevel($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasPercLevel() => $_has(1); - @$pb.TagNumber(2) - void clearPercLevel() => clearField(2); - - @$pb.TagNumber(3) - $core.int get timeToEmpty => $_getIZ(2); - @$pb.TagNumber(3) - set timeToEmpty($core.int v) { $_setUnsignedInt32(2, v); } - @$pb.TagNumber(3) - $core.bool hasTimeToEmpty() => $_has(2); - @$pb.TagNumber(3) - void clearTimeToEmpty() => clearField(3); - - @$pb.TagNumber(4) - $core.int get timeToFull => $_getIZ(3); - @$pb.TagNumber(4) - set timeToFull($core.int v) { $_setUnsignedInt32(3, v); } - @$pb.TagNumber(4) - $core.bool hasTimeToFull() => $_has(3); - @$pb.TagNumber(4) - void clearTimeToFull() => clearField(4); -} - -/// OpCode 0x23 -class ControllerNotification extends $pb.GeneratedMessage { - factory ControllerNotification({ - $core.int? buttonEvent, - $core.Iterable? analogEventList, - }) { - final $result = create(); - if (buttonEvent != null) { - $result.buttonEvent = buttonEvent; - } - if (analogEventList != null) { - $result.analogEventList.addAll(analogEventList); - } - return $result; - } - ControllerNotification._() : super(); - factory ControllerNotification.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ControllerNotification.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ControllerNotification', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'buttonEvent', $pb.PbFieldType.OU3, protoName: 'buttonEvent') - ..pc(3, _omitFieldNames ? '' : 'analogEventList', $pb.PbFieldType.PM, protoName: 'analogEventList', subBuilder: ControllerAnalogEvent.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ControllerNotification clone() => ControllerNotification()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ControllerNotification copyWith(void Function(ControllerNotification) updates) => super.copyWith((message) => updates(message as ControllerNotification)) as ControllerNotification; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static ControllerNotification create() => ControllerNotification._(); - ControllerNotification createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static ControllerNotification getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static ControllerNotification? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get buttonEvent => $_getIZ(0); - @$pb.TagNumber(1) - set buttonEvent($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasButtonEvent() => $_has(0); - @$pb.TagNumber(1) - void clearButtonEvent() => clearField(1); - - @$pb.TagNumber(3) - $core.List get analogEventList => $_getList(1); -} - -class LogDataNotification_ConnectionParameters extends $pb.GeneratedMessage { - factory LogDataNotification_ConnectionParameters({ - $core.int? interval, - $core.int? latency, - $core.int? supervisorTimeout, - $core.List<$core.int>? bleChannelMap, - $core.int? mtuSize, - }) { - final $result = create(); - if (interval != null) { - $result.interval = interval; - } - if (latency != null) { - $result.latency = latency; - } - if (supervisorTimeout != null) { - $result.supervisorTimeout = supervisorTimeout; - } - if (bleChannelMap != null) { - $result.bleChannelMap = bleChannelMap; - } - if (mtuSize != null) { - $result.mtuSize = mtuSize; - } - return $result; - } - LogDataNotification_ConnectionParameters._() : super(); - factory LogDataNotification_ConnectionParameters.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory LogDataNotification_ConnectionParameters.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LogDataNotification.ConnectionParameters', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'interval', $pb.PbFieldType.QU3) - ..a<$core.int>(2, _omitFieldNames ? '' : 'latency', $pb.PbFieldType.QU3) - ..a<$core.int>(3, _omitFieldNames ? '' : 'supervisorTimeout', $pb.PbFieldType.QU3, protoName: 'supervisorTimeout') - ..a<$core.List<$core.int>>(4, _omitFieldNames ? '' : 'bleChannelMap', $pb.PbFieldType.QY, protoName: 'bleChannelMap') - ..a<$core.int>(5, _omitFieldNames ? '' : 'mtuSize', $pb.PbFieldType.OU3, protoName: 'mtuSize') - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - LogDataNotification_ConnectionParameters clone() => LogDataNotification_ConnectionParameters()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - LogDataNotification_ConnectionParameters copyWith(void Function(LogDataNotification_ConnectionParameters) updates) => super.copyWith((message) => updates(message as LogDataNotification_ConnectionParameters)) as LogDataNotification_ConnectionParameters; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static LogDataNotification_ConnectionParameters create() => LogDataNotification_ConnectionParameters._(); - LogDataNotification_ConnectionParameters createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static LogDataNotification_ConnectionParameters getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static LogDataNotification_ConnectionParameters? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get interval => $_getIZ(0); - @$pb.TagNumber(1) - set interval($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasInterval() => $_has(0); - @$pb.TagNumber(1) - void clearInterval() => clearField(1); - - @$pb.TagNumber(2) - $core.int get latency => $_getIZ(1); - @$pb.TagNumber(2) - set latency($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasLatency() => $_has(1); - @$pb.TagNumber(2) - void clearLatency() => clearField(2); - - @$pb.TagNumber(3) - $core.int get supervisorTimeout => $_getIZ(2); - @$pb.TagNumber(3) - set supervisorTimeout($core.int v) { $_setUnsignedInt32(2, v); } - @$pb.TagNumber(3) - $core.bool hasSupervisorTimeout() => $_has(2); - @$pb.TagNumber(3) - void clearSupervisorTimeout() => clearField(3); - - @$pb.TagNumber(4) - $core.List<$core.int> get bleChannelMap => $_getN(3); - @$pb.TagNumber(4) - set bleChannelMap($core.List<$core.int> v) { $_setBytes(3, v); } - @$pb.TagNumber(4) - $core.bool hasBleChannelMap() => $_has(3); - @$pb.TagNumber(4) - void clearBleChannelMap() => clearField(4); - - @$pb.TagNumber(5) - $core.int get mtuSize => $_getIZ(4); - @$pb.TagNumber(5) - set mtuSize($core.int v) { $_setUnsignedInt32(4, v); } - @$pb.TagNumber(5) - $core.bool hasMtuSize() => $_has(4); - @$pb.TagNumber(5) - void clearMtuSize() => clearField(5); -} - -class LogDataNotification_EnergySurveySummary extends $pb.GeneratedMessage { - factory LogDataNotification_EnergySurveySummary({ - $core.int? samples, - $core.List<$core.int>? averageEnergy, - }) { - final $result = create(); - if (samples != null) { - $result.samples = samples; - } - if (averageEnergy != null) { - $result.averageEnergy = averageEnergy; - } - return $result; - } - LogDataNotification_EnergySurveySummary._() : super(); - factory LogDataNotification_EnergySurveySummary.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory LogDataNotification_EnergySurveySummary.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LogDataNotification.EnergySurveySummary', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'samples', $pb.PbFieldType.QU3) - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'averageEnergy', $pb.PbFieldType.QY, protoName: 'averageEnergy') - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - LogDataNotification_EnergySurveySummary clone() => LogDataNotification_EnergySurveySummary()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - LogDataNotification_EnergySurveySummary copyWith(void Function(LogDataNotification_EnergySurveySummary) updates) => super.copyWith((message) => updates(message as LogDataNotification_EnergySurveySummary)) as LogDataNotification_EnergySurveySummary; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static LogDataNotification_EnergySurveySummary create() => LogDataNotification_EnergySurveySummary._(); - LogDataNotification_EnergySurveySummary createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static LogDataNotification_EnergySurveySummary getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static LogDataNotification_EnergySurveySummary? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get samples => $_getIZ(0); - @$pb.TagNumber(1) - set samples($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasSamples() => $_has(0); - @$pb.TagNumber(1) - void clearSamples() => clearField(1); - - @$pb.TagNumber(2) - $core.List<$core.int> get averageEnergy => $_getN(1); - @$pb.TagNumber(2) - set averageEnergy($core.List<$core.int> v) { $_setBytes(1, v); } - @$pb.TagNumber(2) - $core.bool hasAverageEnergy() => $_has(1); - @$pb.TagNumber(2) - void clearAverageEnergy() => clearField(2); -} - -enum LogDataNotification_DataLogObject_Event { - logData, - connectionParam, - energySurvey, - logString, - notSet -} - -class LogDataNotification_DataLogObject extends $pb.GeneratedMessage { - factory LogDataNotification_DataLogObject({ - $core.List<$core.int>? logData, - LogDataNotification_ConnectionParameters? connectionParam, - LogDataNotification_EnergySurveySummary? energySurvey, - $core.List<$core.int>? logString, - }) { - final $result = create(); - if (logData != null) { - $result.logData = logData; - } - if (connectionParam != null) { - $result.connectionParam = connectionParam; - } - if (energySurvey != null) { - $result.energySurvey = energySurvey; - } - if (logString != null) { - $result.logString = logString; - } - return $result; - } - LogDataNotification_DataLogObject._() : super(); - factory LogDataNotification_DataLogObject.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory LogDataNotification_DataLogObject.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static const $core.Map<$core.int, LogDataNotification_DataLogObject_Event> _LogDataNotification_DataLogObject_EventByTag = { - 1 : LogDataNotification_DataLogObject_Event.logData, - 2 : LogDataNotification_DataLogObject_Event.connectionParam, - 3 : LogDataNotification_DataLogObject_Event.energySurvey, - 4 : LogDataNotification_DataLogObject_Event.logString, - 0 : LogDataNotification_DataLogObject_Event.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LogDataNotification.DataLogObject', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..oo(0, [1, 2, 3, 4]) - ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'logData', $pb.PbFieldType.OY, protoName: 'logData') - ..aOM(2, _omitFieldNames ? '' : 'connectionParam', protoName: 'connectionParam', subBuilder: LogDataNotification_ConnectionParameters.create) - ..aOM(3, _omitFieldNames ? '' : 'energySurvey', protoName: 'energySurvey', subBuilder: LogDataNotification_EnergySurveySummary.create) - ..a<$core.List<$core.int>>(4, _omitFieldNames ? '' : 'logString', $pb.PbFieldType.OY, protoName: 'logString') - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - LogDataNotification_DataLogObject clone() => LogDataNotification_DataLogObject()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - LogDataNotification_DataLogObject copyWith(void Function(LogDataNotification_DataLogObject) updates) => super.copyWith((message) => updates(message as LogDataNotification_DataLogObject)) as LogDataNotification_DataLogObject; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static LogDataNotification_DataLogObject create() => LogDataNotification_DataLogObject._(); - LogDataNotification_DataLogObject createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static LogDataNotification_DataLogObject getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static LogDataNotification_DataLogObject? _defaultInstance; - - LogDataNotification_DataLogObject_Event whichEvent() => _LogDataNotification_DataLogObject_EventByTag[$_whichOneof(0)]!; - void clearEvent() => clearField($_whichOneof(0)); - - @$pb.TagNumber(1) - $core.List<$core.int> get logData => $_getN(0); - @$pb.TagNumber(1) - set logData($core.List<$core.int> v) { $_setBytes(0, v); } - @$pb.TagNumber(1) - $core.bool hasLogData() => $_has(0); - @$pb.TagNumber(1) - void clearLogData() => clearField(1); - - @$pb.TagNumber(2) - LogDataNotification_ConnectionParameters get connectionParam => $_getN(1); - @$pb.TagNumber(2) - set connectionParam(LogDataNotification_ConnectionParameters v) { setField(2, v); } - @$pb.TagNumber(2) - $core.bool hasConnectionParam() => $_has(1); - @$pb.TagNumber(2) - void clearConnectionParam() => clearField(2); - @$pb.TagNumber(2) - LogDataNotification_ConnectionParameters ensureConnectionParam() => $_ensure(1); - - @$pb.TagNumber(3) - LogDataNotification_EnergySurveySummary get energySurvey => $_getN(2); - @$pb.TagNumber(3) - set energySurvey(LogDataNotification_EnergySurveySummary v) { setField(3, v); } - @$pb.TagNumber(3) - $core.bool hasEnergySurvey() => $_has(2); - @$pb.TagNumber(3) - void clearEnergySurvey() => clearField(3); - @$pb.TagNumber(3) - LogDataNotification_EnergySurveySummary ensureEnergySurvey() => $_ensure(2); - - @$pb.TagNumber(4) - $core.List<$core.int> get logString => $_getN(3); - @$pb.TagNumber(4) - set logString($core.List<$core.int> v) { $_setBytes(3, v); } - @$pb.TagNumber(4) - $core.bool hasLogString() => $_has(3); - @$pb.TagNumber(4) - void clearLogString() => clearField(4); -} - -class LogDataNotification extends $pb.GeneratedMessage { - factory LogDataNotification({ - LogLevel? logLevel, - LogDataNotification_DataLogObject? dataLogObject, - }) { - final $result = create(); - if (logLevel != null) { - $result.logLevel = logLevel; - } - if (dataLogObject != null) { - $result.dataLogObject = dataLogObject; - } - return $result; - } - LogDataNotification._() : super(); - factory LogDataNotification.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory LogDataNotification.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LogDataNotification', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'logLevel', $pb.PbFieldType.QE, protoName: 'logLevel', defaultOrMaker: LogLevel.LOGLEVEL_OFF, valueOf: LogLevel.valueOf, enumValues: LogLevel.values) - ..aQM(2, _omitFieldNames ? '' : 'dataLogObject', protoName: 'dataLogObject', subBuilder: LogDataNotification_DataLogObject.create) - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - LogDataNotification clone() => LogDataNotification()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - LogDataNotification copyWith(void Function(LogDataNotification) updates) => super.copyWith((message) => updates(message as LogDataNotification)) as LogDataNotification; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static LogDataNotification create() => LogDataNotification._(); - LogDataNotification createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static LogDataNotification getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static LogDataNotification? _defaultInstance; - - @$pb.TagNumber(1) - LogLevel get logLevel => $_getN(0); - @$pb.TagNumber(1) - set logLevel(LogLevel v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasLogLevel() => $_has(0); - @$pb.TagNumber(1) - void clearLogLevel() => clearField(1); - - @$pb.TagNumber(2) - LogDataNotification_DataLogObject get dataLogObject => $_getN(1); - @$pb.TagNumber(2) - set dataLogObject(LogDataNotification_DataLogObject v) { setField(2, v); } - @$pb.TagNumber(2) - $core.bool hasDataLogObject() => $_has(1); - @$pb.TagNumber(2) - void clearDataLogObject() => clearField(2); - @$pb.TagNumber(2) - LogDataNotification_DataLogObject ensureDataLogObject() => $_ensure(1); -} - -class SpindownRequest_StartSpindown extends $pb.GeneratedMessage { - factory SpindownRequest_StartSpindown({ - $core.bool? enable, - }) { - final $result = create(); - if (enable != null) { - $result.enable = enable; - } - return $result; - } - SpindownRequest_StartSpindown._() : super(); - factory SpindownRequest_StartSpindown.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SpindownRequest_StartSpindown.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SpindownRequest.StartSpindown', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.bool>(1, _omitFieldNames ? '' : 'enable', $pb.PbFieldType.QB) - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SpindownRequest_StartSpindown clone() => SpindownRequest_StartSpindown()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SpindownRequest_StartSpindown copyWith(void Function(SpindownRequest_StartSpindown) updates) => super.copyWith((message) => updates(message as SpindownRequest_StartSpindown)) as SpindownRequest_StartSpindown; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SpindownRequest_StartSpindown create() => SpindownRequest_StartSpindown._(); - SpindownRequest_StartSpindown createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SpindownRequest_StartSpindown getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static SpindownRequest_StartSpindown? _defaultInstance; - - @$pb.TagNumber(1) - $core.bool get enable => $_getBF(0); - @$pb.TagNumber(1) - set enable($core.bool v) { $_setBool(0, v); } - @$pb.TagNumber(1) - $core.bool hasEnable() => $_has(0); - @$pb.TagNumber(1) - void clearEnable() => clearField(1); -} - -class SpindownRequest_IgnoreSpindown extends $pb.GeneratedMessage { - factory SpindownRequest_IgnoreSpindown({ - $core.bool? enable, - }) { - final $result = create(); - if (enable != null) { - $result.enable = enable; - } - return $result; - } - SpindownRequest_IgnoreSpindown._() : super(); - factory SpindownRequest_IgnoreSpindown.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SpindownRequest_IgnoreSpindown.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SpindownRequest.IgnoreSpindown', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.bool>(1, _omitFieldNames ? '' : 'enable', $pb.PbFieldType.QB) - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SpindownRequest_IgnoreSpindown clone() => SpindownRequest_IgnoreSpindown()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SpindownRequest_IgnoreSpindown copyWith(void Function(SpindownRequest_IgnoreSpindown) updates) => super.copyWith((message) => updates(message as SpindownRequest_IgnoreSpindown)) as SpindownRequest_IgnoreSpindown; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SpindownRequest_IgnoreSpindown create() => SpindownRequest_IgnoreSpindown._(); - SpindownRequest_IgnoreSpindown createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SpindownRequest_IgnoreSpindown getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static SpindownRequest_IgnoreSpindown? _defaultInstance; - - @$pb.TagNumber(1) - $core.bool get enable => $_getBF(0); - @$pb.TagNumber(1) - set enable($core.bool v) { $_setBool(0, v); } - @$pb.TagNumber(1) - $core.bool hasEnable() => $_has(0); - @$pb.TagNumber(1) - void clearEnable() => clearField(1); -} - -enum SpindownRequest_Request { - startSpindown, - ignoreSpindown, - notSet -} - -/// OpCode 0x3A -class SpindownRequest extends $pb.GeneratedMessage { - factory SpindownRequest({ - SpindownRequest_StartSpindown? startSpindown, - SpindownRequest_IgnoreSpindown? ignoreSpindown, - }) { - final $result = create(); - if (startSpindown != null) { - $result.startSpindown = startSpindown; - } - if (ignoreSpindown != null) { - $result.ignoreSpindown = ignoreSpindown; - } - return $result; - } - SpindownRequest._() : super(); - factory SpindownRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SpindownRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static const $core.Map<$core.int, SpindownRequest_Request> _SpindownRequest_RequestByTag = { - 1 : SpindownRequest_Request.startSpindown, - 2 : SpindownRequest_Request.ignoreSpindown, - 0 : SpindownRequest_Request.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SpindownRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..oo(0, [1, 2]) - ..aOM(1, _omitFieldNames ? '' : 'startSpindown', protoName: 'startSpindown', subBuilder: SpindownRequest_StartSpindown.create) - ..aOM(2, _omitFieldNames ? '' : 'ignoreSpindown', protoName: 'ignoreSpindown', subBuilder: SpindownRequest_IgnoreSpindown.create) - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SpindownRequest clone() => SpindownRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SpindownRequest copyWith(void Function(SpindownRequest) updates) => super.copyWith((message) => updates(message as SpindownRequest)) as SpindownRequest; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SpindownRequest create() => SpindownRequest._(); - SpindownRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SpindownRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static SpindownRequest? _defaultInstance; - - SpindownRequest_Request whichRequest() => _SpindownRequest_RequestByTag[$_whichOneof(0)]!; - void clearRequest() => clearField($_whichOneof(0)); - - @$pb.TagNumber(1) - SpindownRequest_StartSpindown get startSpindown => $_getN(0); - @$pb.TagNumber(1) - set startSpindown(SpindownRequest_StartSpindown v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasStartSpindown() => $_has(0); - @$pb.TagNumber(1) - void clearStartSpindown() => clearField(1); - @$pb.TagNumber(1) - SpindownRequest_StartSpindown ensureStartSpindown() => $_ensure(0); - - @$pb.TagNumber(2) - SpindownRequest_IgnoreSpindown get ignoreSpindown => $_getN(1); - @$pb.TagNumber(2) - set ignoreSpindown(SpindownRequest_IgnoreSpindown v) { setField(2, v); } - @$pb.TagNumber(2) - $core.bool hasIgnoreSpindown() => $_has(1); - @$pb.TagNumber(2) - void clearIgnoreSpindown() => clearField(2); - @$pb.TagNumber(2) - SpindownRequest_IgnoreSpindown ensureIgnoreSpindown() => $_ensure(1); -} - -class SpindownNotification_ManualSpindownStatus extends $pb.GeneratedMessage { - factory SpindownNotification_ManualSpindownStatus({ - SpindownStatus? spindownStatus, - $core.int? targetSpeedLow, - $core.int? targetSpeedHigh, - }) { - final $result = create(); - if (spindownStatus != null) { - $result.spindownStatus = spindownStatus; - } - if (targetSpeedLow != null) { - $result.targetSpeedLow = targetSpeedLow; - } - if (targetSpeedHigh != null) { - $result.targetSpeedHigh = targetSpeedHigh; - } - return $result; - } - SpindownNotification_ManualSpindownStatus._() : super(); - factory SpindownNotification_ManualSpindownStatus.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SpindownNotification_ManualSpindownStatus.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SpindownNotification.ManualSpindownStatus', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'spindownStatus', $pb.PbFieldType.QE, protoName: 'spindownStatus', defaultOrMaker: SpindownStatus.SPINDOWN_IDLE, valueOf: SpindownStatus.valueOf, enumValues: SpindownStatus.values) - ..a<$core.int>(2, _omitFieldNames ? '' : 'targetSpeedLow', $pb.PbFieldType.OU3, protoName: 'targetSpeedLow') - ..a<$core.int>(3, _omitFieldNames ? '' : 'targetSpeedHigh', $pb.PbFieldType.OU3, protoName: 'targetSpeedHigh') - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SpindownNotification_ManualSpindownStatus clone() => SpindownNotification_ManualSpindownStatus()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SpindownNotification_ManualSpindownStatus copyWith(void Function(SpindownNotification_ManualSpindownStatus) updates) => super.copyWith((message) => updates(message as SpindownNotification_ManualSpindownStatus)) as SpindownNotification_ManualSpindownStatus; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SpindownNotification_ManualSpindownStatus create() => SpindownNotification_ManualSpindownStatus._(); - SpindownNotification_ManualSpindownStatus createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SpindownNotification_ManualSpindownStatus getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static SpindownNotification_ManualSpindownStatus? _defaultInstance; - - @$pb.TagNumber(1) - SpindownStatus get spindownStatus => $_getN(0); - @$pb.TagNumber(1) - set spindownStatus(SpindownStatus v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasSpindownStatus() => $_has(0); - @$pb.TagNumber(1) - void clearSpindownStatus() => clearField(1); - - @$pb.TagNumber(2) - $core.int get targetSpeedLow => $_getIZ(1); - @$pb.TagNumber(2) - set targetSpeedLow($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasTargetSpeedLow() => $_has(1); - @$pb.TagNumber(2) - void clearTargetSpeedLow() => clearField(2); - - @$pb.TagNumber(3) - $core.int get targetSpeedHigh => $_getIZ(2); - @$pb.TagNumber(3) - set targetSpeedHigh($core.int v) { $_setUnsignedInt32(2, v); } - @$pb.TagNumber(3) - $core.bool hasTargetSpeedHigh() => $_has(2); - @$pb.TagNumber(3) - void clearTargetSpeedHigh() => clearField(3); -} - -class SpindownNotification_AutoSpindownStatus extends $pb.GeneratedMessage { - factory SpindownNotification_AutoSpindownStatus({ - $core.bool? completed, - }) { - final $result = create(); - if (completed != null) { - $result.completed = completed; - } - return $result; - } - SpindownNotification_AutoSpindownStatus._() : super(); - factory SpindownNotification_AutoSpindownStatus.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SpindownNotification_AutoSpindownStatus.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SpindownNotification.AutoSpindownStatus', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.bool>(1, _omitFieldNames ? '' : 'completed', $pb.PbFieldType.QB) - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SpindownNotification_AutoSpindownStatus clone() => SpindownNotification_AutoSpindownStatus()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SpindownNotification_AutoSpindownStatus copyWith(void Function(SpindownNotification_AutoSpindownStatus) updates) => super.copyWith((message) => updates(message as SpindownNotification_AutoSpindownStatus)) as SpindownNotification_AutoSpindownStatus; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SpindownNotification_AutoSpindownStatus create() => SpindownNotification_AutoSpindownStatus._(); - SpindownNotification_AutoSpindownStatus createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SpindownNotification_AutoSpindownStatus getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static SpindownNotification_AutoSpindownStatus? _defaultInstance; - - @$pb.TagNumber(1) - $core.bool get completed => $_getBF(0); - @$pb.TagNumber(1) - set completed($core.bool v) { $_setBool(0, v); } - @$pb.TagNumber(1) - $core.bool hasCompleted() => $_has(0); - @$pb.TagNumber(1) - void clearCompleted() => clearField(1); -} - -enum SpindownNotification_Event { - manualSpindownStatus, - autoSpindownStatus, - notSet -} - -/// OpCode 0x3B -class SpindownNotification extends $pb.GeneratedMessage { - factory SpindownNotification({ - SpindownNotification_ManualSpindownStatus? manualSpindownStatus, - SpindownNotification_AutoSpindownStatus? autoSpindownStatus, - }) { - final $result = create(); - if (manualSpindownStatus != null) { - $result.manualSpindownStatus = manualSpindownStatus; - } - if (autoSpindownStatus != null) { - $result.autoSpindownStatus = autoSpindownStatus; - } - return $result; - } - SpindownNotification._() : super(); - factory SpindownNotification.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SpindownNotification.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static const $core.Map<$core.int, SpindownNotification_Event> _SpindownNotification_EventByTag = { - 1 : SpindownNotification_Event.manualSpindownStatus, - 2 : SpindownNotification_Event.autoSpindownStatus, - 0 : SpindownNotification_Event.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SpindownNotification', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..oo(0, [1, 2]) - ..aOM(1, _omitFieldNames ? '' : 'manualSpindownStatus', protoName: 'manualSpindownStatus', subBuilder: SpindownNotification_ManualSpindownStatus.create) - ..aOM(2, _omitFieldNames ? '' : 'autoSpindownStatus', protoName: 'autoSpindownStatus', subBuilder: SpindownNotification_AutoSpindownStatus.create) - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SpindownNotification clone() => SpindownNotification()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SpindownNotification copyWith(void Function(SpindownNotification) updates) => super.copyWith((message) => updates(message as SpindownNotification)) as SpindownNotification; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SpindownNotification create() => SpindownNotification._(); - SpindownNotification createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SpindownNotification getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static SpindownNotification? _defaultInstance; - - SpindownNotification_Event whichEvent() => _SpindownNotification_EventByTag[$_whichOneof(0)]!; - void clearEvent() => clearField($_whichOneof(0)); - - @$pb.TagNumber(1) - SpindownNotification_ManualSpindownStatus get manualSpindownStatus => $_getN(0); - @$pb.TagNumber(1) - set manualSpindownStatus(SpindownNotification_ManualSpindownStatus v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasManualSpindownStatus() => $_has(0); - @$pb.TagNumber(1) - void clearManualSpindownStatus() => clearField(1); - @$pb.TagNumber(1) - SpindownNotification_ManualSpindownStatus ensureManualSpindownStatus() => $_ensure(0); - - @$pb.TagNumber(2) - SpindownNotification_AutoSpindownStatus get autoSpindownStatus => $_getN(1); - @$pb.TagNumber(2) - set autoSpindownStatus(SpindownNotification_AutoSpindownStatus v) { setField(2, v); } - @$pb.TagNumber(2) - $core.bool hasAutoSpindownStatus() => $_has(1); - @$pb.TagNumber(2) - void clearAutoSpindownStatus() => clearField(2); - @$pb.TagNumber(2) - SpindownNotification_AutoSpindownStatus ensureAutoSpindownStatus() => $_ensure(1); -} - -/// OpCode 0x3C -class GetResponse extends $pb.GeneratedMessage { - factory GetResponse({ - $core.int? dataObjectId, - $core.List<$core.int>? dataObjectData, - }) { - final $result = create(); - if (dataObjectId != null) { - $result.dataObjectId = dataObjectId; - } - if (dataObjectData != null) { - $result.dataObjectData = dataObjectData; - } - return $result; - } - GetResponse._() : super(); - factory GetResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'dataObjectId', $pb.PbFieldType.QU3, protoName: 'dataObjectId') - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'dataObjectData', $pb.PbFieldType.OY, protoName: 'dataObjectData') - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetResponse clone() => GetResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetResponse copyWith(void Function(GetResponse) updates) => super.copyWith((message) => updates(message as GetResponse)) as GetResponse; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static GetResponse create() => GetResponse._(); - GetResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static GetResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static GetResponse? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get dataObjectId => $_getIZ(0); - @$pb.TagNumber(1) - set dataObjectId($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasDataObjectId() => $_has(0); - @$pb.TagNumber(1) - void clearDataObjectId() => clearField(1); - - @$pb.TagNumber(2) - $core.List<$core.int> get dataObjectData => $_getN(1); - @$pb.TagNumber(2) - set dataObjectData($core.List<$core.int> v) { $_setBytes(1, v); } - @$pb.TagNumber(2) - $core.bool hasDataObjectData() => $_has(1); - @$pb.TagNumber(2) - void clearDataObjectData() => clearField(2); -} - -/// OpCode 0x3E -class StatusResponse extends $pb.GeneratedMessage { - factory StatusResponse({ - $core.int? command, - $core.int? status, - }) { - final $result = create(); - if (command != null) { - $result.command = command; - } - if (status != null) { - $result.status = status; - } - return $result; - } - StatusResponse._() : super(); - factory StatusResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory StatusResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StatusResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'command', $pb.PbFieldType.QU3) - ..a<$core.int>(2, _omitFieldNames ? '' : 'status', $pb.PbFieldType.QU3) - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - StatusResponse clone() => StatusResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - StatusResponse copyWith(void Function(StatusResponse) updates) => super.copyWith((message) => updates(message as StatusResponse)) as StatusResponse; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static StatusResponse create() => StatusResponse._(); - StatusResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static StatusResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static StatusResponse? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get command => $_getIZ(0); - @$pb.TagNumber(1) - set command($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasCommand() => $_has(0); - @$pb.TagNumber(1) - void clearCommand() => clearField(1); - - @$pb.TagNumber(2) - $core.int get status => $_getIZ(1); - @$pb.TagNumber(2) - set status($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasStatus() => $_has(1); - @$pb.TagNumber(2) - void clearStatus() => clearField(2); -} - -enum Set_Set { - devInfo, - trainerSimParam, - trainerOptions, - deviceTiltConfig, - controllerInputConfig, - trainerGearIndexConfig, - wifiConfig, - dateTimeConfig, - notSet -} - -/// OpCode 0x3F -class Set extends $pb.GeneratedMessage { - factory Set({ - $core.int? options, - $core.int? msgId, - DevInfoSet? devInfo, - TrainerSimulationParam? trainerSimParam, - TrainerOptions? trainerOptions, - DeviceTiltConfigPage? deviceTiltConfig, - ControllerInputConfigPage? controllerInputConfig, - TrainerGearIndexConfigPage? trainerGearIndexConfig, - WifiConfigurationPage? wifiConfig, - DateTimePage? dateTimeConfig, - }) { - final $result = create(); - if (options != null) { - $result.options = options; - } - if (msgId != null) { - $result.msgId = msgId; - } - if (devInfo != null) { - $result.devInfo = devInfo; - } - if (trainerSimParam != null) { - $result.trainerSimParam = trainerSimParam; - } - if (trainerOptions != null) { - $result.trainerOptions = trainerOptions; - } - if (deviceTiltConfig != null) { - $result.deviceTiltConfig = deviceTiltConfig; - } - if (controllerInputConfig != null) { - $result.controllerInputConfig = controllerInputConfig; - } - if (trainerGearIndexConfig != null) { - $result.trainerGearIndexConfig = trainerGearIndexConfig; - } - if (wifiConfig != null) { - $result.wifiConfig = wifiConfig; - } - if (dateTimeConfig != null) { - $result.dateTimeConfig = dateTimeConfig; - } - return $result; - } - Set._() : super(); - factory Set.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Set.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static const $core.Map<$core.int, Set_Set> _Set_SetByTag = { - 3 : Set_Set.devInfo, - 4 : Set_Set.trainerSimParam, - 5 : Set_Set.trainerOptions, - 6 : Set_Set.deviceTiltConfig, - 7 : Set_Set.controllerInputConfig, - 8 : Set_Set.trainerGearIndexConfig, - 10 : Set_Set.wifiConfig, - 11 : Set_Set.dateTimeConfig, - 0 : Set_Set.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Set', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..oo(0, [3, 4, 5, 6, 7, 8, 10, 11]) - ..a<$core.int>(1, _omitFieldNames ? '' : 'options', $pb.PbFieldType.OU3) - ..a<$core.int>(2, _omitFieldNames ? '' : 'msgId', $pb.PbFieldType.OU3, protoName: 'msgId') - ..aOM(3, _omitFieldNames ? '' : 'devInfo', protoName: 'devInfo', subBuilder: DevInfoSet.create) - ..aOM(4, _omitFieldNames ? '' : 'trainerSimParam', protoName: 'trainerSimParam', subBuilder: TrainerSimulationParam.create) - ..aOM(5, _omitFieldNames ? '' : 'trainerOptions', protoName: 'trainerOptions', subBuilder: TrainerOptions.create) - ..aOM(6, _omitFieldNames ? '' : 'deviceTiltConfig', protoName: 'deviceTiltConfig', subBuilder: DeviceTiltConfigPage.create) - ..aOM(7, _omitFieldNames ? '' : 'controllerInputConfig', protoName: 'controllerInputConfig', subBuilder: ControllerInputConfigPage.create) - ..aOM(8, _omitFieldNames ? '' : 'trainerGearIndexConfig', protoName: 'trainerGearIndexConfig', subBuilder: TrainerGearIndexConfigPage.create) - ..aOM(10, _omitFieldNames ? '' : 'wifiConfig', protoName: 'wifiConfig', subBuilder: WifiConfigurationPage.create) - ..aOM(11, _omitFieldNames ? '' : 'dateTimeConfig', protoName: 'dateTimeConfig', subBuilder: DateTimePage.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - Set clone() => Set()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Set copyWith(void Function(Set) updates) => super.copyWith((message) => updates(message as Set)) as Set; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static Set create() => Set._(); - Set createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static Set getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static Set? _defaultInstance; - - Set_Set whichSet() => _Set_SetByTag[$_whichOneof(0)]!; - void clearSet() => clearField($_whichOneof(0)); - - @$pb.TagNumber(1) - $core.int get options => $_getIZ(0); - @$pb.TagNumber(1) - set options($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasOptions() => $_has(0); - @$pb.TagNumber(1) - void clearOptions() => clearField(1); - - @$pb.TagNumber(2) - $core.int get msgId => $_getIZ(1); - @$pb.TagNumber(2) - set msgId($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasMsgId() => $_has(1); - @$pb.TagNumber(2) - void clearMsgId() => clearField(2); - - @$pb.TagNumber(3) - DevInfoSet get devInfo => $_getN(2); - @$pb.TagNumber(3) - set devInfo(DevInfoSet v) { setField(3, v); } - @$pb.TagNumber(3) - $core.bool hasDevInfo() => $_has(2); - @$pb.TagNumber(3) - void clearDevInfo() => clearField(3); - @$pb.TagNumber(3) - DevInfoSet ensureDevInfo() => $_ensure(2); - - @$pb.TagNumber(4) - TrainerSimulationParam get trainerSimParam => $_getN(3); - @$pb.TagNumber(4) - set trainerSimParam(TrainerSimulationParam v) { setField(4, v); } - @$pb.TagNumber(4) - $core.bool hasTrainerSimParam() => $_has(3); - @$pb.TagNumber(4) - void clearTrainerSimParam() => clearField(4); - @$pb.TagNumber(4) - TrainerSimulationParam ensureTrainerSimParam() => $_ensure(3); - - @$pb.TagNumber(5) - TrainerOptions get trainerOptions => $_getN(4); - @$pb.TagNumber(5) - set trainerOptions(TrainerOptions v) { setField(5, v); } - @$pb.TagNumber(5) - $core.bool hasTrainerOptions() => $_has(4); - @$pb.TagNumber(5) - void clearTrainerOptions() => clearField(5); - @$pb.TagNumber(5) - TrainerOptions ensureTrainerOptions() => $_ensure(4); - - @$pb.TagNumber(6) - DeviceTiltConfigPage get deviceTiltConfig => $_getN(5); - @$pb.TagNumber(6) - set deviceTiltConfig(DeviceTiltConfigPage v) { setField(6, v); } - @$pb.TagNumber(6) - $core.bool hasDeviceTiltConfig() => $_has(5); - @$pb.TagNumber(6) - void clearDeviceTiltConfig() => clearField(6); - @$pb.TagNumber(6) - DeviceTiltConfigPage ensureDeviceTiltConfig() => $_ensure(5); - - @$pb.TagNumber(7) - ControllerInputConfigPage get controllerInputConfig => $_getN(6); - @$pb.TagNumber(7) - set controllerInputConfig(ControllerInputConfigPage v) { setField(7, v); } - @$pb.TagNumber(7) - $core.bool hasControllerInputConfig() => $_has(6); - @$pb.TagNumber(7) - void clearControllerInputConfig() => clearField(7); - @$pb.TagNumber(7) - ControllerInputConfigPage ensureControllerInputConfig() => $_ensure(6); - - @$pb.TagNumber(8) - TrainerGearIndexConfigPage get trainerGearIndexConfig => $_getN(7); - @$pb.TagNumber(8) - set trainerGearIndexConfig(TrainerGearIndexConfigPage v) { setField(8, v); } - @$pb.TagNumber(8) - $core.bool hasTrainerGearIndexConfig() => $_has(7); - @$pb.TagNumber(8) - void clearTrainerGearIndexConfig() => clearField(8); - @$pb.TagNumber(8) - TrainerGearIndexConfigPage ensureTrainerGearIndexConfig() => $_ensure(7); - - @$pb.TagNumber(10) - WifiConfigurationPage get wifiConfig => $_getN(8); - @$pb.TagNumber(10) - set wifiConfig(WifiConfigurationPage v) { setField(10, v); } - @$pb.TagNumber(10) - $core.bool hasWifiConfig() => $_has(8); - @$pb.TagNumber(10) - void clearWifiConfig() => clearField(10); - @$pb.TagNumber(10) - WifiConfigurationPage ensureWifiConfig() => $_ensure(8); - - @$pb.TagNumber(11) - DateTimePage get dateTimeConfig => $_getN(9); - @$pb.TagNumber(11) - set dateTimeConfig(DateTimePage v) { setField(11, v); } - @$pb.TagNumber(11) - $core.bool hasDateTimeConfig() => $_has(9); - @$pb.TagNumber(11) - void clearDateTimeConfig() => clearField(11); - @$pb.TagNumber(11) - DateTimePage ensureDateTimeConfig() => $_ensure(9); -} - -enum SetResponse_Response_Page { - devInfo, - trainerSimParam, - trainerOptions, - deviceTiltConfig, - controllerInputConfig, - trainerGearIndexConfig, - wifiConfig, - dateTimeConfig, - notSet -} - -class SetResponse_Response extends $pb.GeneratedMessage { - factory SetResponse_Response({ - DevInfoPage? devInfo, - TrainerSimulationParam? trainerSimParam, - TrainerOptions? trainerOptions, - DeviceTiltConfigPage? deviceTiltConfig, - ControllerInputConfigPage? controllerInputConfig, - TrainerGearIndexConfigPage? trainerGearIndexConfig, - WifiConfigurationPage? wifiConfig, - DateTimePage? dateTimeConfig, - }) { - final $result = create(); - if (devInfo != null) { - $result.devInfo = devInfo; - } - if (trainerSimParam != null) { - $result.trainerSimParam = trainerSimParam; - } - if (trainerOptions != null) { - $result.trainerOptions = trainerOptions; - } - if (deviceTiltConfig != null) { - $result.deviceTiltConfig = deviceTiltConfig; - } - if (controllerInputConfig != null) { - $result.controllerInputConfig = controllerInputConfig; - } - if (trainerGearIndexConfig != null) { - $result.trainerGearIndexConfig = trainerGearIndexConfig; - } - if (wifiConfig != null) { - $result.wifiConfig = wifiConfig; - } - if (dateTimeConfig != null) { - $result.dateTimeConfig = dateTimeConfig; - } - return $result; - } - SetResponse_Response._() : super(); - factory SetResponse_Response.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SetResponse_Response.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static const $core.Map<$core.int, SetResponse_Response_Page> _SetResponse_Response_PageByTag = { - 1 : SetResponse_Response_Page.devInfo, - 2 : SetResponse_Response_Page.trainerSimParam, - 3 : SetResponse_Response_Page.trainerOptions, - 4 : SetResponse_Response_Page.deviceTiltConfig, - 5 : SetResponse_Response_Page.controllerInputConfig, - 6 : SetResponse_Response_Page.trainerGearIndexConfig, - 8 : SetResponse_Response_Page.wifiConfig, - 9 : SetResponse_Response_Page.dateTimeConfig, - 0 : SetResponse_Response_Page.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SetResponse.Response', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..oo(0, [1, 2, 3, 4, 5, 6, 8, 9]) - ..aOM(1, _omitFieldNames ? '' : 'devInfo', protoName: 'devInfo', subBuilder: DevInfoPage.create) - ..aOM(2, _omitFieldNames ? '' : 'trainerSimParam', protoName: 'trainerSimParam', subBuilder: TrainerSimulationParam.create) - ..aOM(3, _omitFieldNames ? '' : 'trainerOptions', protoName: 'trainerOptions', subBuilder: TrainerOptions.create) - ..aOM(4, _omitFieldNames ? '' : 'deviceTiltConfig', protoName: 'deviceTiltConfig', subBuilder: DeviceTiltConfigPage.create) - ..aOM(5, _omitFieldNames ? '' : 'controllerInputConfig', protoName: 'controllerInputConfig', subBuilder: ControllerInputConfigPage.create) - ..aOM(6, _omitFieldNames ? '' : 'trainerGearIndexConfig', protoName: 'trainerGearIndexConfig', subBuilder: TrainerGearIndexConfigPage.create) - ..aOM(8, _omitFieldNames ? '' : 'wifiConfig', protoName: 'wifiConfig', subBuilder: WifiConfigurationPage.create) - ..aOM(9, _omitFieldNames ? '' : 'dateTimeConfig', protoName: 'dateTimeConfig', subBuilder: DateTimePage.create) - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SetResponse_Response clone() => SetResponse_Response()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SetResponse_Response copyWith(void Function(SetResponse_Response) updates) => super.copyWith((message) => updates(message as SetResponse_Response)) as SetResponse_Response; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SetResponse_Response create() => SetResponse_Response._(); - SetResponse_Response createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SetResponse_Response getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static SetResponse_Response? _defaultInstance; - - SetResponse_Response_Page whichPage() => _SetResponse_Response_PageByTag[$_whichOneof(0)]!; - void clearPage() => clearField($_whichOneof(0)); - - @$pb.TagNumber(1) - DevInfoPage get devInfo => $_getN(0); - @$pb.TagNumber(1) - set devInfo(DevInfoPage v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasDevInfo() => $_has(0); - @$pb.TagNumber(1) - void clearDevInfo() => clearField(1); - @$pb.TagNumber(1) - DevInfoPage ensureDevInfo() => $_ensure(0); - - @$pb.TagNumber(2) - TrainerSimulationParam get trainerSimParam => $_getN(1); - @$pb.TagNumber(2) - set trainerSimParam(TrainerSimulationParam v) { setField(2, v); } - @$pb.TagNumber(2) - $core.bool hasTrainerSimParam() => $_has(1); - @$pb.TagNumber(2) - void clearTrainerSimParam() => clearField(2); - @$pb.TagNumber(2) - TrainerSimulationParam ensureTrainerSimParam() => $_ensure(1); - - @$pb.TagNumber(3) - TrainerOptions get trainerOptions => $_getN(2); - @$pb.TagNumber(3) - set trainerOptions(TrainerOptions v) { setField(3, v); } - @$pb.TagNumber(3) - $core.bool hasTrainerOptions() => $_has(2); - @$pb.TagNumber(3) - void clearTrainerOptions() => clearField(3); - @$pb.TagNumber(3) - TrainerOptions ensureTrainerOptions() => $_ensure(2); - - @$pb.TagNumber(4) - DeviceTiltConfigPage get deviceTiltConfig => $_getN(3); - @$pb.TagNumber(4) - set deviceTiltConfig(DeviceTiltConfigPage v) { setField(4, v); } - @$pb.TagNumber(4) - $core.bool hasDeviceTiltConfig() => $_has(3); - @$pb.TagNumber(4) - void clearDeviceTiltConfig() => clearField(4); - @$pb.TagNumber(4) - DeviceTiltConfigPage ensureDeviceTiltConfig() => $_ensure(3); - - @$pb.TagNumber(5) - ControllerInputConfigPage get controllerInputConfig => $_getN(4); - @$pb.TagNumber(5) - set controllerInputConfig(ControllerInputConfigPage v) { setField(5, v); } - @$pb.TagNumber(5) - $core.bool hasControllerInputConfig() => $_has(4); - @$pb.TagNumber(5) - void clearControllerInputConfig() => clearField(5); - @$pb.TagNumber(5) - ControllerInputConfigPage ensureControllerInputConfig() => $_ensure(4); - - @$pb.TagNumber(6) - TrainerGearIndexConfigPage get trainerGearIndexConfig => $_getN(5); - @$pb.TagNumber(6) - set trainerGearIndexConfig(TrainerGearIndexConfigPage v) { setField(6, v); } - @$pb.TagNumber(6) - $core.bool hasTrainerGearIndexConfig() => $_has(5); - @$pb.TagNumber(6) - void clearTrainerGearIndexConfig() => clearField(6); - @$pb.TagNumber(6) - TrainerGearIndexConfigPage ensureTrainerGearIndexConfig() => $_ensure(5); - - @$pb.TagNumber(8) - WifiConfigurationPage get wifiConfig => $_getN(6); - @$pb.TagNumber(8) - set wifiConfig(WifiConfigurationPage v) { setField(8, v); } - @$pb.TagNumber(8) - $core.bool hasWifiConfig() => $_has(6); - @$pb.TagNumber(8) - void clearWifiConfig() => clearField(8); - @$pb.TagNumber(8) - WifiConfigurationPage ensureWifiConfig() => $_ensure(6); - - @$pb.TagNumber(9) - DateTimePage get dateTimeConfig => $_getN(7); - @$pb.TagNumber(9) - set dateTimeConfig(DateTimePage v) { setField(9, v); } - @$pb.TagNumber(9) - $core.bool hasDateTimeConfig() => $_has(7); - @$pb.TagNumber(9) - void clearDateTimeConfig() => clearField(9); - @$pb.TagNumber(9) - DateTimePage ensureDateTimeConfig() => $_ensure(7); -} - -/// OpCode 0x40 -class SetResponse extends $pb.GeneratedMessage { - factory SetResponse({ - $core.int? status, - $core.int? msgId, - SetResponse_Response? response, - }) { - final $result = create(); - if (status != null) { - $result.status = status; - } - if (msgId != null) { - $result.msgId = msgId; - } - if (response != null) { - $result.response = response; - } - return $result; - } - SetResponse._() : super(); - factory SetResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SetResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SetResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'status', $pb.PbFieldType.OU3) - ..a<$core.int>(2, _omitFieldNames ? '' : 'msgId', $pb.PbFieldType.OU3, protoName: 'msgId') - ..aOM(3, _omitFieldNames ? '' : 'response', subBuilder: SetResponse_Response.create) - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SetResponse clone() => SetResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SetResponse copyWith(void Function(SetResponse) updates) => super.copyWith((message) => updates(message as SetResponse)) as SetResponse; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SetResponse create() => SetResponse._(); - SetResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SetResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static SetResponse? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get status => $_getIZ(0); - @$pb.TagNumber(1) - set status($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasStatus() => $_has(0); - @$pb.TagNumber(1) - void clearStatus() => clearField(1); - - @$pb.TagNumber(2) - $core.int get msgId => $_getIZ(1); - @$pb.TagNumber(2) - set msgId($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasMsgId() => $_has(1); - @$pb.TagNumber(2) - void clearMsgId() => clearField(2); - - @$pb.TagNumber(3) - SetResponse_Response get response => $_getN(2); - @$pb.TagNumber(3) - set response(SetResponse_Response v) { setField(3, v); } - @$pb.TagNumber(3) - $core.bool hasResponse() => $_has(2); - @$pb.TagNumber(3) - void clearResponse() => clearField(3); - @$pb.TagNumber(3) - SetResponse_Response ensureResponse() => $_ensure(2); -} - -/// OpCode 0x41 -class LogLevelSet extends $pb.GeneratedMessage { - factory LogLevelSet({ - LogLevel? logLevel, - }) { - final $result = create(); - if (logLevel != null) { - $result.logLevel = logLevel; - } - return $result; - } - LogLevelSet._() : super(); - factory LogLevelSet.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory LogLevelSet.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LogLevelSet', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'logLevel', $pb.PbFieldType.OE, protoName: 'logLevel', defaultOrMaker: LogLevel.LOGLEVEL_OFF, valueOf: LogLevel.valueOf, enumValues: LogLevel.values) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - LogLevelSet clone() => LogLevelSet()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - LogLevelSet copyWith(void Function(LogLevelSet) updates) => super.copyWith((message) => updates(message as LogLevelSet)) as LogLevelSet; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static LogLevelSet create() => LogLevelSet._(); - LogLevelSet createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static LogLevelSet getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static LogLevelSet? _defaultInstance; - - @$pb.TagNumber(1) - LogLevel get logLevel => $_getN(0); - @$pb.TagNumber(1) - set logLevel(LogLevel v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasLogLevel() => $_has(0); - @$pb.TagNumber(1) - void clearLogLevel() => clearField(1); -} - -enum DataChangeNotification_Notification { - devInfo, - trainerSimParam, - trainerOptions, - deviceTiltConfig, - controllerInputConfig, - trainerGearIndexConfig, - wifiConfig, - deviceUpdatePage, - dateTimePage, - bleSecurityPage, - notSet -} - -/// Opcode 0x42 -class DataChangeNotification extends $pb.GeneratedMessage { - factory DataChangeNotification({ - DevInfoPage? devInfo, - TrainerSimulationParam? trainerSimParam, - TrainerOptions? trainerOptions, - DeviceTiltConfigPage? deviceTiltConfig, - ControllerInputConfigPage? controllerInputConfig, - TrainerGearIndexConfigPage? trainerGearIndexConfig, - WifiConfigurationPage? wifiConfig, - DeviceUpdatePage? deviceUpdatePage, - DateTimePage? dateTimePage, - BleSecurityPage? bleSecurityPage, - }) { - final $result = create(); - if (devInfo != null) { - $result.devInfo = devInfo; - } - if (trainerSimParam != null) { - $result.trainerSimParam = trainerSimParam; - } - if (trainerOptions != null) { - $result.trainerOptions = trainerOptions; - } - if (deviceTiltConfig != null) { - $result.deviceTiltConfig = deviceTiltConfig; - } - if (controllerInputConfig != null) { - $result.controllerInputConfig = controllerInputConfig; - } - if (trainerGearIndexConfig != null) { - $result.trainerGearIndexConfig = trainerGearIndexConfig; - } - if (wifiConfig != null) { - $result.wifiConfig = wifiConfig; - } - if (deviceUpdatePage != null) { - $result.deviceUpdatePage = deviceUpdatePage; - } - if (dateTimePage != null) { - $result.dateTimePage = dateTimePage; - } - if (bleSecurityPage != null) { - $result.bleSecurityPage = bleSecurityPage; - } - return $result; - } - DataChangeNotification._() : super(); - factory DataChangeNotification.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DataChangeNotification.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static const $core.Map<$core.int, DataChangeNotification_Notification> _DataChangeNotification_NotificationByTag = { - 1 : DataChangeNotification_Notification.devInfo, - 2 : DataChangeNotification_Notification.trainerSimParam, - 3 : DataChangeNotification_Notification.trainerOptions, - 4 : DataChangeNotification_Notification.deviceTiltConfig, - 5 : DataChangeNotification_Notification.controllerInputConfig, - 6 : DataChangeNotification_Notification.trainerGearIndexConfig, - 8 : DataChangeNotification_Notification.wifiConfig, - 9 : DataChangeNotification_Notification.deviceUpdatePage, - 10 : DataChangeNotification_Notification.dateTimePage, - 11 : DataChangeNotification_Notification.bleSecurityPage, - 0 : DataChangeNotification_Notification.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DataChangeNotification', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..oo(0, [1, 2, 3, 4, 5, 6, 8, 9, 10, 11]) - ..aOM(1, _omitFieldNames ? '' : 'devInfo', protoName: 'devInfo', subBuilder: DevInfoPage.create) - ..aOM(2, _omitFieldNames ? '' : 'trainerSimParam', protoName: 'trainerSimParam', subBuilder: TrainerSimulationParam.create) - ..aOM(3, _omitFieldNames ? '' : 'trainerOptions', protoName: 'trainerOptions', subBuilder: TrainerOptions.create) - ..aOM(4, _omitFieldNames ? '' : 'deviceTiltConfig', protoName: 'deviceTiltConfig', subBuilder: DeviceTiltConfigPage.create) - ..aOM(5, _omitFieldNames ? '' : 'controllerInputConfig', protoName: 'controllerInputConfig', subBuilder: ControllerInputConfigPage.create) - ..aOM(6, _omitFieldNames ? '' : 'trainerGearIndexConfig', protoName: 'trainerGearIndexConfig', subBuilder: TrainerGearIndexConfigPage.create) - ..aOM(8, _omitFieldNames ? '' : 'wifiConfig', protoName: 'wifiConfig', subBuilder: WifiConfigurationPage.create) - ..aOM(9, _omitFieldNames ? '' : 'deviceUpdatePage', protoName: 'deviceUpdatePage', subBuilder: DeviceUpdatePage.create) - ..aOM(10, _omitFieldNames ? '' : 'dateTimePage', protoName: 'dateTimePage', subBuilder: DateTimePage.create) - ..aOM(11, _omitFieldNames ? '' : 'bleSecurityPage', protoName: 'bleSecurityPage', subBuilder: BleSecurityPage.create) - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - DataChangeNotification clone() => DataChangeNotification()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DataChangeNotification copyWith(void Function(DataChangeNotification) updates) => super.copyWith((message) => updates(message as DataChangeNotification)) as DataChangeNotification; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static DataChangeNotification create() => DataChangeNotification._(); - DataChangeNotification createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static DataChangeNotification getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static DataChangeNotification? _defaultInstance; - - DataChangeNotification_Notification whichNotification() => _DataChangeNotification_NotificationByTag[$_whichOneof(0)]!; - void clearNotification() => clearField($_whichOneof(0)); - - @$pb.TagNumber(1) - DevInfoPage get devInfo => $_getN(0); - @$pb.TagNumber(1) - set devInfo(DevInfoPage v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasDevInfo() => $_has(0); - @$pb.TagNumber(1) - void clearDevInfo() => clearField(1); - @$pb.TagNumber(1) - DevInfoPage ensureDevInfo() => $_ensure(0); - - @$pb.TagNumber(2) - TrainerSimulationParam get trainerSimParam => $_getN(1); - @$pb.TagNumber(2) - set trainerSimParam(TrainerSimulationParam v) { setField(2, v); } - @$pb.TagNumber(2) - $core.bool hasTrainerSimParam() => $_has(1); - @$pb.TagNumber(2) - void clearTrainerSimParam() => clearField(2); - @$pb.TagNumber(2) - TrainerSimulationParam ensureTrainerSimParam() => $_ensure(1); - - @$pb.TagNumber(3) - TrainerOptions get trainerOptions => $_getN(2); - @$pb.TagNumber(3) - set trainerOptions(TrainerOptions v) { setField(3, v); } - @$pb.TagNumber(3) - $core.bool hasTrainerOptions() => $_has(2); - @$pb.TagNumber(3) - void clearTrainerOptions() => clearField(3); - @$pb.TagNumber(3) - TrainerOptions ensureTrainerOptions() => $_ensure(2); - - @$pb.TagNumber(4) - DeviceTiltConfigPage get deviceTiltConfig => $_getN(3); - @$pb.TagNumber(4) - set deviceTiltConfig(DeviceTiltConfigPage v) { setField(4, v); } - @$pb.TagNumber(4) - $core.bool hasDeviceTiltConfig() => $_has(3); - @$pb.TagNumber(4) - void clearDeviceTiltConfig() => clearField(4); - @$pb.TagNumber(4) - DeviceTiltConfigPage ensureDeviceTiltConfig() => $_ensure(3); - - @$pb.TagNumber(5) - ControllerInputConfigPage get controllerInputConfig => $_getN(4); - @$pb.TagNumber(5) - set controllerInputConfig(ControllerInputConfigPage v) { setField(5, v); } - @$pb.TagNumber(5) - $core.bool hasControllerInputConfig() => $_has(4); - @$pb.TagNumber(5) - void clearControllerInputConfig() => clearField(5); - @$pb.TagNumber(5) - ControllerInputConfigPage ensureControllerInputConfig() => $_ensure(4); - - @$pb.TagNumber(6) - TrainerGearIndexConfigPage get trainerGearIndexConfig => $_getN(5); - @$pb.TagNumber(6) - set trainerGearIndexConfig(TrainerGearIndexConfigPage v) { setField(6, v); } - @$pb.TagNumber(6) - $core.bool hasTrainerGearIndexConfig() => $_has(5); - @$pb.TagNumber(6) - void clearTrainerGearIndexConfig() => clearField(6); - @$pb.TagNumber(6) - TrainerGearIndexConfigPage ensureTrainerGearIndexConfig() => $_ensure(5); - - @$pb.TagNumber(8) - WifiConfigurationPage get wifiConfig => $_getN(6); - @$pb.TagNumber(8) - set wifiConfig(WifiConfigurationPage v) { setField(8, v); } - @$pb.TagNumber(8) - $core.bool hasWifiConfig() => $_has(6); - @$pb.TagNumber(8) - void clearWifiConfig() => clearField(8); - @$pb.TagNumber(8) - WifiConfigurationPage ensureWifiConfig() => $_ensure(6); - - @$pb.TagNumber(9) - DeviceUpdatePage get deviceUpdatePage => $_getN(7); - @$pb.TagNumber(9) - set deviceUpdatePage(DeviceUpdatePage v) { setField(9, v); } - @$pb.TagNumber(9) - $core.bool hasDeviceUpdatePage() => $_has(7); - @$pb.TagNumber(9) - void clearDeviceUpdatePage() => clearField(9); - @$pb.TagNumber(9) - DeviceUpdatePage ensureDeviceUpdatePage() => $_ensure(7); - - @$pb.TagNumber(10) - DateTimePage get dateTimePage => $_getN(8); - @$pb.TagNumber(10) - set dateTimePage(DateTimePage v) { setField(10, v); } - @$pb.TagNumber(10) - $core.bool hasDateTimePage() => $_has(8); - @$pb.TagNumber(10) - void clearDateTimePage() => clearField(10); - @$pb.TagNumber(10) - DateTimePage ensureDateTimePage() => $_ensure(8); - - @$pb.TagNumber(11) - BleSecurityPage get bleSecurityPage => $_getN(9); - @$pb.TagNumber(11) - set bleSecurityPage(BleSecurityPage v) { setField(11, v); } - @$pb.TagNumber(11) - $core.bool hasBleSecurityPage() => $_has(9); - @$pb.TagNumber(11) - void clearBleSecurityPage() => clearField(11); - @$pb.TagNumber(11) - BleSecurityPage ensureBleSecurityPage() => $_ensure(9); -} - -class GameStateNotification_GameSpeed extends $pb.GeneratedMessage { - factory GameStateNotification_GameSpeed({ - $core.int? normalisedSpeed, - $core.int? speed, - }) { - final $result = create(); - if (normalisedSpeed != null) { - $result.normalisedSpeed = normalisedSpeed; - } - if (speed != null) { - $result.speed = speed; - } - return $result; - } - GameStateNotification_GameSpeed._() : super(); - factory GameStateNotification_GameSpeed.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GameStateNotification_GameSpeed.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GameStateNotification.GameSpeed', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'normalisedSpeed', $pb.PbFieldType.OS3, protoName: 'normalisedSpeed') - ..a<$core.int>(2, _omitFieldNames ? '' : 'speed', $pb.PbFieldType.OS3) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GameStateNotification_GameSpeed clone() => GameStateNotification_GameSpeed()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GameStateNotification_GameSpeed copyWith(void Function(GameStateNotification_GameSpeed) updates) => super.copyWith((message) => updates(message as GameStateNotification_GameSpeed)) as GameStateNotification_GameSpeed; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static GameStateNotification_GameSpeed create() => GameStateNotification_GameSpeed._(); - GameStateNotification_GameSpeed createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static GameStateNotification_GameSpeed getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static GameStateNotification_GameSpeed? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get normalisedSpeed => $_getIZ(0); - @$pb.TagNumber(1) - set normalisedSpeed($core.int v) { $_setSignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasNormalisedSpeed() => $_has(0); - @$pb.TagNumber(1) - void clearNormalisedSpeed() => clearField(1); - - @$pb.TagNumber(2) - $core.int get speed => $_getIZ(1); - @$pb.TagNumber(2) - set speed($core.int v) { $_setSignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasSpeed() => $_has(1); - @$pb.TagNumber(2) - void clearSpeed() => clearField(2); -} - -class GameStateNotification_RoadSurface extends $pb.GeneratedMessage { - factory GameStateNotification_RoadSurface({ - RoadSurfaceType? roadSurfaceType, - $core.int? roughness, - }) { - final $result = create(); - if (roadSurfaceType != null) { - $result.roadSurfaceType = roadSurfaceType; - } - if (roughness != null) { - $result.roughness = roughness; - } - return $result; - } - GameStateNotification_RoadSurface._() : super(); - factory GameStateNotification_RoadSurface.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GameStateNotification_RoadSurface.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GameStateNotification.RoadSurface', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'roadSurfaceType', $pb.PbFieldType.OE, protoName: 'roadSurfaceType', defaultOrMaker: RoadSurfaceType.ROAD_SURFACE_SMOOTH_TARMAC, valueOf: RoadSurfaceType.valueOf, enumValues: RoadSurfaceType.values) - ..a<$core.int>(2, _omitFieldNames ? '' : 'roughness', $pb.PbFieldType.OU3) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GameStateNotification_RoadSurface clone() => GameStateNotification_RoadSurface()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GameStateNotification_RoadSurface copyWith(void Function(GameStateNotification_RoadSurface) updates) => super.copyWith((message) => updates(message as GameStateNotification_RoadSurface)) as GameStateNotification_RoadSurface; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static GameStateNotification_RoadSurface create() => GameStateNotification_RoadSurface._(); - GameStateNotification_RoadSurface createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static GameStateNotification_RoadSurface getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static GameStateNotification_RoadSurface? _defaultInstance; - - @$pb.TagNumber(1) - RoadSurfaceType get roadSurfaceType => $_getN(0); - @$pb.TagNumber(1) - set roadSurfaceType(RoadSurfaceType v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasRoadSurfaceType() => $_has(0); - @$pb.TagNumber(1) - void clearRoadSurfaceType() => clearField(1); - - @$pb.TagNumber(2) - $core.int get roughness => $_getIZ(1); - @$pb.TagNumber(2) - set roughness($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasRoughness() => $_has(1); - @$pb.TagNumber(2) - void clearRoughness() => clearField(2); -} - -enum GameStateNotification_Notification { - gameSpeed, - roadSurface, - notSet -} - -/// Opcode 0x43 GAME_STATE_NOTIFICATION -class GameStateNotification extends $pb.GeneratedMessage { - factory GameStateNotification({ - GameStateNotification_GameSpeed? gameSpeed, - GameStateNotification_RoadSurface? roadSurface, - }) { - final $result = create(); - if (gameSpeed != null) { - $result.gameSpeed = gameSpeed; - } - if (roadSurface != null) { - $result.roadSurface = roadSurface; - } - return $result; - } - GameStateNotification._() : super(); - factory GameStateNotification.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GameStateNotification.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static const $core.Map<$core.int, GameStateNotification_Notification> _GameStateNotification_NotificationByTag = { - 1 : GameStateNotification_Notification.gameSpeed, - 2 : GameStateNotification_Notification.roadSurface, - 0 : GameStateNotification_Notification.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GameStateNotification', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..oo(0, [1, 2]) - ..aOM(1, _omitFieldNames ? '' : 'gameSpeed', protoName: 'gameSpeed', subBuilder: GameStateNotification_GameSpeed.create) - ..aOM(2, _omitFieldNames ? '' : 'roadSurface', protoName: 'roadSurface', subBuilder: GameStateNotification_RoadSurface.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GameStateNotification clone() => GameStateNotification()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GameStateNotification copyWith(void Function(GameStateNotification) updates) => super.copyWith((message) => updates(message as GameStateNotification)) as GameStateNotification; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static GameStateNotification create() => GameStateNotification._(); - GameStateNotification createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static GameStateNotification getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static GameStateNotification? _defaultInstance; - - GameStateNotification_Notification whichNotification() => _GameStateNotification_NotificationByTag[$_whichOneof(0)]!; - void clearNotification() => clearField($_whichOneof(0)); - - @$pb.TagNumber(1) - GameStateNotification_GameSpeed get gameSpeed => $_getN(0); - @$pb.TagNumber(1) - set gameSpeed(GameStateNotification_GameSpeed v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasGameSpeed() => $_has(0); - @$pb.TagNumber(1) - void clearGameSpeed() => clearField(1); - @$pb.TagNumber(1) - GameStateNotification_GameSpeed ensureGameSpeed() => $_ensure(0); - - @$pb.TagNumber(2) - GameStateNotification_RoadSurface get roadSurface => $_getN(1); - @$pb.TagNumber(2) - set roadSurface(GameStateNotification_RoadSurface v) { setField(2, v); } - @$pb.TagNumber(2) - $core.bool hasRoadSurface() => $_has(1); - @$pb.TagNumber(2) - void clearRoadSurface() => clearField(2); - @$pb.TagNumber(2) - GameStateNotification_RoadSurface ensureRoadSurface() => $_ensure(1); -} - -enum SensorRelayConfig_Procedure { - search, - connect, - disconnect, - clearAll, - disconnectAll, - notSet -} - -/// Opcode 0x44 (SENSOR_RELAY_CONFIG) -class SensorRelayConfig extends $pb.GeneratedMessage { - factory SensorRelayConfig({ - $core.bool? search, - $core.int? connect, - $core.int? disconnect, - $core.bool? clearAll, - $core.bool? disconnectAll, - }) { - final $result = create(); - if (search != null) { - $result.search = search; - } - if (connect != null) { - $result.connect = connect; - } - if (disconnect != null) { - $result.disconnect = disconnect; - } - if (clearAll != null) { - $result.clearAll = clearAll; - } - if (disconnectAll != null) { - $result.disconnectAll = disconnectAll; - } - return $result; - } - SensorRelayConfig._() : super(); - factory SensorRelayConfig.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SensorRelayConfig.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static const $core.Map<$core.int, SensorRelayConfig_Procedure> _SensorRelayConfig_ProcedureByTag = { - 1 : SensorRelayConfig_Procedure.search, - 2 : SensorRelayConfig_Procedure.connect, - 3 : SensorRelayConfig_Procedure.disconnect, - 4 : SensorRelayConfig_Procedure.clearAll, - 5 : SensorRelayConfig_Procedure.disconnectAll, - 0 : SensorRelayConfig_Procedure.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SensorRelayConfig', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..oo(0, [1, 2, 3, 4, 5]) - ..aOB(1, _omitFieldNames ? '' : 'search') - ..a<$core.int>(2, _omitFieldNames ? '' : 'connect', $pb.PbFieldType.OU3) - ..a<$core.int>(3, _omitFieldNames ? '' : 'disconnect', $pb.PbFieldType.OU3) - ..aOB(4, _omitFieldNames ? '' : 'clearAll', protoName: 'clearAll') - ..aOB(5, _omitFieldNames ? '' : 'disconnectAll', protoName: 'disconnectAll') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SensorRelayConfig clone() => SensorRelayConfig()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SensorRelayConfig copyWith(void Function(SensorRelayConfig) updates) => super.copyWith((message) => updates(message as SensorRelayConfig)) as SensorRelayConfig; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SensorRelayConfig create() => SensorRelayConfig._(); - SensorRelayConfig createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SensorRelayConfig getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static SensorRelayConfig? _defaultInstance; - - SensorRelayConfig_Procedure whichProcedure() => _SensorRelayConfig_ProcedureByTag[$_whichOneof(0)]!; - void clearProcedure() => clearField($_whichOneof(0)); - - @$pb.TagNumber(1) - $core.bool get search => $_getBF(0); - @$pb.TagNumber(1) - set search($core.bool v) { $_setBool(0, v); } - @$pb.TagNumber(1) - $core.bool hasSearch() => $_has(0); - @$pb.TagNumber(1) - void clearSearch() => clearField(1); - - @$pb.TagNumber(2) - $core.int get connect => $_getIZ(1); - @$pb.TagNumber(2) - set connect($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasConnect() => $_has(1); - @$pb.TagNumber(2) - void clearConnect() => clearField(2); - - @$pb.TagNumber(3) - $core.int get disconnect => $_getIZ(2); - @$pb.TagNumber(3) - set disconnect($core.int v) { $_setUnsignedInt32(2, v); } - @$pb.TagNumber(3) - $core.bool hasDisconnect() => $_has(2); - @$pb.TagNumber(3) - void clearDisconnect() => clearField(3); - - @$pb.TagNumber(4) - $core.bool get clearAll => $_getBF(3); - @$pb.TagNumber(4) - set clearAll($core.bool v) { $_setBool(3, v); } - @$pb.TagNumber(4) - $core.bool hasClearAll() => $_has(3); - @$pb.TagNumber(4) - void clearClearAll() => clearField(4); - - @$pb.TagNumber(5) - $core.bool get disconnectAll => $_getBF(4); - @$pb.TagNumber(5) - set disconnectAll($core.bool v) { $_setBool(4, v); } - @$pb.TagNumber(5) - $core.bool hasDisconnectAll() => $_has(4); - @$pb.TagNumber(5) - void clearDisconnectAll() => clearField(5); -} - -enum SensorRelayGet_Request { - pairedSensorInfo, - notSet -} - -/// Opcode 0x45 (SENSOR_RELAY_GET) -class SensorRelayGet extends $pb.GeneratedMessage { - factory SensorRelayGet({ - $core.int? pairedSensorInfo, - }) { - final $result = create(); - if (pairedSensorInfo != null) { - $result.pairedSensorInfo = pairedSensorInfo; - } - return $result; - } - SensorRelayGet._() : super(); - factory SensorRelayGet.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SensorRelayGet.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static const $core.Map<$core.int, SensorRelayGet_Request> _SensorRelayGet_RequestByTag = { - 1 : SensorRelayGet_Request.pairedSensorInfo, - 0 : SensorRelayGet_Request.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SensorRelayGet', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..oo(0, [1]) - ..a<$core.int>(1, _omitFieldNames ? '' : 'pairedSensorInfo', $pb.PbFieldType.OU3, protoName: 'pairedSensorInfo') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SensorRelayGet clone() => SensorRelayGet()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SensorRelayGet copyWith(void Function(SensorRelayGet) updates) => super.copyWith((message) => updates(message as SensorRelayGet)) as SensorRelayGet; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SensorRelayGet create() => SensorRelayGet._(); - SensorRelayGet createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SensorRelayGet getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static SensorRelayGet? _defaultInstance; - - SensorRelayGet_Request whichRequest() => _SensorRelayGet_RequestByTag[$_whichOneof(0)]!; - void clearRequest() => clearField($_whichOneof(0)); - - @$pb.TagNumber(1) - $core.int get pairedSensorInfo => $_getIZ(0); - @$pb.TagNumber(1) - set pairedSensorInfo($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasPairedSensorInfo() => $_has(0); - @$pb.TagNumber(1) - void clearPairedSensorInfo() => clearField(1); -} - -enum SensorRelayResponse_Response { - pairedSensorInfoList, - notSet -} - -/// Opcode 0x46 (SENSOR_RELAY_RESPONSE) -class SensorRelayResponse extends $pb.GeneratedMessage { - factory SensorRelayResponse({ - SensorInfoList? pairedSensorInfoList, - }) { - final $result = create(); - if (pairedSensorInfoList != null) { - $result.pairedSensorInfoList = pairedSensorInfoList; - } - return $result; - } - SensorRelayResponse._() : super(); - factory SensorRelayResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SensorRelayResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static const $core.Map<$core.int, SensorRelayResponse_Response> _SensorRelayResponse_ResponseByTag = { - 1 : SensorRelayResponse_Response.pairedSensorInfoList, - 0 : SensorRelayResponse_Response.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SensorRelayResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..oo(0, [1]) - ..aOM(1, _omitFieldNames ? '' : 'pairedSensorInfoList', protoName: 'pairedSensorInfoList', subBuilder: SensorInfoList.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SensorRelayResponse clone() => SensorRelayResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SensorRelayResponse copyWith(void Function(SensorRelayResponse) updates) => super.copyWith((message) => updates(message as SensorRelayResponse)) as SensorRelayResponse; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SensorRelayResponse create() => SensorRelayResponse._(); - SensorRelayResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SensorRelayResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static SensorRelayResponse? _defaultInstance; - - SensorRelayResponse_Response whichResponse() => _SensorRelayResponse_ResponseByTag[$_whichOneof(0)]!; - void clearResponse() => clearField($_whichOneof(0)); - - @$pb.TagNumber(1) - SensorInfoList get pairedSensorInfoList => $_getN(0); - @$pb.TagNumber(1) - set pairedSensorInfoList(SensorInfoList v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasPairedSensorInfoList() => $_has(0); - @$pb.TagNumber(1) - void clearPairedSensorInfoList() => clearField(1); - @$pb.TagNumber(1) - SensorInfoList ensurePairedSensorInfoList() => $_ensure(0); -} - -enum SensorRelayNotification_Notification { - newSensor, - sensorStatus, - notSet -} - -/// Opcode 0x47 (SENSOR_RELAY_NOTIFIATION) -class SensorRelayNotification extends $pb.GeneratedMessage { - factory SensorRelayNotification({ - SensorInfo? newSensor, - SensorInfo? sensorStatus, - }) { - final $result = create(); - if (newSensor != null) { - $result.newSensor = newSensor; - } - if (sensorStatus != null) { - $result.sensorStatus = sensorStatus; - } - return $result; - } - SensorRelayNotification._() : super(); - factory SensorRelayNotification.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SensorRelayNotification.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static const $core.Map<$core.int, SensorRelayNotification_Notification> _SensorRelayNotification_NotificationByTag = { - 1 : SensorRelayNotification_Notification.newSensor, - 2 : SensorRelayNotification_Notification.sensorStatus, - 0 : SensorRelayNotification_Notification.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SensorRelayNotification', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..oo(0, [1, 2]) - ..aOM(1, _omitFieldNames ? '' : 'newSensor', protoName: 'newSensor', subBuilder: SensorInfo.create) - ..aOM(2, _omitFieldNames ? '' : 'sensorStatus', protoName: 'sensorStatus', subBuilder: SensorInfo.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SensorRelayNotification clone() => SensorRelayNotification()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SensorRelayNotification copyWith(void Function(SensorRelayNotification) updates) => super.copyWith((message) => updates(message as SensorRelayNotification)) as SensorRelayNotification; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SensorRelayNotification create() => SensorRelayNotification._(); - SensorRelayNotification createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SensorRelayNotification getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static SensorRelayNotification? _defaultInstance; - - SensorRelayNotification_Notification whichNotification() => _SensorRelayNotification_NotificationByTag[$_whichOneof(0)]!; - void clearNotification() => clearField($_whichOneof(0)); - - @$pb.TagNumber(1) - SensorInfo get newSensor => $_getN(0); - @$pb.TagNumber(1) - set newSensor(SensorInfo v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasNewSensor() => $_has(0); - @$pb.TagNumber(1) - void clearNewSensor() => clearField(1); - @$pb.TagNumber(1) - SensorInfo ensureNewSensor() => $_ensure(0); - - @$pb.TagNumber(2) - SensorInfo get sensorStatus => $_getN(1); - @$pb.TagNumber(2) - set sensorStatus(SensorInfo v) { setField(2, v); } - @$pb.TagNumber(2) - $core.bool hasSensorStatus() => $_has(1); - @$pb.TagNumber(2) - void clearSensorStatus() => clearField(2); - @$pb.TagNumber(2) - SensorInfo ensureSensorStatus() => $_ensure(1); -} - -/// Opcode 0x48 (HRM_DATA_NOTIFICATION) -class HrmDataNotification extends $pb.GeneratedMessage { - factory HrmDataNotification({ - $core.int? sensorId, - $core.int? hrm, - $core.int? energyExpended, - $core.Iterable<$core.int>? rrInterval, - }) { - final $result = create(); - if (sensorId != null) { - $result.sensorId = sensorId; - } - if (hrm != null) { - $result.hrm = hrm; - } - if (energyExpended != null) { - $result.energyExpended = energyExpended; - } - if (rrInterval != null) { - $result.rrInterval.addAll(rrInterval); - } - return $result; - } - HrmDataNotification._() : super(); - factory HrmDataNotification.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory HrmDataNotification.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'HrmDataNotification', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'sensorId', $pb.PbFieldType.OU3, protoName: 'sensorId') - ..a<$core.int>(2, _omitFieldNames ? '' : 'hrm', $pb.PbFieldType.OU3) - ..a<$core.int>(3, _omitFieldNames ? '' : 'energyExpended', $pb.PbFieldType.OU3, protoName: 'energyExpended') - ..p<$core.int>(4, _omitFieldNames ? '' : 'rrInterval', $pb.PbFieldType.PU3, protoName: 'rrInterval') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - HrmDataNotification clone() => HrmDataNotification()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - HrmDataNotification copyWith(void Function(HrmDataNotification) updates) => super.copyWith((message) => updates(message as HrmDataNotification)) as HrmDataNotification; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static HrmDataNotification create() => HrmDataNotification._(); - HrmDataNotification createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static HrmDataNotification getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static HrmDataNotification? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get sensorId => $_getIZ(0); - @$pb.TagNumber(1) - set sensorId($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasSensorId() => $_has(0); - @$pb.TagNumber(1) - void clearSensorId() => clearField(1); - - @$pb.TagNumber(2) - $core.int get hrm => $_getIZ(1); - @$pb.TagNumber(2) - set hrm($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasHrm() => $_has(1); - @$pb.TagNumber(2) - void clearHrm() => clearField(2); - - @$pb.TagNumber(3) - $core.int get energyExpended => $_getIZ(2); - @$pb.TagNumber(3) - set energyExpended($core.int v) { $_setUnsignedInt32(2, v); } - @$pb.TagNumber(3) - $core.bool hasEnergyExpended() => $_has(2); - @$pb.TagNumber(3) - void clearEnergyExpended() => clearField(3); - - @$pb.TagNumber(4) - $core.List<$core.int> get rrInterval => $_getList(3); -} - -enum WifiConfigurationRequest_Request { - startScan, - connect, - forget, - setRegionCode, - notSet -} - -/// OpCode 0x49 -class WifiConfigurationRequest extends $pb.GeneratedMessage { - factory WifiConfigurationRequest({ - $core.bool? startScan, - WifiNetwork? connect, - $core.bool? forget, - WifiRegionCode? setRegionCode, - }) { - final $result = create(); - if (startScan != null) { - $result.startScan = startScan; - } - if (connect != null) { - $result.connect = connect; - } - if (forget != null) { - $result.forget = forget; - } - if (setRegionCode != null) { - $result.setRegionCode = setRegionCode; - } - return $result; - } - WifiConfigurationRequest._() : super(); - factory WifiConfigurationRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory WifiConfigurationRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static const $core.Map<$core.int, WifiConfigurationRequest_Request> _WifiConfigurationRequest_RequestByTag = { - 1 : WifiConfigurationRequest_Request.startScan, - 2 : WifiConfigurationRequest_Request.connect, - 3 : WifiConfigurationRequest_Request.forget, - 4 : WifiConfigurationRequest_Request.setRegionCode, - 0 : WifiConfigurationRequest_Request.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'WifiConfigurationRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..oo(0, [1, 2, 3, 4]) - ..aOB(1, _omitFieldNames ? '' : 'startScan', protoName: 'startScan') - ..aOM(2, _omitFieldNames ? '' : 'connect', subBuilder: WifiNetwork.create) - ..aOB(3, _omitFieldNames ? '' : 'forget') - ..aOM(4, _omitFieldNames ? '' : 'setRegionCode', protoName: 'setRegionCode', subBuilder: WifiRegionCode.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - WifiConfigurationRequest clone() => WifiConfigurationRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - WifiConfigurationRequest copyWith(void Function(WifiConfigurationRequest) updates) => super.copyWith((message) => updates(message as WifiConfigurationRequest)) as WifiConfigurationRequest; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static WifiConfigurationRequest create() => WifiConfigurationRequest._(); - WifiConfigurationRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static WifiConfigurationRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static WifiConfigurationRequest? _defaultInstance; - - WifiConfigurationRequest_Request whichRequest() => _WifiConfigurationRequest_RequestByTag[$_whichOneof(0)]!; - void clearRequest() => clearField($_whichOneof(0)); - - @$pb.TagNumber(1) - $core.bool get startScan => $_getBF(0); - @$pb.TagNumber(1) - set startScan($core.bool v) { $_setBool(0, v); } - @$pb.TagNumber(1) - $core.bool hasStartScan() => $_has(0); - @$pb.TagNumber(1) - void clearStartScan() => clearField(1); - - @$pb.TagNumber(2) - WifiNetwork get connect => $_getN(1); - @$pb.TagNumber(2) - set connect(WifiNetwork v) { setField(2, v); } - @$pb.TagNumber(2) - $core.bool hasConnect() => $_has(1); - @$pb.TagNumber(2) - void clearConnect() => clearField(2); - @$pb.TagNumber(2) - WifiNetwork ensureConnect() => $_ensure(1); - - @$pb.TagNumber(3) - $core.bool get forget => $_getBF(2); - @$pb.TagNumber(3) - set forget($core.bool v) { $_setBool(2, v); } - @$pb.TagNumber(3) - $core.bool hasForget() => $_has(2); - @$pb.TagNumber(3) - void clearForget() => clearField(3); - - @$pb.TagNumber(4) - WifiRegionCode get setRegionCode => $_getN(3); - @$pb.TagNumber(4) - set setRegionCode(WifiRegionCode v) { setField(4, v); } - @$pb.TagNumber(4) - $core.bool hasSetRegionCode() => $_has(3); - @$pb.TagNumber(4) - void clearSetRegionCode() => clearField(4); - @$pb.TagNumber(4) - WifiRegionCode ensureSetRegionCode() => $_ensure(3); -} - -class WifiNotification_WifiStatus extends $pb.GeneratedMessage { - factory WifiNotification_WifiStatus({ - WifiStatusCode? wifiStatusCode, - WifiErrorCode? wifiErrorCode, - }) { - final $result = create(); - if (wifiStatusCode != null) { - $result.wifiStatusCode = wifiStatusCode; - } - if (wifiErrorCode != null) { - $result.wifiErrorCode = wifiErrorCode; - } - return $result; - } - WifiNotification_WifiStatus._() : super(); - factory WifiNotification_WifiStatus.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory WifiNotification_WifiStatus.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'WifiNotification.WifiStatus', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'wifiStatusCode', $pb.PbFieldType.OE, protoName: 'wifiStatusCode', defaultOrMaker: WifiStatusCode.WIFI_STATUS_DISABLED, valueOf: WifiStatusCode.valueOf, enumValues: WifiStatusCode.values) - ..e(2, _omitFieldNames ? '' : 'wifiErrorCode', $pb.PbFieldType.OE, protoName: 'wifiErrorCode', defaultOrMaker: WifiErrorCode.WIFI_ERROR_UNKNOWN, valueOf: WifiErrorCode.valueOf, enumValues: WifiErrorCode.values) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - WifiNotification_WifiStatus clone() => WifiNotification_WifiStatus()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - WifiNotification_WifiStatus copyWith(void Function(WifiNotification_WifiStatus) updates) => super.copyWith((message) => updates(message as WifiNotification_WifiStatus)) as WifiNotification_WifiStatus; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static WifiNotification_WifiStatus create() => WifiNotification_WifiStatus._(); - WifiNotification_WifiStatus createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static WifiNotification_WifiStatus getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static WifiNotification_WifiStatus? _defaultInstance; - - @$pb.TagNumber(1) - WifiStatusCode get wifiStatusCode => $_getN(0); - @$pb.TagNumber(1) - set wifiStatusCode(WifiStatusCode v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasWifiStatusCode() => $_has(0); - @$pb.TagNumber(1) - void clearWifiStatusCode() => clearField(1); - - @$pb.TagNumber(2) - WifiErrorCode get wifiErrorCode => $_getN(1); - @$pb.TagNumber(2) - set wifiErrorCode(WifiErrorCode v) { setField(2, v); } - @$pb.TagNumber(2) - $core.bool hasWifiErrorCode() => $_has(1); - @$pb.TagNumber(2) - void clearWifiErrorCode() => clearField(2); -} - -enum WifiNotification_Notification { - discoveredNetwork, - wifiStatus, - notSet -} - -/// OpCode 0x4A -class WifiNotification extends $pb.GeneratedMessage { - factory WifiNotification({ - WifiNetworkDetails? discoveredNetwork, - WifiNotification_WifiStatus? wifiStatus, - }) { - final $result = create(); - if (discoveredNetwork != null) { - $result.discoveredNetwork = discoveredNetwork; - } - if (wifiStatus != null) { - $result.wifiStatus = wifiStatus; - } - return $result; - } - WifiNotification._() : super(); - factory WifiNotification.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory WifiNotification.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static const $core.Map<$core.int, WifiNotification_Notification> _WifiNotification_NotificationByTag = { - 1 : WifiNotification_Notification.discoveredNetwork, - 2 : WifiNotification_Notification.wifiStatus, - 0 : WifiNotification_Notification.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'WifiNotification', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..oo(0, [1, 2]) - ..aOM(1, _omitFieldNames ? '' : 'discoveredNetwork', protoName: 'discoveredNetwork', subBuilder: WifiNetworkDetails.create) - ..aOM(2, _omitFieldNames ? '' : 'wifiStatus', protoName: 'wifiStatus', subBuilder: WifiNotification_WifiStatus.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - WifiNotification clone() => WifiNotification()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - WifiNotification copyWith(void Function(WifiNotification) updates) => super.copyWith((message) => updates(message as WifiNotification)) as WifiNotification; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static WifiNotification create() => WifiNotification._(); - WifiNotification createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static WifiNotification getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static WifiNotification? _defaultInstance; - - WifiNotification_Notification whichNotification() => _WifiNotification_NotificationByTag[$_whichOneof(0)]!; - void clearNotification() => clearField($_whichOneof(0)); - - @$pb.TagNumber(1) - WifiNetworkDetails get discoveredNetwork => $_getN(0); - @$pb.TagNumber(1) - set discoveredNetwork(WifiNetworkDetails v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasDiscoveredNetwork() => $_has(0); - @$pb.TagNumber(1) - void clearDiscoveredNetwork() => clearField(1); - @$pb.TagNumber(1) - WifiNetworkDetails ensureDiscoveredNetwork() => $_ensure(0); - - @$pb.TagNumber(2) - WifiNotification_WifiStatus get wifiStatus => $_getN(1); - @$pb.TagNumber(2) - set wifiStatus(WifiNotification_WifiStatus v) { setField(2, v); } - @$pb.TagNumber(2) - $core.bool hasWifiStatus() => $_has(1); - @$pb.TagNumber(2) - void clearWifiStatus() => clearField(2); - @$pb.TagNumber(2) - WifiNotification_WifiStatus ensureWifiStatus() => $_ensure(1); -} - -/// OpCode 0x4B -class PowerDataNotification extends $pb.GeneratedMessage { - factory PowerDataNotification({ - $core.int? sensorId, - $core.int? power, - }) { - final $result = create(); - if (sensorId != null) { - $result.sensorId = sensorId; - } - if (power != null) { - $result.power = power; - } - return $result; - } - PowerDataNotification._() : super(); - factory PowerDataNotification.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PowerDataNotification.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PowerDataNotification', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'sensorId', $pb.PbFieldType.OU3, protoName: 'sensorId') - ..a<$core.int>(2, _omitFieldNames ? '' : 'power', $pb.PbFieldType.OU3) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - PowerDataNotification clone() => PowerDataNotification()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PowerDataNotification copyWith(void Function(PowerDataNotification) updates) => super.copyWith((message) => updates(message as PowerDataNotification)) as PowerDataNotification; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static PowerDataNotification create() => PowerDataNotification._(); - PowerDataNotification createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static PowerDataNotification getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static PowerDataNotification? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get sensorId => $_getIZ(0); - @$pb.TagNumber(1) - set sensorId($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasSensorId() => $_has(0); - @$pb.TagNumber(1) - void clearSensorId() => clearField(1); - - @$pb.TagNumber(2) - $core.int get power => $_getIZ(1); - @$pb.TagNumber(2) - set power($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasPower() => $_has(1); - @$pb.TagNumber(2) - void clearPower() => clearField(2); -} - -/// OpCode 0x4C -class CadenceDataNotification extends $pb.GeneratedMessage { - factory CadenceDataNotification({ - $core.int? sensorId, - $core.int? cadence, - }) { - final $result = create(); - if (sensorId != null) { - $result.sensorId = sensorId; - } - if (cadence != null) { - $result.cadence = cadence; - } - return $result; - } - CadenceDataNotification._() : super(); - factory CadenceDataNotification.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory CadenceDataNotification.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CadenceDataNotification', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'sensorId', $pb.PbFieldType.OU3, protoName: 'sensorId') - ..a<$core.int>(2, _omitFieldNames ? '' : 'cadence', $pb.PbFieldType.OU3) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - CadenceDataNotification clone() => CadenceDataNotification()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - CadenceDataNotification copyWith(void Function(CadenceDataNotification) updates) => super.copyWith((message) => updates(message as CadenceDataNotification)) as CadenceDataNotification; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static CadenceDataNotification create() => CadenceDataNotification._(); - CadenceDataNotification createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static CadenceDataNotification getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static CadenceDataNotification? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get sensorId => $_getIZ(0); - @$pb.TagNumber(1) - set sensorId($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasSensorId() => $_has(0); - @$pb.TagNumber(1) - void clearSensorId() => clearField(1); - - @$pb.TagNumber(2) - $core.int get cadence => $_getIZ(1); - @$pb.TagNumber(2) - set cadence($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasCadence() => $_has(1); - @$pb.TagNumber(2) - void clearCadence() => clearField(2); -} - -enum DeviceUpdateRequest_Procedure { - checkForUpdates, - activateUpdates, - notSet -} - -/// OpCode 0x4D -class DeviceUpdateRequest extends $pb.GeneratedMessage { - factory DeviceUpdateRequest({ - $core.bool? checkForUpdates, - $core.bool? activateUpdates, - }) { - final $result = create(); - if (checkForUpdates != null) { - $result.checkForUpdates = checkForUpdates; - } - if (activateUpdates != null) { - $result.activateUpdates = activateUpdates; - } - return $result; - } - DeviceUpdateRequest._() : super(); - factory DeviceUpdateRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DeviceUpdateRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static const $core.Map<$core.int, DeviceUpdateRequest_Procedure> _DeviceUpdateRequest_ProcedureByTag = { - 1 : DeviceUpdateRequest_Procedure.checkForUpdates, - 2 : DeviceUpdateRequest_Procedure.activateUpdates, - 0 : DeviceUpdateRequest_Procedure.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeviceUpdateRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..oo(0, [1, 2]) - ..aOB(1, _omitFieldNames ? '' : 'checkForUpdates', protoName: 'checkForUpdates') - ..aOB(2, _omitFieldNames ? '' : 'activateUpdates', protoName: 'activateUpdates') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - DeviceUpdateRequest clone() => DeviceUpdateRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DeviceUpdateRequest copyWith(void Function(DeviceUpdateRequest) updates) => super.copyWith((message) => updates(message as DeviceUpdateRequest)) as DeviceUpdateRequest; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static DeviceUpdateRequest create() => DeviceUpdateRequest._(); - DeviceUpdateRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static DeviceUpdateRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static DeviceUpdateRequest? _defaultInstance; - - DeviceUpdateRequest_Procedure whichProcedure() => _DeviceUpdateRequest_ProcedureByTag[$_whichOneof(0)]!; - void clearProcedure() => clearField($_whichOneof(0)); - - @$pb.TagNumber(1) - $core.bool get checkForUpdates => $_getBF(0); - @$pb.TagNumber(1) - set checkForUpdates($core.bool v) { $_setBool(0, v); } - @$pb.TagNumber(1) - $core.bool hasCheckForUpdates() => $_has(0); - @$pb.TagNumber(1) - void clearCheckForUpdates() => clearField(1); - - @$pb.TagNumber(2) - $core.bool get activateUpdates => $_getBF(1); - @$pb.TagNumber(2) - set activateUpdates($core.bool v) { $_setBool(1, v); } - @$pb.TagNumber(2) - $core.bool hasActivateUpdates() => $_has(1); - @$pb.TagNumber(2) - void clearActivateUpdates() => clearField(2); -} - -/// Opcode 0x4E -class RelayZpMessage extends $pb.GeneratedMessage { - factory RelayZpMessage({ - $core.int? relayAssignedId, - $core.List<$core.int>? payload, - }) { - final $result = create(); - if (relayAssignedId != null) { - $result.relayAssignedId = relayAssignedId; - } - if (payload != null) { - $result.payload = payload; - } - return $result; - } - RelayZpMessage._() : super(); - factory RelayZpMessage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory RelayZpMessage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RelayZpMessage', package: const $pb.PackageName(_omitMessageNames ? '' : 'Zp'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'relayAssignedId', $pb.PbFieldType.OU3, protoName: 'relayAssignedId') - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'payload', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - RelayZpMessage clone() => RelayZpMessage()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - RelayZpMessage copyWith(void Function(RelayZpMessage) updates) => super.copyWith((message) => updates(message as RelayZpMessage)) as RelayZpMessage; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static RelayZpMessage create() => RelayZpMessage._(); - RelayZpMessage createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static RelayZpMessage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static RelayZpMessage? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get relayAssignedId => $_getIZ(0); - @$pb.TagNumber(1) - set relayAssignedId($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasRelayAssignedId() => $_has(0); - @$pb.TagNumber(1) - void clearRelayAssignedId() => clearField(1); - - @$pb.TagNumber(2) - $core.List<$core.int> get payload => $_getN(1); - @$pb.TagNumber(2) - set payload($core.List<$core.int> v) { $_setBytes(1, v); } - @$pb.TagNumber(2) - $core.bool hasPayload() => $_has(1); - @$pb.TagNumber(2) - void clearPayload() => clearField(2); -} - - -const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/bluetooth/devices/zwift/protocol/zp.pbenum.dart b/lib/bluetooth/devices/zwift/protocol/zp.pbenum.dart deleted file mode 100644 index 9350d9e9..00000000 --- a/lib/bluetooth/devices/zwift/protocol/zp.pbenum.dart +++ /dev/null @@ -1,583 +0,0 @@ -// -// Generated code. Do not modify. -// source: zp.proto -// -// @dart = 2.12 - -// 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; - -import 'package:protobuf/protobuf.dart' as $pb; - -/// /////////////////////////////////////////////////////////////// -/// Enumerations -/// /////////////////////////////////////////////////////////////// -class Opcode extends $pb.ProtobufEnum { - static const Opcode GET = Opcode._(0, _omitEnumNames ? '' : 'GET'); - static const Opcode DEV_INFO_STATUS = Opcode._(1, _omitEnumNames ? '' : 'DEV_INFO_STATUS'); - static const Opcode BLE_SECURITY_REQUEST = Opcode._(2, _omitEnumNames ? '' : 'BLE_SECURITY_REQUEST'); - static const Opcode TRAINER_NOTIF = Opcode._(3, _omitEnumNames ? '' : 'TRAINER_NOTIF'); - static const Opcode TRAINER_CONFIG_SET = Opcode._(4, _omitEnumNames ? '' : 'TRAINER_CONFIG_SET'); - static const Opcode TRAINER_CONFIG_STATUS = Opcode._(5, _omitEnumNames ? '' : 'TRAINER_CONFIG_STATUS'); - static const Opcode DEV_INFO_SET = Opcode._(12, _omitEnumNames ? '' : 'DEV_INFO_SET'); - static const Opcode POWER_OFF = Opcode._(15, _omitEnumNames ? '' : 'POWER_OFF'); - static const Opcode RESET = Opcode._(24, _omitEnumNames ? '' : 'RESET'); - static const Opcode BATTERY_NOTIF = Opcode._(25, _omitEnumNames ? '' : 'BATTERY_NOTIF'); - static const Opcode CONTROLLER_NOTIFICATION = Opcode._(35, _omitEnumNames ? '' : 'CONTROLLER_NOTIFICATION'); - static const Opcode LOG_DATA = Opcode._(42, _omitEnumNames ? '' : 'LOG_DATA'); - static const Opcode SPINDOWN_REQUEST = Opcode._(58, _omitEnumNames ? '' : 'SPINDOWN_REQUEST'); - static const Opcode SPINDOWN_NOTIFICATION = Opcode._(59, _omitEnumNames ? '' : 'SPINDOWN_NOTIFICATION'); - static const Opcode GET_RESPONSE = Opcode._(60, _omitEnumNames ? '' : 'GET_RESPONSE'); - static const Opcode STATUS_RESPONSE = Opcode._(62, _omitEnumNames ? '' : 'STATUS_RESPONSE'); - static const Opcode SET = Opcode._(63, _omitEnumNames ? '' : 'SET'); - static const Opcode SET_RESPONSE = Opcode._(64, _omitEnumNames ? '' : 'SET_RESPONSE'); - static const Opcode LOG_LEVEL_SET = Opcode._(65, _omitEnumNames ? '' : 'LOG_LEVEL_SET'); - static const Opcode DATA_CHANGE_NOTIFICATION = Opcode._(66, _omitEnumNames ? '' : 'DATA_CHANGE_NOTIFICATION'); - static const Opcode GAME_STATE_NOTIFICATION = Opcode._(67, _omitEnumNames ? '' : 'GAME_STATE_NOTIFICATION'); - static const Opcode SENSOR_RELAY_CONFIG = Opcode._(68, _omitEnumNames ? '' : 'SENSOR_RELAY_CONFIG'); - static const Opcode SENSOR_RELAY_GET = Opcode._(69, _omitEnumNames ? '' : 'SENSOR_RELAY_GET'); - static const Opcode SENSOR_RELAY_RESPONSE = Opcode._(70, _omitEnumNames ? '' : 'SENSOR_RELAY_RESPONSE'); - static const Opcode SENSOR_RELAY_NOTIFICATION = Opcode._(71, _omitEnumNames ? '' : 'SENSOR_RELAY_NOTIFICATION'); - static const Opcode HRM_DATA_NOTIFICATION = Opcode._(72, _omitEnumNames ? '' : 'HRM_DATA_NOTIFICATION'); - static const Opcode WIFI_CONFIG_REQUEST = Opcode._(73, _omitEnumNames ? '' : 'WIFI_CONFIG_REQUEST'); - static const Opcode WIFI_NOTIFICATION = Opcode._(74, _omitEnumNames ? '' : 'WIFI_NOTIFICATION'); - static const Opcode POWER_METER_NOTIFICATION = Opcode._(75, _omitEnumNames ? '' : 'POWER_METER_NOTIFICATION'); - static const Opcode CADENCE_SENSOR_NOTIFICATION = Opcode._(76, _omitEnumNames ? '' : 'CADENCE_SENSOR_NOTIFICATION'); - static const Opcode DEVICE_UPDATE_REQUEST = Opcode._(77, _omitEnumNames ? '' : 'DEVICE_UPDATE_REQUEST'); - static const Opcode RELAY_ZP_MESSAGE = Opcode._(78, _omitEnumNames ? '' : 'RELAY_ZP_MESSAGE'); - static const Opcode RIDE_ON = Opcode._(82, _omitEnumNames ? '' : 'RIDE_ON'); - static const Opcode RESERVED = Opcode._(253, _omitEnumNames ? '' : 'RESERVED'); - static const Opcode LOST_CONTROL = Opcode._(254, _omitEnumNames ? '' : 'LOST_CONTROL'); - static const Opcode VENDOR_MESSAGE = Opcode._(255, _omitEnumNames ? '' : 'VENDOR_MESSAGE'); - - static const $core.List values = [ - GET, - DEV_INFO_STATUS, - BLE_SECURITY_REQUEST, - TRAINER_NOTIF, - TRAINER_CONFIG_SET, - TRAINER_CONFIG_STATUS, - DEV_INFO_SET, - POWER_OFF, - RESET, - BATTERY_NOTIF, - CONTROLLER_NOTIFICATION, - LOG_DATA, - SPINDOWN_REQUEST, - SPINDOWN_NOTIFICATION, - GET_RESPONSE, - STATUS_RESPONSE, - SET, - SET_RESPONSE, - LOG_LEVEL_SET, - DATA_CHANGE_NOTIFICATION, - GAME_STATE_NOTIFICATION, - SENSOR_RELAY_CONFIG, - SENSOR_RELAY_GET, - SENSOR_RELAY_RESPONSE, - SENSOR_RELAY_NOTIFICATION, - HRM_DATA_NOTIFICATION, - WIFI_CONFIG_REQUEST, - WIFI_NOTIFICATION, - POWER_METER_NOTIFICATION, - CADENCE_SENSOR_NOTIFICATION, - DEVICE_UPDATE_REQUEST, - RELAY_ZP_MESSAGE, - RIDE_ON, - RESERVED, - LOST_CONTROL, - VENDOR_MESSAGE, - ]; - - static final $core.Map<$core.int, Opcode> _byValue = $pb.ProtobufEnum.initByValue(values); - static Opcode? valueOf($core.int value) => _byValue[value]; - - const Opcode._($core.int v, $core.String n) : super(v, n); -} - -/// Data Objects -class DO extends $pb.ProtobufEnum { - static const DO PAGE_DEV_INFO = DO._(0, _omitEnumNames ? '' : 'PAGE_DEV_INFO'); - static const DO PROTOCOL_VERSION = DO._(1, _omitEnumNames ? '' : 'PROTOCOL_VERSION'); - static const DO SYSTEM_FW_VERSION = DO._(2, _omitEnumNames ? '' : 'SYSTEM_FW_VERSION'); - static const DO DEVICE_NAME = DO._(3, _omitEnumNames ? '' : 'DEVICE_NAME'); - static const DO SERIAL_NUMBER = DO._(5, _omitEnumNames ? '' : 'SERIAL_NUMBER'); - static const DO SYSTEM_HW_REVISION = DO._(6, _omitEnumNames ? '' : 'SYSTEM_HW_REVISION'); - static const DO DEVICE_CAPABILITIES = DO._(7, _omitEnumNames ? '' : 'DEVICE_CAPABILITIES'); - static const DO MANUFACTURER_ID = DO._(8, _omitEnumNames ? '' : 'MANUFACTURER_ID'); - static const DO PRODUCT_ID = DO._(9, _omitEnumNames ? '' : 'PRODUCT_ID'); - static const DO DEVICE_UID = DO._(10, _omitEnumNames ? '' : 'DEVICE_UID'); - static const DO PAGE_CLIENT_SERVER_CONFIGURATION = DO._(16, _omitEnumNames ? '' : 'PAGE_CLIENT_SERVER_CONFIGURATION'); - static const DO CLIENT_SERVER_NOTIFICATIONS = DO._(17, _omitEnumNames ? '' : 'CLIENT_SERVER_NOTIFICATIONS'); - static const DO PAGE_DEVICE_UPDATE_INFO = DO._(32, _omitEnumNames ? '' : 'PAGE_DEVICE_UPDATE_INFO'); - static const DO DEVICE_UPDATE_STATUS = DO._(33, _omitEnumNames ? '' : 'DEVICE_UPDATE_STATUS'); - static const DO DEVICE_UPDATE_NEW_VERSION = DO._(34, _omitEnumNames ? '' : 'DEVICE_UPDATE_NEW_VERSION'); - static const DO PAGE_DATE_TIME = DO._(48, _omitEnumNames ? '' : 'PAGE_DATE_TIME'); - static const DO UTC_DATE_TIME = DO._(49, _omitEnumNames ? '' : 'UTC_DATE_TIME'); - static const DO PAGE_BLE_SECURITY = DO._(64, _omitEnumNames ? '' : 'PAGE_BLE_SECURITY'); - static const DO BLE_SECURE_CONNECTION_STATUS = DO._(65, _omitEnumNames ? '' : 'BLE_SECURE_CONNECTION_STATUS'); - static const DO BLE_SECURE_CONNECTION_WINDOW_STATUS = DO._(66, _omitEnumNames ? '' : 'BLE_SECURE_CONNECTION_WINDOW_STATUS'); - static const DO PAGE_TRAINER_CONFIG = DO._(512, _omitEnumNames ? '' : 'PAGE_TRAINER_CONFIG'); - static const DO TRAINER_MODE = DO._(513, _omitEnumNames ? '' : 'TRAINER_MODE'); - static const DO CFG_RESISTANCE = DO._(514, _omitEnumNames ? '' : 'CFG_RESISTANCE'); - static const DO ERG_POWER = DO._(515, _omitEnumNames ? '' : 'ERG_POWER'); - static const DO AVERAGING_WINDOW = DO._(516, _omitEnumNames ? '' : 'AVERAGING_WINDOW'); - static const DO SIM_WIND = DO._(517, _omitEnumNames ? '' : 'SIM_WIND'); - static const DO SIM_GRADE = DO._(518, _omitEnumNames ? '' : 'SIM_GRADE'); - static const DO SIM_REAL_GEAR_RATIO = DO._(519, _omitEnumNames ? '' : 'SIM_REAL_GEAR_RATIO'); - static const DO SIM_VIRT_GEAR_RATIO = DO._(520, _omitEnumNames ? '' : 'SIM_VIRT_GEAR_RATIO'); - static const DO SIM_CW = DO._(521, _omitEnumNames ? '' : 'SIM_CW'); - static const DO SIM_WHEEL_DIAMETER = DO._(522, _omitEnumNames ? '' : 'SIM_WHEEL_DIAMETER'); - static const DO SIM_BIKE_MASS = DO._(523, _omitEnumNames ? '' : 'SIM_BIKE_MASS'); - static const DO SIM_RIDER_MASS = DO._(524, _omitEnumNames ? '' : 'SIM_RIDER_MASS'); - static const DO SIM_CRR = DO._(525, _omitEnumNames ? '' : 'SIM_CRR'); - static const DO SIM_RESERVED_FRONTAL_AREA = DO._(526, _omitEnumNames ? '' : 'SIM_RESERVED_FRONTAL_AREA'); - static const DO SIM_EBRAKE = DO._(527, _omitEnumNames ? '' : 'SIM_EBRAKE'); - static const DO PAGE_TRAINER_GEAR_INDEX_CONFIG = DO._(528, _omitEnumNames ? '' : 'PAGE_TRAINER_GEAR_INDEX_CONFIG'); - static const DO FRONT_GEAR_INDEX = DO._(529, _omitEnumNames ? '' : 'FRONT_GEAR_INDEX'); - static const DO FRONT_GEAR_INDEX_MAX = DO._(530, _omitEnumNames ? '' : 'FRONT_GEAR_INDEX_MAX'); - static const DO FRONT_GEAR_INDEX_MIN = DO._(531, _omitEnumNames ? '' : 'FRONT_GEAR_INDEX_MIN'); - static const DO REAR_GEAR_INDEX = DO._(532, _omitEnumNames ? '' : 'REAR_GEAR_INDEX'); - static const DO REAR_GEAR_INDEX_MAX = DO._(533, _omitEnumNames ? '' : 'REAR_GEAR_INDEX_MAX'); - static const DO REAR_GEAR_INDEX_MIN = DO._(534, _omitEnumNames ? '' : 'REAR_GEAR_INDEX_MIN'); - static const DO PAGE_TRAINER_CONFIG2 = DO._(544, _omitEnumNames ? '' : 'PAGE_TRAINER_CONFIG2'); - static const DO HIGH_SPEED_DATA = DO._(545, _omitEnumNames ? '' : 'HIGH_SPEED_DATA'); - static const DO ERG_POWER_SMOOTHING = DO._(546, _omitEnumNames ? '' : 'ERG_POWER_SMOOTHING'); - static const DO VIRTUAL_SHIFTING_MODE = DO._(547, _omitEnumNames ? '' : 'VIRTUAL_SHIFTING_MODE'); - static const DO PAGE_DEVICE_TILT_CONFIG = DO._(560, _omitEnumNames ? '' : 'PAGE_DEVICE_TILT_CONFIG'); - static const DO DEVICE_TILT_ENABLED = DO._(561, _omitEnumNames ? '' : 'DEVICE_TILT_ENABLED'); - static const DO DEVICE_TILT_GRADIENT_MIN = DO._(562, _omitEnumNames ? '' : 'DEVICE_TILT_GRADIENT_MIN'); - static const DO DEVICE_TILT_GRADIENT_MAX = DO._(563, _omitEnumNames ? '' : 'DEVICE_TILT_GRADIENT_MAX'); - static const DO DEVICE_TILT_GRADIENT = DO._(564, _omitEnumNames ? '' : 'DEVICE_TILT_GRADIENT'); - static const DO BATTERY_STATE = DO._(771, _omitEnumNames ? '' : 'BATTERY_STATE'); - static const DO PAGE_CONTROLLER_INPUT_CONFIG = DO._(1024, _omitEnumNames ? '' : 'PAGE_CONTROLLER_INPUT_CONFIG'); - static const DO INPUT_SUPPORTED_DIGITAL_INPUTS = DO._(1025, _omitEnumNames ? '' : 'INPUT_SUPPORTED_DIGITAL_INPUTS'); - static const DO INPUT_SUPPORTED_ANALOG_INPUTS = DO._(1026, _omitEnumNames ? '' : 'INPUT_SUPPORTED_ANALOG_INPUTS'); - static const DO INPUT_ANALOG_INPUT_RANGE = DO._(1027, _omitEnumNames ? '' : 'INPUT_ANALOG_INPUT_RANGE'); - static const DO INPUT_ANALOG_INPUT_DEADZONE = DO._(1028, _omitEnumNames ? '' : 'INPUT_ANALOG_INPUT_DEADZONE'); - static const DO PAGE_WIFI_CONFIGURATION = DO._(1056, _omitEnumNames ? '' : 'PAGE_WIFI_CONFIGURATION'); - static const DO WIFI_ENABLED = DO._(1057, _omitEnumNames ? '' : 'WIFI_ENABLED'); - static const DO WIFI_STATUS = DO._(1058, _omitEnumNames ? '' : 'WIFI_STATUS'); - static const DO WIFI_SSID = DO._(1059, _omitEnumNames ? '' : 'WIFI_SSID'); - static const DO WIFI_BAND = DO._(1060, _omitEnumNames ? '' : 'WIFI_BAND'); - static const DO WIFI_RSSI = DO._(1061, _omitEnumNames ? '' : 'WIFI_RSSI'); - static const DO WIFI_REGION_CODE = DO._(1062, _omitEnumNames ? '' : 'WIFI_REGION_CODE'); - static const DO SENSOR_RELAY_DATA_PAGE = DO._(1280, _omitEnumNames ? '' : 'SENSOR_RELAY_DATA_PAGE'); - static const DO SENSOR_RELAY_SUPPORTED_SENSORS = DO._(1281, _omitEnumNames ? '' : 'SENSOR_RELAY_SUPPORTED_SENSORS'); - static const DO SENSOR_RELAY_PAIRED_SENSORS = DO._(1282, _omitEnumNames ? '' : 'SENSOR_RELAY_PAIRED_SENSORS'); - - static const $core.List values = [ - PAGE_DEV_INFO, - PROTOCOL_VERSION, - SYSTEM_FW_VERSION, - DEVICE_NAME, - SERIAL_NUMBER, - SYSTEM_HW_REVISION, - DEVICE_CAPABILITIES, - MANUFACTURER_ID, - PRODUCT_ID, - DEVICE_UID, - PAGE_CLIENT_SERVER_CONFIGURATION, - CLIENT_SERVER_NOTIFICATIONS, - PAGE_DEVICE_UPDATE_INFO, - DEVICE_UPDATE_STATUS, - DEVICE_UPDATE_NEW_VERSION, - PAGE_DATE_TIME, - UTC_DATE_TIME, - PAGE_BLE_SECURITY, - BLE_SECURE_CONNECTION_STATUS, - BLE_SECURE_CONNECTION_WINDOW_STATUS, - PAGE_TRAINER_CONFIG, - TRAINER_MODE, - CFG_RESISTANCE, - ERG_POWER, - AVERAGING_WINDOW, - SIM_WIND, - SIM_GRADE, - SIM_REAL_GEAR_RATIO, - SIM_VIRT_GEAR_RATIO, - SIM_CW, - SIM_WHEEL_DIAMETER, - SIM_BIKE_MASS, - SIM_RIDER_MASS, - SIM_CRR, - SIM_RESERVED_FRONTAL_AREA, - SIM_EBRAKE, - PAGE_TRAINER_GEAR_INDEX_CONFIG, - FRONT_GEAR_INDEX, - FRONT_GEAR_INDEX_MAX, - FRONT_GEAR_INDEX_MIN, - REAR_GEAR_INDEX, - REAR_GEAR_INDEX_MAX, - REAR_GEAR_INDEX_MIN, - PAGE_TRAINER_CONFIG2, - HIGH_SPEED_DATA, - ERG_POWER_SMOOTHING, - VIRTUAL_SHIFTING_MODE, - PAGE_DEVICE_TILT_CONFIG, - DEVICE_TILT_ENABLED, - DEVICE_TILT_GRADIENT_MIN, - DEVICE_TILT_GRADIENT_MAX, - DEVICE_TILT_GRADIENT, - BATTERY_STATE, - PAGE_CONTROLLER_INPUT_CONFIG, - INPUT_SUPPORTED_DIGITAL_INPUTS, - INPUT_SUPPORTED_ANALOG_INPUTS, - INPUT_ANALOG_INPUT_RANGE, - INPUT_ANALOG_INPUT_DEADZONE, - PAGE_WIFI_CONFIGURATION, - WIFI_ENABLED, - WIFI_STATUS, - WIFI_SSID, - WIFI_BAND, - WIFI_RSSI, - WIFI_REGION_CODE, - SENSOR_RELAY_DATA_PAGE, - SENSOR_RELAY_SUPPORTED_SENSORS, - SENSOR_RELAY_PAIRED_SENSORS, - ]; - - static final $core.Map<$core.int, DO> _byValue = $pb.ProtobufEnum.initByValue(values); - static DO? valueOf($core.int value) => _byValue[value]; - - const DO._($core.int v, $core.String n) : super(v, n); -} - -class Status extends $pb.ProtobufEnum { - static const Status SUCCESS = Status._(0, _omitEnumNames ? '' : 'SUCCESS'); - static const Status FAILURE = Status._(1, _omitEnumNames ? '' : 'FAILURE'); - static const Status BUSY = Status._(2, _omitEnumNames ? '' : 'BUSY'); - static const Status INVALID_PARAM = Status._(3, _omitEnumNames ? '' : 'INVALID_PARAM'); - static const Status NOT_PERMITTED = Status._(4, _omitEnumNames ? '' : 'NOT_PERMITTED'); - static const Status NOT_SUPPORTED = Status._(5, _omitEnumNames ? '' : 'NOT_SUPPORTED'); - static const Status INVALID_MODE = Status._(6, _omitEnumNames ? '' : 'INVALID_MODE'); - - static const $core.List values = [ - SUCCESS, - FAILURE, - BUSY, - INVALID_PARAM, - NOT_PERMITTED, - NOT_SUPPORTED, - INVALID_MODE, - ]; - - static final $core.Map<$core.int, Status> _byValue = $pb.ProtobufEnum.initByValue(values); - static Status? valueOf($core.int value) => _byValue[value]; - - const Status._($core.int v, $core.String n) : super(v, n); -} - -class DeviceType extends $pb.ProtobufEnum { - static const DeviceType UNDEFINED = DeviceType._(0, _omitEnumNames ? '' : 'UNDEFINED'); - static const DeviceType CYCLING_TURBO_TRAINER = DeviceType._(1, _omitEnumNames ? '' : 'CYCLING_TURBO_TRAINER'); - static const DeviceType USER_INPUT_DEVICE = DeviceType._(2, _omitEnumNames ? '' : 'USER_INPUT_DEVICE'); - static const DeviceType TREADMILL = DeviceType._(3, _omitEnumNames ? '' : 'TREADMILL'); - static const DeviceType SENSOR_RELAY = DeviceType._(4, _omitEnumNames ? '' : 'SENSOR_RELAY'); - static const DeviceType HEART_RATE_MONITOR = DeviceType._(5, _omitEnumNames ? '' : 'HEART_RATE_MONITOR'); - static const DeviceType POWER_METER = DeviceType._(6, _omitEnumNames ? '' : 'POWER_METER'); - static const DeviceType CADENCE_SENSOR = DeviceType._(7, _omitEnumNames ? '' : 'CADENCE_SENSOR'); - static const DeviceType WIFI = DeviceType._(8, _omitEnumNames ? '' : 'WIFI'); - - static const $core.List values = [ - UNDEFINED, - CYCLING_TURBO_TRAINER, - USER_INPUT_DEVICE, - TREADMILL, - SENSOR_RELAY, - HEART_RATE_MONITOR, - POWER_METER, - CADENCE_SENSOR, - WIFI, - ]; - - static final $core.Map<$core.int, DeviceType> _byValue = $pb.ProtobufEnum.initByValue(values); - static DeviceType? valueOf($core.int value) => _byValue[value]; - - const DeviceType._($core.int v, $core.String n) : super(v, n); -} - -class TrainerMode extends $pb.ProtobufEnum { - static const TrainerMode MODE_UNKNOWN = TrainerMode._(0, _omitEnumNames ? '' : 'MODE_UNKNOWN'); - static const TrainerMode MODE_ERG = TrainerMode._(1, _omitEnumNames ? '' : 'MODE_ERG'); - static const TrainerMode MODE_RESISTANCE = TrainerMode._(2, _omitEnumNames ? '' : 'MODE_RESISTANCE'); - static const TrainerMode MODE_SIM = TrainerMode._(3, _omitEnumNames ? '' : 'MODE_SIM'); - - static const $core.List values = [ - MODE_UNKNOWN, - MODE_ERG, - MODE_RESISTANCE, - MODE_SIM, - ]; - - static final $core.Map<$core.int, TrainerMode> _byValue = $pb.ProtobufEnum.initByValue(values); - static TrainerMode? valueOf($core.int value) => _byValue[value]; - - const TrainerMode._($core.int v, $core.String n) : super(v, n); -} - -class ChargingState extends $pb.ProtobufEnum { - static const ChargingState CHARGING_IDLE = ChargingState._(0, _omitEnumNames ? '' : 'CHARGING_IDLE'); - static const ChargingState CHARGING_PROGRESS = ChargingState._(1, _omitEnumNames ? '' : 'CHARGING_PROGRESS'); - static const ChargingState CHARGING_DONE = ChargingState._(2, _omitEnumNames ? '' : 'CHARGING_DONE'); - - static const $core.List values = [ - CHARGING_IDLE, - CHARGING_PROGRESS, - CHARGING_DONE, - ]; - - static final $core.Map<$core.int, ChargingState> _byValue = $pb.ProtobufEnum.initByValue(values); - static ChargingState? valueOf($core.int value) => _byValue[value]; - - const ChargingState._($core.int v, $core.String n) : super(v, n); -} - -class SpindownStatus extends $pb.ProtobufEnum { - static const SpindownStatus SPINDOWN_IDLE = SpindownStatus._(0, _omitEnumNames ? '' : 'SPINDOWN_IDLE'); - static const SpindownStatus SPINDOWN_REQUESTED = SpindownStatus._(1, _omitEnumNames ? '' : 'SPINDOWN_REQUESTED'); - static const SpindownStatus SPINDOWN_SUCCESS = SpindownStatus._(2, _omitEnumNames ? '' : 'SPINDOWN_SUCCESS'); - static const SpindownStatus SPINDOWN_ERROR = SpindownStatus._(3, _omitEnumNames ? '' : 'SPINDOWN_ERROR'); - static const SpindownStatus SPINDOWN_STOP_PEDALLING = SpindownStatus._(4, _omitEnumNames ? '' : 'SPINDOWN_STOP_PEDALLING'); - static const SpindownStatus SPINDOWN_ERROR_TIMEOUT = SpindownStatus._(5, _omitEnumNames ? '' : 'SPINDOWN_ERROR_TIMEOUT'); - static const SpindownStatus SPINDOWN_ERROR_TOSHORT = SpindownStatus._(6, _omitEnumNames ? '' : 'SPINDOWN_ERROR_TOSHORT'); - static const SpindownStatus SPINDOWN_ERROR_TOSLOW = SpindownStatus._(7, _omitEnumNames ? '' : 'SPINDOWN_ERROR_TOSLOW'); - static const SpindownStatus SPINDOWN_ERROR_TOFAST = SpindownStatus._(8, _omitEnumNames ? '' : 'SPINDOWN_ERROR_TOFAST'); - static const SpindownStatus SPINDOWN_ERROR_SAMPLEERROR = SpindownStatus._(9, _omitEnumNames ? '' : 'SPINDOWN_ERROR_SAMPLEERROR'); - static const SpindownStatus SPINDOWN_ERROR_ABORT = SpindownStatus._(10, _omitEnumNames ? '' : 'SPINDOWN_ERROR_ABORT'); - - static const $core.List values = [ - SPINDOWN_IDLE, - SPINDOWN_REQUESTED, - SPINDOWN_SUCCESS, - SPINDOWN_ERROR, - SPINDOWN_STOP_PEDALLING, - SPINDOWN_ERROR_TIMEOUT, - SPINDOWN_ERROR_TOSHORT, - SPINDOWN_ERROR_TOSLOW, - SPINDOWN_ERROR_TOFAST, - SPINDOWN_ERROR_SAMPLEERROR, - SPINDOWN_ERROR_ABORT, - ]; - - static final $core.Map<$core.int, SpindownStatus> _byValue = $pb.ProtobufEnum.initByValue(values); - static SpindownStatus? valueOf($core.int value) => _byValue[value]; - - const SpindownStatus._($core.int v, $core.String n) : super(v, n); -} - -class LogLevel extends $pb.ProtobufEnum { - static const LogLevel LOGLEVEL_OFF = LogLevel._(0, _omitEnumNames ? '' : 'LOGLEVEL_OFF'); - static const LogLevel LOGLEVEL_ERROR = LogLevel._(1, _omitEnumNames ? '' : 'LOGLEVEL_ERROR'); - static const LogLevel LOGLEVEL_WARNING = LogLevel._(2, _omitEnumNames ? '' : 'LOGLEVEL_WARNING'); - static const LogLevel LOGLEVEL_INFO = LogLevel._(3, _omitEnumNames ? '' : 'LOGLEVEL_INFO'); - static const LogLevel LOGLEVEL_DEBUG = LogLevel._(4, _omitEnumNames ? '' : 'LOGLEVEL_DEBUG'); - static const LogLevel LOGLEVEL_TRACE = LogLevel._(5, _omitEnumNames ? '' : 'LOGLEVEL_TRACE'); - - static const $core.List values = [ - LOGLEVEL_OFF, - LOGLEVEL_ERROR, - LOGLEVEL_WARNING, - LOGLEVEL_INFO, - LOGLEVEL_DEBUG, - LOGLEVEL_TRACE, - ]; - - static final $core.Map<$core.int, LogLevel> _byValue = $pb.ProtobufEnum.initByValue(values); - static LogLevel? valueOf($core.int value) => _byValue[value]; - - const LogLevel._($core.int v, $core.String n) : super(v, n); -} - -class RoadSurfaceType extends $pb.ProtobufEnum { - static const RoadSurfaceType ROAD_SURFACE_SMOOTH_TARMAC = RoadSurfaceType._(0, _omitEnumNames ? '' : 'ROAD_SURFACE_SMOOTH_TARMAC'); - static const RoadSurfaceType ROAD_SURFACE_BRICK_ROAD = RoadSurfaceType._(1, _omitEnumNames ? '' : 'ROAD_SURFACE_BRICK_ROAD'); - static const RoadSurfaceType ROAD_SURFACE_HARD_COBBLES = RoadSurfaceType._(2, _omitEnumNames ? '' : 'ROAD_SURFACE_HARD_COBBLES'); - static const RoadSurfaceType ROAD_SURFACE_SOFT_COBBLES = RoadSurfaceType._(3, _omitEnumNames ? '' : 'ROAD_SURFACE_SOFT_COBBLES'); - static const RoadSurfaceType ROAD_SURFACE_NARROW_WOODEN_PLANKS = RoadSurfaceType._(4, _omitEnumNames ? '' : 'ROAD_SURFACE_NARROW_WOODEN_PLANKS'); - static const RoadSurfaceType ROAD_SURFACE_WIDE_WOODEN_PLANKS = RoadSurfaceType._(5, _omitEnumNames ? '' : 'ROAD_SURFACE_WIDE_WOODEN_PLANKS'); - static const RoadSurfaceType ROAD_SURFACE_DIRT = RoadSurfaceType._(6, _omitEnumNames ? '' : 'ROAD_SURFACE_DIRT'); - static const RoadSurfaceType ROAD_SURFACE_GRAVEL = RoadSurfaceType._(7, _omitEnumNames ? '' : 'ROAD_SURFACE_GRAVEL'); - static const RoadSurfaceType ROAD_SURFACE_CATTLE_GRID = RoadSurfaceType._(8, _omitEnumNames ? '' : 'ROAD_SURFACE_CATTLE_GRID'); - static const RoadSurfaceType ROAD_SURFACE_CONCRETE_FLAG_STONES = RoadSurfaceType._(9, _omitEnumNames ? '' : 'ROAD_SURFACE_CONCRETE_FLAG_STONES'); - static const RoadSurfaceType ROAD_SURFACE_ICE = RoadSurfaceType._(10, _omitEnumNames ? '' : 'ROAD_SURFACE_ICE'); - - static const $core.List values = [ - ROAD_SURFACE_SMOOTH_TARMAC, - ROAD_SURFACE_BRICK_ROAD, - ROAD_SURFACE_HARD_COBBLES, - ROAD_SURFACE_SOFT_COBBLES, - ROAD_SURFACE_NARROW_WOODEN_PLANKS, - ROAD_SURFACE_WIDE_WOODEN_PLANKS, - ROAD_SURFACE_DIRT, - ROAD_SURFACE_GRAVEL, - ROAD_SURFACE_CATTLE_GRID, - ROAD_SURFACE_CONCRETE_FLAG_STONES, - ROAD_SURFACE_ICE, - ]; - - static final $core.Map<$core.int, RoadSurfaceType> _byValue = $pb.ProtobufEnum.initByValue(values); - static RoadSurfaceType? valueOf($core.int value) => _byValue[value]; - - const RoadSurfaceType._($core.int v, $core.String n) : super(v, n); -} - -class WifiStatusCode extends $pb.ProtobufEnum { - static const WifiStatusCode WIFI_STATUS_DISABLED = WifiStatusCode._(0, _omitEnumNames ? '' : 'WIFI_STATUS_DISABLED'); - static const WifiStatusCode WIFI_STATUS_NOT_PROVISIONED = WifiStatusCode._(1, _omitEnumNames ? '' : 'WIFI_STATUS_NOT_PROVISIONED'); - static const WifiStatusCode WIFI_STATUS_SCANNING = WifiStatusCode._(2, _omitEnumNames ? '' : 'WIFI_STATUS_SCANNING'); - static const WifiStatusCode WIFI_STATUS_DISCONNECTED = WifiStatusCode._(3, _omitEnumNames ? '' : 'WIFI_STATUS_DISCONNECTED'); - static const WifiStatusCode WIFI_STATUS_CONNECTING = WifiStatusCode._(4, _omitEnumNames ? '' : 'WIFI_STATUS_CONNECTING'); - static const WifiStatusCode WIFI_STATUS_CONNECTED = WifiStatusCode._(5, _omitEnumNames ? '' : 'WIFI_STATUS_CONNECTED'); - static const WifiStatusCode WIFI_STATUS_ERROR = WifiStatusCode._(6, _omitEnumNames ? '' : 'WIFI_STATUS_ERROR'); - - static const $core.List values = [ - WIFI_STATUS_DISABLED, - WIFI_STATUS_NOT_PROVISIONED, - WIFI_STATUS_SCANNING, - WIFI_STATUS_DISCONNECTED, - WIFI_STATUS_CONNECTING, - WIFI_STATUS_CONNECTED, - WIFI_STATUS_ERROR, - ]; - - static final $core.Map<$core.int, WifiStatusCode> _byValue = $pb.ProtobufEnum.initByValue(values); - static WifiStatusCode? valueOf($core.int value) => _byValue[value]; - - const WifiStatusCode._($core.int v, $core.String n) : super(v, n); -} - -class WifiErrorCode extends $pb.ProtobufEnum { - static const WifiErrorCode WIFI_ERROR_UNKNOWN = WifiErrorCode._(0, _omitEnumNames ? '' : 'WIFI_ERROR_UNKNOWN'); - static const WifiErrorCode WIFI_ERROR_NO_MEMORY = WifiErrorCode._(1, _omitEnumNames ? '' : 'WIFI_ERROR_NO_MEMORY'); - static const WifiErrorCode WIFI_ERROR_INVALID_PARAMETERS = WifiErrorCode._(2, _omitEnumNames ? '' : 'WIFI_ERROR_INVALID_PARAMETERS'); - static const WifiErrorCode WIFI_ERROR_INVALID_STATE = WifiErrorCode._(3, _omitEnumNames ? '' : 'WIFI_ERROR_INVALID_STATE'); - static const WifiErrorCode WIFI_ERROR_NOT_FOUND = WifiErrorCode._(4, _omitEnumNames ? '' : 'WIFI_ERROR_NOT_FOUND'); - static const WifiErrorCode WIFI_ERROR_NOT_SUPPORTED = WifiErrorCode._(5, _omitEnumNames ? '' : 'WIFI_ERROR_NOT_SUPPORTED'); - static const WifiErrorCode WIFI_ERROR_NOT_ALLOWED = WifiErrorCode._(6, _omitEnumNames ? '' : 'WIFI_ERROR_NOT_ALLOWED'); - static const WifiErrorCode WIFI_ERROR_NOT_INITIALISED = WifiErrorCode._(7, _omitEnumNames ? '' : 'WIFI_ERROR_NOT_INITIALISED'); - static const WifiErrorCode WIFI_ERROR_NOT_STARTED = WifiErrorCode._(8, _omitEnumNames ? '' : 'WIFI_ERROR_NOT_STARTED'); - static const WifiErrorCode WIFI_ERROR_TIMEOUT = WifiErrorCode._(9, _omitEnumNames ? '' : 'WIFI_ERROR_TIMEOUT'); - static const WifiErrorCode WIFI_ERROR_MODE = WifiErrorCode._(10, _omitEnumNames ? '' : 'WIFI_ERROR_MODE'); - static const WifiErrorCode WIFI_ERROR_SSID_INVALID = WifiErrorCode._(11, _omitEnumNames ? '' : 'WIFI_ERROR_SSID_INVALID'); - - static const $core.List values = [ - WIFI_ERROR_UNKNOWN, - WIFI_ERROR_NO_MEMORY, - WIFI_ERROR_INVALID_PARAMETERS, - WIFI_ERROR_INVALID_STATE, - WIFI_ERROR_NOT_FOUND, - WIFI_ERROR_NOT_SUPPORTED, - WIFI_ERROR_NOT_ALLOWED, - WIFI_ERROR_NOT_INITIALISED, - WIFI_ERROR_NOT_STARTED, - WIFI_ERROR_TIMEOUT, - WIFI_ERROR_MODE, - WIFI_ERROR_SSID_INVALID, - ]; - - static final $core.Map<$core.int, WifiErrorCode> _byValue = $pb.ProtobufEnum.initByValue(values); - static WifiErrorCode? valueOf($core.int value) => _byValue[value]; - - const WifiErrorCode._($core.int v, $core.String n) : super(v, n); -} - -class InterfaceType extends $pb.ProtobufEnum { - static const InterfaceType INTERFACE_BLE = InterfaceType._(1, _omitEnumNames ? '' : 'INTERFACE_BLE'); - static const InterfaceType INTERFACE_ANT = InterfaceType._(2, _omitEnumNames ? '' : 'INTERFACE_ANT'); - static const InterfaceType INTERFACE_USB = InterfaceType._(3, _omitEnumNames ? '' : 'INTERFACE_USB'); - static const InterfaceType INTERFACE_ETH = InterfaceType._(4, _omitEnumNames ? '' : 'INTERFACE_ETH'); - static const InterfaceType INTERFACE_WIFI = InterfaceType._(5, _omitEnumNames ? '' : 'INTERFACE_WIFI'); - - static const $core.List values = [ - INTERFACE_BLE, - INTERFACE_ANT, - INTERFACE_USB, - INTERFACE_ETH, - INTERFACE_WIFI, - ]; - - static final $core.Map<$core.int, InterfaceType> _byValue = $pb.ProtobufEnum.initByValue(values); - static InterfaceType? valueOf($core.int value) => _byValue[value]; - - const InterfaceType._($core.int v, $core.String n) : super(v, n); -} - -class SensorConnectionStatus extends $pb.ProtobufEnum { - static const SensorConnectionStatus SENSOR_STATUS_DISCOVERED = SensorConnectionStatus._(1, _omitEnumNames ? '' : 'SENSOR_STATUS_DISCOVERED'); - static const SensorConnectionStatus SENSOR_STATUS_DISCONNECTED = SensorConnectionStatus._(2, _omitEnumNames ? '' : 'SENSOR_STATUS_DISCONNECTED'); - static const SensorConnectionStatus SENSOR_STATUS_PAIRING = SensorConnectionStatus._(3, _omitEnumNames ? '' : 'SENSOR_STATUS_PAIRING'); - static const SensorConnectionStatus SENSOR_STATUS_CONNECTED = SensorConnectionStatus._(4, _omitEnumNames ? '' : 'SENSOR_STATUS_CONNECTED'); - - static const $core.List values = [ - SENSOR_STATUS_DISCOVERED, - SENSOR_STATUS_DISCONNECTED, - SENSOR_STATUS_PAIRING, - SENSOR_STATUS_CONNECTED, - ]; - - static final $core.Map<$core.int, SensorConnectionStatus> _byValue = $pb.ProtobufEnum.initByValue(values); - static SensorConnectionStatus? valueOf($core.int value) => _byValue[value]; - - const SensorConnectionStatus._($core.int v, $core.String n) : super(v, n); -} - -class BleSecureConnectionStatus extends $pb.ProtobufEnum { - static const BleSecureConnectionStatus BLE_CONNECTION_SECURITY_STATUS_NONE = BleSecureConnectionStatus._(0, _omitEnumNames ? '' : 'BLE_CONNECTION_SECURITY_STATUS_NONE'); - static const BleSecureConnectionStatus BLE_CONNECTION_SECURITY_STATUS_INPROGRESS = BleSecureConnectionStatus._(1, _omitEnumNames ? '' : 'BLE_CONNECTION_SECURITY_STATUS_INPROGRESS'); - static const BleSecureConnectionStatus BLE_CONNECTION_SECURITY_STATUS_ACTIVE = BleSecureConnectionStatus._(2, _omitEnumNames ? '' : 'BLE_CONNECTION_SECURITY_STATUS_ACTIVE'); - static const BleSecureConnectionStatus BLE_CONNECTION_SECURITY_STATUS_REJECTED = BleSecureConnectionStatus._(3, _omitEnumNames ? '' : 'BLE_CONNECTION_SECURITY_STATUS_REJECTED'); - - static const $core.List values = [ - BLE_CONNECTION_SECURITY_STATUS_NONE, - BLE_CONNECTION_SECURITY_STATUS_INPROGRESS, - BLE_CONNECTION_SECURITY_STATUS_ACTIVE, - BLE_CONNECTION_SECURITY_STATUS_REJECTED, - ]; - - static final $core.Map<$core.int, BleSecureConnectionStatus> _byValue = $pb.ProtobufEnum.initByValue(values); - static BleSecureConnectionStatus? valueOf($core.int value) => _byValue[value]; - - const BleSecureConnectionStatus._($core.int v, $core.String n) : super(v, n); -} - -class BleSecureConnectionWindowStatus extends $pb.ProtobufEnum { - static const BleSecureConnectionWindowStatus BLE_SECURE_CONNECTION_WINDOW_STATUS_CLOSED = BleSecureConnectionWindowStatus._(0, _omitEnumNames ? '' : 'BLE_SECURE_CONNECTION_WINDOW_STATUS_CLOSED'); - static const BleSecureConnectionWindowStatus BLE_SECURE_CONNECTION_WINDOW_STATUS_OPEN = BleSecureConnectionWindowStatus._(1, _omitEnumNames ? '' : 'BLE_SECURE_CONNECTION_WINDOW_STATUS_OPEN'); - - static const $core.List values = [ - BLE_SECURE_CONNECTION_WINDOW_STATUS_CLOSED, - BLE_SECURE_CONNECTION_WINDOW_STATUS_OPEN, - ]; - - static final $core.Map<$core.int, BleSecureConnectionWindowStatus> _byValue = $pb.ProtobufEnum.initByValue(values); - static BleSecureConnectionWindowStatus? valueOf($core.int value) => _byValue[value]; - - const BleSecureConnectionWindowStatus._($core.int v, $core.String n) : super(v, n); -} - -class WifiRegionCode_RegionCodeType extends $pb.ProtobufEnum { - static const WifiRegionCode_RegionCodeType ALPHA_2 = WifiRegionCode_RegionCodeType._(0, _omitEnumNames ? '' : 'ALPHA_2'); - static const WifiRegionCode_RegionCodeType ALPHA_3 = WifiRegionCode_RegionCodeType._(1, _omitEnumNames ? '' : 'ALPHA_3'); - static const WifiRegionCode_RegionCodeType NUMERIC = WifiRegionCode_RegionCodeType._(2, _omitEnumNames ? '' : 'NUMERIC'); - static const WifiRegionCode_RegionCodeType UNKNOWN = WifiRegionCode_RegionCodeType._(3, _omitEnumNames ? '' : 'UNKNOWN'); - - static const $core.List values = [ - ALPHA_2, - ALPHA_3, - NUMERIC, - UNKNOWN, - ]; - - static final $core.Map<$core.int, WifiRegionCode_RegionCodeType> _byValue = $pb.ProtobufEnum.initByValue(values); - static WifiRegionCode_RegionCodeType? valueOf($core.int value) => _byValue[value]; - - const WifiRegionCode_RegionCodeType._($core.int v, $core.String n) : super(v, n); -} - - -const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/lib/bluetooth/devices/zwift/protocol/zp.pbjson.dart b/lib/bluetooth/devices/zwift/protocol/zp.pbjson.dart deleted file mode 100644 index d918b587..00000000 --- a/lib/bluetooth/devices/zwift/protocol/zp.pbjson.dart +++ /dev/null @@ -1,1692 +0,0 @@ -// -// Generated code. Do not modify. -// source: zp.proto -// -// @dart = 2.12 - -// 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 opcodeDescriptor instead') -const Opcode$json = { - '1': 'Opcode', - '2': [ - {'1': 'GET', '2': 0}, - {'1': 'DEV_INFO_STATUS', '2': 1}, - {'1': 'BLE_SECURITY_REQUEST', '2': 2}, - {'1': 'TRAINER_NOTIF', '2': 3}, - {'1': 'TRAINER_CONFIG_SET', '2': 4}, - {'1': 'TRAINER_CONFIG_STATUS', '2': 5}, - {'1': 'DEV_INFO_SET', '2': 12}, - {'1': 'POWER_OFF', '2': 15}, - {'1': 'RESET', '2': 24}, - {'1': 'BATTERY_NOTIF', '2': 25}, - {'1': 'CONTROLLER_NOTIFICATION', '2': 35}, - {'1': 'LOG_DATA', '2': 42}, - {'1': 'SPINDOWN_REQUEST', '2': 58}, - {'1': 'SPINDOWN_NOTIFICATION', '2': 59}, - {'1': 'GET_RESPONSE', '2': 60}, - {'1': 'STATUS_RESPONSE', '2': 62}, - {'1': 'SET', '2': 63}, - {'1': 'SET_RESPONSE', '2': 64}, - {'1': 'LOG_LEVEL_SET', '2': 65}, - {'1': 'DATA_CHANGE_NOTIFICATION', '2': 66}, - {'1': 'GAME_STATE_NOTIFICATION', '2': 67}, - {'1': 'SENSOR_RELAY_CONFIG', '2': 68}, - {'1': 'SENSOR_RELAY_GET', '2': 69}, - {'1': 'SENSOR_RELAY_RESPONSE', '2': 70}, - {'1': 'SENSOR_RELAY_NOTIFICATION', '2': 71}, - {'1': 'HRM_DATA_NOTIFICATION', '2': 72}, - {'1': 'WIFI_CONFIG_REQUEST', '2': 73}, - {'1': 'WIFI_NOTIFICATION', '2': 74}, - {'1': 'POWER_METER_NOTIFICATION', '2': 75}, - {'1': 'CADENCE_SENSOR_NOTIFICATION', '2': 76}, - {'1': 'DEVICE_UPDATE_REQUEST', '2': 77}, - {'1': 'RELAY_ZP_MESSAGE', '2': 78}, - {'1': 'RIDE_ON', '2': 82}, - {'1': 'RESERVED', '2': 253}, - {'1': 'LOST_CONTROL', '2': 254}, - {'1': 'VENDOR_MESSAGE', '2': 255}, - ], -}; - -/// Descriptor for `Opcode`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List opcodeDescriptor = $convert.base64Decode( - 'CgZPcGNvZGUSBwoDR0VUEAASEwoPREVWX0lORk9fU1RBVFVTEAESGAoUQkxFX1NFQ1VSSVRZX1' - 'JFUVVFU1QQAhIRCg1UUkFJTkVSX05PVElGEAMSFgoSVFJBSU5FUl9DT05GSUdfU0VUEAQSGQoV' - 'VFJBSU5FUl9DT05GSUdfU1RBVFVTEAUSEAoMREVWX0lORk9fU0VUEAwSDQoJUE9XRVJfT0ZGEA' - '8SCQoFUkVTRVQQGBIRCg1CQVRURVJZX05PVElGEBkSGwoXQ09OVFJPTExFUl9OT1RJRklDQVRJ' - 'T04QIxIMCghMT0dfREFUQRAqEhQKEFNQSU5ET1dOX1JFUVVFU1QQOhIZChVTUElORE9XTl9OT1' - 'RJRklDQVRJT04QOxIQCgxHRVRfUkVTUE9OU0UQPBITCg9TVEFUVVNfUkVTUE9OU0UQPhIHCgNT' - 'RVQQPxIQCgxTRVRfUkVTUE9OU0UQQBIRCg1MT0dfTEVWRUxfU0VUEEESHAoYREFUQV9DSEFOR0' - 'VfTk9USUZJQ0FUSU9OEEISGwoXR0FNRV9TVEFURV9OT1RJRklDQVRJT04QQxIXChNTRU5TT1Jf' - 'UkVMQVlfQ09ORklHEEQSFAoQU0VOU09SX1JFTEFZX0dFVBBFEhkKFVNFTlNPUl9SRUxBWV9SRV' - 'NQT05TRRBGEh0KGVNFTlNPUl9SRUxBWV9OT1RJRklDQVRJT04QRxIZChVIUk1fREFUQV9OT1RJ' - 'RklDQVRJT04QSBIXChNXSUZJX0NPTkZJR19SRVFVRVNUEEkSFQoRV0lGSV9OT1RJRklDQVRJT0' - '4QShIcChhQT1dFUl9NRVRFUl9OT1RJRklDQVRJT04QSxIfChtDQURFTkNFX1NFTlNPUl9OT1RJ' - 'RklDQVRJT04QTBIZChVERVZJQ0VfVVBEQVRFX1JFUVVFU1QQTRIUChBSRUxBWV9aUF9NRVNTQU' - 'dFEE4SCwoHUklERV9PThBSEg0KCFJFU0VSVkVEEP0BEhEKDExPU1RfQ09OVFJPTBD+ARITCg5W' - 'RU5ET1JfTUVTU0FHRRD/AQ=='); - -@$core.Deprecated('Use dODescriptor instead') -const DO$json = { - '1': 'DO', - '2': [ - {'1': 'PAGE_DEV_INFO', '2': 0}, - {'1': 'PROTOCOL_VERSION', '2': 1}, - {'1': 'SYSTEM_FW_VERSION', '2': 2}, - {'1': 'DEVICE_NAME', '2': 3}, - {'1': 'SERIAL_NUMBER', '2': 5}, - {'1': 'SYSTEM_HW_REVISION', '2': 6}, - {'1': 'DEVICE_CAPABILITIES', '2': 7}, - {'1': 'MANUFACTURER_ID', '2': 8}, - {'1': 'PRODUCT_ID', '2': 9}, - {'1': 'DEVICE_UID', '2': 10}, - {'1': 'PAGE_CLIENT_SERVER_CONFIGURATION', '2': 16}, - {'1': 'CLIENT_SERVER_NOTIFICATIONS', '2': 17}, - {'1': 'PAGE_DEVICE_UPDATE_INFO', '2': 32}, - {'1': 'DEVICE_UPDATE_STATUS', '2': 33}, - {'1': 'DEVICE_UPDATE_NEW_VERSION', '2': 34}, - {'1': 'PAGE_DATE_TIME', '2': 48}, - {'1': 'UTC_DATE_TIME', '2': 49}, - {'1': 'PAGE_BLE_SECURITY', '2': 64}, - {'1': 'BLE_SECURE_CONNECTION_STATUS', '2': 65}, - {'1': 'BLE_SECURE_CONNECTION_WINDOW_STATUS', '2': 66}, - {'1': 'PAGE_TRAINER_CONFIG', '2': 512}, - {'1': 'TRAINER_MODE', '2': 513}, - {'1': 'CFG_RESISTANCE', '2': 514}, - {'1': 'ERG_POWER', '2': 515}, - {'1': 'AVERAGING_WINDOW', '2': 516}, - {'1': 'SIM_WIND', '2': 517}, - {'1': 'SIM_GRADE', '2': 518}, - {'1': 'SIM_REAL_GEAR_RATIO', '2': 519}, - {'1': 'SIM_VIRT_GEAR_RATIO', '2': 520}, - {'1': 'SIM_CW', '2': 521}, - {'1': 'SIM_WHEEL_DIAMETER', '2': 522}, - {'1': 'SIM_BIKE_MASS', '2': 523}, - {'1': 'SIM_RIDER_MASS', '2': 524}, - {'1': 'SIM_CRR', '2': 525}, - {'1': 'SIM_RESERVED_FRONTAL_AREA', '2': 526}, - {'1': 'SIM_EBRAKE', '2': 527}, - {'1': 'PAGE_TRAINER_GEAR_INDEX_CONFIG', '2': 528}, - {'1': 'FRONT_GEAR_INDEX', '2': 529}, - {'1': 'FRONT_GEAR_INDEX_MAX', '2': 530}, - {'1': 'FRONT_GEAR_INDEX_MIN', '2': 531}, - {'1': 'REAR_GEAR_INDEX', '2': 532}, - {'1': 'REAR_GEAR_INDEX_MAX', '2': 533}, - {'1': 'REAR_GEAR_INDEX_MIN', '2': 534}, - {'1': 'PAGE_TRAINER_CONFIG2', '2': 544}, - {'1': 'HIGH_SPEED_DATA', '2': 545}, - {'1': 'ERG_POWER_SMOOTHING', '2': 546}, - {'1': 'VIRTUAL_SHIFTING_MODE', '2': 547}, - {'1': 'PAGE_DEVICE_TILT_CONFIG', '2': 560}, - {'1': 'DEVICE_TILT_ENABLED', '2': 561}, - {'1': 'DEVICE_TILT_GRADIENT_MIN', '2': 562}, - {'1': 'DEVICE_TILT_GRADIENT_MAX', '2': 563}, - {'1': 'DEVICE_TILT_GRADIENT', '2': 564}, - {'1': 'BATTERY_STATE', '2': 771}, - {'1': 'PAGE_CONTROLLER_INPUT_CONFIG', '2': 1024}, - {'1': 'INPUT_SUPPORTED_DIGITAL_INPUTS', '2': 1025}, - {'1': 'INPUT_SUPPORTED_ANALOG_INPUTS', '2': 1026}, - {'1': 'INPUT_ANALOG_INPUT_RANGE', '2': 1027}, - {'1': 'INPUT_ANALOG_INPUT_DEADZONE', '2': 1028}, - {'1': 'PAGE_WIFI_CONFIGURATION', '2': 1056}, - {'1': 'WIFI_ENABLED', '2': 1057}, - {'1': 'WIFI_STATUS', '2': 1058}, - {'1': 'WIFI_SSID', '2': 1059}, - {'1': 'WIFI_BAND', '2': 1060}, - {'1': 'WIFI_RSSI', '2': 1061}, - {'1': 'WIFI_REGION_CODE', '2': 1062}, - {'1': 'SENSOR_RELAY_DATA_PAGE', '2': 1280}, - {'1': 'SENSOR_RELAY_SUPPORTED_SENSORS', '2': 1281}, - {'1': 'SENSOR_RELAY_PAIRED_SENSORS', '2': 1282}, - ], -}; - -/// Descriptor for `DO`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List dODescriptor = $convert.base64Decode( - 'CgJETxIRCg1QQUdFX0RFVl9JTkZPEAASFAoQUFJPVE9DT0xfVkVSU0lPThABEhUKEVNZU1RFTV' - '9GV19WRVJTSU9OEAISDwoLREVWSUNFX05BTUUQAxIRCg1TRVJJQUxfTlVNQkVSEAUSFgoSU1lT' - 'VEVNX0hXX1JFVklTSU9OEAYSFwoTREVWSUNFX0NBUEFCSUxJVElFUxAHEhMKD01BTlVGQUNUVV' - 'JFUl9JRBAIEg4KClBST0RVQ1RfSUQQCRIOCgpERVZJQ0VfVUlEEAoSJAogUEFHRV9DTElFTlRf' - 'U0VSVkVSX0NPTkZJR1VSQVRJT04QEBIfChtDTElFTlRfU0VSVkVSX05PVElGSUNBVElPTlMQER' - 'IbChdQQUdFX0RFVklDRV9VUERBVEVfSU5GTxAgEhgKFERFVklDRV9VUERBVEVfU1RBVFVTECES' - 'HQoZREVWSUNFX1VQREFURV9ORVdfVkVSU0lPThAiEhIKDlBBR0VfREFURV9USU1FEDASEQoNVV' - 'RDX0RBVEVfVElNRRAxEhUKEVBBR0VfQkxFX1NFQ1VSSVRZEEASIAocQkxFX1NFQ1VSRV9DT05O' - 'RUNUSU9OX1NUQVRVUxBBEicKI0JMRV9TRUNVUkVfQ09OTkVDVElPTl9XSU5ET1dfU1RBVFVTEE' - 'ISGAoTUEFHRV9UUkFJTkVSX0NPTkZJRxCABBIRCgxUUkFJTkVSX01PREUQgQQSEwoOQ0ZHX1JF' - 'U0lTVEFOQ0UQggQSDgoJRVJHX1BPV0VSEIMEEhUKEEFWRVJBR0lOR19XSU5ET1cQhAQSDQoIU0' - 'lNX1dJTkQQhQQSDgoJU0lNX0dSQURFEIYEEhgKE1NJTV9SRUFMX0dFQVJfUkFUSU8QhwQSGAoT' - 'U0lNX1ZJUlRfR0VBUl9SQVRJTxCIBBILCgZTSU1fQ1cQiQQSFwoSU0lNX1dIRUVMX0RJQU1FVE' - 'VSEIoEEhIKDVNJTV9CSUtFX01BU1MQiwQSEwoOU0lNX1JJREVSX01BU1MQjAQSDAoHU0lNX0NS' - 'UhCNBBIeChlTSU1fUkVTRVJWRURfRlJPTlRBTF9BUkVBEI4EEg8KClNJTV9FQlJBS0UQjwQSIw' - 'oeUEFHRV9UUkFJTkVSX0dFQVJfSU5ERVhfQ09ORklHEJAEEhUKEEZST05UX0dFQVJfSU5ERVgQ' - 'kQQSGQoURlJPTlRfR0VBUl9JTkRFWF9NQVgQkgQSGQoURlJPTlRfR0VBUl9JTkRFWF9NSU4Qkw' - 'QSFAoPUkVBUl9HRUFSX0lOREVYEJQEEhgKE1JFQVJfR0VBUl9JTkRFWF9NQVgQlQQSGAoTUkVB' - 'Ul9HRUFSX0lOREVYX01JThCWBBIZChRQQUdFX1RSQUlORVJfQ09ORklHMhCgBBIUCg9ISUdIX1' - 'NQRUVEX0RBVEEQoQQSGAoTRVJHX1BPV0VSX1NNT09USElORxCiBBIaChVWSVJUVUFMX1NISUZU' - 'SU5HX01PREUQowQSHAoXUEFHRV9ERVZJQ0VfVElMVF9DT05GSUcQsAQSGAoTREVWSUNFX1RJTF' - 'RfRU5BQkxFRBCxBBIdChhERVZJQ0VfVElMVF9HUkFESUVOVF9NSU4QsgQSHQoYREVWSUNFX1RJ' - 'TFRfR1JBRElFTlRfTUFYELMEEhkKFERFVklDRV9USUxUX0dSQURJRU5UELQEEhIKDUJBVFRFUl' - 'lfU1RBVEUQgwYSIQocUEFHRV9DT05UUk9MTEVSX0lOUFVUX0NPTkZJRxCACBIjCh5JTlBVVF9T' - 'VVBQT1JURURfRElHSVRBTF9JTlBVVFMQgQgSIgodSU5QVVRfU1VQUE9SVEVEX0FOQUxPR19JTl' - 'BVVFMQgggSHQoYSU5QVVRfQU5BTE9HX0lOUFVUX1JBTkdFEIMIEiAKG0lOUFVUX0FOQUxPR19J' - 'TlBVVF9ERUFEWk9ORRCECBIcChdQQUdFX1dJRklfQ09ORklHVVJBVElPThCgCBIRCgxXSUZJX0' - 'VOQUJMRUQQoQgSEAoLV0lGSV9TVEFUVVMQoggSDgoJV0lGSV9TU0lEEKMIEg4KCVdJRklfQkFO' - 'RBCkCBIOCglXSUZJX1JTU0kQpQgSFQoQV0lGSV9SRUdJT05fQ09ERRCmCBIbChZTRU5TT1JfUk' - 'VMQVlfREFUQV9QQUdFEIAKEiMKHlNFTlNPUl9SRUxBWV9TVVBQT1JURURfU0VOU09SUxCBChIg' - 'ChtTRU5TT1JfUkVMQVlfUEFJUkVEX1NFTlNPUlMQggo='); - -@$core.Deprecated('Use statusDescriptor instead') -const Status$json = { - '1': 'Status', - '2': [ - {'1': 'SUCCESS', '2': 0}, - {'1': 'FAILURE', '2': 1}, - {'1': 'BUSY', '2': 2}, - {'1': 'INVALID_PARAM', '2': 3}, - {'1': 'NOT_PERMITTED', '2': 4}, - {'1': 'NOT_SUPPORTED', '2': 5}, - {'1': 'INVALID_MODE', '2': 6}, - ], -}; - -/// Descriptor for `Status`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List statusDescriptor = $convert.base64Decode( - 'CgZTdGF0dXMSCwoHU1VDQ0VTUxAAEgsKB0ZBSUxVUkUQARIICgRCVVNZEAISEQoNSU5WQUxJRF' - '9QQVJBTRADEhEKDU5PVF9QRVJNSVRURUQQBBIRCg1OT1RfU1VQUE9SVEVEEAUSEAoMSU5WQUxJ' - 'RF9NT0RFEAY='); - -@$core.Deprecated('Use deviceTypeDescriptor instead') -const DeviceType$json = { - '1': 'DeviceType', - '2': [ - {'1': 'UNDEFINED', '2': 0}, - {'1': 'CYCLING_TURBO_TRAINER', '2': 1}, - {'1': 'USER_INPUT_DEVICE', '2': 2}, - {'1': 'TREADMILL', '2': 3}, - {'1': 'SENSOR_RELAY', '2': 4}, - {'1': 'HEART_RATE_MONITOR', '2': 5}, - {'1': 'POWER_METER', '2': 6}, - {'1': 'CADENCE_SENSOR', '2': 7}, - {'1': 'WIFI', '2': 8}, - ], -}; - -/// Descriptor for `DeviceType`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List deviceTypeDescriptor = $convert.base64Decode( - 'CgpEZXZpY2VUeXBlEg0KCVVOREVGSU5FRBAAEhkKFUNZQ0xJTkdfVFVSQk9fVFJBSU5FUhABEh' - 'UKEVVTRVJfSU5QVVRfREVWSUNFEAISDQoJVFJFQURNSUxMEAMSEAoMU0VOU09SX1JFTEFZEAQS' - 'FgoSSEVBUlRfUkFURV9NT05JVE9SEAUSDwoLUE9XRVJfTUVURVIQBhISCg5DQURFTkNFX1NFTl' - 'NPUhAHEggKBFdJRkkQCA=='); - -@$core.Deprecated('Use trainerModeDescriptor instead') -const TrainerMode$json = { - '1': 'TrainerMode', - '2': [ - {'1': 'MODE_UNKNOWN', '2': 0}, - {'1': 'MODE_ERG', '2': 1}, - {'1': 'MODE_RESISTANCE', '2': 2}, - {'1': 'MODE_SIM', '2': 3}, - ], -}; - -/// Descriptor for `TrainerMode`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List trainerModeDescriptor = $convert.base64Decode( - 'CgtUcmFpbmVyTW9kZRIQCgxNT0RFX1VOS05PV04QABIMCghNT0RFX0VSRxABEhMKD01PREVfUk' - 'VTSVNUQU5DRRACEgwKCE1PREVfU0lNEAM='); - -@$core.Deprecated('Use chargingStateDescriptor instead') -const ChargingState$json = { - '1': 'ChargingState', - '2': [ - {'1': 'CHARGING_IDLE', '2': 0}, - {'1': 'CHARGING_PROGRESS', '2': 1}, - {'1': 'CHARGING_DONE', '2': 2}, - ], -}; - -/// Descriptor for `ChargingState`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List chargingStateDescriptor = $convert.base64Decode( - 'Cg1DaGFyZ2luZ1N0YXRlEhEKDUNIQVJHSU5HX0lETEUQABIVChFDSEFSR0lOR19QUk9HUkVTUx' - 'ABEhEKDUNIQVJHSU5HX0RPTkUQAg=='); - -@$core.Deprecated('Use spindownStatusDescriptor instead') -const SpindownStatus$json = { - '1': 'SpindownStatus', - '2': [ - {'1': 'SPINDOWN_IDLE', '2': 0}, - {'1': 'SPINDOWN_REQUESTED', '2': 1}, - {'1': 'SPINDOWN_SUCCESS', '2': 2}, - {'1': 'SPINDOWN_ERROR', '2': 3}, - {'1': 'SPINDOWN_STOP_PEDALLING', '2': 4}, - {'1': 'SPINDOWN_ERROR_TIMEOUT', '2': 5}, - {'1': 'SPINDOWN_ERROR_TOSHORT', '2': 6}, - {'1': 'SPINDOWN_ERROR_TOSLOW', '2': 7}, - {'1': 'SPINDOWN_ERROR_TOFAST', '2': 8}, - {'1': 'SPINDOWN_ERROR_SAMPLEERROR', '2': 9}, - {'1': 'SPINDOWN_ERROR_ABORT', '2': 10}, - ], -}; - -/// Descriptor for `SpindownStatus`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List spindownStatusDescriptor = $convert.base64Decode( - 'Cg5TcGluZG93blN0YXR1cxIRCg1TUElORE9XTl9JRExFEAASFgoSU1BJTkRPV05fUkVRVUVTVE' - 'VEEAESFAoQU1BJTkRPV05fU1VDQ0VTUxACEhIKDlNQSU5ET1dOX0VSUk9SEAMSGwoXU1BJTkRP' - 'V05fU1RPUF9QRURBTExJTkcQBBIaChZTUElORE9XTl9FUlJPUl9USU1FT1VUEAUSGgoWU1BJTk' - 'RPV05fRVJST1JfVE9TSE9SVBAGEhkKFVNQSU5ET1dOX0VSUk9SX1RPU0xPVxAHEhkKFVNQSU5E' - 'T1dOX0VSUk9SX1RPRkFTVBAIEh4KGlNQSU5ET1dOX0VSUk9SX1NBTVBMRUVSUk9SEAkSGAoUU1' - 'BJTkRPV05fRVJST1JfQUJPUlQQCg=='); - -@$core.Deprecated('Use logLevelDescriptor instead') -const LogLevel$json = { - '1': 'LogLevel', - '2': [ - {'1': 'LOGLEVEL_OFF', '2': 0}, - {'1': 'LOGLEVEL_ERROR', '2': 1}, - {'1': 'LOGLEVEL_WARNING', '2': 2}, - {'1': 'LOGLEVEL_INFO', '2': 3}, - {'1': 'LOGLEVEL_DEBUG', '2': 4}, - {'1': 'LOGLEVEL_TRACE', '2': 5}, - ], -}; - -/// Descriptor for `LogLevel`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List logLevelDescriptor = $convert.base64Decode( - 'CghMb2dMZXZlbBIQCgxMT0dMRVZFTF9PRkYQABISCg5MT0dMRVZFTF9FUlJPUhABEhQKEExPR0' - 'xFVkVMX1dBUk5JTkcQAhIRCg1MT0dMRVZFTF9JTkZPEAMSEgoOTE9HTEVWRUxfREVCVUcQBBIS' - 'Cg5MT0dMRVZFTF9UUkFDRRAF'); - -@$core.Deprecated('Use roadSurfaceTypeDescriptor instead') -const RoadSurfaceType$json = { - '1': 'RoadSurfaceType', - '2': [ - {'1': 'ROAD_SURFACE_SMOOTH_TARMAC', '2': 0}, - {'1': 'ROAD_SURFACE_BRICK_ROAD', '2': 1}, - {'1': 'ROAD_SURFACE_HARD_COBBLES', '2': 2}, - {'1': 'ROAD_SURFACE_SOFT_COBBLES', '2': 3}, - {'1': 'ROAD_SURFACE_NARROW_WOODEN_PLANKS', '2': 4}, - {'1': 'ROAD_SURFACE_WIDE_WOODEN_PLANKS', '2': 5}, - {'1': 'ROAD_SURFACE_DIRT', '2': 6}, - {'1': 'ROAD_SURFACE_GRAVEL', '2': 7}, - {'1': 'ROAD_SURFACE_CATTLE_GRID', '2': 8}, - {'1': 'ROAD_SURFACE_CONCRETE_FLAG_STONES', '2': 9}, - {'1': 'ROAD_SURFACE_ICE', '2': 10}, - ], -}; - -/// Descriptor for `RoadSurfaceType`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List roadSurfaceTypeDescriptor = $convert.base64Decode( - 'Cg9Sb2FkU3VyZmFjZVR5cGUSHgoaUk9BRF9TVVJGQUNFX1NNT09USF9UQVJNQUMQABIbChdST0' - 'FEX1NVUkZBQ0VfQlJJQ0tfUk9BRBABEh0KGVJPQURfU1VSRkFDRV9IQVJEX0NPQkJMRVMQAhId' - 'ChlST0FEX1NVUkZBQ0VfU09GVF9DT0JCTEVTEAMSJQohUk9BRF9TVVJGQUNFX05BUlJPV19XT0' - '9ERU5fUExBTktTEAQSIwofUk9BRF9TVVJGQUNFX1dJREVfV09PREVOX1BMQU5LUxAFEhUKEVJP' - 'QURfU1VSRkFDRV9ESVJUEAYSFwoTUk9BRF9TVVJGQUNFX0dSQVZFTBAHEhwKGFJPQURfU1VSRk' - 'FDRV9DQVRUTEVfR1JJRBAIEiUKIVJPQURfU1VSRkFDRV9DT05DUkVURV9GTEFHX1NUT05FUxAJ' - 'EhQKEFJPQURfU1VSRkFDRV9JQ0UQCg=='); - -@$core.Deprecated('Use wifiStatusCodeDescriptor instead') -const WifiStatusCode$json = { - '1': 'WifiStatusCode', - '2': [ - {'1': 'WIFI_STATUS_DISABLED', '2': 0}, - {'1': 'WIFI_STATUS_NOT_PROVISIONED', '2': 1}, - {'1': 'WIFI_STATUS_SCANNING', '2': 2}, - {'1': 'WIFI_STATUS_DISCONNECTED', '2': 3}, - {'1': 'WIFI_STATUS_CONNECTING', '2': 4}, - {'1': 'WIFI_STATUS_CONNECTED', '2': 5}, - {'1': 'WIFI_STATUS_ERROR', '2': 6}, - ], -}; - -/// Descriptor for `WifiStatusCode`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List wifiStatusCodeDescriptor = $convert.base64Decode( - 'Cg5XaWZpU3RhdHVzQ29kZRIYChRXSUZJX1NUQVRVU19ESVNBQkxFRBAAEh8KG1dJRklfU1RBVF' - 'VTX05PVF9QUk9WSVNJT05FRBABEhgKFFdJRklfU1RBVFVTX1NDQU5OSU5HEAISHAoYV0lGSV9T' - 'VEFUVVNfRElTQ09OTkVDVEVEEAMSGgoWV0lGSV9TVEFUVVNfQ09OTkVDVElORxAEEhkKFVdJRk' - 'lfU1RBVFVTX0NPTk5FQ1RFRBAFEhUKEVdJRklfU1RBVFVTX0VSUk9SEAY='); - -@$core.Deprecated('Use wifiErrorCodeDescriptor instead') -const WifiErrorCode$json = { - '1': 'WifiErrorCode', - '2': [ - {'1': 'WIFI_ERROR_UNKNOWN', '2': 0}, - {'1': 'WIFI_ERROR_NO_MEMORY', '2': 1}, - {'1': 'WIFI_ERROR_INVALID_PARAMETERS', '2': 2}, - {'1': 'WIFI_ERROR_INVALID_STATE', '2': 3}, - {'1': 'WIFI_ERROR_NOT_FOUND', '2': 4}, - {'1': 'WIFI_ERROR_NOT_SUPPORTED', '2': 5}, - {'1': 'WIFI_ERROR_NOT_ALLOWED', '2': 6}, - {'1': 'WIFI_ERROR_NOT_INITIALISED', '2': 7}, - {'1': 'WIFI_ERROR_NOT_STARTED', '2': 8}, - {'1': 'WIFI_ERROR_TIMEOUT', '2': 9}, - {'1': 'WIFI_ERROR_MODE', '2': 10}, - {'1': 'WIFI_ERROR_SSID_INVALID', '2': 11}, - ], -}; - -/// Descriptor for `WifiErrorCode`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List wifiErrorCodeDescriptor = $convert.base64Decode( - 'Cg1XaWZpRXJyb3JDb2RlEhYKEldJRklfRVJST1JfVU5LTk9XThAAEhgKFFdJRklfRVJST1JfTk' - '9fTUVNT1JZEAESIQodV0lGSV9FUlJPUl9JTlZBTElEX1BBUkFNRVRFUlMQAhIcChhXSUZJX0VS' - 'Uk9SX0lOVkFMSURfU1RBVEUQAxIYChRXSUZJX0VSUk9SX05PVF9GT1VORBAEEhwKGFdJRklfRV' - 'JST1JfTk9UX1NVUFBPUlRFRBAFEhoKFldJRklfRVJST1JfTk9UX0FMTE9XRUQQBhIeChpXSUZJ' - 'X0VSUk9SX05PVF9JTklUSUFMSVNFRBAHEhoKFldJRklfRVJST1JfTk9UX1NUQVJURUQQCBIWCh' - 'JXSUZJX0VSUk9SX1RJTUVPVVQQCRITCg9XSUZJX0VSUk9SX01PREUQChIbChdXSUZJX0VSUk9S' - 'X1NTSURfSU5WQUxJRBAL'); - -@$core.Deprecated('Use interfaceTypeDescriptor instead') -const InterfaceType$json = { - '1': 'InterfaceType', - '2': [ - {'1': 'INTERFACE_BLE', '2': 1}, - {'1': 'INTERFACE_ANT', '2': 2}, - {'1': 'INTERFACE_USB', '2': 3}, - {'1': 'INTERFACE_ETH', '2': 4}, - {'1': 'INTERFACE_WIFI', '2': 5}, - ], -}; - -/// Descriptor for `InterfaceType`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List interfaceTypeDescriptor = $convert.base64Decode( - 'Cg1JbnRlcmZhY2VUeXBlEhEKDUlOVEVSRkFDRV9CTEUQARIRCg1JTlRFUkZBQ0VfQU5UEAISEQ' - 'oNSU5URVJGQUNFX1VTQhADEhEKDUlOVEVSRkFDRV9FVEgQBBISCg5JTlRFUkZBQ0VfV0lGSRAF'); - -@$core.Deprecated('Use sensorConnectionStatusDescriptor instead') -const SensorConnectionStatus$json = { - '1': 'SensorConnectionStatus', - '2': [ - {'1': 'SENSOR_STATUS_DISCOVERED', '2': 1}, - {'1': 'SENSOR_STATUS_DISCONNECTED', '2': 2}, - {'1': 'SENSOR_STATUS_PAIRING', '2': 3}, - {'1': 'SENSOR_STATUS_CONNECTED', '2': 4}, - ], -}; - -/// Descriptor for `SensorConnectionStatus`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List sensorConnectionStatusDescriptor = $convert.base64Decode( - 'ChZTZW5zb3JDb25uZWN0aW9uU3RhdHVzEhwKGFNFTlNPUl9TVEFUVVNfRElTQ09WRVJFRBABEh' - '4KGlNFTlNPUl9TVEFUVVNfRElTQ09OTkVDVEVEEAISGQoVU0VOU09SX1NUQVRVU19QQUlSSU5H' - 'EAMSGwoXU0VOU09SX1NUQVRVU19DT05ORUNURUQQBA=='); - -@$core.Deprecated('Use bleSecureConnectionStatusDescriptor instead') -const BleSecureConnectionStatus$json = { - '1': 'BleSecureConnectionStatus', - '2': [ - {'1': 'BLE_CONNECTION_SECURITY_STATUS_NONE', '2': 0}, - {'1': 'BLE_CONNECTION_SECURITY_STATUS_INPROGRESS', '2': 1}, - {'1': 'BLE_CONNECTION_SECURITY_STATUS_ACTIVE', '2': 2}, - {'1': 'BLE_CONNECTION_SECURITY_STATUS_REJECTED', '2': 3}, - ], -}; - -/// Descriptor for `BleSecureConnectionStatus`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List bleSecureConnectionStatusDescriptor = $convert.base64Decode( - 'ChlCbGVTZWN1cmVDb25uZWN0aW9uU3RhdHVzEicKI0JMRV9DT05ORUNUSU9OX1NFQ1VSSVRZX1' - 'NUQVRVU19OT05FEAASLQopQkxFX0NPTk5FQ1RJT05fU0VDVVJJVFlfU1RBVFVTX0lOUFJPR1JF' - 'U1MQARIpCiVCTEVfQ09OTkVDVElPTl9TRUNVUklUWV9TVEFUVVNfQUNUSVZFEAISKwonQkxFX0' - 'NPTk5FQ1RJT05fU0VDVVJJVFlfU1RBVFVTX1JFSkVDVEVEEAM='); - -@$core.Deprecated('Use bleSecureConnectionWindowStatusDescriptor instead') -const BleSecureConnectionWindowStatus$json = { - '1': 'BleSecureConnectionWindowStatus', - '2': [ - {'1': 'BLE_SECURE_CONNECTION_WINDOW_STATUS_CLOSED', '2': 0}, - {'1': 'BLE_SECURE_CONNECTION_WINDOW_STATUS_OPEN', '2': 1}, - ], -}; - -/// Descriptor for `BleSecureConnectionWindowStatus`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List bleSecureConnectionWindowStatusDescriptor = $convert.base64Decode( - 'Ch9CbGVTZWN1cmVDb25uZWN0aW9uV2luZG93U3RhdHVzEi4KKkJMRV9TRUNVUkVfQ09OTkVDVE' - 'lPTl9XSU5ET1dfU1RBVFVTX0NMT1NFRBAAEiwKKEJMRV9TRUNVUkVfQ09OTkVDVElPTl9XSU5E' - 'T1dfU1RBVFVTX09QRU4QAQ=='); - -@$core.Deprecated('Use trainerEnvSimDescriptor instead') -const TrainerEnvSim$json = { - '1': 'TrainerEnvSim', - '2': [ - {'1': 'simulatedWind', '3': 1, '4': 1, '5': 17, '8': {}, '10': 'simulatedWind'}, - {'1': 'simulatedGrade', '3': 2, '4': 1, '5': 17, '8': {}, '10': 'simulatedGrade'}, - {'1': 'simulatedCW', '3': 3, '4': 1, '5': 13, '8': {}, '10': 'simulatedCW'}, - {'1': 'simulatedCRR', '3': 4, '4': 1, '5': 13, '8': {}, '10': 'simulatedCRR'}, - ], -}; - -/// Descriptor for `TrainerEnvSim`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List trainerEnvSimDescriptor = $convert.base64Decode( - 'Cg1UcmFpbmVyRW52U2ltEisKDXNpbXVsYXRlZFdpbmQYASABKBFCBZI/AjgQUg1zaW11bGF0ZW' - 'RXaW5kEi0KDnNpbXVsYXRlZEdyYWRlGAIgASgRQgWSPwI4EFIOc2ltdWxhdGVkR3JhZGUSJwoL' - 'c2ltdWxhdGVkQ1cYAyABKA1CBZI/AjgQUgtzaW11bGF0ZWRDVxIpCgxzaW11bGF0ZWRDUlIYBC' - 'ABKA1CBZI/AjgQUgxzaW11bGF0ZWRDUlI='); - -@$core.Deprecated('Use trainerBikeSimDescriptor instead') -const TrainerBikeSim$json = { - '1': 'TrainerBikeSim', - '2': [ - {'1': 'simulatedRealGearRatio', '3': 1, '4': 1, '5': 13, '8': {}, '10': 'simulatedRealGearRatio'}, - {'1': 'simulatedVirtualGearRatio', '3': 2, '4': 1, '5': 13, '8': {}, '10': 'simulatedVirtualGearRatio'}, - {'1': 'simulatedWheelDiameter', '3': 3, '4': 1, '5': 13, '8': {}, '10': 'simulatedWheelDiameter'}, - {'1': 'simulatedBikeMass', '3': 4, '4': 1, '5': 13, '8': {}, '10': 'simulatedBikeMass'}, - {'1': 'simulatedRiderMass', '3': 5, '4': 1, '5': 13, '8': {}, '10': 'simulatedRiderMass'}, - {'1': 'simulatedFrontalArea', '3': 6, '4': 1, '5': 13, '8': {}, '10': 'simulatedFrontalArea'}, - {'1': 'eBrake', '3': 7, '4': 1, '5': 13, '8': {}, '10': 'eBrake'}, - ], -}; - -/// Descriptor for `TrainerBikeSim`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List trainerBikeSimDescriptor = $convert.base64Decode( - 'Cg5UcmFpbmVyQmlrZVNpbRI9ChZzaW11bGF0ZWRSZWFsR2VhclJhdGlvGAEgASgNQgWSPwI4EF' - 'IWc2ltdWxhdGVkUmVhbEdlYXJSYXRpbxJDChlzaW11bGF0ZWRWaXJ0dWFsR2VhclJhdGlvGAIg' - 'ASgNQgWSPwI4EFIZc2ltdWxhdGVkVmlydHVhbEdlYXJSYXRpbxI9ChZzaW11bGF0ZWRXaGVlbE' - 'RpYW1ldGVyGAMgASgNQgWSPwI4EFIWc2ltdWxhdGVkV2hlZWxEaWFtZXRlchIzChFzaW11bGF0' - 'ZWRCaWtlTWFzcxgEIAEoDUIFkj8COBBSEXNpbXVsYXRlZEJpa2VNYXNzEjUKEnNpbXVsYXRlZF' - 'JpZGVyTWFzcxgFIAEoDUIFkj8COBBSEnNpbXVsYXRlZFJpZGVyTWFzcxI5ChRzaW11bGF0ZWRG' - 'cm9udGFsQXJlYRgGIAEoDUIFkj8COBBSFHNpbXVsYXRlZEZyb250YWxBcmVhEh0KBmVCcmFrZR' - 'gHIAEoDUIFkj8COBBSBmVCcmFrZQ=='); - -@$core.Deprecated('Use controllerAnalogEventDescriptor instead') -const ControllerAnalogEvent$json = { - '1': 'ControllerAnalogEvent', - '2': [ - {'1': 'sensorId', '3': 1, '4': 1, '5': 13, '8': {}, '10': 'sensorId'}, - {'1': 'value', '3': 2, '4': 1, '5': 17, '8': {}, '10': 'value'}, - ], -}; - -/// Descriptor for `ControllerAnalogEvent`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List controllerAnalogEventDescriptor = $convert.base64Decode( - 'ChVDb250cm9sbGVyQW5hbG9nRXZlbnQSIQoIc2Vuc29ySWQYASABKA1CBZI/AjgIUghzZW5zb3' - 'JJZBIbCgV2YWx1ZRgCIAEoEUIFkj8COBBSBXZhbHVl'); - -@$core.Deprecated('Use inputAnalogRangeDescriptor instead') -const InputAnalogRange$json = { - '1': 'InputAnalogRange', - '2': [ - {'1': 'sensorId', '3': 1, '4': 1, '5': 13, '8': {}, '10': 'sensorId'}, - {'1': 'minAnalogValue', '3': 2, '4': 1, '5': 17, '8': {}, '10': 'minAnalogValue'}, - {'1': 'maxAnalogValue', '3': 3, '4': 1, '5': 17, '8': {}, '10': 'maxAnalogValue'}, - ], -}; - -/// Descriptor for `InputAnalogRange`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List inputAnalogRangeDescriptor = $convert.base64Decode( - 'ChBJbnB1dEFuYWxvZ1JhbmdlEiEKCHNlbnNvcklkGAEgASgNQgWSPwI4CFIIc2Vuc29ySWQSLQ' - 'oObWluQW5hbG9nVmFsdWUYAiABKBFCBZI/AjgQUg5taW5BbmFsb2dWYWx1ZRItCg5tYXhBbmFs' - 'b2dWYWx1ZRgDIAEoEUIFkj8COBBSDm1heEFuYWxvZ1ZhbHVl'); - -@$core.Deprecated('Use inputAnalogDeadzoneDescriptor instead') -const InputAnalogDeadzone$json = { - '1': 'InputAnalogDeadzone', - '2': [ - {'1': 'sensorId', '3': 1, '4': 1, '5': 13, '8': {}, '10': 'sensorId'}, - {'1': 'negDeadzoneValue', '3': 2, '4': 1, '5': 17, '8': {}, '10': 'negDeadzoneValue'}, - {'1': 'posDeadzoneValue', '3': 3, '4': 1, '5': 17, '8': {}, '10': 'posDeadzoneValue'}, - ], -}; - -/// Descriptor for `InputAnalogDeadzone`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List inputAnalogDeadzoneDescriptor = $convert.base64Decode( - 'ChNJbnB1dEFuYWxvZ0RlYWR6b25lEiEKCHNlbnNvcklkGAEgASgNQgWSPwI4CFIIc2Vuc29ySW' - 'QSMQoQbmVnRGVhZHpvbmVWYWx1ZRgCIAEoEUIFkj8COBBSEG5lZ0RlYWR6b25lVmFsdWUSMQoQ' - 'cG9zRGVhZHpvbmVWYWx1ZRgDIAEoEUIFkj8COBBSEHBvc0RlYWR6b25lVmFsdWU='); - -@$core.Deprecated('Use wifiNetworkDescriptor instead') -const WifiNetwork$json = { - '1': 'WifiNetwork', - '2': [ - {'1': 'networkId', '3': 1, '4': 1, '5': 13, '8': {}, '10': 'networkId'}, - {'1': 'ssid', '3': 2, '4': 1, '5': 12, '8': {}, '10': 'ssid'}, - {'1': 'password', '3': 3, '4': 1, '5': 12, '8': {}, '10': 'password'}, - ], -}; - -/// Descriptor for `WifiNetwork`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List wifiNetworkDescriptor = $convert.base64Decode( - 'CgtXaWZpTmV0d29yaxIjCgluZXR3b3JrSWQYASABKA1CBZI/AjgIUgluZXR3b3JrSWQSGQoEc3' - 'NpZBgCIAEoDEIFkj8CCCBSBHNzaWQSIQoIcGFzc3dvcmQYAyABKAxCBZI/AghAUghwYXNzd29y' - 'ZA=='); - -@$core.Deprecated('Use wifiRegionCodeDescriptor instead') -const WifiRegionCode$json = { - '1': 'WifiRegionCode', - '2': [ - {'1': 'regionCodeType', '3': 1, '4': 1, '5': 14, '6': '.Zp.WifiRegionCode.RegionCodeType', '10': 'regionCodeType'}, - {'1': 'regionCode', '3': 2, '4': 1, '5': 12, '8': {}, '10': 'regionCode'}, - ], - '4': [WifiRegionCode_RegionCodeType$json], -}; - -@$core.Deprecated('Use wifiRegionCodeDescriptor instead') -const WifiRegionCode_RegionCodeType$json = { - '1': 'RegionCodeType', - '2': [ - {'1': 'ALPHA_2', '2': 0}, - {'1': 'ALPHA_3', '2': 1}, - {'1': 'NUMERIC', '2': 2}, - {'1': 'UNKNOWN', '2': 3}, - ], -}; - -/// Descriptor for `WifiRegionCode`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List wifiRegionCodeDescriptor = $convert.base64Decode( - 'Cg5XaWZpUmVnaW9uQ29kZRJJCg5yZWdpb25Db2RlVHlwZRgBIAEoDjIhLlpwLldpZmlSZWdpb2' - '5Db2RlLlJlZ2lvbkNvZGVUeXBlUg5yZWdpb25Db2RlVHlwZRIlCgpyZWdpb25Db2RlGAIgASgM' - 'QgWSPwIIA1IKcmVnaW9uQ29kZSJECg5SZWdpb25Db2RlVHlwZRILCgdBTFBIQV8yEAASCwoHQU' - 'xQSEFfMxABEgsKB05VTUVSSUMQAhILCgdVTktOT1dOEAM='); - -@$core.Deprecated('Use wifiNetworkDetailsDescriptor instead') -const WifiNetworkDetails$json = { - '1': 'WifiNetworkDetails', - '2': [ - {'1': 'networkId', '3': 1, '4': 1, '5': 13, '8': {}, '10': 'networkId'}, - {'1': 'bssid', '3': 2, '4': 1, '5': 12, '8': {}, '10': 'bssid'}, - {'1': 'ssid', '3': 3, '4': 1, '5': 12, '8': {}, '10': 'ssid'}, - {'1': 'securityType', '3': 4, '4': 1, '5': 13, '8': {}, '10': 'securityType'}, - {'1': 'band', '3': 5, '4': 1, '5': 13, '8': {}, '10': 'band'}, - {'1': 'rssi', '3': 6, '4': 1, '5': 17, '8': {}, '10': 'rssi'}, - ], -}; - -/// Descriptor for `WifiNetworkDetails`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List wifiNetworkDetailsDescriptor = $convert.base64Decode( - 'ChJXaWZpTmV0d29ya0RldGFpbHMSIwoJbmV0d29ya0lkGAEgASgNQgWSPwI4CFIJbmV0d29ya0' - 'lkEh0KBWJzc2lkGAIgASgMQgeSPwQIBngBUgVic3NpZBIZCgRzc2lkGAMgASgMQgWSPwIIIFIE' - 'c3NpZBIpCgxzZWN1cml0eVR5cGUYBCABKA1CBZI/AjgIUgxzZWN1cml0eVR5cGUSGQoEYmFuZB' - 'gFIAEoDUIFkj8COAhSBGJhbmQSGQoEcnNzaRgGIAEoEUIFkj8COAhSBHJzc2k='); - -@$core.Deprecated('Use sensorInfoDescriptor instead') -const SensorInfo$json = { - '1': 'SensorInfo', - '2': [ - {'1': 'relayAssignedId', '3': 1, '4': 1, '5': 13, '8': {}, '10': 'relayAssignedId'}, - {'1': 'sensorName', '3': 2, '4': 1, '5': 12, '8': {}, '10': 'sensorName'}, - {'1': 'sensorAddress', '3': 4, '4': 1, '5': 12, '8': {}, '10': 'sensorAddress'}, - {'1': 'interfaceType', '3': 5, '4': 1, '5': 14, '6': '.Zp.InterfaceType', '10': 'interfaceType'}, - {'1': 'connectionStatus', '3': 6, '4': 1, '5': 14, '6': '.Zp.SensorConnectionStatus', '10': 'connectionStatus'}, - {'1': 'deviceTypes', '3': 7, '4': 3, '5': 14, '6': '.Zp.DeviceType', '8': {}, '10': 'deviceTypes'}, - {'1': 'supportsZp', '3': 8, '4': 1, '5': 8, '10': 'supportsZp'}, - ], - '9': [ - {'1': 3, '2': 4}, - ], -}; - -/// Descriptor for `SensorInfo`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List sensorInfoDescriptor = $convert.base64Decode( - 'CgpTZW5zb3JJbmZvEi8KD3JlbGF5QXNzaWduZWRJZBgBIAEoDUIFkj8COAhSD3JlbGF5QXNzaW' - 'duZWRJZBIlCgpzZW5zb3JOYW1lGAIgASgMQgWSPwIIIFIKc2Vuc29yTmFtZRItCg1zZW5zb3JB' - 'ZGRyZXNzGAQgASgMQgeSPwQIBngBUg1zZW5zb3JBZGRyZXNzEjcKDWludGVyZmFjZVR5cGUYBS' - 'ABKA4yES5acC5JbnRlcmZhY2VUeXBlUg1pbnRlcmZhY2VUeXBlEkYKEGNvbm5lY3Rpb25TdGF0' - 'dXMYBiABKA4yGi5acC5TZW5zb3JDb25uZWN0aW9uU3RhdHVzUhBjb25uZWN0aW9uU3RhdHVzEj' - 'cKC2RldmljZVR5cGVzGAcgAygOMg4uWnAuRGV2aWNlVHlwZUIFkj8CEAhSC2RldmljZVR5cGVz' - 'Eh4KCnN1cHBvcnRzWnAYCCABKAhSCnN1cHBvcnRzWnBKBAgDEAQ='); - -@$core.Deprecated('Use sensorInfoListDescriptor instead') -const SensorInfoList$json = { - '1': 'SensorInfoList', - '2': [ - {'1': 'sensorInfo', '3': 1, '4': 3, '5': 11, '6': '.Zp.SensorInfo', '8': {}, '10': 'sensorInfo'}, - ], -}; - -/// Descriptor for `SensorInfoList`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List sensorInfoListDescriptor = $convert.base64Decode( - 'Cg5TZW5zb3JJbmZvTGlzdBI1CgpzZW5zb3JJbmZvGAEgAygLMg4uWnAuU2Vuc29ySW5mb0IFkj' - '8CEA9SCnNlbnNvckluZm8='); - -@$core.Deprecated('Use deviceUpdatePageDescriptor instead') -const DeviceUpdatePage$json = { - '1': 'DeviceUpdatePage', - '2': [ - {'1': 'updateStatus', '3': 1, '4': 1, '5': 13, '8': {}, '10': 'updateStatus'}, - {'1': 'newVersion', '3': 2, '4': 1, '5': 13, '10': 'newVersion'}, - ], -}; - -/// Descriptor for `DeviceUpdatePage`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List deviceUpdatePageDescriptor = $convert.base64Decode( - 'ChBEZXZpY2VVcGRhdGVQYWdlEikKDHVwZGF0ZVN0YXR1cxgBIAEoDUIFkj8COAhSDHVwZGF0ZV' - 'N0YXR1cxIeCgpuZXdWZXJzaW9uGAIgASgNUgpuZXdWZXJzaW9u'); - -@$core.Deprecated('Use dateTimePageDescriptor instead') -const DateTimePage$json = { - '1': 'DateTimePage', - '2': [ - {'1': 'utcDateTime', '3': 1, '4': 1, '5': 13, '10': 'utcDateTime'}, - ], -}; - -/// Descriptor for `DateTimePage`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List dateTimePageDescriptor = $convert.base64Decode( - 'CgxEYXRlVGltZVBhZ2USIAoLdXRjRGF0ZVRpbWUYASABKA1SC3V0Y0RhdGVUaW1l'); - -@$core.Deprecated('Use bleSecurityPageDescriptor instead') -const BleSecurityPage$json = { - '1': 'BleSecurityPage', - '2': [ - {'1': 'secureConnectionStatus', '3': 1, '4': 1, '5': 14, '6': '.Zp.BleSecureConnectionStatus', '10': 'secureConnectionStatus'}, - {'1': 'secureConnectionWindowStatus', '3': 2, '4': 1, '5': 14, '6': '.Zp.BleSecureConnectionWindowStatus', '10': 'secureConnectionWindowStatus'}, - ], -}; - -/// Descriptor for `BleSecurityPage`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List bleSecurityPageDescriptor = $convert.base64Decode( - 'Cg9CbGVTZWN1cml0eVBhZ2USVQoWc2VjdXJlQ29ubmVjdGlvblN0YXR1cxgBIAEoDjIdLlpwLk' - 'JsZVNlY3VyZUNvbm5lY3Rpb25TdGF0dXNSFnNlY3VyZUNvbm5lY3Rpb25TdGF0dXMSZwocc2Vj' - 'dXJlQ29ubmVjdGlvbldpbmRvd1N0YXR1cxgCIAEoDjIjLlpwLkJsZVNlY3VyZUNvbm5lY3Rpb2' - '5XaW5kb3dTdGF0dXNSHHNlY3VyZUNvbm5lY3Rpb25XaW5kb3dTdGF0dXM='); - -@$core.Deprecated('Use devInfoPageDescriptor instead') -const DevInfoPage$json = { - '1': 'DevInfoPage', - '2': [ - {'1': 'protocolVersion', '3': 1, '4': 1, '5': 13, '8': {}, '10': 'protocolVersion'}, - {'1': 'systemFwVersion', '3': 2, '4': 1, '5': 12, '8': {}, '10': 'systemFwVersion'}, - {'1': 'deviceName', '3': 3, '4': 1, '5': 12, '8': {}, '10': 'deviceName'}, - {'1': 'serialNumber', '3': 6, '4': 1, '5': 12, '8': {}, '10': 'serialNumber'}, - {'1': 'systemHwRevision', '3': 7, '4': 1, '5': 12, '8': {}, '10': 'systemHwRevision'}, - {'1': 'deviceCapabilities', '3': 8, '4': 3, '5': 11, '6': '.Zp.DevInfoPage.DeviceCapabilities', '8': {}, '10': 'deviceCapabilities'}, - {'1': 'manufacturerId', '3': 9, '4': 1, '5': 13, '8': {}, '10': 'manufacturerId'}, - {'1': 'productId', '3': 10, '4': 1, '5': 13, '8': {}, '10': 'productId'}, - {'1': 'deviceUid', '3': 11, '4': 1, '5': 12, '8': {}, '10': 'deviceUid'}, - ], - '3': [DevInfoPage_DeviceCapabilities$json], - '9': [ - {'1': 4, '2': 5}, - {'1': 5, '2': 6}, - ], -}; - -@$core.Deprecated('Use devInfoPageDescriptor instead') -const DevInfoPage_DeviceCapabilities$json = { - '1': 'DeviceCapabilities', - '2': [ - {'1': 'deviceType', '3': 1, '4': 2, '5': 13, '8': {}, '10': 'deviceType'}, - {'1': 'capabilities', '3': 2, '4': 2, '5': 13, '10': 'capabilities'}, - ], -}; - -/// Descriptor for `DevInfoPage`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List devInfoPageDescriptor = $convert.base64Decode( - 'CgtEZXZJbmZvUGFnZRIvCg9wcm90b2NvbFZlcnNpb24YASABKA1CBZI/AjgQUg9wcm90b2NvbF' - 'ZlcnNpb24SMQoPc3lzdGVtRndWZXJzaW9uGAIgASgMQgeSPwQIBHgBUg9zeXN0ZW1Gd1ZlcnNp' - 'b24SJQoKZGV2aWNlTmFtZRgDIAEoDEIFkj8CCAxSCmRldmljZU5hbWUSKwoMc2VyaWFsTnVtYm' - 'VyGAYgASgMQgeSPwQID3gBUgxzZXJpYWxOdW1iZXISMQoQc3lzdGVtSHdSZXZpc2lvbhgHIAEo' - 'DEIFkj8CCAVSEHN5c3RlbUh3UmV2aXNpb24SWQoSZGV2aWNlQ2FwYWJpbGl0aWVzGAggAygLMi' - 'IuWnAuRGV2SW5mb1BhZ2UuRGV2aWNlQ2FwYWJpbGl0aWVzQgWSPwIQD1ISZGV2aWNlQ2FwYWJp' - 'bGl0aWVzEi0KDm1hbnVmYWN0dXJlcklkGAkgASgNQgWSPwI4EFIObWFudWZhY3R1cmVySWQSIw' - 'oJcHJvZHVjdElkGAogASgNQgWSPwI4EFIJcHJvZHVjdElkEiUKCWRldmljZVVpZBgLIAEoDEIH' - 'kj8ECAx4AVIJZGV2aWNlVWlkGl8KEkRldmljZUNhcGFiaWxpdGllcxIlCgpkZXZpY2VUeXBlGA' - 'EgAigNQgWSPwI4CFIKZGV2aWNlVHlwZRIiCgxjYXBhYmlsaXRpZXMYAiACKA1SDGNhcGFiaWxp' - 'dGllc0oECAQQBUoECAUQBg=='); - -@$core.Deprecated('Use clientServerCfgPageDescriptor instead') -const ClientServerCfgPage$json = { - '1': 'ClientServerCfgPage', - '2': [ - {'1': 'notifications', '3': 1, '4': 1, '5': 13, '10': 'notifications'}, - ], -}; - -/// Descriptor for `ClientServerCfgPage`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List clientServerCfgPageDescriptor = $convert.base64Decode( - 'ChNDbGllbnRTZXJ2ZXJDZmdQYWdlEiQKDW5vdGlmaWNhdGlvbnMYASABKA1SDW5vdGlmaWNhdG' - 'lvbnM='); - -@$core.Deprecated('Use trainerSimulationParamDescriptor instead') -const TrainerSimulationParam$json = { - '1': 'TrainerSimulationParam', - '2': [ - {'1': 'configuredResistance', '3': 1, '4': 1, '5': 13, '8': {}, '10': 'configuredResistance'}, - {'1': 'ergPower', '3': 2, '4': 1, '5': 13, '8': {}, '10': 'ergPower'}, - {'1': 'averagingWindow', '3': 3, '4': 1, '5': 13, '8': {}, '10': 'averagingWindow'}, - {'1': 'simulatedWind', '3': 4, '4': 1, '5': 17, '8': {}, '10': 'simulatedWind'}, - {'1': 'simulatedGrade', '3': 5, '4': 1, '5': 17, '8': {}, '10': 'simulatedGrade'}, - {'1': 'simulatedRealGearRatio', '3': 6, '4': 1, '5': 13, '8': {}, '10': 'simulatedRealGearRatio'}, - {'1': 'simulatedVirtualGearRatio', '3': 7, '4': 1, '5': 13, '8': {}, '10': 'simulatedVirtualGearRatio'}, - {'1': 'simulatedCW', '3': 8, '4': 1, '5': 13, '8': {}, '10': 'simulatedCW'}, - {'1': 'simulatedWheelDiameter', '3': 9, '4': 1, '5': 13, '8': {}, '10': 'simulatedWheelDiameter'}, - {'1': 'simulatedBikeMass', '3': 10, '4': 1, '5': 13, '8': {}, '10': 'simulatedBikeMass'}, - {'1': 'simulatedRiderMass', '3': 11, '4': 1, '5': 13, '8': {}, '10': 'simulatedRiderMass'}, - {'1': 'simulatedCRR', '3': 12, '4': 1, '5': 13, '8': {}, '10': 'simulatedCRR'}, - {'1': 'simulatedFrontalArea', '3': 13, '4': 1, '5': 13, '8': {}, '10': 'simulatedFrontalArea'}, - {'1': 'simulatedEBrake', '3': 14, '4': 1, '5': 13, '8': {}, '10': 'simulatedEBrake'}, - ], -}; - -/// Descriptor for `TrainerSimulationParam`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List trainerSimulationParamDescriptor = $convert.base64Decode( - 'ChZUcmFpbmVyU2ltdWxhdGlvblBhcmFtEjkKFGNvbmZpZ3VyZWRSZXNpc3RhbmNlGAEgASgNQg' - 'WSPwI4EFIUY29uZmlndXJlZFJlc2lzdGFuY2USIQoIZXJnUG93ZXIYAiABKA1CBZI/AjgQUghl' - 'cmdQb3dlchIvCg9hdmVyYWdpbmdXaW5kb3cYAyABKA1CBZI/AjgQUg9hdmVyYWdpbmdXaW5kb3' - 'cSKwoNc2ltdWxhdGVkV2luZBgEIAEoEUIFkj8COBBSDXNpbXVsYXRlZFdpbmQSLQoOc2ltdWxh' - 'dGVkR3JhZGUYBSABKBFCBZI/AjgQUg5zaW11bGF0ZWRHcmFkZRI9ChZzaW11bGF0ZWRSZWFsR2' - 'VhclJhdGlvGAYgASgNQgWSPwI4EFIWc2ltdWxhdGVkUmVhbEdlYXJSYXRpbxJDChlzaW11bGF0' - 'ZWRWaXJ0dWFsR2VhclJhdGlvGAcgASgNQgWSPwI4EFIZc2ltdWxhdGVkVmlydHVhbEdlYXJSYX' - 'RpbxInCgtzaW11bGF0ZWRDVxgIIAEoDUIFkj8COBBSC3NpbXVsYXRlZENXEj0KFnNpbXVsYXRl' - 'ZFdoZWVsRGlhbWV0ZXIYCSABKA1CBZI/AjgQUhZzaW11bGF0ZWRXaGVlbERpYW1ldGVyEjMKEX' - 'NpbXVsYXRlZEJpa2VNYXNzGAogASgNQgWSPwI4EFIRc2ltdWxhdGVkQmlrZU1hc3MSNQoSc2lt' - 'dWxhdGVkUmlkZXJNYXNzGAsgASgNQgWSPwI4EFISc2ltdWxhdGVkUmlkZXJNYXNzEikKDHNpbX' - 'VsYXRlZENSUhgMIAEoDUIFkj8COBBSDHNpbXVsYXRlZENSUhI5ChRzaW11bGF0ZWRGcm9udGFs' - 'QXJlYRgNIAEoDUIFkj8COBBSFHNpbXVsYXRlZEZyb250YWxBcmVhEi8KD3NpbXVsYXRlZEVCcm' - 'FrZRgOIAEoDUIFkj8COBBSD3NpbXVsYXRlZEVCcmFrZQ=='); - -@$core.Deprecated('Use trainerOptionsDescriptor instead') -const TrainerOptions$json = { - '1': 'TrainerOptions', - '2': [ - {'1': 'highSpeedDataEnabled', '3': 1, '4': 1, '5': 8, '10': 'highSpeedDataEnabled'}, - {'1': 'ergPowerSmoothingEnabled', '3': 2, '4': 1, '5': 8, '10': 'ergPowerSmoothingEnabled'}, - {'1': 'virtualShiftingMode', '3': 3, '4': 1, '5': 13, '8': {}, '10': 'virtualShiftingMode'}, - ], -}; - -/// Descriptor for `TrainerOptions`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List trainerOptionsDescriptor = $convert.base64Decode( - 'Cg5UcmFpbmVyT3B0aW9ucxIyChRoaWdoU3BlZWREYXRhRW5hYmxlZBgBIAEoCFIUaGlnaFNwZW' - 'VkRGF0YUVuYWJsZWQSOgoYZXJnUG93ZXJTbW9vdGhpbmdFbmFibGVkGAIgASgIUhhlcmdQb3dl' - 'clNtb290aGluZ0VuYWJsZWQSNwoTdmlydHVhbFNoaWZ0aW5nTW9kZRgDIAEoDUIFkj8COAhSE3' - 'ZpcnR1YWxTaGlmdGluZ01vZGU='); - -@$core.Deprecated('Use trainerCfgPageDescriptor instead') -const TrainerCfgPage$json = { - '1': 'TrainerCfgPage', - '2': [ - {'1': 'trainerMode', '3': 1, '4': 1, '5': 14, '6': '.Zp.TrainerMode', '10': 'trainerMode'}, - {'1': 'configuredResistance', '3': 2, '4': 1, '5': 13, '8': {}, '10': 'configuredResistance'}, - {'1': 'ergPower', '3': 3, '4': 1, '5': 13, '8': {}, '10': 'ergPower'}, - {'1': 'averagingWindow', '3': 4, '4': 1, '5': 13, '8': {}, '10': 'averagingWindow'}, - {'1': 'simulatedWind', '3': 5, '4': 1, '5': 17, '8': {}, '10': 'simulatedWind'}, - {'1': 'simulatedGrade', '3': 6, '4': 1, '5': 17, '8': {}, '10': 'simulatedGrade'}, - {'1': 'simulatedRealGearRatio', '3': 7, '4': 1, '5': 13, '8': {}, '10': 'simulatedRealGearRatio'}, - {'1': 'simulatedVirtualGearRatio', '3': 8, '4': 1, '5': 13, '8': {}, '10': 'simulatedVirtualGearRatio'}, - {'1': 'simulatedCW', '3': 9, '4': 1, '5': 13, '8': {}, '10': 'simulatedCW'}, - {'1': 'simulatedWheelDiameter', '3': 10, '4': 1, '5': 13, '8': {}, '10': 'simulatedWheelDiameter'}, - {'1': 'simulatedBikeMass', '3': 11, '4': 1, '5': 13, '8': {}, '10': 'simulatedBikeMass'}, - {'1': 'simulatedRiderMass', '3': 12, '4': 1, '5': 13, '8': {}, '10': 'simulatedRiderMass'}, - {'1': 'simulatedCRR', '3': 13, '4': 1, '5': 13, '8': {}, '10': 'simulatedCRR'}, - {'1': 'simulatedFrontalArea', '3': 14, '4': 1, '5': 13, '8': {}, '10': 'simulatedFrontalArea'}, - {'1': 'simulatedEBrake', '3': 15, '4': 1, '5': 13, '8': {}, '10': 'simulatedEBrake'}, - {'1': 'highSpeedDataEnabled', '3': 16, '4': 1, '5': 8, '10': 'highSpeedDataEnabled'}, - {'1': 'ergPowerSmoothingEnabled', '3': 17, '4': 1, '5': 8, '10': 'ergPowerSmoothingEnabled'}, - {'1': 'virtualShiftingMode', '3': 18, '4': 1, '5': 13, '8': {}, '10': 'virtualShiftingMode'}, - ], -}; - -/// Descriptor for `TrainerCfgPage`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List trainerCfgPageDescriptor = $convert.base64Decode( - 'Cg5UcmFpbmVyQ2ZnUGFnZRIxCgt0cmFpbmVyTW9kZRgBIAEoDjIPLlpwLlRyYWluZXJNb2RlUg' - 't0cmFpbmVyTW9kZRI5ChRjb25maWd1cmVkUmVzaXN0YW5jZRgCIAEoDUIFkj8COBBSFGNvbmZp' - 'Z3VyZWRSZXNpc3RhbmNlEiEKCGVyZ1Bvd2VyGAMgASgNQgWSPwI4EFIIZXJnUG93ZXISLwoPYX' - 'ZlcmFnaW5nV2luZG93GAQgASgNQgWSPwI4EFIPYXZlcmFnaW5nV2luZG93EisKDXNpbXVsYXRl' - 'ZFdpbmQYBSABKBFCBZI/AjgQUg1zaW11bGF0ZWRXaW5kEi0KDnNpbXVsYXRlZEdyYWRlGAYgAS' - 'gRQgWSPwI4EFIOc2ltdWxhdGVkR3JhZGUSPQoWc2ltdWxhdGVkUmVhbEdlYXJSYXRpbxgHIAEo' - 'DUIFkj8COBBSFnNpbXVsYXRlZFJlYWxHZWFyUmF0aW8SQwoZc2ltdWxhdGVkVmlydHVhbEdlYX' - 'JSYXRpbxgIIAEoDUIFkj8COBBSGXNpbXVsYXRlZFZpcnR1YWxHZWFyUmF0aW8SJwoLc2ltdWxh' - 'dGVkQ1cYCSABKA1CBZI/AjgQUgtzaW11bGF0ZWRDVxI9ChZzaW11bGF0ZWRXaGVlbERpYW1ldG' - 'VyGAogASgNQgWSPwI4EFIWc2ltdWxhdGVkV2hlZWxEaWFtZXRlchIzChFzaW11bGF0ZWRCaWtl' - 'TWFzcxgLIAEoDUIFkj8COBBSEXNpbXVsYXRlZEJpa2VNYXNzEjUKEnNpbXVsYXRlZFJpZGVyTW' - 'FzcxgMIAEoDUIFkj8COBBSEnNpbXVsYXRlZFJpZGVyTWFzcxIpCgxzaW11bGF0ZWRDUlIYDSAB' - 'KA1CBZI/AjgQUgxzaW11bGF0ZWRDUlISOQoUc2ltdWxhdGVkRnJvbnRhbEFyZWEYDiABKA1CBZ' - 'I/AjgQUhRzaW11bGF0ZWRGcm9udGFsQXJlYRIvCg9zaW11bGF0ZWRFQnJha2UYDyABKA1CBZI/' - 'AjgQUg9zaW11bGF0ZWRFQnJha2USMgoUaGlnaFNwZWVkRGF0YUVuYWJsZWQYECABKAhSFGhpZ2' - 'hTcGVlZERhdGFFbmFibGVkEjoKGGVyZ1Bvd2VyU21vb3RoaW5nRW5hYmxlZBgRIAEoCFIYZXJn' - 'UG93ZXJTbW9vdGhpbmdFbmFibGVkEjcKE3ZpcnR1YWxTaGlmdGluZ01vZGUYEiABKA1CBZI/Aj' - 'gIUhN2aXJ0dWFsU2hpZnRpbmdNb2Rl'); - -@$core.Deprecated('Use trainerGearIndexConfigPageDescriptor instead') -const TrainerGearIndexConfigPage$json = { - '1': 'TrainerGearIndexConfigPage', - '2': [ - {'1': 'frontGearIdx', '3': 1, '4': 1, '5': 13, '8': {}, '10': 'frontGearIdx'}, - {'1': 'frontGearIdxMax', '3': 2, '4': 1, '5': 13, '8': {}, '10': 'frontGearIdxMax'}, - {'1': 'frontGearIdxMin', '3': 3, '4': 1, '5': 13, '8': {}, '10': 'frontGearIdxMin'}, - {'1': 'rearGearIdx', '3': 4, '4': 1, '5': 13, '8': {}, '10': 'rearGearIdx'}, - {'1': 'rearGearIdxMax', '3': 5, '4': 1, '5': 13, '8': {}, '10': 'rearGearIdxMax'}, - {'1': 'rearGearIdxMin', '3': 6, '4': 1, '5': 13, '8': {}, '10': 'rearGearIdxMin'}, - ], -}; - -/// Descriptor for `TrainerGearIndexConfigPage`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List trainerGearIndexConfigPageDescriptor = $convert.base64Decode( - 'ChpUcmFpbmVyR2VhckluZGV4Q29uZmlnUGFnZRIpCgxmcm9udEdlYXJJZHgYASABKA1CBZI/Aj' - 'gIUgxmcm9udEdlYXJJZHgSLwoPZnJvbnRHZWFySWR4TWF4GAIgASgNQgWSPwI4CFIPZnJvbnRH' - 'ZWFySWR4TWF4Ei8KD2Zyb250R2VhcklkeE1pbhgDIAEoDUIFkj8COAhSD2Zyb250R2VhcklkeE' - '1pbhInCgtyZWFyR2VhcklkeBgEIAEoDUIFkj8COAhSC3JlYXJHZWFySWR4Ei0KDnJlYXJHZWFy' - 'SWR4TWF4GAUgASgNQgWSPwI4CFIOcmVhckdlYXJJZHhNYXgSLQoOcmVhckdlYXJJZHhNaW4YBi' - 'ABKA1CBZI/AjgIUg5yZWFyR2VhcklkeE1pbg=='); - -@$core.Deprecated('Use deviceTiltConfigPageDescriptor instead') -const DeviceTiltConfigPage$json = { - '1': 'DeviceTiltConfigPage', - '2': [ - {'1': 'tiltEnabled', '3': 1, '4': 1, '5': 8, '10': 'tiltEnabled'}, - {'1': 'tiltGradientMin', '3': 2, '4': 1, '5': 17, '8': {}, '10': 'tiltGradientMin'}, - {'1': 'tiltGradientMax', '3': 3, '4': 1, '5': 17, '8': {}, '10': 'tiltGradientMax'}, - {'1': 'tiltGradient', '3': 4, '4': 1, '5': 17, '8': {}, '10': 'tiltGradient'}, - ], -}; - -/// Descriptor for `DeviceTiltConfigPage`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List deviceTiltConfigPageDescriptor = $convert.base64Decode( - 'ChREZXZpY2VUaWx0Q29uZmlnUGFnZRIgCgt0aWx0RW5hYmxlZBgBIAEoCFILdGlsdEVuYWJsZW' - 'QSLwoPdGlsdEdyYWRpZW50TWluGAIgASgRQgWSPwI4EFIPdGlsdEdyYWRpZW50TWluEi8KD3Rp' - 'bHRHcmFkaWVudE1heBgDIAEoEUIFkj8COBBSD3RpbHRHcmFkaWVudE1heBIpCgx0aWx0R3JhZG' - 'llbnQYBCABKBFCBZI/AjgQUgx0aWx0R3JhZGllbnQ='); - -@$core.Deprecated('Use controllerInputConfigPageDescriptor instead') -const ControllerInputConfigPage$json = { - '1': 'ControllerInputConfigPage', - '2': [ - {'1': 'supportedDigitalInputs', '3': 1, '4': 1, '5': 13, '10': 'supportedDigitalInputs'}, - {'1': 'supportedAnalogInputs', '3': 2, '4': 1, '5': 13, '8': {}, '10': 'supportedAnalogInputs'}, - {'1': 'analogInputRange', '3': 3, '4': 3, '5': 11, '6': '.Zp.InputAnalogRange', '8': {}, '10': 'analogInputRange'}, - {'1': 'analogDeadZone', '3': 4, '4': 3, '5': 11, '6': '.Zp.InputAnalogDeadzone', '8': {}, '10': 'analogDeadZone'}, - ], -}; - -/// Descriptor for `ControllerInputConfigPage`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List controllerInputConfigPageDescriptor = $convert.base64Decode( - 'ChlDb250cm9sbGVySW5wdXRDb25maWdQYWdlEjYKFnN1cHBvcnRlZERpZ2l0YWxJbnB1dHMYAS' - 'ABKA1SFnN1cHBvcnRlZERpZ2l0YWxJbnB1dHMSOwoVc3VwcG9ydGVkQW5hbG9nSW5wdXRzGAIg' - 'ASgNQgWSPwI4EFIVc3VwcG9ydGVkQW5hbG9nSW5wdXRzEkcKEGFuYWxvZ0lucHV0UmFuZ2UYAy' - 'ADKAsyFC5acC5JbnB1dEFuYWxvZ1JhbmdlQgWSPwIQCFIQYW5hbG9nSW5wdXRSYW5nZRJGCg5h' - 'bmFsb2dEZWFkWm9uZRgEIAMoCzIXLlpwLklucHV0QW5hbG9nRGVhZHpvbmVCBZI/AhAIUg5hbm' - 'Fsb2dEZWFkWm9uZQ=='); - -@$core.Deprecated('Use ipTransportPageDescriptor instead') -const IpTransportPage$json = { - '1': 'IpTransportPage', - '2': [ - {'1': 'ipv4Address', '3': 1, '4': 1, '5': 13, '10': 'ipv4Address'}, - {'1': 'tcpPort', '3': 2, '4': 1, '5': 13, '8': {}, '10': 'tcpPort'}, - ], -}; - -/// Descriptor for `IpTransportPage`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List ipTransportPageDescriptor = $convert.base64Decode( - 'Cg9JcFRyYW5zcG9ydFBhZ2USIAoLaXB2NEFkZHJlc3MYASABKA1SC2lwdjRBZGRyZXNzEh8KB3' - 'RjcFBvcnQYAiABKA1CBZI/AjgQUgd0Y3BQb3J0'); - -@$core.Deprecated('Use wifiConfigurationPageDescriptor instead') -const WifiConfigurationPage$json = { - '1': 'WifiConfigurationPage', - '2': [ - {'1': 'wifiEnabled', '3': 1, '4': 1, '5': 8, '10': 'wifiEnabled'}, - {'1': 'wifiStatus', '3': 2, '4': 1, '5': 13, '8': {}, '10': 'wifiStatus'}, - {'1': 'wifiSsid', '3': 3, '4': 1, '5': 12, '8': {}, '10': 'wifiSsid'}, - {'1': 'wifiBand', '3': 4, '4': 1, '5': 13, '8': {}, '10': 'wifiBand'}, - {'1': 'wifiRssi', '3': 5, '4': 1, '5': 17, '8': {}, '10': 'wifiRssi'}, - {'1': 'wifiRegionCode', '3': 6, '4': 1, '5': 12, '8': {}, '10': 'wifiRegionCode'}, - ], -}; - -/// Descriptor for `WifiConfigurationPage`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List wifiConfigurationPageDescriptor = $convert.base64Decode( - 'ChVXaWZpQ29uZmlndXJhdGlvblBhZ2USIAoLd2lmaUVuYWJsZWQYASABKAhSC3dpZmlFbmFibG' - 'VkEiUKCndpZmlTdGF0dXMYAiABKA1CBZI/AjgIUgp3aWZpU3RhdHVzEiEKCHdpZmlTc2lkGAMg' - 'ASgMQgWSPwIIIFIId2lmaVNzaWQSIQoId2lmaUJhbmQYBCABKA1CBZI/AjgIUgh3aWZpQmFuZB' - 'IhCgh3aWZpUnNzaRgFIAEoEUIFkj8COAhSCHdpZmlSc3NpEi0KDndpZmlSZWdpb25Db2RlGAYg' - 'ASgMQgWSPwIIA1IOd2lmaVJlZ2lvbkNvZGU='); - -@$core.Deprecated('Use sensorRelayDataPageDescriptor instead') -const SensorRelayDataPage$json = { - '1': 'SensorRelayDataPage', - '2': [ - {'1': 'supportedSensors', '3': 1, '4': 3, '5': 13, '8': {}, '10': 'supportedSensors'}, - {'1': 'pairedSensors', '3': 2, '4': 3, '5': 13, '8': {}, '10': 'pairedSensors'}, - ], -}; - -/// Descriptor for `SensorRelayDataPage`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List sensorRelayDataPageDescriptor = $convert.base64Decode( - 'ChNTZW5zb3JSZWxheURhdGFQYWdlEjMKEHN1cHBvcnRlZFNlbnNvcnMYASADKA1CB5I/BBAPOA' - 'hSEHN1cHBvcnRlZFNlbnNvcnMSLQoNcGFpcmVkU2Vuc29ycxgCIAMoDUIHkj8EEA84CFINcGFp' - 'cmVkU2Vuc29ycw=='); - -@$core.Deprecated('Use getDescriptor instead') -const Get$json = { - '1': 'Get', - '2': [ - {'1': 'dataObjectId', '3': 1, '4': 2, '5': 13, '8': {}, '10': 'dataObjectId'}, - ], -}; - -/// Descriptor for `Get`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getDescriptor = $convert.base64Decode( - 'CgNHZXQSKQoMZGF0YU9iamVjdElkGAEgAigNQgWSPwI4EFIMZGF0YU9iamVjdElk'); - -@$core.Deprecated('Use devInfoDescriptor instead') -const DevInfo$json = { - '1': 'DevInfo', - '2': [ - {'1': 'devInfo', '3': 1, '4': 2, '5': 11, '6': '.Zp.DevInfoPage', '10': 'devInfo'}, - ], -}; - -/// Descriptor for `DevInfo`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List devInfoDescriptor = $convert.base64Decode( - 'CgdEZXZJbmZvEikKB2RldkluZm8YASACKAsyDy5acC5EZXZJbmZvUGFnZVIHZGV2SW5mbw=='); - -@$core.Deprecated('Use bleSecurityRequestDescriptor instead') -const BleSecurityRequest$json = { - '1': 'BleSecurityRequest', - '2': [ - {'1': 'startSecureConnection', '3': 1, '4': 1, '5': 8, '9': 0, '10': 'startSecureConnection'}, - ], - '8': [ - {'1': 'request'}, - ], -}; - -/// Descriptor for `BleSecurityRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List bleSecurityRequestDescriptor = $convert.base64Decode( - 'ChJCbGVTZWN1cml0eVJlcXVlc3QSNgoVc3RhcnRTZWN1cmVDb25uZWN0aW9uGAEgASgISABSFX' - 'N0YXJ0U2VjdXJlQ29ubmVjdGlvbkIJCgdyZXF1ZXN0'); - -@$core.Deprecated('Use trainerNotificationDescriptor instead') -const TrainerNotification$json = { - '1': 'TrainerNotification', - '2': [ - {'1': 'power', '3': 1, '4': 2, '5': 13, '8': {}, '10': 'power'}, - {'1': 'cadence', '3': 2, '4': 2, '5': 13, '8': {}, '10': 'cadence'}, - {'1': 'bikeSpeed', '3': 3, '4': 2, '5': 13, '8': {}, '10': 'bikeSpeed'}, - {'1': 'averagedPower', '3': 4, '4': 2, '5': 13, '8': {}, '10': 'averagedPower'}, - {'1': 'wheelSpeed', '3': 5, '4': 2, '5': 13, '8': {}, '10': 'wheelSpeed'}, - {'1': 'calculatedRealGearRatio', '3': 6, '4': 1, '5': 13, '8': {}, '10': 'calculatedRealGearRatio'}, - ], -}; - -/// Descriptor for `TrainerNotification`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List trainerNotificationDescriptor = $convert.base64Decode( - 'ChNUcmFpbmVyTm90aWZpY2F0aW9uEhsKBXBvd2VyGAEgAigNQgWSPwI4EFIFcG93ZXISHwoHY2' - 'FkZW5jZRgCIAIoDUIFkj8COBBSB2NhZGVuY2USIwoJYmlrZVNwZWVkGAMgAigNQgWSPwI4EFIJ' - 'YmlrZVNwZWVkEisKDWF2ZXJhZ2VkUG93ZXIYBCACKA1CBZI/AjgQUg1hdmVyYWdlZFBvd2VyEi' - 'UKCndoZWVsU3BlZWQYBSACKA1CBZI/AjgQUgp3aGVlbFNwZWVkEj8KF2NhbGN1bGF0ZWRSZWFs' - 'R2VhclJhdGlvGAYgASgNQgWSPwI4EFIXY2FsY3VsYXRlZFJlYWxHZWFyUmF0aW8='); - -@$core.Deprecated('Use trainerConfigSetDescriptor instead') -const TrainerConfigSet$json = { - '1': 'TrainerConfigSet', - '2': [ - {'1': 'configuredResistance', '3': 2, '4': 1, '5': 13, '8': {}, '9': 0, '10': 'configuredResistance'}, - {'1': 'ergPower', '3': 3, '4': 1, '5': 13, '8': {}, '9': 0, '10': 'ergPower'}, - {'1': 'envSim', '3': 4, '4': 1, '5': 11, '6': '.Zp.TrainerEnvSim', '9': 0, '10': 'envSim'}, - {'1': 'bikeSim', '3': 5, '4': 1, '5': 11, '6': '.Zp.TrainerBikeSim', '9': 0, '10': 'bikeSim'}, - {'1': 'averagingWindow', '3': 6, '4': 1, '5': 13, '8': {}, '9': 0, '10': 'averagingWindow'}, - {'1': 'trainerOptions', '3': 7, '4': 1, '5': 11, '6': '.Zp.TrainerOptions', '9': 0, '10': 'trainerOptions'}, - ], - '8': [ - {'1': 'config'}, - ], - '9': [ - {'1': 1, '2': 2}, - ], -}; - -/// Descriptor for `TrainerConfigSet`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List trainerConfigSetDescriptor = $convert.base64Decode( - 'ChBUcmFpbmVyQ29uZmlnU2V0EjsKFGNvbmZpZ3VyZWRSZXNpc3RhbmNlGAIgASgNQgWSPwI4EE' - 'gAUhRjb25maWd1cmVkUmVzaXN0YW5jZRIjCghlcmdQb3dlchgDIAEoDUIFkj8COBBIAFIIZXJn' - 'UG93ZXISKwoGZW52U2ltGAQgASgLMhEuWnAuVHJhaW5lckVudlNpbUgAUgZlbnZTaW0SLgoHYm' - 'lrZVNpbRgFIAEoCzISLlpwLlRyYWluZXJCaWtlU2ltSABSB2Jpa2VTaW0SMQoPYXZlcmFnaW5n' - 'V2luZG93GAYgASgNQgWSPwI4EEgAUg9hdmVyYWdpbmdXaW5kb3cSPAoOdHJhaW5lck9wdGlvbn' - 'MYByABKAsyEi5acC5UcmFpbmVyT3B0aW9uc0gAUg50cmFpbmVyT3B0aW9uc0IICgZjb25maWdK' - 'BAgBEAI='); - -@$core.Deprecated('Use trainerConfigStatusDescriptor instead') -const TrainerConfigStatus$json = { - '1': 'TrainerConfigStatus', - '2': [ - {'1': 'trainerCfg', '3': 1, '4': 2, '5': 11, '6': '.Zp.TrainerCfgPage', '10': 'trainerCfg'}, - ], -}; - -/// Descriptor for `TrainerConfigStatus`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List trainerConfigStatusDescriptor = $convert.base64Decode( - 'ChNUcmFpbmVyQ29uZmlnU3RhdHVzEjIKCnRyYWluZXJDZmcYASACKAsyEi5acC5UcmFpbmVyQ2' - 'ZnUGFnZVIKdHJhaW5lckNmZw=='); - -@$core.Deprecated('Use devInfoSetDescriptor instead') -const DevInfoSet$json = { - '1': 'DevInfoSet', - '2': [ - {'1': 'deviceName', '3': 1, '4': 1, '5': 12, '8': {}, '9': 0, '10': 'deviceName'}, - ], - '8': [ - {'1': 'devInfo'}, - ], -}; - -/// Descriptor for `DevInfoSet`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List devInfoSetDescriptor = $convert.base64Decode( - 'CgpEZXZJbmZvU2V0EicKCmRldmljZU5hbWUYASABKAxCBZI/AggMSABSCmRldmljZU5hbWVCCQ' - 'oHZGV2SW5mbw=='); - -@$core.Deprecated('Use resetDescriptor instead') -const Reset$json = { - '1': 'Reset', - '2': [ - {'1': 'resetProcedure', '3': 1, '4': 1, '5': 13, '8': {}, '10': 'resetProcedure'}, - ], -}; - -/// Descriptor for `Reset`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List resetDescriptor = $convert.base64Decode( - 'CgVSZXNldBItCg5yZXNldFByb2NlZHVyZRgBIAEoDUIFkj8COAhSDnJlc2V0UHJvY2VkdXJl'); - -@$core.Deprecated('Use batteryNotificationDescriptor instead') -const BatteryNotification$json = { - '1': 'BatteryNotification', - '2': [ - {'1': 'newChgState', '3': 1, '4': 1, '5': 14, '6': '.Zp.ChargingState', '9': 0, '10': 'newChgState'}, - {'1': 'newPercLevel', '3': 2, '4': 1, '5': 13, '8': {}, '9': 0, '10': 'newPercLevel'}, - {'1': 'source', '3': 3, '4': 1, '5': 13, '8': {}, '10': 'source'}, - ], - '8': [ - {'1': 'alert'}, - ], -}; - -/// Descriptor for `BatteryNotification`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List batteryNotificationDescriptor = $convert.base64Decode( - 'ChNCYXR0ZXJ5Tm90aWZpY2F0aW9uEjUKC25ld0NoZ1N0YXRlGAEgASgOMhEuWnAuQ2hhcmdpbm' - 'dTdGF0ZUgAUgtuZXdDaGdTdGF0ZRIrCgxuZXdQZXJjTGV2ZWwYAiABKA1CBZI/AjgISABSDG5l' - 'd1BlcmNMZXZlbBIdCgZzb3VyY2UYAyABKA1CBZI/AjgIUgZzb3VyY2VCBwoFYWxlcnQ='); - -@$core.Deprecated('Use batteryStatusDescriptor instead') -const BatteryStatus$json = { - '1': 'BatteryStatus', - '2': [ - {'1': 'chgState', '3': 1, '4': 2, '5': 14, '6': '.Zp.ChargingState', '10': 'chgState'}, - {'1': 'percLevel', '3': 2, '4': 2, '5': 13, '8': {}, '10': 'percLevel'}, - {'1': 'timeToEmpty', '3': 3, '4': 2, '5': 13, '8': {}, '10': 'timeToEmpty'}, - {'1': 'timeToFull', '3': 4, '4': 2, '5': 13, '8': {}, '10': 'timeToFull'}, - ], -}; - -/// Descriptor for `BatteryStatus`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List batteryStatusDescriptor = $convert.base64Decode( - 'Cg1CYXR0ZXJ5U3RhdHVzEi0KCGNoZ1N0YXRlGAEgAigOMhEuWnAuQ2hhcmdpbmdTdGF0ZVIIY2' - 'hnU3RhdGUSIwoJcGVyY0xldmVsGAIgAigNQgWSPwI4CFIJcGVyY0xldmVsEicKC3RpbWVUb0Vt' - 'cHR5GAMgAigNQgWSPwI4EFILdGltZVRvRW1wdHkSJQoKdGltZVRvRnVsbBgEIAIoDUIFkj8COB' - 'BSCnRpbWVUb0Z1bGw='); - -@$core.Deprecated('Use controllerNotificationDescriptor instead') -const ControllerNotification$json = { - '1': 'ControllerNotification', - '2': [ - {'1': 'buttonEvent', '3': 1, '4': 1, '5': 13, '10': 'buttonEvent'}, - {'1': 'analogEventList', '3': 3, '4': 3, '5': 11, '6': '.Zp.ControllerAnalogEvent', '8': {}, '10': 'analogEventList'}, - ], - '9': [ - {'1': 2, '2': 3}, - ], -}; - -/// Descriptor for `ControllerNotification`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List controllerNotificationDescriptor = $convert.base64Decode( - 'ChZDb250cm9sbGVyTm90aWZpY2F0aW9uEiAKC2J1dHRvbkV2ZW50GAEgASgNUgtidXR0b25Fdm' - 'VudBJKCg9hbmFsb2dFdmVudExpc3QYAyADKAsyGS5acC5Db250cm9sbGVyQW5hbG9nRXZlbnRC' - 'BZI/AhAIUg9hbmFsb2dFdmVudExpc3RKBAgCEAM='); - -@$core.Deprecated('Use logDataNotificationDescriptor instead') -const LogDataNotification$json = { - '1': 'LogDataNotification', - '2': [ - {'1': 'logLevel', '3': 1, '4': 2, '5': 14, '6': '.Zp.LogLevel', '10': 'logLevel'}, - {'1': 'dataLogObject', '3': 2, '4': 2, '5': 11, '6': '.Zp.LogDataNotification.DataLogObject', '10': 'dataLogObject'}, - ], - '3': [LogDataNotification_ConnectionParameters$json, LogDataNotification_EnergySurveySummary$json, LogDataNotification_DataLogObject$json], -}; - -@$core.Deprecated('Use logDataNotificationDescriptor instead') -const LogDataNotification_ConnectionParameters$json = { - '1': 'ConnectionParameters', - '2': [ - {'1': 'interval', '3': 1, '4': 2, '5': 13, '8': {}, '10': 'interval'}, - {'1': 'latency', '3': 2, '4': 2, '5': 13, '8': {}, '10': 'latency'}, - {'1': 'supervisorTimeout', '3': 3, '4': 2, '5': 13, '8': {}, '10': 'supervisorTimeout'}, - {'1': 'bleChannelMap', '3': 4, '4': 2, '5': 12, '8': {}, '10': 'bleChannelMap'}, - {'1': 'mtuSize', '3': 5, '4': 1, '5': 13, '8': {}, '10': 'mtuSize'}, - ], -}; - -@$core.Deprecated('Use logDataNotificationDescriptor instead') -const LogDataNotification_EnergySurveySummary$json = { - '1': 'EnergySurveySummary', - '2': [ - {'1': 'samples', '3': 1, '4': 2, '5': 13, '8': {}, '10': 'samples'}, - {'1': 'averageEnergy', '3': 2, '4': 2, '5': 12, '8': {}, '10': 'averageEnergy'}, - ], -}; - -@$core.Deprecated('Use logDataNotificationDescriptor instead') -const LogDataNotification_DataLogObject$json = { - '1': 'DataLogObject', - '2': [ - {'1': 'logData', '3': 1, '4': 1, '5': 12, '8': {}, '9': 0, '10': 'logData'}, - {'1': 'connectionParam', '3': 2, '4': 1, '5': 11, '6': '.Zp.LogDataNotification.ConnectionParameters', '9': 0, '10': 'connectionParam'}, - {'1': 'energySurvey', '3': 3, '4': 1, '5': 11, '6': '.Zp.LogDataNotification.EnergySurveySummary', '9': 0, '10': 'energySurvey'}, - {'1': 'logString', '3': 4, '4': 1, '5': 12, '8': {}, '9': 0, '10': 'logString'}, - ], - '8': [ - {'1': 'event'}, - ], -}; - -/// Descriptor for `LogDataNotification`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List logDataNotificationDescriptor = $convert.base64Decode( - 'ChNMb2dEYXRhTm90aWZpY2F0aW9uEigKCGxvZ0xldmVsGAEgAigOMgwuWnAuTG9nTGV2ZWxSCG' - 'xvZ0xldmVsEksKDWRhdGFMb2dPYmplY3QYAiACKAsyJS5acC5Mb2dEYXRhTm90aWZpY2F0aW9u' - 'LkRhdGFMb2dPYmplY3RSDWRhdGFMb2dPYmplY3Qa3wEKFENvbm5lY3Rpb25QYXJhbWV0ZXJzEi' - 'EKCGludGVydmFsGAEgAigNQgWSPwI4EFIIaW50ZXJ2YWwSHwoHbGF0ZW5jeRgCIAIoDUIFkj8C' - 'OBBSB2xhdGVuY3kSMwoRc3VwZXJ2aXNvclRpbWVvdXQYAyACKA1CBZI/AjgQUhFzdXBlcnZpc2' - '9yVGltZW91dBItCg1ibGVDaGFubmVsTWFwGAQgAigMQgeSPwQIBXgBUg1ibGVDaGFubmVsTWFw' - 'Eh8KB210dVNpemUYBSABKA1CBZI/AjgQUgdtdHVTaXplGmUKE0VuZXJneVN1cnZleVN1bW1hcn' - 'kSHwoHc2FtcGxlcxgBIAIoDUIFkj8COBBSB3NhbXBsZXMSLQoNYXZlcmFnZUVuZXJneRgCIAIo' - 'DEIHkj8ECCh4AVINYXZlcmFnZUVuZXJneRqRAgoNRGF0YUxvZ09iamVjdBIiCgdsb2dEYXRhGA' - 'EgASgMQgaSPwMIgAFIAFIHbG9nRGF0YRJYCg9jb25uZWN0aW9uUGFyYW0YAiABKAsyLC5acC5M' - 'b2dEYXRhTm90aWZpY2F0aW9uLkNvbm5lY3Rpb25QYXJhbWV0ZXJzSABSD2Nvbm5lY3Rpb25QYX' - 'JhbRJRCgxlbmVyZ3lTdXJ2ZXkYAyABKAsyKy5acC5Mb2dEYXRhTm90aWZpY2F0aW9uLkVuZXJn' - 'eVN1cnZleVN1bW1hcnlIAFIMZW5lcmd5U3VydmV5EiYKCWxvZ1N0cmluZxgEIAEoDEIGkj8DCO' - '0BSABSCWxvZ1N0cmluZ0IHCgVldmVudA=='); - -@$core.Deprecated('Use spindownRequestDescriptor instead') -const SpindownRequest$json = { - '1': 'SpindownRequest', - '2': [ - {'1': 'startSpindown', '3': 1, '4': 1, '5': 11, '6': '.Zp.SpindownRequest.StartSpindown', '9': 0, '10': 'startSpindown'}, - {'1': 'ignoreSpindown', '3': 2, '4': 1, '5': 11, '6': '.Zp.SpindownRequest.IgnoreSpindown', '9': 0, '10': 'ignoreSpindown'}, - ], - '3': [SpindownRequest_StartSpindown$json, SpindownRequest_IgnoreSpindown$json], - '8': [ - {'1': 'request'}, - ], -}; - -@$core.Deprecated('Use spindownRequestDescriptor instead') -const SpindownRequest_StartSpindown$json = { - '1': 'StartSpindown', - '2': [ - {'1': 'enable', '3': 1, '4': 2, '5': 8, '10': 'enable'}, - ], -}; - -@$core.Deprecated('Use spindownRequestDescriptor instead') -const SpindownRequest_IgnoreSpindown$json = { - '1': 'IgnoreSpindown', - '2': [ - {'1': 'enable', '3': 1, '4': 2, '5': 8, '10': 'enable'}, - ], -}; - -/// Descriptor for `SpindownRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List spindownRequestDescriptor = $convert.base64Decode( - 'Cg9TcGluZG93blJlcXVlc3QSSQoNc3RhcnRTcGluZG93bhgBIAEoCzIhLlpwLlNwaW5kb3duUm' - 'VxdWVzdC5TdGFydFNwaW5kb3duSABSDXN0YXJ0U3BpbmRvd24STAoOaWdub3JlU3BpbmRvd24Y' - 'AiABKAsyIi5acC5TcGluZG93blJlcXVlc3QuSWdub3JlU3BpbmRvd25IAFIOaWdub3JlU3Bpbm' - 'Rvd24aJwoNU3RhcnRTcGluZG93bhIWCgZlbmFibGUYASACKAhSBmVuYWJsZRooCg5JZ25vcmVT' - 'cGluZG93bhIWCgZlbmFibGUYASACKAhSBmVuYWJsZUIJCgdyZXF1ZXN0'); - -@$core.Deprecated('Use spindownNotificationDescriptor instead') -const SpindownNotification$json = { - '1': 'SpindownNotification', - '2': [ - {'1': 'manualSpindownStatus', '3': 1, '4': 1, '5': 11, '6': '.Zp.SpindownNotification.ManualSpindownStatus', '9': 0, '10': 'manualSpindownStatus'}, - {'1': 'autoSpindownStatus', '3': 2, '4': 1, '5': 11, '6': '.Zp.SpindownNotification.AutoSpindownStatus', '9': 0, '10': 'autoSpindownStatus'}, - ], - '3': [SpindownNotification_ManualSpindownStatus$json, SpindownNotification_AutoSpindownStatus$json], - '8': [ - {'1': 'event'}, - ], -}; - -@$core.Deprecated('Use spindownNotificationDescriptor instead') -const SpindownNotification_ManualSpindownStatus$json = { - '1': 'ManualSpindownStatus', - '2': [ - {'1': 'spindownStatus', '3': 1, '4': 2, '5': 14, '6': '.Zp.SpindownStatus', '10': 'spindownStatus'}, - {'1': 'targetSpeedLow', '3': 2, '4': 1, '5': 13, '8': {}, '10': 'targetSpeedLow'}, - {'1': 'targetSpeedHigh', '3': 3, '4': 1, '5': 13, '8': {}, '10': 'targetSpeedHigh'}, - ], -}; - -@$core.Deprecated('Use spindownNotificationDescriptor instead') -const SpindownNotification_AutoSpindownStatus$json = { - '1': 'AutoSpindownStatus', - '2': [ - {'1': 'completed', '3': 1, '4': 2, '5': 8, '10': 'completed'}, - ], -}; - -/// Descriptor for `SpindownNotification`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List spindownNotificationDescriptor = $convert.base64Decode( - 'ChRTcGluZG93bk5vdGlmaWNhdGlvbhJjChRtYW51YWxTcGluZG93blN0YXR1cxgBIAEoCzItLl' - 'pwLlNwaW5kb3duTm90aWZpY2F0aW9uLk1hbnVhbFNwaW5kb3duU3RhdHVzSABSFG1hbnVhbFNw' - 'aW5kb3duU3RhdHVzEl0KEmF1dG9TcGluZG93blN0YXR1cxgCIAEoCzIrLlpwLlNwaW5kb3duTm' - '90aWZpY2F0aW9uLkF1dG9TcGluZG93blN0YXR1c0gAUhJhdXRvU3BpbmRvd25TdGF0dXMasgEK' - 'FE1hbnVhbFNwaW5kb3duU3RhdHVzEjoKDnNwaW5kb3duU3RhdHVzGAEgAigOMhIuWnAuU3Bpbm' - 'Rvd25TdGF0dXNSDnNwaW5kb3duU3RhdHVzEi0KDnRhcmdldFNwZWVkTG93GAIgASgNQgWSPwI4' - 'EFIOdGFyZ2V0U3BlZWRMb3cSLwoPdGFyZ2V0U3BlZWRIaWdoGAMgASgNQgWSPwI4EFIPdGFyZ2' - 'V0U3BlZWRIaWdoGjIKEkF1dG9TcGluZG93blN0YXR1cxIcCgljb21wbGV0ZWQYASACKAhSCWNv' - 'bXBsZXRlZEIHCgVldmVudA=='); - -@$core.Deprecated('Use getResponseDescriptor instead') -const GetResponse$json = { - '1': 'GetResponse', - '2': [ - {'1': 'dataObjectId', '3': 1, '4': 2, '5': 13, '8': {}, '10': 'dataObjectId'}, - {'1': 'dataObjectData', '3': 2, '4': 1, '5': 12, '8': {}, '10': 'dataObjectData'}, - ], -}; - -/// Descriptor for `GetResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getResponseDescriptor = $convert.base64Decode( - 'CgtHZXRSZXNwb25zZRIpCgxkYXRhT2JqZWN0SWQYASACKA1CBZI/AjgQUgxkYXRhT2JqZWN0SW' - 'QSLgoOZGF0YU9iamVjdERhdGEYAiABKAxCBpI/AwjtAVIOZGF0YU9iamVjdERhdGE='); - -@$core.Deprecated('Use statusResponseDescriptor instead') -const StatusResponse$json = { - '1': 'StatusResponse', - '2': [ - {'1': 'command', '3': 1, '4': 2, '5': 13, '8': {}, '10': 'command'}, - {'1': 'status', '3': 2, '4': 2, '5': 13, '8': {}, '10': 'status'}, - ], -}; - -/// Descriptor for `StatusResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List statusResponseDescriptor = $convert.base64Decode( - 'Cg5TdGF0dXNSZXNwb25zZRIfCgdjb21tYW5kGAEgAigNQgWSPwI4CFIHY29tbWFuZBIdCgZzdG' - 'F0dXMYAiACKA1CBZI/AjgIUgZzdGF0dXM='); - -@$core.Deprecated('Use setDescriptor instead') -const Set$json = { - '1': 'Set', - '2': [ - {'1': 'options', '3': 1, '4': 1, '5': 13, '8': {}, '10': 'options'}, - {'1': 'msgId', '3': 2, '4': 1, '5': 13, '8': {}, '10': 'msgId'}, - {'1': 'devInfo', '3': 3, '4': 1, '5': 11, '6': '.Zp.DevInfoSet', '9': 0, '10': 'devInfo'}, - {'1': 'trainerSimParam', '3': 4, '4': 1, '5': 11, '6': '.Zp.TrainerSimulationParam', '9': 0, '10': 'trainerSimParam'}, - {'1': 'trainerOptions', '3': 5, '4': 1, '5': 11, '6': '.Zp.TrainerOptions', '9': 0, '10': 'trainerOptions'}, - {'1': 'deviceTiltConfig', '3': 6, '4': 1, '5': 11, '6': '.Zp.DeviceTiltConfigPage', '9': 0, '10': 'deviceTiltConfig'}, - {'1': 'controllerInputConfig', '3': 7, '4': 1, '5': 11, '6': '.Zp.ControllerInputConfigPage', '9': 0, '10': 'controllerInputConfig'}, - {'1': 'trainerGearIndexConfig', '3': 8, '4': 1, '5': 11, '6': '.Zp.TrainerGearIndexConfigPage', '9': 0, '10': 'trainerGearIndexConfig'}, - {'1': 'wifiConfig', '3': 10, '4': 1, '5': 11, '6': '.Zp.WifiConfigurationPage', '9': 0, '10': 'wifiConfig'}, - {'1': 'dateTimeConfig', '3': 11, '4': 1, '5': 11, '6': '.Zp.DateTimePage', '9': 0, '10': 'dateTimeConfig'}, - ], - '8': [ - {'1': 'set'}, - ], - '9': [ - {'1': 9, '2': 10}, - ], -}; - -/// Descriptor for `Set`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List setDescriptor = $convert.base64Decode( - 'CgNTZXQSHwoHb3B0aW9ucxgBIAEoDUIFkj8COAhSB29wdGlvbnMSGwoFbXNnSWQYAiABKA1CBZ' - 'I/AjgIUgVtc2dJZBIqCgdkZXZJbmZvGAMgASgLMg4uWnAuRGV2SW5mb1NldEgAUgdkZXZJbmZv' - 'EkYKD3RyYWluZXJTaW1QYXJhbRgEIAEoCzIaLlpwLlRyYWluZXJTaW11bGF0aW9uUGFyYW1IAF' - 'IPdHJhaW5lclNpbVBhcmFtEjwKDnRyYWluZXJPcHRpb25zGAUgASgLMhIuWnAuVHJhaW5lck9w' - 'dGlvbnNIAFIOdHJhaW5lck9wdGlvbnMSRgoQZGV2aWNlVGlsdENvbmZpZxgGIAEoCzIYLlpwLk' - 'RldmljZVRpbHRDb25maWdQYWdlSABSEGRldmljZVRpbHRDb25maWcSVQoVY29udHJvbGxlcklu' - 'cHV0Q29uZmlnGAcgASgLMh0uWnAuQ29udHJvbGxlcklucHV0Q29uZmlnUGFnZUgAUhVjb250cm' - '9sbGVySW5wdXRDb25maWcSWAoWdHJhaW5lckdlYXJJbmRleENvbmZpZxgIIAEoCzIeLlpwLlRy' - 'YWluZXJHZWFySW5kZXhDb25maWdQYWdlSABSFnRyYWluZXJHZWFySW5kZXhDb25maWcSOwoKd2' - 'lmaUNvbmZpZxgKIAEoCzIZLlpwLldpZmlDb25maWd1cmF0aW9uUGFnZUgAUgp3aWZpQ29uZmln' - 'EjoKDmRhdGVUaW1lQ29uZmlnGAsgASgLMhAuWnAuRGF0ZVRpbWVQYWdlSABSDmRhdGVUaW1lQ2' - '9uZmlnQgUKA3NldEoECAkQCg=='); - -@$core.Deprecated('Use setResponseDescriptor instead') -const SetResponse$json = { - '1': 'SetResponse', - '2': [ - {'1': 'status', '3': 1, '4': 1, '5': 13, '8': {}, '10': 'status'}, - {'1': 'msgId', '3': 2, '4': 1, '5': 13, '8': {}, '10': 'msgId'}, - {'1': 'response', '3': 3, '4': 1, '5': 11, '6': '.Zp.SetResponse.Response', '10': 'response'}, - ], - '3': [SetResponse_Response$json], - '9': [ - {'1': 7, '2': 8}, - ], -}; - -@$core.Deprecated('Use setResponseDescriptor instead') -const SetResponse_Response$json = { - '1': 'Response', - '2': [ - {'1': 'devInfo', '3': 1, '4': 1, '5': 11, '6': '.Zp.DevInfoPage', '9': 0, '10': 'devInfo'}, - {'1': 'trainerSimParam', '3': 2, '4': 1, '5': 11, '6': '.Zp.TrainerSimulationParam', '9': 0, '10': 'trainerSimParam'}, - {'1': 'trainerOptions', '3': 3, '4': 1, '5': 11, '6': '.Zp.TrainerOptions', '9': 0, '10': 'trainerOptions'}, - {'1': 'deviceTiltConfig', '3': 4, '4': 1, '5': 11, '6': '.Zp.DeviceTiltConfigPage', '9': 0, '10': 'deviceTiltConfig'}, - {'1': 'controllerInputConfig', '3': 5, '4': 1, '5': 11, '6': '.Zp.ControllerInputConfigPage', '9': 0, '10': 'controllerInputConfig'}, - {'1': 'trainerGearIndexConfig', '3': 6, '4': 1, '5': 11, '6': '.Zp.TrainerGearIndexConfigPage', '9': 0, '10': 'trainerGearIndexConfig'}, - {'1': 'wifiConfig', '3': 8, '4': 1, '5': 11, '6': '.Zp.WifiConfigurationPage', '9': 0, '10': 'wifiConfig'}, - {'1': 'dateTimeConfig', '3': 9, '4': 1, '5': 11, '6': '.Zp.DateTimePage', '9': 0, '10': 'dateTimeConfig'}, - ], - '8': [ - {'1': 'page'}, - ], -}; - -/// Descriptor for `SetResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List setResponseDescriptor = $convert.base64Decode( - 'CgtTZXRSZXNwb25zZRIdCgZzdGF0dXMYASABKA1CBZI/AjgIUgZzdGF0dXMSGwoFbXNnSWQYAi' - 'ABKA1CBZI/AjgIUgVtc2dJZBI0CghyZXNwb25zZRgDIAEoCzIYLlpwLlNldFJlc3BvbnNlLlJl' - 'c3BvbnNlUghyZXNwb25zZRq3BAoIUmVzcG9uc2USKwoHZGV2SW5mbxgBIAEoCzIPLlpwLkRldk' - 'luZm9QYWdlSABSB2RldkluZm8SRgoPdHJhaW5lclNpbVBhcmFtGAIgASgLMhouWnAuVHJhaW5l' - 'clNpbXVsYXRpb25QYXJhbUgAUg90cmFpbmVyU2ltUGFyYW0SPAoOdHJhaW5lck9wdGlvbnMYAy' - 'ABKAsyEi5acC5UcmFpbmVyT3B0aW9uc0gAUg50cmFpbmVyT3B0aW9ucxJGChBkZXZpY2VUaWx0' - 'Q29uZmlnGAQgASgLMhguWnAuRGV2aWNlVGlsdENvbmZpZ1BhZ2VIAFIQZGV2aWNlVGlsdENvbm' - 'ZpZxJVChVjb250cm9sbGVySW5wdXRDb25maWcYBSABKAsyHS5acC5Db250cm9sbGVySW5wdXRD' - 'b25maWdQYWdlSABSFWNvbnRyb2xsZXJJbnB1dENvbmZpZxJYChZ0cmFpbmVyR2VhckluZGV4Q2' - '9uZmlnGAYgASgLMh4uWnAuVHJhaW5lckdlYXJJbmRleENvbmZpZ1BhZ2VIAFIWdHJhaW5lckdl' - 'YXJJbmRleENvbmZpZxI7Cgp3aWZpQ29uZmlnGAggASgLMhkuWnAuV2lmaUNvbmZpZ3VyYXRpb2' - '5QYWdlSABSCndpZmlDb25maWcSOgoOZGF0ZVRpbWVDb25maWcYCSABKAsyEC5acC5EYXRlVGlt' - 'ZVBhZ2VIAFIOZGF0ZVRpbWVDb25maWdCBgoEcGFnZUoECAcQCA=='); - -@$core.Deprecated('Use logLevelSetDescriptor instead') -const LogLevelSet$json = { - '1': 'LogLevelSet', - '2': [ - {'1': 'logLevel', '3': 1, '4': 1, '5': 14, '6': '.Zp.LogLevel', '10': 'logLevel'}, - ], -}; - -/// Descriptor for `LogLevelSet`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List logLevelSetDescriptor = $convert.base64Decode( - 'CgtMb2dMZXZlbFNldBIoCghsb2dMZXZlbBgBIAEoDjIMLlpwLkxvZ0xldmVsUghsb2dMZXZlbA' - '=='); - -@$core.Deprecated('Use dataChangeNotificationDescriptor instead') -const DataChangeNotification$json = { - '1': 'DataChangeNotification', - '2': [ - {'1': 'devInfo', '3': 1, '4': 1, '5': 11, '6': '.Zp.DevInfoPage', '9': 0, '10': 'devInfo'}, - {'1': 'trainerSimParam', '3': 2, '4': 1, '5': 11, '6': '.Zp.TrainerSimulationParam', '9': 0, '10': 'trainerSimParam'}, - {'1': 'trainerOptions', '3': 3, '4': 1, '5': 11, '6': '.Zp.TrainerOptions', '9': 0, '10': 'trainerOptions'}, - {'1': 'deviceTiltConfig', '3': 4, '4': 1, '5': 11, '6': '.Zp.DeviceTiltConfigPage', '9': 0, '10': 'deviceTiltConfig'}, - {'1': 'controllerInputConfig', '3': 5, '4': 1, '5': 11, '6': '.Zp.ControllerInputConfigPage', '9': 0, '10': 'controllerInputConfig'}, - {'1': 'trainerGearIndexConfig', '3': 6, '4': 1, '5': 11, '6': '.Zp.TrainerGearIndexConfigPage', '9': 0, '10': 'trainerGearIndexConfig'}, - {'1': 'wifiConfig', '3': 8, '4': 1, '5': 11, '6': '.Zp.WifiConfigurationPage', '9': 0, '10': 'wifiConfig'}, - {'1': 'deviceUpdatePage', '3': 9, '4': 1, '5': 11, '6': '.Zp.DeviceUpdatePage', '9': 0, '10': 'deviceUpdatePage'}, - {'1': 'dateTimePage', '3': 10, '4': 1, '5': 11, '6': '.Zp.DateTimePage', '9': 0, '10': 'dateTimePage'}, - {'1': 'bleSecurityPage', '3': 11, '4': 1, '5': 11, '6': '.Zp.BleSecurityPage', '9': 0, '10': 'bleSecurityPage'}, - ], - '8': [ - {'1': 'notification'}, - ], - '9': [ - {'1': 7, '2': 8}, - ], -}; - -/// Descriptor for `DataChangeNotification`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List dataChangeNotificationDescriptor = $convert.base64Decode( - 'ChZEYXRhQ2hhbmdlTm90aWZpY2F0aW9uEisKB2RldkluZm8YASABKAsyDy5acC5EZXZJbmZvUG' - 'FnZUgAUgdkZXZJbmZvEkYKD3RyYWluZXJTaW1QYXJhbRgCIAEoCzIaLlpwLlRyYWluZXJTaW11' - 'bGF0aW9uUGFyYW1IAFIPdHJhaW5lclNpbVBhcmFtEjwKDnRyYWluZXJPcHRpb25zGAMgASgLMh' - 'IuWnAuVHJhaW5lck9wdGlvbnNIAFIOdHJhaW5lck9wdGlvbnMSRgoQZGV2aWNlVGlsdENvbmZp' - 'ZxgEIAEoCzIYLlpwLkRldmljZVRpbHRDb25maWdQYWdlSABSEGRldmljZVRpbHRDb25maWcSVQ' - 'oVY29udHJvbGxlcklucHV0Q29uZmlnGAUgASgLMh0uWnAuQ29udHJvbGxlcklucHV0Q29uZmln' - 'UGFnZUgAUhVjb250cm9sbGVySW5wdXRDb25maWcSWAoWdHJhaW5lckdlYXJJbmRleENvbmZpZx' - 'gGIAEoCzIeLlpwLlRyYWluZXJHZWFySW5kZXhDb25maWdQYWdlSABSFnRyYWluZXJHZWFySW5k' - 'ZXhDb25maWcSOwoKd2lmaUNvbmZpZxgIIAEoCzIZLlpwLldpZmlDb25maWd1cmF0aW9uUGFnZU' - 'gAUgp3aWZpQ29uZmlnEkIKEGRldmljZVVwZGF0ZVBhZ2UYCSABKAsyFC5acC5EZXZpY2VVcGRh' - 'dGVQYWdlSABSEGRldmljZVVwZGF0ZVBhZ2USNgoMZGF0ZVRpbWVQYWdlGAogASgLMhAuWnAuRG' - 'F0ZVRpbWVQYWdlSABSDGRhdGVUaW1lUGFnZRI/Cg9ibGVTZWN1cml0eVBhZ2UYCyABKAsyEy5a' - 'cC5CbGVTZWN1cml0eVBhZ2VIAFIPYmxlU2VjdXJpdHlQYWdlQg4KDG5vdGlmaWNhdGlvbkoECA' - 'cQCA=='); - -@$core.Deprecated('Use gameStateNotificationDescriptor instead') -const GameStateNotification$json = { - '1': 'GameStateNotification', - '2': [ - {'1': 'gameSpeed', '3': 1, '4': 1, '5': 11, '6': '.Zp.GameStateNotification.GameSpeed', '9': 0, '10': 'gameSpeed'}, - {'1': 'roadSurface', '3': 2, '4': 1, '5': 11, '6': '.Zp.GameStateNotification.RoadSurface', '9': 0, '10': 'roadSurface'}, - ], - '3': [GameStateNotification_GameSpeed$json, GameStateNotification_RoadSurface$json], - '8': [ - {'1': 'notification'}, - ], -}; - -@$core.Deprecated('Use gameStateNotificationDescriptor instead') -const GameStateNotification_GameSpeed$json = { - '1': 'GameSpeed', - '2': [ - {'1': 'normalisedSpeed', '3': 1, '4': 1, '5': 17, '8': {}, '10': 'normalisedSpeed'}, - {'1': 'speed', '3': 2, '4': 1, '5': 17, '8': {}, '10': 'speed'}, - ], -}; - -@$core.Deprecated('Use gameStateNotificationDescriptor instead') -const GameStateNotification_RoadSurface$json = { - '1': 'RoadSurface', - '2': [ - {'1': 'roadSurfaceType', '3': 1, '4': 1, '5': 14, '6': '.Zp.RoadSurfaceType', '10': 'roadSurfaceType'}, - {'1': 'roughness', '3': 2, '4': 1, '5': 13, '8': {}, '10': 'roughness'}, - ], -}; - -/// Descriptor for `GameStateNotification`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List gameStateNotificationDescriptor = $convert.base64Decode( - 'ChVHYW1lU3RhdGVOb3RpZmljYXRpb24SQwoJZ2FtZVNwZWVkGAEgASgLMiMuWnAuR2FtZVN0YX' - 'RlTm90aWZpY2F0aW9uLkdhbWVTcGVlZEgAUglnYW1lU3BlZWQSSQoLcm9hZFN1cmZhY2UYAiAB' - 'KAsyJS5acC5HYW1lU3RhdGVOb3RpZmljYXRpb24uUm9hZFN1cmZhY2VIAFILcm9hZFN1cmZhY2' - 'UaWQoJR2FtZVNwZWVkEi8KD25vcm1hbGlzZWRTcGVlZBgBIAEoEUIFkj8COAhSD25vcm1hbGlz' - 'ZWRTcGVlZBIbCgVzcGVlZBgCIAEoEUIFkj8COBBSBXNwZWVkGnEKC1JvYWRTdXJmYWNlEj0KD3' - 'JvYWRTdXJmYWNlVHlwZRgBIAEoDjITLlpwLlJvYWRTdXJmYWNlVHlwZVIPcm9hZFN1cmZhY2VU' - 'eXBlEiMKCXJvdWdobmVzcxgCIAEoDUIFkj8COAhSCXJvdWdobmVzc0IOCgxub3RpZmljYXRpb2' - '4='); - -@$core.Deprecated('Use sensorRelayConfigDescriptor instead') -const SensorRelayConfig$json = { - '1': 'SensorRelayConfig', - '2': [ - {'1': 'search', '3': 1, '4': 1, '5': 8, '9': 0, '10': 'search'}, - {'1': 'connect', '3': 2, '4': 1, '5': 13, '8': {}, '9': 0, '10': 'connect'}, - {'1': 'disconnect', '3': 3, '4': 1, '5': 13, '8': {}, '9': 0, '10': 'disconnect'}, - {'1': 'clearAll', '3': 4, '4': 1, '5': 8, '9': 0, '10': 'clearAll'}, - {'1': 'disconnectAll', '3': 5, '4': 1, '5': 8, '9': 0, '10': 'disconnectAll'}, - ], - '8': [ - {'1': 'procedure'}, - ], -}; - -/// Descriptor for `SensorRelayConfig`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List sensorRelayConfigDescriptor = $convert.base64Decode( - 'ChFTZW5zb3JSZWxheUNvbmZpZxIYCgZzZWFyY2gYASABKAhIAFIGc2VhcmNoEiEKB2Nvbm5lY3' - 'QYAiABKA1CBZI/AjgISABSB2Nvbm5lY3QSJwoKZGlzY29ubmVjdBgDIAEoDUIFkj8COAhIAFIK' - 'ZGlzY29ubmVjdBIcCghjbGVhckFsbBgEIAEoCEgAUghjbGVhckFsbBImCg1kaXNjb25uZWN0QW' - 'xsGAUgASgISABSDWRpc2Nvbm5lY3RBbGxCCwoJcHJvY2VkdXJl'); - -@$core.Deprecated('Use sensorRelayGetDescriptor instead') -const SensorRelayGet$json = { - '1': 'SensorRelayGet', - '2': [ - {'1': 'pairedSensorInfo', '3': 1, '4': 1, '5': 13, '8': {}, '9': 0, '10': 'pairedSensorInfo'}, - ], - '8': [ - {'1': 'request'}, - ], -}; - -/// Descriptor for `SensorRelayGet`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List sensorRelayGetDescriptor = $convert.base64Decode( - 'Cg5TZW5zb3JSZWxheUdldBIzChBwYWlyZWRTZW5zb3JJbmZvGAEgASgNQgWSPwI4CEgAUhBwYW' - 'lyZWRTZW5zb3JJbmZvQgkKB3JlcXVlc3Q='); - -@$core.Deprecated('Use sensorRelayResponseDescriptor instead') -const SensorRelayResponse$json = { - '1': 'SensorRelayResponse', - '2': [ - {'1': 'pairedSensorInfoList', '3': 1, '4': 1, '5': 11, '6': '.Zp.SensorInfoList', '9': 0, '10': 'pairedSensorInfoList'}, - ], - '8': [ - {'1': 'response'}, - ], -}; - -/// Descriptor for `SensorRelayResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List sensorRelayResponseDescriptor = $convert.base64Decode( - 'ChNTZW5zb3JSZWxheVJlc3BvbnNlEkgKFHBhaXJlZFNlbnNvckluZm9MaXN0GAEgASgLMhIuWn' - 'AuU2Vuc29ySW5mb0xpc3RIAFIUcGFpcmVkU2Vuc29ySW5mb0xpc3RCCgoIcmVzcG9uc2U='); - -@$core.Deprecated('Use sensorRelayNotificationDescriptor instead') -const SensorRelayNotification$json = { - '1': 'SensorRelayNotification', - '2': [ - {'1': 'newSensor', '3': 1, '4': 1, '5': 11, '6': '.Zp.SensorInfo', '9': 0, '10': 'newSensor'}, - {'1': 'sensorStatus', '3': 2, '4': 1, '5': 11, '6': '.Zp.SensorInfo', '9': 0, '10': 'sensorStatus'}, - ], - '8': [ - {'1': 'notification'}, - ], -}; - -/// Descriptor for `SensorRelayNotification`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List sensorRelayNotificationDescriptor = $convert.base64Decode( - 'ChdTZW5zb3JSZWxheU5vdGlmaWNhdGlvbhIuCgluZXdTZW5zb3IYASABKAsyDi5acC5TZW5zb3' - 'JJbmZvSABSCW5ld1NlbnNvchI0CgxzZW5zb3JTdGF0dXMYAiABKAsyDi5acC5TZW5zb3JJbmZv' - 'SABSDHNlbnNvclN0YXR1c0IOCgxub3RpZmljYXRpb24='); - -@$core.Deprecated('Use hrmDataNotificationDescriptor instead') -const HrmDataNotification$json = { - '1': 'HrmDataNotification', - '2': [ - {'1': 'sensorId', '3': 1, '4': 1, '5': 13, '8': {}, '10': 'sensorId'}, - {'1': 'hrm', '3': 2, '4': 1, '5': 13, '8': {}, '10': 'hrm'}, - {'1': 'energyExpended', '3': 3, '4': 1, '5': 13, '8': {}, '10': 'energyExpended'}, - {'1': 'rrInterval', '3': 4, '4': 3, '5': 13, '8': {}, '10': 'rrInterval'}, - ], -}; - -/// Descriptor for `HrmDataNotification`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List hrmDataNotificationDescriptor = $convert.base64Decode( - 'ChNIcm1EYXRhTm90aWZpY2F0aW9uEiEKCHNlbnNvcklkGAEgASgNQgWSPwI4CFIIc2Vuc29ySW' - 'QSFwoDaHJtGAIgASgNQgWSPwI4EFIDaHJtEi0KDmVuZXJneUV4cGVuZGVkGAMgASgNQgWSPwI4' - 'EFIOZW5lcmd5RXhwZW5kZWQSJQoKcnJJbnRlcnZhbBgEIAMoDUIFkj8CEA9SCnJySW50ZXJ2YW' - 'w='); - -@$core.Deprecated('Use wifiConfigurationRequestDescriptor instead') -const WifiConfigurationRequest$json = { - '1': 'WifiConfigurationRequest', - '2': [ - {'1': 'startScan', '3': 1, '4': 1, '5': 8, '9': 0, '10': 'startScan'}, - {'1': 'connect', '3': 2, '4': 1, '5': 11, '6': '.Zp.WifiNetwork', '9': 0, '10': 'connect'}, - {'1': 'forget', '3': 3, '4': 1, '5': 8, '9': 0, '10': 'forget'}, - {'1': 'setRegionCode', '3': 4, '4': 1, '5': 11, '6': '.Zp.WifiRegionCode', '9': 0, '10': 'setRegionCode'}, - ], - '8': [ - {'1': 'request'}, - ], -}; - -/// Descriptor for `WifiConfigurationRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List wifiConfigurationRequestDescriptor = $convert.base64Decode( - 'ChhXaWZpQ29uZmlndXJhdGlvblJlcXVlc3QSHgoJc3RhcnRTY2FuGAEgASgISABSCXN0YXJ0U2' - 'NhbhIrCgdjb25uZWN0GAIgASgLMg8uWnAuV2lmaU5ldHdvcmtIAFIHY29ubmVjdBIYCgZmb3Jn' - 'ZXQYAyABKAhIAFIGZm9yZ2V0EjoKDXNldFJlZ2lvbkNvZGUYBCABKAsyEi5acC5XaWZpUmVnaW' - '9uQ29kZUgAUg1zZXRSZWdpb25Db2RlQgkKB3JlcXVlc3Q='); - -@$core.Deprecated('Use wifiNotificationDescriptor instead') -const WifiNotification$json = { - '1': 'WifiNotification', - '2': [ - {'1': 'discoveredNetwork', '3': 1, '4': 1, '5': 11, '6': '.Zp.WifiNetworkDetails', '9': 0, '10': 'discoveredNetwork'}, - {'1': 'wifiStatus', '3': 2, '4': 1, '5': 11, '6': '.Zp.WifiNotification.WifiStatus', '9': 0, '10': 'wifiStatus'}, - ], - '3': [WifiNotification_WifiStatus$json], - '8': [ - {'1': 'notification'}, - ], -}; - -@$core.Deprecated('Use wifiNotificationDescriptor instead') -const WifiNotification_WifiStatus$json = { - '1': 'WifiStatus', - '2': [ - {'1': 'wifiStatusCode', '3': 1, '4': 1, '5': 14, '6': '.Zp.WifiStatusCode', '10': 'wifiStatusCode'}, - {'1': 'wifiErrorCode', '3': 2, '4': 1, '5': 14, '6': '.Zp.WifiErrorCode', '10': 'wifiErrorCode'}, - ], -}; - -/// Descriptor for `WifiNotification`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List wifiNotificationDescriptor = $convert.base64Decode( - 'ChBXaWZpTm90aWZpY2F0aW9uEkYKEWRpc2NvdmVyZWROZXR3b3JrGAEgASgLMhYuWnAuV2lmaU' - '5ldHdvcmtEZXRhaWxzSABSEWRpc2NvdmVyZWROZXR3b3JrEkEKCndpZmlTdGF0dXMYAiABKAsy' - 'Hy5acC5XaWZpTm90aWZpY2F0aW9uLldpZmlTdGF0dXNIAFIKd2lmaVN0YXR1cxqBAQoKV2lmaV' - 'N0YXR1cxI6Cg53aWZpU3RhdHVzQ29kZRgBIAEoDjISLlpwLldpZmlTdGF0dXNDb2RlUg53aWZp' - 'U3RhdHVzQ29kZRI3Cg13aWZpRXJyb3JDb2RlGAIgASgOMhEuWnAuV2lmaUVycm9yQ29kZVINd2' - 'lmaUVycm9yQ29kZUIOCgxub3RpZmljYXRpb24='); - -@$core.Deprecated('Use powerDataNotificationDescriptor instead') -const PowerDataNotification$json = { - '1': 'PowerDataNotification', - '2': [ - {'1': 'sensorId', '3': 1, '4': 1, '5': 13, '8': {}, '10': 'sensorId'}, - {'1': 'power', '3': 2, '4': 1, '5': 13, '8': {}, '10': 'power'}, - ], -}; - -/// Descriptor for `PowerDataNotification`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List powerDataNotificationDescriptor = $convert.base64Decode( - 'ChVQb3dlckRhdGFOb3RpZmljYXRpb24SIQoIc2Vuc29ySWQYASABKA1CBZI/AjgIUghzZW5zb3' - 'JJZBIbCgVwb3dlchgCIAEoDUIFkj8COBBSBXBvd2Vy'); - -@$core.Deprecated('Use cadenceDataNotificationDescriptor instead') -const CadenceDataNotification$json = { - '1': 'CadenceDataNotification', - '2': [ - {'1': 'sensorId', '3': 1, '4': 1, '5': 13, '8': {}, '10': 'sensorId'}, - {'1': 'cadence', '3': 2, '4': 1, '5': 13, '8': {}, '10': 'cadence'}, - ], -}; - -/// Descriptor for `CadenceDataNotification`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List cadenceDataNotificationDescriptor = $convert.base64Decode( - 'ChdDYWRlbmNlRGF0YU5vdGlmaWNhdGlvbhIhCghzZW5zb3JJZBgBIAEoDUIFkj8COAhSCHNlbn' - 'NvcklkEh8KB2NhZGVuY2UYAiABKA1CBZI/AjgQUgdjYWRlbmNl'); - -@$core.Deprecated('Use deviceUpdateRequestDescriptor instead') -const DeviceUpdateRequest$json = { - '1': 'DeviceUpdateRequest', - '2': [ - {'1': 'checkForUpdates', '3': 1, '4': 1, '5': 8, '9': 0, '10': 'checkForUpdates'}, - {'1': 'activateUpdates', '3': 2, '4': 1, '5': 8, '9': 0, '10': 'activateUpdates'}, - ], - '8': [ - {'1': 'procedure'}, - ], -}; - -/// Descriptor for `DeviceUpdateRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List deviceUpdateRequestDescriptor = $convert.base64Decode( - 'ChNEZXZpY2VVcGRhdGVSZXF1ZXN0EioKD2NoZWNrRm9yVXBkYXRlcxgBIAEoCEgAUg9jaGVja0' - 'ZvclVwZGF0ZXMSKgoPYWN0aXZhdGVVcGRhdGVzGAIgASgISABSD2FjdGl2YXRlVXBkYXRlc0IL' - 'Cglwcm9jZWR1cmU='); - -@$core.Deprecated('Use relayZpMessageDescriptor instead') -const RelayZpMessage$json = { - '1': 'RelayZpMessage', - '2': [ - {'1': 'relayAssignedId', '3': 1, '4': 1, '5': 13, '8': {}, '10': 'relayAssignedId'}, - {'1': 'payload', '3': 2, '4': 1, '5': 12, '8': {}, '10': 'payload'}, - ], -}; - -/// Descriptor for `RelayZpMessage`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List relayZpMessageDescriptor = $convert.base64Decode( - 'Cg5SZWxheVpwTWVzc2FnZRIvCg9yZWxheUFzc2lnbmVkSWQYASABKA1CBZI/AjgIUg9yZWxheU' - 'Fzc2lnbmVkSWQSIAoHcGF5bG9hZBgCIAEoDEIGkj8DCO4BUgdwYXlsb2Fk'); - diff --git a/lib/bluetooth/devices/zwift/protocol/zp.pbserver.dart b/lib/bluetooth/devices/zwift/protocol/zp.pbserver.dart deleted file mode 100644 index c34f0cfd..00000000 --- a/lib/bluetooth/devices/zwift/protocol/zp.pbserver.dart +++ /dev/null @@ -1,14 +0,0 @@ -// -// Generated code. Do not modify. -// source: zp.proto -// -// @dart = 2.12 - -// 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 'zp.pb.dart'; - diff --git a/lib/bluetooth/devices/zwift/protocol/zp_vendor.pb.dart b/lib/bluetooth/devices/zwift/protocol/zp_vendor.pb.dart deleted file mode 100644 index 664ce39c..00000000 --- a/lib/bluetooth/devices/zwift/protocol/zp_vendor.pb.dart +++ /dev/null @@ -1,896 +0,0 @@ -// -// Generated code. Do not modify. -// source: zp_vendor.proto -// -// @dart = 2.12 - -// 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; - -import 'package:protobuf/protobuf.dart' as $pb; - -import 'zp_vendor.pbenum.dart'; - -export 'zp_vendor.pbenum.dart'; - -class ControllerSync extends $pb.GeneratedMessage { - factory ControllerSync({ - ControllerSyncStatus? status, - $core.int? timeStamp, - }) { - final $result = create(); - if (status != null) { - $result.status = status; - } - if (timeStamp != null) { - $result.timeStamp = timeStamp; - } - return $result; - } - ControllerSync._() : super(); - factory ControllerSync.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ControllerSync.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ControllerSync', package: const $pb.PackageName(_omitMessageNames ? '' : 'com.zwift.protobuf'), createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'status', $pb.PbFieldType.OE, defaultOrMaker: ControllerSyncStatus.NOT_CONNECTED, valueOf: ControllerSyncStatus.valueOf, enumValues: ControllerSyncStatus.values) - ..a<$core.int>(2, _omitFieldNames ? '' : 'timeStamp', $pb.PbFieldType.O3, protoName: 'timeStamp') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ControllerSync clone() => ControllerSync()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ControllerSync copyWith(void Function(ControllerSync) updates) => super.copyWith((message) => updates(message as ControllerSync)) as ControllerSync; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static ControllerSync create() => ControllerSync._(); - ControllerSync createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static ControllerSync getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static ControllerSync? _defaultInstance; - - /// optional in code; proto3 treats as present when non-zero - @$pb.TagNumber(1) - ControllerSyncStatus get status => $_getN(0); - @$pb.TagNumber(1) - set status(ControllerSyncStatus v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasStatus() => $_has(0); - @$pb.TagNumber(1) - void clearStatus() => clearField(1); - - @$pb.TagNumber(2) - $core.int get timeStamp => $_getIZ(1); - @$pb.TagNumber(2) - set timeStamp($core.int v) { $_setSignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasTimeStamp() => $_has(1); - @$pb.TagNumber(2) - void clearTimeStamp() => clearField(2); -} - -class EnableTestMode extends $pb.GeneratedMessage { - factory EnableTestMode({ - $core.bool? enable, - }) { - final $result = create(); - if (enable != null) { - $result.enable = enable; - } - return $result; - } - EnableTestMode._() : super(); - factory EnableTestMode.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory EnableTestMode.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EnableTestMode', package: const $pb.PackageName(_omitMessageNames ? '' : 'com.zwift.protobuf'), createEmptyInstance: create) - ..aOB(1, _omitFieldNames ? '' : 'enable') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - EnableTestMode clone() => EnableTestMode()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - EnableTestMode copyWith(void Function(EnableTestMode) updates) => super.copyWith((message) => updates(message as EnableTestMode)) as EnableTestMode; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static EnableTestMode create() => EnableTestMode._(); - EnableTestMode createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static EnableTestMode getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static EnableTestMode? _defaultInstance; - - @$pb.TagNumber(1) - $core.bool get enable => $_getBF(0); - @$pb.TagNumber(1) - set enable($core.bool v) { $_setBool(0, v); } - @$pb.TagNumber(1) - $core.bool hasEnable() => $_has(0); - @$pb.TagNumber(1) - void clearEnable() => clearField(1); -} - -class PairDevices extends $pb.GeneratedMessage { - factory PairDevices({ - $core.bool? pair, - PairDeviceType? type, - $core.List<$core.int>? deviceId, - }) { - final $result = create(); - if (pair != null) { - $result.pair = pair; - } - if (type != null) { - $result.type = type; - } - if (deviceId != null) { - $result.deviceId = deviceId; - } - return $result; - } - PairDevices._() : super(); - factory PairDevices.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PairDevices.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PairDevices', package: const $pb.PackageName(_omitMessageNames ? '' : 'com.zwift.protobuf'), createEmptyInstance: create) - ..aOB(1, _omitFieldNames ? '' : 'pair') - ..e(2, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: PairDeviceType.BLE, valueOf: PairDeviceType.valueOf, enumValues: PairDeviceType.values) - ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'deviceId', $pb.PbFieldType.OY, protoName: 'deviceId') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - PairDevices clone() => PairDevices()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PairDevices copyWith(void Function(PairDevices) updates) => super.copyWith((message) => updates(message as PairDevices)) as PairDevices; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static PairDevices create() => PairDevices._(); - PairDevices createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static PairDevices getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static PairDevices? _defaultInstance; - - @$pb.TagNumber(1) - $core.bool get pair => $_getBF(0); - @$pb.TagNumber(1) - set pair($core.bool v) { $_setBool(0, v); } - @$pb.TagNumber(1) - $core.bool hasPair() => $_has(0); - @$pb.TagNumber(1) - void clearPair() => clearField(1); - - @$pb.TagNumber(2) - PairDeviceType get type => $_getN(1); - @$pb.TagNumber(2) - set type(PairDeviceType v) { setField(2, v); } - @$pb.TagNumber(2) - $core.bool hasType() => $_has(1); - @$pb.TagNumber(2) - void clearType() => clearField(2); - - @$pb.TagNumber(3) - $core.List<$core.int> get deviceId => $_getN(2); - @$pb.TagNumber(3) - set deviceId($core.List<$core.int> v) { $_setBytes(2, v); } - @$pb.TagNumber(3) - $core.bool hasDeviceId() => $_has(2); - @$pb.TagNumber(3) - void clearDeviceId() => clearField(3); -} - -class DevicePairingDataPage_PairedDevice extends $pb.GeneratedMessage { - factory DevicePairingDataPage_PairedDevice({ - $core.List<$core.int>? device, - }) { - final $result = create(); - if (device != null) { - $result.device = device; - } - return $result; - } - DevicePairingDataPage_PairedDevice._() : super(); - factory DevicePairingDataPage_PairedDevice.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DevicePairingDataPage_PairedDevice.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DevicePairingDataPage.PairedDevice', package: const $pb.PackageName(_omitMessageNames ? '' : 'com.zwift.protobuf'), createEmptyInstance: create) - ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'device', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - DevicePairingDataPage_PairedDevice clone() => DevicePairingDataPage_PairedDevice()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DevicePairingDataPage_PairedDevice copyWith(void Function(DevicePairingDataPage_PairedDevice) updates) => super.copyWith((message) => updates(message as DevicePairingDataPage_PairedDevice)) as DevicePairingDataPage_PairedDevice; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static DevicePairingDataPage_PairedDevice create() => DevicePairingDataPage_PairedDevice._(); - DevicePairingDataPage_PairedDevice createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static DevicePairingDataPage_PairedDevice getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static DevicePairingDataPage_PairedDevice? _defaultInstance; - - @$pb.TagNumber(1) - $core.List<$core.int> get device => $_getN(0); - @$pb.TagNumber(1) - set device($core.List<$core.int> v) { $_setBytes(0, v); } - @$pb.TagNumber(1) - $core.bool hasDevice() => $_has(0); - @$pb.TagNumber(1) - void clearDevice() => clearField(1); -} - -class DevicePairingDataPage extends $pb.GeneratedMessage { - factory DevicePairingDataPage({ - $core.int? devicesCount, - $core.int? pairingStatus, - $core.Iterable? pairingDevList, - }) { - final $result = create(); - if (devicesCount != null) { - $result.devicesCount = devicesCount; - } - if (pairingStatus != null) { - $result.pairingStatus = pairingStatus; - } - if (pairingDevList != null) { - $result.pairingDevList.addAll(pairingDevList); - } - return $result; - } - DevicePairingDataPage._() : super(); - factory DevicePairingDataPage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DevicePairingDataPage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DevicePairingDataPage', package: const $pb.PackageName(_omitMessageNames ? '' : 'com.zwift.protobuf'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'devicesCount', $pb.PbFieldType.O3, protoName: 'devicesCount') - ..a<$core.int>(2, _omitFieldNames ? '' : 'pairingStatus', $pb.PbFieldType.O3, protoName: 'pairingStatus') - ..pc(3, _omitFieldNames ? '' : 'pairingDevList', $pb.PbFieldType.PM, protoName: 'pairingDevList', subBuilder: DevicePairingDataPage_PairedDevice.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - DevicePairingDataPage clone() => DevicePairingDataPage()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DevicePairingDataPage copyWith(void Function(DevicePairingDataPage) updates) => super.copyWith((message) => updates(message as DevicePairingDataPage)) as DevicePairingDataPage; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static DevicePairingDataPage create() => DevicePairingDataPage._(); - DevicePairingDataPage createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static DevicePairingDataPage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static DevicePairingDataPage? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get devicesCount => $_getIZ(0); - @$pb.TagNumber(1) - set devicesCount($core.int v) { $_setSignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasDevicesCount() => $_has(0); - @$pb.TagNumber(1) - void clearDevicesCount() => clearField(1); - - @$pb.TagNumber(2) - $core.int get pairingStatus => $_getIZ(1); - @$pb.TagNumber(2) - set pairingStatus($core.int v) { $_setSignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasPairingStatus() => $_has(1); - @$pb.TagNumber(2) - void clearPairingStatus() => clearField(2); - - @$pb.TagNumber(3) - $core.List get pairingDevList => $_getList(2); -} - -enum SetDfuTest_TestCase { - failedEnterDfu, - failedStartAdvertising, - crcFailure, - notSet -} - -class SetDfuTest extends $pb.GeneratedMessage { - factory SetDfuTest({ - $core.bool? failedEnterDfu, - $core.bool? failedStartAdvertising, - $core.int? crcFailure, - }) { - final $result = create(); - if (failedEnterDfu != null) { - $result.failedEnterDfu = failedEnterDfu; - } - if (failedStartAdvertising != null) { - $result.failedStartAdvertising = failedStartAdvertising; - } - if (crcFailure != null) { - $result.crcFailure = crcFailure; - } - return $result; - } - SetDfuTest._() : super(); - factory SetDfuTest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SetDfuTest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static const $core.Map<$core.int, SetDfuTest_TestCase> _SetDfuTest_TestCaseByTag = { - 1 : SetDfuTest_TestCase.failedEnterDfu, - 2 : SetDfuTest_TestCase.failedStartAdvertising, - 3 : SetDfuTest_TestCase.crcFailure, - 0 : SetDfuTest_TestCase.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SetDfuTest', package: const $pb.PackageName(_omitMessageNames ? '' : 'com.zwift.protobuf'), createEmptyInstance: create) - ..oo(0, [1, 2, 3]) - ..aOB(1, _omitFieldNames ? '' : 'failedEnterDfu', protoName: 'failedEnterDfu') - ..aOB(2, _omitFieldNames ? '' : 'failedStartAdvertising', protoName: 'failedStartAdvertising') - ..a<$core.int>(3, _omitFieldNames ? '' : 'crcFailure', $pb.PbFieldType.O3, protoName: 'crcFailure') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SetDfuTest clone() => SetDfuTest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SetDfuTest copyWith(void Function(SetDfuTest) updates) => super.copyWith((message) => updates(message as SetDfuTest)) as SetDfuTest; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SetDfuTest create() => SetDfuTest._(); - SetDfuTest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SetDfuTest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static SetDfuTest? _defaultInstance; - - SetDfuTest_TestCase whichTestCase() => _SetDfuTest_TestCaseByTag[$_whichOneof(0)]!; - void clearTestCase() => clearField($_whichOneof(0)); - - @$pb.TagNumber(1) - $core.bool get failedEnterDfu => $_getBF(0); - @$pb.TagNumber(1) - set failedEnterDfu($core.bool v) { $_setBool(0, v); } - @$pb.TagNumber(1) - $core.bool hasFailedEnterDfu() => $_has(0); - @$pb.TagNumber(1) - void clearFailedEnterDfu() => clearField(1); - - @$pb.TagNumber(2) - $core.bool get failedStartAdvertising => $_getBF(1); - @$pb.TagNumber(2) - set failedStartAdvertising($core.bool v) { $_setBool(1, v); } - @$pb.TagNumber(2) - $core.bool hasFailedStartAdvertising() => $_has(1); - @$pb.TagNumber(2) - void clearFailedStartAdvertising() => clearField(2); - - @$pb.TagNumber(3) - $core.int get crcFailure => $_getIZ(2); - @$pb.TagNumber(3) - set crcFailure($core.int v) { $_setSignedInt32(2, v); } - @$pb.TagNumber(3) - $core.bool hasCrcFailure() => $_has(2); - @$pb.TagNumber(3) - void clearCrcFailure() => clearField(3); -} - -class SetGearTestData extends $pb.GeneratedMessage { - factory SetGearTestData({ - $core.int? frontGearIdx, - $core.int? rearGearIdx, - }) { - final $result = create(); - if (frontGearIdx != null) { - $result.frontGearIdx = frontGearIdx; - } - if (rearGearIdx != null) { - $result.rearGearIdx = rearGearIdx; - } - return $result; - } - SetGearTestData._() : super(); - factory SetGearTestData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SetGearTestData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SetGearTestData', package: const $pb.PackageName(_omitMessageNames ? '' : 'com.zwift.protobuf'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'frontGearIdx', $pb.PbFieldType.O3, protoName: 'frontGearIdx') - ..a<$core.int>(2, _omitFieldNames ? '' : 'rearGearIdx', $pb.PbFieldType.O3, protoName: 'rearGearIdx') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SetGearTestData clone() => SetGearTestData()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SetGearTestData copyWith(void Function(SetGearTestData) updates) => super.copyWith((message) => updates(message as SetGearTestData)) as SetGearTestData; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SetGearTestData create() => SetGearTestData._(); - SetGearTestData createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SetGearTestData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static SetGearTestData? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get frontGearIdx => $_getIZ(0); - @$pb.TagNumber(1) - set frontGearIdx($core.int v) { $_setSignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasFrontGearIdx() => $_has(0); - @$pb.TagNumber(1) - void clearFrontGearIdx() => clearField(1); - - @$pb.TagNumber(2) - $core.int get rearGearIdx => $_getIZ(1); - @$pb.TagNumber(2) - set rearGearIdx($core.int v) { $_setSignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasRearGearIdx() => $_has(1); - @$pb.TagNumber(2) - void clearRearGearIdx() => clearField(2); -} - -class SetHrmTestData extends $pb.GeneratedMessage { - factory SetHrmTestData({ - $core.bool? hrmPresent, - $core.int? heartRate, - }) { - final $result = create(); - if (hrmPresent != null) { - $result.hrmPresent = hrmPresent; - } - if (heartRate != null) { - $result.heartRate = heartRate; - } - return $result; - } - SetHrmTestData._() : super(); - factory SetHrmTestData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SetHrmTestData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SetHrmTestData', package: const $pb.PackageName(_omitMessageNames ? '' : 'com.zwift.protobuf'), createEmptyInstance: create) - ..aOB(1, _omitFieldNames ? '' : 'hrmPresent', protoName: 'hrmPresent') - ..a<$core.int>(2, _omitFieldNames ? '' : 'heartRate', $pb.PbFieldType.O3, protoName: 'heartRate') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SetHrmTestData clone() => SetHrmTestData()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SetHrmTestData copyWith(void Function(SetHrmTestData) updates) => super.copyWith((message) => updates(message as SetHrmTestData)) as SetHrmTestData; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SetHrmTestData create() => SetHrmTestData._(); - SetHrmTestData createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SetHrmTestData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static SetHrmTestData? _defaultInstance; - - @$pb.TagNumber(1) - $core.bool get hrmPresent => $_getBF(0); - @$pb.TagNumber(1) - set hrmPresent($core.bool v) { $_setBool(0, v); } - @$pb.TagNumber(1) - $core.bool hasHrmPresent() => $_has(0); - @$pb.TagNumber(1) - void clearHrmPresent() => clearField(1); - - @$pb.TagNumber(2) - $core.int get heartRate => $_getIZ(1); - @$pb.TagNumber(2) - set heartRate($core.int v) { $_setSignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasHeartRate() => $_has(1); - @$pb.TagNumber(2) - void clearHeartRate() => clearField(2); -} - -class SetInputDeviceTestData_ControllerAnalogEvent extends $pb.GeneratedMessage { - factory SetInputDeviceTestData_ControllerAnalogEvent({ - $core.int? sensorId, - $core.int? value, - }) { - final $result = create(); - if (sensorId != null) { - $result.sensorId = sensorId; - } - if (value != null) { - $result.value = value; - } - return $result; - } - SetInputDeviceTestData_ControllerAnalogEvent._() : super(); - factory SetInputDeviceTestData_ControllerAnalogEvent.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SetInputDeviceTestData_ControllerAnalogEvent.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SetInputDeviceTestData.ControllerAnalogEvent', package: const $pb.PackageName(_omitMessageNames ? '' : 'com.zwift.protobuf'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'sensorId', $pb.PbFieldType.O3, protoName: 'sensorId') - ..a<$core.int>(2, _omitFieldNames ? '' : 'value', $pb.PbFieldType.O3) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SetInputDeviceTestData_ControllerAnalogEvent clone() => SetInputDeviceTestData_ControllerAnalogEvent()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SetInputDeviceTestData_ControllerAnalogEvent copyWith(void Function(SetInputDeviceTestData_ControllerAnalogEvent) updates) => super.copyWith((message) => updates(message as SetInputDeviceTestData_ControllerAnalogEvent)) as SetInputDeviceTestData_ControllerAnalogEvent; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SetInputDeviceTestData_ControllerAnalogEvent create() => SetInputDeviceTestData_ControllerAnalogEvent._(); - SetInputDeviceTestData_ControllerAnalogEvent createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SetInputDeviceTestData_ControllerAnalogEvent getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static SetInputDeviceTestData_ControllerAnalogEvent? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get sensorId => $_getIZ(0); - @$pb.TagNumber(1) - set sensorId($core.int v) { $_setSignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasSensorId() => $_has(0); - @$pb.TagNumber(1) - void clearSensorId() => clearField(1); - - @$pb.TagNumber(2) - $core.int get value => $_getIZ(1); - @$pb.TagNumber(2) - set value($core.int v) { $_setSignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasValue() => $_has(1); - @$pb.TagNumber(2) - void clearValue() => clearField(2); -} - -class SetInputDeviceTestData extends $pb.GeneratedMessage { - factory SetInputDeviceTestData({ - $core.int? duration, - $core.int? buttonEvent, - $core.Iterable? analogEventList, - }) { - final $result = create(); - if (duration != null) { - $result.duration = duration; - } - if (buttonEvent != null) { - $result.buttonEvent = buttonEvent; - } - if (analogEventList != null) { - $result.analogEventList.addAll(analogEventList); - } - return $result; - } - SetInputDeviceTestData._() : super(); - factory SetInputDeviceTestData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SetInputDeviceTestData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SetInputDeviceTestData', package: const $pb.PackageName(_omitMessageNames ? '' : 'com.zwift.protobuf'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'duration', $pb.PbFieldType.O3) - ..a<$core.int>(2, _omitFieldNames ? '' : 'buttonEvent', $pb.PbFieldType.O3, protoName: 'buttonEvent') - ..pc(3, _omitFieldNames ? '' : 'analogEventList', $pb.PbFieldType.PM, protoName: 'analogEventList', subBuilder: SetInputDeviceTestData_ControllerAnalogEvent.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SetInputDeviceTestData clone() => SetInputDeviceTestData()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SetInputDeviceTestData copyWith(void Function(SetInputDeviceTestData) updates) => super.copyWith((message) => updates(message as SetInputDeviceTestData)) as SetInputDeviceTestData; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SetInputDeviceTestData create() => SetInputDeviceTestData._(); - SetInputDeviceTestData createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SetInputDeviceTestData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static SetInputDeviceTestData? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get duration => $_getIZ(0); - @$pb.TagNumber(1) - set duration($core.int v) { $_setSignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasDuration() => $_has(0); - @$pb.TagNumber(1) - void clearDuration() => clearField(1); - - @$pb.TagNumber(2) - $core.int get buttonEvent => $_getIZ(1); - @$pb.TagNumber(2) - set buttonEvent($core.int v) { $_setSignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasButtonEvent() => $_has(1); - @$pb.TagNumber(2) - void clearButtonEvent() => clearField(2); - - @$pb.TagNumber(3) - $core.List get analogEventList => $_getList(2); -} - -class SetTrainerTestData extends $pb.GeneratedMessage { - factory SetTrainerTestData({ - $core.int? dataMode, - $core.int? interfaces, - TestTrainerData? testTrainerData, - }) { - final $result = create(); - if (dataMode != null) { - $result.dataMode = dataMode; - } - if (interfaces != null) { - $result.interfaces = interfaces; - } - if (testTrainerData != null) { - $result.testTrainerData = testTrainerData; - } - return $result; - } - SetTrainerTestData._() : super(); - factory SetTrainerTestData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SetTrainerTestData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SetTrainerTestData', package: const $pb.PackageName(_omitMessageNames ? '' : 'com.zwift.protobuf'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'dataMode', $pb.PbFieldType.O3, protoName: 'dataMode') - ..a<$core.int>(2, _omitFieldNames ? '' : 'interfaces', $pb.PbFieldType.O3) - ..aOM(3, _omitFieldNames ? '' : 'testTrainerData', protoName: 'testTrainerData', subBuilder: TestTrainerData.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SetTrainerTestData clone() => SetTrainerTestData()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SetTrainerTestData copyWith(void Function(SetTrainerTestData) updates) => super.copyWith((message) => updates(message as SetTrainerTestData)) as SetTrainerTestData; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SetTrainerTestData create() => SetTrainerTestData._(); - SetTrainerTestData createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SetTrainerTestData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static SetTrainerTestData? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get dataMode => $_getIZ(0); - @$pb.TagNumber(1) - set dataMode($core.int v) { $_setSignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasDataMode() => $_has(0); - @$pb.TagNumber(1) - void clearDataMode() => clearField(1); - - @$pb.TagNumber(2) - $core.int get interfaces => $_getIZ(1); - @$pb.TagNumber(2) - set interfaces($core.int v) { $_setSignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasInterfaces() => $_has(1); - @$pb.TagNumber(2) - void clearInterfaces() => clearField(2); - - @$pb.TagNumber(3) - TestTrainerData get testTrainerData => $_getN(2); - @$pb.TagNumber(3) - set testTrainerData(TestTrainerData v) { setField(3, v); } - @$pb.TagNumber(3) - $core.bool hasTestTrainerData() => $_has(2); - @$pb.TagNumber(3) - void clearTestTrainerData() => clearField(3); - @$pb.TagNumber(3) - TestTrainerData ensureTestTrainerData() => $_ensure(2); -} - -class TestTrainerData extends $pb.GeneratedMessage { - factory TestTrainerData({ - $core.int? power, - $core.int? cadence, - $core.int? bikeSpeed, - $core.int? averagedPower, - $core.int? wheelSpeed, - $core.int? calculatedRealGearRatio, - }) { - final $result = create(); - if (power != null) { - $result.power = power; - } - if (cadence != null) { - $result.cadence = cadence; - } - if (bikeSpeed != null) { - $result.bikeSpeed = bikeSpeed; - } - if (averagedPower != null) { - $result.averagedPower = averagedPower; - } - if (wheelSpeed != null) { - $result.wheelSpeed = wheelSpeed; - } - if (calculatedRealGearRatio != null) { - $result.calculatedRealGearRatio = calculatedRealGearRatio; - } - return $result; - } - TestTrainerData._() : super(); - factory TestTrainerData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory TestTrainerData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TestTrainerData', package: const $pb.PackageName(_omitMessageNames ? '' : 'com.zwift.protobuf'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'power', $pb.PbFieldType.O3) - ..a<$core.int>(2, _omitFieldNames ? '' : 'cadence', $pb.PbFieldType.O3) - ..a<$core.int>(3, _omitFieldNames ? '' : 'bikeSpeed', $pb.PbFieldType.O3, protoName: 'bikeSpeed') - ..a<$core.int>(4, _omitFieldNames ? '' : 'averagedPower', $pb.PbFieldType.O3, protoName: 'averagedPower') - ..a<$core.int>(5, _omitFieldNames ? '' : 'wheelSpeed', $pb.PbFieldType.O3, protoName: 'wheelSpeed') - ..a<$core.int>(6, _omitFieldNames ? '' : 'calculatedRealGearRatio', $pb.PbFieldType.O3, protoName: 'calculatedRealGearRatio') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - TestTrainerData clone() => TestTrainerData()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TestTrainerData copyWith(void Function(TestTrainerData) updates) => super.copyWith((message) => updates(message as TestTrainerData)) as TestTrainerData; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static TestTrainerData create() => TestTrainerData._(); - TestTrainerData createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static TestTrainerData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static TestTrainerData? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get power => $_getIZ(0); - @$pb.TagNumber(1) - set power($core.int v) { $_setSignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasPower() => $_has(0); - @$pb.TagNumber(1) - void clearPower() => clearField(1); - - @$pb.TagNumber(2) - $core.int get cadence => $_getIZ(1); - @$pb.TagNumber(2) - set cadence($core.int v) { $_setSignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasCadence() => $_has(1); - @$pb.TagNumber(2) - void clearCadence() => clearField(2); - - @$pb.TagNumber(3) - $core.int get bikeSpeed => $_getIZ(2); - @$pb.TagNumber(3) - set bikeSpeed($core.int v) { $_setSignedInt32(2, v); } - @$pb.TagNumber(3) - $core.bool hasBikeSpeed() => $_has(2); - @$pb.TagNumber(3) - void clearBikeSpeed() => clearField(3); - - @$pb.TagNumber(4) - $core.int get averagedPower => $_getIZ(3); - @$pb.TagNumber(4) - set averagedPower($core.int v) { $_setSignedInt32(3, v); } - @$pb.TagNumber(4) - $core.bool hasAveragedPower() => $_has(3); - @$pb.TagNumber(4) - void clearAveragedPower() => clearField(4); - - @$pb.TagNumber(5) - $core.int get wheelSpeed => $_getIZ(4); - @$pb.TagNumber(5) - set wheelSpeed($core.int v) { $_setSignedInt32(4, v); } - @$pb.TagNumber(5) - $core.bool hasWheelSpeed() => $_has(4); - @$pb.TagNumber(5) - void clearWheelSpeed() => clearField(5); - - @$pb.TagNumber(6) - $core.int get calculatedRealGearRatio => $_getIZ(5); - @$pb.TagNumber(6) - set calculatedRealGearRatio($core.int v) { $_setSignedInt32(5, v); } - @$pb.TagNumber(6) - $core.bool hasCalculatedRealGearRatio() => $_has(5); - @$pb.TagNumber(6) - void clearCalculatedRealGearRatio() => clearField(6); -} - - -const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/bluetooth/devices/zwift/protocol/zp_vendor.pbenum.dart b/lib/bluetooth/devices/zwift/protocol/zp_vendor.pbenum.dart deleted file mode 100644 index a087a0c7..00000000 --- a/lib/bluetooth/devices/zwift/protocol/zp_vendor.pbenum.dart +++ /dev/null @@ -1,101 +0,0 @@ -// -// Generated code. Do not modify. -// source: zp_vendor.proto -// -// @dart = 2.12 - -// 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; - -import 'package:protobuf/protobuf.dart' as $pb; - -class VendorOpcode extends $pb.ProtobufEnum { - static const VendorOpcode UNDEFINED = VendorOpcode._(0, _omitEnumNames ? '' : 'UNDEFINED'); - static const VendorOpcode CONTROLLER_SYNC = VendorOpcode._(1, _omitEnumNames ? '' : 'CONTROLLER_SYNC'); - static const VendorOpcode PAIR_DEVICES = VendorOpcode._(2, _omitEnumNames ? '' : 'PAIR_DEVICES'); - static const VendorOpcode ENABLE_TEST_MODE = VendorOpcode._(65280, _omitEnumNames ? '' : 'ENABLE_TEST_MODE'); - static const VendorOpcode SET_DFU_TEST = VendorOpcode._(65281, _omitEnumNames ? '' : 'SET_DFU_TEST'); - static const VendorOpcode SET_TRAINER_TEST_DATA = VendorOpcode._(65282, _omitEnumNames ? '' : 'SET_TRAINER_TEST_DATA'); - static const VendorOpcode SET_INPUT_DEVICE_TEST_DATA = VendorOpcode._(65283, _omitEnumNames ? '' : 'SET_INPUT_DEVICE_TEST_DATA'); - static const VendorOpcode SET_GEAR_TEST_DATA = VendorOpcode._(65284, _omitEnumNames ? '' : 'SET_GEAR_TEST_DATA'); - static const VendorOpcode SET_HRM_TEST_DATA = VendorOpcode._(65285, _omitEnumNames ? '' : 'SET_HRM_TEST_DATA'); - static const VendorOpcode SET_TEST_DATA = VendorOpcode._(65286, _omitEnumNames ? '' : 'SET_TEST_DATA'); - - static const $core.List values = [ - UNDEFINED, - CONTROLLER_SYNC, - PAIR_DEVICES, - ENABLE_TEST_MODE, - SET_DFU_TEST, - SET_TRAINER_TEST_DATA, - SET_INPUT_DEVICE_TEST_DATA, - SET_GEAR_TEST_DATA, - SET_HRM_TEST_DATA, - SET_TEST_DATA, - ]; - - static final $core.Map<$core.int, VendorOpcode> _byValue = $pb.ProtobufEnum.initByValue(values); - static VendorOpcode? valueOf($core.int value) => _byValue[value]; - - const VendorOpcode._($core.int v, $core.String n) : super(v, n); -} - -class PairDeviceType extends $pb.ProtobufEnum { - static const PairDeviceType BLE = PairDeviceType._(0, _omitEnumNames ? '' : 'BLE'); - static const PairDeviceType ANT = PairDeviceType._(1, _omitEnumNames ? '' : 'ANT'); - - static const $core.List values = [ - BLE, - ANT, - ]; - - static final $core.Map<$core.int, PairDeviceType> _byValue = $pb.ProtobufEnum.initByValue(values); - static PairDeviceType? valueOf($core.int value) => _byValue[value]; - - const PairDeviceType._($core.int v, $core.String n) : super(v, n); -} - -/// Status used by ControllerSync -class ControllerSyncStatus extends $pb.ProtobufEnum { - static const ControllerSyncStatus NOT_CONNECTED = ControllerSyncStatus._(0, _omitEnumNames ? '' : 'NOT_CONNECTED'); - static const ControllerSyncStatus CONNECTED = ControllerSyncStatus._(1, _omitEnumNames ? '' : 'CONNECTED'); - - static const $core.List values = [ - NOT_CONNECTED, - CONNECTED, - ]; - - static final $core.Map<$core.int, ControllerSyncStatus> _byValue = $pb.ProtobufEnum.initByValue(values); - static ControllerSyncStatus? valueOf($core.int value) => _byValue[value]; - - const ControllerSyncStatus._($core.int v, $core.String n) : super(v, n); -} - -/// Looks like “data object / page” IDs used with pairing pages -class VendorDO extends $pb.ProtobufEnum { - static const VendorDO NO_CLUE = VendorDO._(0, _omitEnumNames ? '' : 'NO_CLUE'); - static const VendorDO PAGE_DEVICE_PAIRING = VendorDO._(61440, _omitEnumNames ? '' : 'PAGE_DEVICE_PAIRING'); - static const VendorDO DEVICE_COUNT = VendorDO._(61441, _omitEnumNames ? '' : 'DEVICE_COUNT'); - static const VendorDO PAIRING_STATUS = VendorDO._(61442, _omitEnumNames ? '' : 'PAIRING_STATUS'); - static const VendorDO PAIRED_DEVICE = VendorDO._(61443, _omitEnumNames ? '' : 'PAIRED_DEVICE'); - - static const $core.List values = [ - NO_CLUE, - PAGE_DEVICE_PAIRING, - DEVICE_COUNT, - PAIRING_STATUS, - PAIRED_DEVICE, - ]; - - static final $core.Map<$core.int, VendorDO> _byValue = $pb.ProtobufEnum.initByValue(values); - static VendorDO? valueOf($core.int value) => _byValue[value]; - - const VendorDO._($core.int v, $core.String n) : super(v, n); -} - - -const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/lib/bluetooth/devices/zwift/protocol/zp_vendor.pbjson.dart b/lib/bluetooth/devices/zwift/protocol/zp_vendor.pbjson.dart deleted file mode 100644 index cb55d70a..00000000 --- a/lib/bluetooth/devices/zwift/protocol/zp_vendor.pbjson.dart +++ /dev/null @@ -1,267 +0,0 @@ -// -// Generated code. Do not modify. -// source: zp_vendor.proto -// -// @dart = 2.12 - -// 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 vendorOpcodeDescriptor instead') -const VendorOpcode$json = { - '1': 'VendorOpcode', - '2': [ - {'1': 'UNDEFINED', '2': 0}, - {'1': 'CONTROLLER_SYNC', '2': 1}, - {'1': 'PAIR_DEVICES', '2': 2}, - {'1': 'ENABLE_TEST_MODE', '2': 65280}, - {'1': 'SET_DFU_TEST', '2': 65281}, - {'1': 'SET_TRAINER_TEST_DATA', '2': 65282}, - {'1': 'SET_INPUT_DEVICE_TEST_DATA', '2': 65283}, - {'1': 'SET_GEAR_TEST_DATA', '2': 65284}, - {'1': 'SET_HRM_TEST_DATA', '2': 65285}, - {'1': 'SET_TEST_DATA', '2': 65286}, - ], -}; - -/// Descriptor for `VendorOpcode`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List vendorOpcodeDescriptor = $convert.base64Decode( - 'CgxWZW5kb3JPcGNvZGUSDQoJVU5ERUZJTkVEEAASEwoPQ09OVFJPTExFUl9TWU5DEAESEAoMUE' - 'FJUl9ERVZJQ0VTEAISFgoQRU5BQkxFX1RFU1RfTU9ERRCA/gMSEgoMU0VUX0RGVV9URVNUEIH+' - 'AxIbChVTRVRfVFJBSU5FUl9URVNUX0RBVEEQgv4DEiAKGlNFVF9JTlBVVF9ERVZJQ0VfVEVTVF' - '9EQVRBEIP+AxIYChJTRVRfR0VBUl9URVNUX0RBVEEQhP4DEhcKEVNFVF9IUk1fVEVTVF9EQVRB' - 'EIX+AxITCg1TRVRfVEVTVF9EQVRBEIb+Aw=='); - -@$core.Deprecated('Use pairDeviceTypeDescriptor instead') -const PairDeviceType$json = { - '1': 'PairDeviceType', - '2': [ - {'1': 'BLE', '2': 0}, - {'1': 'ANT', '2': 1}, - ], -}; - -/// Descriptor for `PairDeviceType`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List pairDeviceTypeDescriptor = $convert.base64Decode( - 'Cg5QYWlyRGV2aWNlVHlwZRIHCgNCTEUQABIHCgNBTlQQAQ=='); - -@$core.Deprecated('Use controllerSyncStatusDescriptor instead') -const ControllerSyncStatus$json = { - '1': 'ControllerSyncStatus', - '2': [ - {'1': 'NOT_CONNECTED', '2': 0}, - {'1': 'CONNECTED', '2': 1}, - ], -}; - -/// Descriptor for `ControllerSyncStatus`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List controllerSyncStatusDescriptor = $convert.base64Decode( - 'ChRDb250cm9sbGVyU3luY1N0YXR1cxIRCg1OT1RfQ09OTkVDVEVEEAASDQoJQ09OTkVDVEVEEA' - 'E='); - -@$core.Deprecated('Use vendorDODescriptor instead') -const VendorDO$json = { - '1': 'VendorDO', - '2': [ - {'1': 'NO_CLUE', '2': 0}, - {'1': 'PAGE_DEVICE_PAIRING', '2': 61440}, - {'1': 'DEVICE_COUNT', '2': 61441}, - {'1': 'PAIRING_STATUS', '2': 61442}, - {'1': 'PAIRED_DEVICE', '2': 61443}, - ], -}; - -/// Descriptor for `VendorDO`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List vendorDODescriptor = $convert.base64Decode( - 'CghWZW5kb3JETxILCgdOT19DTFVFEAASGQoTUEFHRV9ERVZJQ0VfUEFJUklORxCA4AMSEgoMRE' - 'VWSUNFX0NPVU5UEIHgAxIUCg5QQUlSSU5HX1NUQVRVUxCC4AMSEwoNUEFJUkVEX0RFVklDRRCD' - '4AM='); - -@$core.Deprecated('Use controllerSyncDescriptor instead') -const ControllerSync$json = { - '1': 'ControllerSync', - '2': [ - {'1': 'status', '3': 1, '4': 1, '5': 14, '6': '.com.zwift.protobuf.ControllerSyncStatus', '10': 'status'}, - {'1': 'timeStamp', '3': 2, '4': 1, '5': 5, '10': 'timeStamp'}, - ], -}; - -/// Descriptor for `ControllerSync`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List controllerSyncDescriptor = $convert.base64Decode( - 'Cg5Db250cm9sbGVyU3luYxJACgZzdGF0dXMYASABKA4yKC5jb20uendpZnQucHJvdG9idWYuQ2' - '9udHJvbGxlclN5bmNTdGF0dXNSBnN0YXR1cxIcCgl0aW1lU3RhbXAYAiABKAVSCXRpbWVTdGFt' - 'cA=='); - -@$core.Deprecated('Use enableTestModeDescriptor instead') -const EnableTestMode$json = { - '1': 'EnableTestMode', - '2': [ - {'1': 'enable', '3': 1, '4': 1, '5': 8, '10': 'enable'}, - ], -}; - -/// Descriptor for `EnableTestMode`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List enableTestModeDescriptor = $convert.base64Decode( - 'Cg5FbmFibGVUZXN0TW9kZRIWCgZlbmFibGUYASABKAhSBmVuYWJsZQ=='); - -@$core.Deprecated('Use pairDevicesDescriptor instead') -const PairDevices$json = { - '1': 'PairDevices', - '2': [ - {'1': 'pair', '3': 1, '4': 1, '5': 8, '10': 'pair'}, - {'1': 'type', '3': 2, '4': 1, '5': 14, '6': '.com.zwift.protobuf.PairDeviceType', '10': 'type'}, - {'1': 'deviceId', '3': 3, '4': 1, '5': 12, '10': 'deviceId'}, - ], -}; - -/// Descriptor for `PairDevices`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List pairDevicesDescriptor = $convert.base64Decode( - 'CgtQYWlyRGV2aWNlcxISCgRwYWlyGAEgASgIUgRwYWlyEjYKBHR5cGUYAiABKA4yIi5jb20uen' - 'dpZnQucHJvdG9idWYuUGFpckRldmljZVR5cGVSBHR5cGUSGgoIZGV2aWNlSWQYAyABKAxSCGRl' - 'dmljZUlk'); - -@$core.Deprecated('Use devicePairingDataPageDescriptor instead') -const DevicePairingDataPage$json = { - '1': 'DevicePairingDataPage', - '2': [ - {'1': 'devicesCount', '3': 1, '4': 1, '5': 5, '10': 'devicesCount'}, - {'1': 'pairingStatus', '3': 2, '4': 1, '5': 5, '10': 'pairingStatus'}, - {'1': 'pairingDevList', '3': 3, '4': 3, '5': 11, '6': '.com.zwift.protobuf.DevicePairingDataPage.PairedDevice', '10': 'pairingDevList'}, - ], - '3': [DevicePairingDataPage_PairedDevice$json], -}; - -@$core.Deprecated('Use devicePairingDataPageDescriptor instead') -const DevicePairingDataPage_PairedDevice$json = { - '1': 'PairedDevice', - '2': [ - {'1': 'device', '3': 1, '4': 1, '5': 12, '10': 'device'}, - ], -}; - -/// Descriptor for `DevicePairingDataPage`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List devicePairingDataPageDescriptor = $convert.base64Decode( - 'ChVEZXZpY2VQYWlyaW5nRGF0YVBhZ2USIgoMZGV2aWNlc0NvdW50GAEgASgFUgxkZXZpY2VzQ2' - '91bnQSJAoNcGFpcmluZ1N0YXR1cxgCIAEoBVINcGFpcmluZ1N0YXR1cxJeCg5wYWlyaW5nRGV2' - 'TGlzdBgDIAMoCzI2LmNvbS56d2lmdC5wcm90b2J1Zi5EZXZpY2VQYWlyaW5nRGF0YVBhZ2UuUG' - 'FpcmVkRGV2aWNlUg5wYWlyaW5nRGV2TGlzdBomCgxQYWlyZWREZXZpY2USFgoGZGV2aWNlGAEg' - 'ASgMUgZkZXZpY2U='); - -@$core.Deprecated('Use setDfuTestDescriptor instead') -const SetDfuTest$json = { - '1': 'SetDfuTest', - '2': [ - {'1': 'failedEnterDfu', '3': 1, '4': 1, '5': 8, '9': 0, '10': 'failedEnterDfu'}, - {'1': 'failedStartAdvertising', '3': 2, '4': 1, '5': 8, '9': 0, '10': 'failedStartAdvertising'}, - {'1': 'crcFailure', '3': 3, '4': 1, '5': 5, '9': 0, '10': 'crcFailure'}, - ], - '8': [ - {'1': 'test_case'}, - ], -}; - -/// Descriptor for `SetDfuTest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List setDfuTestDescriptor = $convert.base64Decode( - 'CgpTZXREZnVUZXN0EigKDmZhaWxlZEVudGVyRGZ1GAEgASgISABSDmZhaWxlZEVudGVyRGZ1Ej' - 'gKFmZhaWxlZFN0YXJ0QWR2ZXJ0aXNpbmcYAiABKAhIAFIWZmFpbGVkU3RhcnRBZHZlcnRpc2lu' - 'ZxIgCgpjcmNGYWlsdXJlGAMgASgFSABSCmNyY0ZhaWx1cmVCCwoJdGVzdF9jYXNl'); - -@$core.Deprecated('Use setGearTestDataDescriptor instead') -const SetGearTestData$json = { - '1': 'SetGearTestData', - '2': [ - {'1': 'frontGearIdx', '3': 1, '4': 1, '5': 5, '10': 'frontGearIdx'}, - {'1': 'rearGearIdx', '3': 2, '4': 1, '5': 5, '10': 'rearGearIdx'}, - ], -}; - -/// Descriptor for `SetGearTestData`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List setGearTestDataDescriptor = $convert.base64Decode( - 'Cg9TZXRHZWFyVGVzdERhdGESIgoMZnJvbnRHZWFySWR4GAEgASgFUgxmcm9udEdlYXJJZHgSIA' - 'oLcmVhckdlYXJJZHgYAiABKAVSC3JlYXJHZWFySWR4'); - -@$core.Deprecated('Use setHrmTestDataDescriptor instead') -const SetHrmTestData$json = { - '1': 'SetHrmTestData', - '2': [ - {'1': 'hrmPresent', '3': 1, '4': 1, '5': 8, '10': 'hrmPresent'}, - {'1': 'heartRate', '3': 2, '4': 1, '5': 5, '10': 'heartRate'}, - ], -}; - -/// Descriptor for `SetHrmTestData`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List setHrmTestDataDescriptor = $convert.base64Decode( - 'Cg5TZXRIcm1UZXN0RGF0YRIeCgpocm1QcmVzZW50GAEgASgIUgpocm1QcmVzZW50EhwKCWhlYX' - 'J0UmF0ZRgCIAEoBVIJaGVhcnRSYXRl'); - -@$core.Deprecated('Use setInputDeviceTestDataDescriptor instead') -const SetInputDeviceTestData$json = { - '1': 'SetInputDeviceTestData', - '2': [ - {'1': 'duration', '3': 1, '4': 1, '5': 5, '10': 'duration'}, - {'1': 'buttonEvent', '3': 2, '4': 1, '5': 5, '10': 'buttonEvent'}, - {'1': 'analogEventList', '3': 3, '4': 3, '5': 11, '6': '.com.zwift.protobuf.SetInputDeviceTestData.ControllerAnalogEvent', '10': 'analogEventList'}, - ], - '3': [SetInputDeviceTestData_ControllerAnalogEvent$json], -}; - -@$core.Deprecated('Use setInputDeviceTestDataDescriptor instead') -const SetInputDeviceTestData_ControllerAnalogEvent$json = { - '1': 'ControllerAnalogEvent', - '2': [ - {'1': 'sensorId', '3': 1, '4': 1, '5': 5, '10': 'sensorId'}, - {'1': 'value', '3': 2, '4': 1, '5': 5, '10': 'value'}, - ], -}; - -/// Descriptor for `SetInputDeviceTestData`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List setInputDeviceTestDataDescriptor = $convert.base64Decode( - 'ChZTZXRJbnB1dERldmljZVRlc3REYXRhEhoKCGR1cmF0aW9uGAEgASgFUghkdXJhdGlvbhIgCg' - 'tidXR0b25FdmVudBgCIAEoBVILYnV0dG9uRXZlbnQSagoPYW5hbG9nRXZlbnRMaXN0GAMgAygL' - 'MkAuY29tLnp3aWZ0LnByb3RvYnVmLlNldElucHV0RGV2aWNlVGVzdERhdGEuQ29udHJvbGxlck' - 'FuYWxvZ0V2ZW50Ug9hbmFsb2dFdmVudExpc3QaSQoVQ29udHJvbGxlckFuYWxvZ0V2ZW50EhoK' - 'CHNlbnNvcklkGAEgASgFUghzZW5zb3JJZBIUCgV2YWx1ZRgCIAEoBVIFdmFsdWU='); - -@$core.Deprecated('Use setTrainerTestDataDescriptor instead') -const SetTrainerTestData$json = { - '1': 'SetTrainerTestData', - '2': [ - {'1': 'dataMode', '3': 1, '4': 1, '5': 5, '10': 'dataMode'}, - {'1': 'interfaces', '3': 2, '4': 1, '5': 5, '10': 'interfaces'}, - {'1': 'testTrainerData', '3': 3, '4': 1, '5': 11, '6': '.com.zwift.protobuf.TestTrainerData', '10': 'testTrainerData'}, - ], -}; - -/// Descriptor for `SetTrainerTestData`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List setTrainerTestDataDescriptor = $convert.base64Decode( - 'ChJTZXRUcmFpbmVyVGVzdERhdGESGgoIZGF0YU1vZGUYASABKAVSCGRhdGFNb2RlEh4KCmludG' - 'VyZmFjZXMYAiABKAVSCmludGVyZmFjZXMSTQoPdGVzdFRyYWluZXJEYXRhGAMgASgLMiMuY29t' - 'Lnp3aWZ0LnByb3RvYnVmLlRlc3RUcmFpbmVyRGF0YVIPdGVzdFRyYWluZXJEYXRh'); - -@$core.Deprecated('Use testTrainerDataDescriptor instead') -const TestTrainerData$json = { - '1': 'TestTrainerData', - '2': [ - {'1': 'power', '3': 1, '4': 1, '5': 5, '10': 'power'}, - {'1': 'cadence', '3': 2, '4': 1, '5': 5, '10': 'cadence'}, - {'1': 'bikeSpeed', '3': 3, '4': 1, '5': 5, '10': 'bikeSpeed'}, - {'1': 'averagedPower', '3': 4, '4': 1, '5': 5, '10': 'averagedPower'}, - {'1': 'wheelSpeed', '3': 5, '4': 1, '5': 5, '10': 'wheelSpeed'}, - {'1': 'calculatedRealGearRatio', '3': 6, '4': 1, '5': 5, '10': 'calculatedRealGearRatio'}, - ], -}; - -/// Descriptor for `TestTrainerData`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List testTrainerDataDescriptor = $convert.base64Decode( - 'Cg9UZXN0VHJhaW5lckRhdGESFAoFcG93ZXIYASABKAVSBXBvd2VyEhgKB2NhZGVuY2UYAiABKA' - 'VSB2NhZGVuY2USHAoJYmlrZVNwZWVkGAMgASgFUgliaWtlU3BlZWQSJAoNYXZlcmFnZWRQb3dl' - 'chgEIAEoBVINYXZlcmFnZWRQb3dlchIeCgp3aGVlbFNwZWVkGAUgASgFUgp3aGVlbFNwZWVkEj' - 'gKF2NhbGN1bGF0ZWRSZWFsR2VhclJhdGlvGAYgASgFUhdjYWxjdWxhdGVkUmVhbEdlYXJSYXRp' - 'bw=='); - diff --git a/lib/bluetooth/devices/zwift/protocol/zp_vendor.pbserver.dart b/lib/bluetooth/devices/zwift/protocol/zp_vendor.pbserver.dart deleted file mode 100644 index f57b0a48..00000000 --- a/lib/bluetooth/devices/zwift/protocol/zp_vendor.pbserver.dart +++ /dev/null @@ -1,14 +0,0 @@ -// -// Generated code. Do not modify. -// source: zp_vendor.proto -// -// @dart = 2.12 - -// 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 'zp_vendor.pb.dart'; - diff --git a/lib/bluetooth/devices/zwift/protocol/zwift.pb.dart b/lib/bluetooth/devices/zwift/protocol/zwift.pb.dart deleted file mode 100644 index cb04bea6..00000000 --- a/lib/bluetooth/devices/zwift/protocol/zwift.pb.dart +++ /dev/null @@ -1,965 +0,0 @@ -// -// Generated code. Do not modify. -// source: zwift.proto -// -// @dart = 2.12 - -// 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; - -import 'package:protobuf/protobuf.dart' as $pb; - -import 'zwift.pbenum.dart'; - -export 'zwift.pbenum.dart'; - -/// The command code prepending this message is 0x07 -class PlayKeyPadStatus extends $pb.GeneratedMessage { - factory PlayKeyPadStatus({ - PlayButtonStatus? rightPad, - PlayButtonStatus? buttonYUp, - PlayButtonStatus? buttonZLeft, - PlayButtonStatus? buttonARight, - PlayButtonStatus? buttonBDown, - PlayButtonStatus? buttonShift, - PlayButtonStatus? buttonOn, - $core.int? analogLR, - $core.int? analogUD, - }) { - final $result = create(); - if (rightPad != null) { - $result.rightPad = rightPad; - } - if (buttonYUp != null) { - $result.buttonYUp = buttonYUp; - } - if (buttonZLeft != null) { - $result.buttonZLeft = buttonZLeft; - } - if (buttonARight != null) { - $result.buttonARight = buttonARight; - } - if (buttonBDown != null) { - $result.buttonBDown = buttonBDown; - } - if (buttonShift != null) { - $result.buttonShift = buttonShift; - } - if (buttonOn != null) { - $result.buttonOn = buttonOn; - } - if (analogLR != null) { - $result.analogLR = analogLR; - } - if (analogUD != null) { - $result.analogUD = analogUD; - } - return $result; - } - PlayKeyPadStatus._() : super(); - factory PlayKeyPadStatus.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PlayKeyPadStatus.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PlayKeyPadStatus', package: const $pb.PackageName(_omitMessageNames ? '' : 'de.jonasbark'), createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'RightPad', $pb.PbFieldType.OE, protoName: 'RightPad', defaultOrMaker: PlayButtonStatus.ON, valueOf: PlayButtonStatus.valueOf, enumValues: PlayButtonStatus.values) - ..e(2, _omitFieldNames ? '' : 'ButtonYUp', $pb.PbFieldType.OE, protoName: 'Button_Y_Up', defaultOrMaker: PlayButtonStatus.ON, valueOf: PlayButtonStatus.valueOf, enumValues: PlayButtonStatus.values) - ..e(3, _omitFieldNames ? '' : 'ButtonZLeft', $pb.PbFieldType.OE, protoName: 'Button_Z_Left', defaultOrMaker: PlayButtonStatus.ON, valueOf: PlayButtonStatus.valueOf, enumValues: PlayButtonStatus.values) - ..e(4, _omitFieldNames ? '' : 'ButtonARight', $pb.PbFieldType.OE, protoName: 'Button_A_Right', defaultOrMaker: PlayButtonStatus.ON, valueOf: PlayButtonStatus.valueOf, enumValues: PlayButtonStatus.values) - ..e(5, _omitFieldNames ? '' : 'ButtonBDown', $pb.PbFieldType.OE, protoName: 'Button_B_Down', defaultOrMaker: PlayButtonStatus.ON, valueOf: PlayButtonStatus.valueOf, enumValues: PlayButtonStatus.values) - ..e(6, _omitFieldNames ? '' : 'ButtonShift', $pb.PbFieldType.OE, protoName: 'Button_Shift', defaultOrMaker: PlayButtonStatus.ON, valueOf: PlayButtonStatus.valueOf, enumValues: PlayButtonStatus.values) - ..e(7, _omitFieldNames ? '' : 'ButtonOn', $pb.PbFieldType.OE, protoName: 'Button_On', defaultOrMaker: PlayButtonStatus.ON, valueOf: PlayButtonStatus.valueOf, enumValues: PlayButtonStatus.values) - ..a<$core.int>(8, _omitFieldNames ? '' : 'AnalogLR', $pb.PbFieldType.OS3, protoName: 'Analog_LR') - ..a<$core.int>(9, _omitFieldNames ? '' : 'AnalogUD', $pb.PbFieldType.OS3, protoName: 'Analog_UD') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - PlayKeyPadStatus clone() => PlayKeyPadStatus()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PlayKeyPadStatus copyWith(void Function(PlayKeyPadStatus) updates) => super.copyWith((message) => updates(message as PlayKeyPadStatus)) as PlayKeyPadStatus; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static PlayKeyPadStatus create() => PlayKeyPadStatus._(); - PlayKeyPadStatus createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static PlayKeyPadStatus getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static PlayKeyPadStatus? _defaultInstance; - - @$pb.TagNumber(1) - PlayButtonStatus get rightPad => $_getN(0); - @$pb.TagNumber(1) - set rightPad(PlayButtonStatus v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasRightPad() => $_has(0); - @$pb.TagNumber(1) - void clearRightPad() => clearField(1); - - @$pb.TagNumber(2) - PlayButtonStatus get buttonYUp => $_getN(1); - @$pb.TagNumber(2) - set buttonYUp(PlayButtonStatus v) { setField(2, v); } - @$pb.TagNumber(2) - $core.bool hasButtonYUp() => $_has(1); - @$pb.TagNumber(2) - void clearButtonYUp() => clearField(2); - - @$pb.TagNumber(3) - PlayButtonStatus get buttonZLeft => $_getN(2); - @$pb.TagNumber(3) - set buttonZLeft(PlayButtonStatus v) { setField(3, v); } - @$pb.TagNumber(3) - $core.bool hasButtonZLeft() => $_has(2); - @$pb.TagNumber(3) - void clearButtonZLeft() => clearField(3); - - @$pb.TagNumber(4) - PlayButtonStatus get buttonARight => $_getN(3); - @$pb.TagNumber(4) - set buttonARight(PlayButtonStatus v) { setField(4, v); } - @$pb.TagNumber(4) - $core.bool hasButtonARight() => $_has(3); - @$pb.TagNumber(4) - void clearButtonARight() => clearField(4); - - @$pb.TagNumber(5) - PlayButtonStatus get buttonBDown => $_getN(4); - @$pb.TagNumber(5) - set buttonBDown(PlayButtonStatus v) { setField(5, v); } - @$pb.TagNumber(5) - $core.bool hasButtonBDown() => $_has(4); - @$pb.TagNumber(5) - void clearButtonBDown() => clearField(5); - - @$pb.TagNumber(6) - PlayButtonStatus get buttonShift => $_getN(5); - @$pb.TagNumber(6) - set buttonShift(PlayButtonStatus v) { setField(6, v); } - @$pb.TagNumber(6) - $core.bool hasButtonShift() => $_has(5); - @$pb.TagNumber(6) - void clearButtonShift() => clearField(6); - - @$pb.TagNumber(7) - PlayButtonStatus get buttonOn => $_getN(6); - @$pb.TagNumber(7) - set buttonOn(PlayButtonStatus v) { setField(7, v); } - @$pb.TagNumber(7) - $core.bool hasButtonOn() => $_has(6); - @$pb.TagNumber(7) - void clearButtonOn() => clearField(7); - - @$pb.TagNumber(8) - $core.int get analogLR => $_getIZ(7); - @$pb.TagNumber(8) - set analogLR($core.int v) { $_setSignedInt32(7, v); } - @$pb.TagNumber(8) - $core.bool hasAnalogLR() => $_has(7); - @$pb.TagNumber(8) - void clearAnalogLR() => clearField(8); - - @$pb.TagNumber(9) - $core.int get analogUD => $_getIZ(8); - @$pb.TagNumber(9) - set analogUD($core.int v) { $_setSignedInt32(8, v); } - @$pb.TagNumber(9) - $core.bool hasAnalogUD() => $_has(8); - @$pb.TagNumber(9) - void clearAnalogUD() => clearField(9); -} - -class PlayCommandParameters extends $pb.GeneratedMessage { - factory PlayCommandParameters({ - $core.int? param1, - $core.int? param2, - $core.int? hapticPattern, - }) { - final $result = create(); - if (param1 != null) { - $result.param1 = param1; - } - if (param2 != null) { - $result.param2 = param2; - } - if (hapticPattern != null) { - $result.hapticPattern = hapticPattern; - } - return $result; - } - PlayCommandParameters._() : super(); - factory PlayCommandParameters.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PlayCommandParameters.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PlayCommandParameters', package: const $pb.PackageName(_omitMessageNames ? '' : 'de.jonasbark'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'param1', $pb.PbFieldType.OU3) - ..a<$core.int>(2, _omitFieldNames ? '' : 'param2', $pb.PbFieldType.OU3) - ..a<$core.int>(3, _omitFieldNames ? '' : 'HapticPattern', $pb.PbFieldType.OU3, protoName: 'HapticPattern') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - PlayCommandParameters clone() => PlayCommandParameters()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PlayCommandParameters copyWith(void Function(PlayCommandParameters) updates) => super.copyWith((message) => updates(message as PlayCommandParameters)) as PlayCommandParameters; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static PlayCommandParameters create() => PlayCommandParameters._(); - PlayCommandParameters createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static PlayCommandParameters getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static PlayCommandParameters? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get param1 => $_getIZ(0); - @$pb.TagNumber(1) - set param1($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasParam1() => $_has(0); - @$pb.TagNumber(1) - void clearParam1() => clearField(1); - - @$pb.TagNumber(2) - $core.int get param2 => $_getIZ(1); - @$pb.TagNumber(2) - set param2($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasParam2() => $_has(1); - @$pb.TagNumber(2) - void clearParam2() => clearField(2); - - @$pb.TagNumber(3) - $core.int get hapticPattern => $_getIZ(2); - @$pb.TagNumber(3) - set hapticPattern($core.int v) { $_setUnsignedInt32(2, v); } - @$pb.TagNumber(3) - $core.bool hasHapticPattern() => $_has(2); - @$pb.TagNumber(3) - void clearHapticPattern() => clearField(3); -} - -class PlayCommandContents extends $pb.GeneratedMessage { - factory PlayCommandContents({ - PlayCommandParameters? commandParameters, - }) { - final $result = create(); - if (commandParameters != null) { - $result.commandParameters = commandParameters; - } - return $result; - } - PlayCommandContents._() : super(); - factory PlayCommandContents.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PlayCommandContents.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PlayCommandContents', package: const $pb.PackageName(_omitMessageNames ? '' : 'de.jonasbark'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'CommandParameters', protoName: 'CommandParameters', subBuilder: PlayCommandParameters.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - PlayCommandContents clone() => PlayCommandContents()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PlayCommandContents copyWith(void Function(PlayCommandContents) updates) => super.copyWith((message) => updates(message as PlayCommandContents)) as PlayCommandContents; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static PlayCommandContents create() => PlayCommandContents._(); - PlayCommandContents createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static PlayCommandContents getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static PlayCommandContents? _defaultInstance; - - @$pb.TagNumber(1) - PlayCommandParameters get commandParameters => $_getN(0); - @$pb.TagNumber(1) - set commandParameters(PlayCommandParameters v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasCommandParameters() => $_has(0); - @$pb.TagNumber(1) - void clearCommandParameters() => clearField(1); - @$pb.TagNumber(1) - PlayCommandParameters ensureCommandParameters() => $_ensure(0); -} - -/// The command code prepending this message is 0x12 -/// This is sent to the control point to configure and make the controller vibrate -class PlayCommand extends $pb.GeneratedMessage { - factory PlayCommand({ - PlayCommandContents? commandContents, - }) { - final $result = create(); - if (commandContents != null) { - $result.commandContents = commandContents; - } - return $result; - } - PlayCommand._() : super(); - factory PlayCommand.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PlayCommand.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PlayCommand', package: const $pb.PackageName(_omitMessageNames ? '' : 'de.jonasbark'), createEmptyInstance: create) - ..aOM(2, _omitFieldNames ? '' : 'CommandContents', protoName: 'CommandContents', subBuilder: PlayCommandContents.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - PlayCommand clone() => PlayCommand()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PlayCommand copyWith(void Function(PlayCommand) updates) => super.copyWith((message) => updates(message as PlayCommand)) as PlayCommand; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static PlayCommand create() => PlayCommand._(); - PlayCommand createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static PlayCommand getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static PlayCommand? _defaultInstance; - - @$pb.TagNumber(2) - PlayCommandContents get commandContents => $_getN(0); - @$pb.TagNumber(2) - set commandContents(PlayCommandContents v) { setField(2, v); } - @$pb.TagNumber(2) - $core.bool hasCommandContents() => $_has(0); - @$pb.TagNumber(2) - void clearCommandContents() => clearField(2); - @$pb.TagNumber(2) - PlayCommandContents ensureCommandContents() => $_ensure(0); -} - -/// The command code prepending this message is 0x19 -/// This is sent periodically when there are no button presses -class Idle extends $pb.GeneratedMessage { - factory Idle({ - $core.int? unknown2, - }) { - final $result = create(); - if (unknown2 != null) { - $result.unknown2 = unknown2; - } - return $result; - } - Idle._() : super(); - factory Idle.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Idle.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Idle', package: const $pb.PackageName(_omitMessageNames ? '' : 'de.jonasbark'), createEmptyInstance: create) - ..a<$core.int>(2, _omitFieldNames ? '' : 'Unknown2', $pb.PbFieldType.OU3, protoName: 'Unknown2') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - Idle clone() => Idle()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Idle copyWith(void Function(Idle) updates) => super.copyWith((message) => updates(message as Idle)) as Idle; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static Idle create() => Idle._(); - Idle createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static Idle getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static Idle? _defaultInstance; - - @$pb.TagNumber(2) - $core.int get unknown2 => $_getIZ(0); - @$pb.TagNumber(2) - set unknown2($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(2) - $core.bool hasUnknown2() => $_has(0); - @$pb.TagNumber(2) - void clearUnknown2() => clearField(2); -} - -class RideAnalogKeyPress extends $pb.GeneratedMessage { - factory RideAnalogKeyPress({ - RideAnalogLocation? location, - $core.int? analogValue, - }) { - final $result = create(); - if (location != null) { - $result.location = location; - } - if (analogValue != null) { - $result.analogValue = analogValue; - } - return $result; - } - RideAnalogKeyPress._() : super(); - factory RideAnalogKeyPress.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory RideAnalogKeyPress.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RideAnalogKeyPress', package: const $pb.PackageName(_omitMessageNames ? '' : 'de.jonasbark'), createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'Location', $pb.PbFieldType.OE, protoName: 'Location', defaultOrMaker: RideAnalogLocation.LEFT, valueOf: RideAnalogLocation.valueOf, enumValues: RideAnalogLocation.values) - ..a<$core.int>(2, _omitFieldNames ? '' : 'AnalogValue', $pb.PbFieldType.OS3, protoName: 'AnalogValue') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - RideAnalogKeyPress clone() => RideAnalogKeyPress()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - RideAnalogKeyPress copyWith(void Function(RideAnalogKeyPress) updates) => super.copyWith((message) => updates(message as RideAnalogKeyPress)) as RideAnalogKeyPress; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static RideAnalogKeyPress create() => RideAnalogKeyPress._(); - RideAnalogKeyPress createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static RideAnalogKeyPress getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static RideAnalogKeyPress? _defaultInstance; - - @$pb.TagNumber(1) - RideAnalogLocation get location => $_getN(0); - @$pb.TagNumber(1) - set location(RideAnalogLocation v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasLocation() => $_has(0); - @$pb.TagNumber(1) - void clearLocation() => clearField(1); - - @$pb.TagNumber(2) - $core.int get analogValue => $_getIZ(1); - @$pb.TagNumber(2) - set analogValue($core.int v) { $_setSignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasAnalogValue() => $_has(1); - @$pb.TagNumber(2) - void clearAnalogValue() => clearField(2); -} - -/// The command code prepending this message is 0x23 -/// All analog paddles (L0-L3) appear as repeated RideAnalogKeyPress in field 3 -class RideKeyPadStatus extends $pb.GeneratedMessage { - factory RideKeyPadStatus({ - $core.int? buttonMap, - $core.Iterable? analogPaddles, - }) { - final $result = create(); - if (buttonMap != null) { - $result.buttonMap = buttonMap; - } - if (analogPaddles != null) { - $result.analogPaddles.addAll(analogPaddles); - } - return $result; - } - RideKeyPadStatus._() : super(); - factory RideKeyPadStatus.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory RideKeyPadStatus.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RideKeyPadStatus', package: const $pb.PackageName(_omitMessageNames ? '' : 'de.jonasbark'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'ButtonMap', $pb.PbFieldType.OU3, protoName: 'ButtonMap') - ..pc(3, _omitFieldNames ? '' : 'AnalogPaddles', $pb.PbFieldType.PM, protoName: 'AnalogPaddles', subBuilder: RideAnalogKeyPress.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - RideKeyPadStatus clone() => RideKeyPadStatus()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - RideKeyPadStatus copyWith(void Function(RideKeyPadStatus) updates) => super.copyWith((message) => updates(message as RideKeyPadStatus)) as RideKeyPadStatus; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static RideKeyPadStatus create() => RideKeyPadStatus._(); - RideKeyPadStatus createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static RideKeyPadStatus getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static RideKeyPadStatus? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get buttonMap => $_getIZ(0); - @$pb.TagNumber(1) - set buttonMap($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasButtonMap() => $_has(0); - @$pb.TagNumber(1) - void clearButtonMap() => clearField(1); - - @$pb.TagNumber(3) - $core.List get analogPaddles => $_getList(1); -} - -/// ------------------ Zwift Click messages -/// The command code prepending this message is 0x37 -class ClickKeyPadStatus extends $pb.GeneratedMessage { - factory ClickKeyPadStatus({ - PlayButtonStatus? buttonPlus, - PlayButtonStatus? buttonMinus, - }) { - final $result = create(); - if (buttonPlus != null) { - $result.buttonPlus = buttonPlus; - } - if (buttonMinus != null) { - $result.buttonMinus = buttonMinus; - } - return $result; - } - ClickKeyPadStatus._() : super(); - factory ClickKeyPadStatus.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ClickKeyPadStatus.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ClickKeyPadStatus', package: const $pb.PackageName(_omitMessageNames ? '' : 'de.jonasbark'), createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'ButtonPlus', $pb.PbFieldType.OE, protoName: 'Button_Plus', defaultOrMaker: PlayButtonStatus.ON, valueOf: PlayButtonStatus.valueOf, enumValues: PlayButtonStatus.values) - ..e(2, _omitFieldNames ? '' : 'ButtonMinus', $pb.PbFieldType.OE, protoName: 'Button_Minus', defaultOrMaker: PlayButtonStatus.ON, valueOf: PlayButtonStatus.valueOf, enumValues: PlayButtonStatus.values) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ClickKeyPadStatus clone() => ClickKeyPadStatus()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ClickKeyPadStatus copyWith(void Function(ClickKeyPadStatus) updates) => super.copyWith((message) => updates(message as ClickKeyPadStatus)) as ClickKeyPadStatus; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static ClickKeyPadStatus create() => ClickKeyPadStatus._(); - ClickKeyPadStatus createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static ClickKeyPadStatus getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static ClickKeyPadStatus? _defaultInstance; - - @$pb.TagNumber(1) - PlayButtonStatus get buttonPlus => $_getN(0); - @$pb.TagNumber(1) - set buttonPlus(PlayButtonStatus v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasButtonPlus() => $_has(0); - @$pb.TagNumber(1) - void clearButtonPlus() => clearField(1); - - @$pb.TagNumber(2) - PlayButtonStatus get buttonMinus => $_getN(1); - @$pb.TagNumber(2) - set buttonMinus(PlayButtonStatus v) { setField(2, v); } - @$pb.TagNumber(2) - $core.bool hasButtonMinus() => $_has(1); - @$pb.TagNumber(2) - void clearButtonMinus() => clearField(2); -} - -/// ------------------ Device Information requested after connection -/// The command code prepending this message is 0x3c -class DeviceInformationContent extends $pb.GeneratedMessage { - factory DeviceInformationContent({ - $core.int? unknown1, - $core.Iterable<$core.int>? softwareVersion, - $core.String? deviceName, - $core.int? unknown4, - $core.int? unknown5, - $core.String? serialNumber, - $core.String? hardwareVersion, - $core.Iterable<$core.int>? replyData, - $core.int? unknown9, - $core.int? unknown10, - $core.int? unknown13, - }) { - final $result = create(); - if (unknown1 != null) { - $result.unknown1 = unknown1; - } - if (softwareVersion != null) { - $result.softwareVersion.addAll(softwareVersion); - } - if (deviceName != null) { - $result.deviceName = deviceName; - } - if (unknown4 != null) { - $result.unknown4 = unknown4; - } - if (unknown5 != null) { - $result.unknown5 = unknown5; - } - if (serialNumber != null) { - $result.serialNumber = serialNumber; - } - if (hardwareVersion != null) { - $result.hardwareVersion = hardwareVersion; - } - if (replyData != null) { - $result.replyData.addAll(replyData); - } - if (unknown9 != null) { - $result.unknown9 = unknown9; - } - if (unknown10 != null) { - $result.unknown10 = unknown10; - } - if (unknown13 != null) { - $result.unknown13 = unknown13; - } - return $result; - } - DeviceInformationContent._() : super(); - factory DeviceInformationContent.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DeviceInformationContent.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeviceInformationContent', package: const $pb.PackageName(_omitMessageNames ? '' : 'de.jonasbark'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'Unknown1', $pb.PbFieldType.OU3, protoName: 'Unknown1') - ..p<$core.int>(2, _omitFieldNames ? '' : 'SoftwareVersion', $pb.PbFieldType.PU3, protoName: 'SoftwareVersion') - ..aOS(3, _omitFieldNames ? '' : 'DeviceName', protoName: 'DeviceName') - ..a<$core.int>(4, _omitFieldNames ? '' : 'Unknown4', $pb.PbFieldType.OU3, protoName: 'Unknown4') - ..a<$core.int>(5, _omitFieldNames ? '' : 'Unknown5', $pb.PbFieldType.OU3, protoName: 'Unknown5') - ..aOS(6, _omitFieldNames ? '' : 'SerialNumber', protoName: 'SerialNumber') - ..aOS(7, _omitFieldNames ? '' : 'HardwareVersion', protoName: 'HardwareVersion') - ..p<$core.int>(8, _omitFieldNames ? '' : 'ReplyData', $pb.PbFieldType.PU3, protoName: 'ReplyData') - ..a<$core.int>(9, _omitFieldNames ? '' : 'Unknown9', $pb.PbFieldType.OU3, protoName: 'Unknown9') - ..a<$core.int>(10, _omitFieldNames ? '' : 'Unknown10', $pb.PbFieldType.OU3, protoName: 'Unknown10') - ..a<$core.int>(13, _omitFieldNames ? '' : 'Unknown13', $pb.PbFieldType.OU3, protoName: 'Unknown13') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - DeviceInformationContent clone() => DeviceInformationContent()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DeviceInformationContent copyWith(void Function(DeviceInformationContent) updates) => super.copyWith((message) => updates(message as DeviceInformationContent)) as DeviceInformationContent; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static DeviceInformationContent create() => DeviceInformationContent._(); - DeviceInformationContent createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static DeviceInformationContent getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static DeviceInformationContent? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get unknown1 => $_getIZ(0); - @$pb.TagNumber(1) - set unknown1($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasUnknown1() => $_has(0); - @$pb.TagNumber(1) - void clearUnknown1() => clearField(1); - - @$pb.TagNumber(2) - $core.List<$core.int> get softwareVersion => $_getList(1); - - @$pb.TagNumber(3) - $core.String get deviceName => $_getSZ(2); - @$pb.TagNumber(3) - set deviceName($core.String v) { $_setString(2, v); } - @$pb.TagNumber(3) - $core.bool hasDeviceName() => $_has(2); - @$pb.TagNumber(3) - void clearDeviceName() => clearField(3); - - @$pb.TagNumber(4) - $core.int get unknown4 => $_getIZ(3); - @$pb.TagNumber(4) - set unknown4($core.int v) { $_setUnsignedInt32(3, v); } - @$pb.TagNumber(4) - $core.bool hasUnknown4() => $_has(3); - @$pb.TagNumber(4) - void clearUnknown4() => clearField(4); - - @$pb.TagNumber(5) - $core.int get unknown5 => $_getIZ(4); - @$pb.TagNumber(5) - set unknown5($core.int v) { $_setUnsignedInt32(4, v); } - @$pb.TagNumber(5) - $core.bool hasUnknown5() => $_has(4); - @$pb.TagNumber(5) - void clearUnknown5() => clearField(5); - - @$pb.TagNumber(6) - $core.String get serialNumber => $_getSZ(5); - @$pb.TagNumber(6) - set serialNumber($core.String v) { $_setString(5, v); } - @$pb.TagNumber(6) - $core.bool hasSerialNumber() => $_has(5); - @$pb.TagNumber(6) - void clearSerialNumber() => clearField(6); - - @$pb.TagNumber(7) - $core.String get hardwareVersion => $_getSZ(6); - @$pb.TagNumber(7) - set hardwareVersion($core.String v) { $_setString(6, v); } - @$pb.TagNumber(7) - $core.bool hasHardwareVersion() => $_has(6); - @$pb.TagNumber(7) - void clearHardwareVersion() => clearField(7); - - @$pb.TagNumber(8) - $core.List<$core.int> get replyData => $_getList(7); - - @$pb.TagNumber(9) - $core.int get unknown9 => $_getIZ(8); - @$pb.TagNumber(9) - set unknown9($core.int v) { $_setUnsignedInt32(8, v); } - @$pb.TagNumber(9) - $core.bool hasUnknown9() => $_has(8); - @$pb.TagNumber(9) - void clearUnknown9() => clearField(9); - - @$pb.TagNumber(10) - $core.int get unknown10 => $_getIZ(9); - @$pb.TagNumber(10) - set unknown10($core.int v) { $_setUnsignedInt32(9, v); } - @$pb.TagNumber(10) - $core.bool hasUnknown10() => $_has(9); - @$pb.TagNumber(10) - void clearUnknown10() => clearField(10); - - @$pb.TagNumber(13) - $core.int get unknown13 => $_getIZ(10); - @$pb.TagNumber(13) - set unknown13($core.int v) { $_setUnsignedInt32(10, v); } - @$pb.TagNumber(13) - $core.bool hasUnknown13() => $_has(10); - @$pb.TagNumber(13) - void clearUnknown13() => clearField(13); -} - -class SubContent extends $pb.GeneratedMessage { - factory SubContent({ - DeviceInformationContent? content, - $core.int? unknown2, - $core.int? unknown4, - $core.int? unknown5, - $core.int? unknown6, - }) { - final $result = create(); - if (content != null) { - $result.content = content; - } - if (unknown2 != null) { - $result.unknown2 = unknown2; - } - if (unknown4 != null) { - $result.unknown4 = unknown4; - } - if (unknown5 != null) { - $result.unknown5 = unknown5; - } - if (unknown6 != null) { - $result.unknown6 = unknown6; - } - return $result; - } - SubContent._() : super(); - factory SubContent.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SubContent.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SubContent', package: const $pb.PackageName(_omitMessageNames ? '' : 'de.jonasbark'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'Content', protoName: 'Content', subBuilder: DeviceInformationContent.create) - ..a<$core.int>(2, _omitFieldNames ? '' : 'Unknown2', $pb.PbFieldType.OU3, protoName: 'Unknown2') - ..a<$core.int>(4, _omitFieldNames ? '' : 'Unknown4', $pb.PbFieldType.OU3, protoName: 'Unknown4') - ..a<$core.int>(5, _omitFieldNames ? '' : 'Unknown5', $pb.PbFieldType.OU3, protoName: 'Unknown5') - ..a<$core.int>(6, _omitFieldNames ? '' : 'Unknown6', $pb.PbFieldType.OU3, protoName: 'Unknown6') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SubContent clone() => SubContent()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SubContent copyWith(void Function(SubContent) updates) => super.copyWith((message) => updates(message as SubContent)) as SubContent; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SubContent create() => SubContent._(); - SubContent createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SubContent getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static SubContent? _defaultInstance; - - @$pb.TagNumber(1) - DeviceInformationContent get content => $_getN(0); - @$pb.TagNumber(1) - set content(DeviceInformationContent v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasContent() => $_has(0); - @$pb.TagNumber(1) - void clearContent() => clearField(1); - @$pb.TagNumber(1) - DeviceInformationContent ensureContent() => $_ensure(0); - - @$pb.TagNumber(2) - $core.int get unknown2 => $_getIZ(1); - @$pb.TagNumber(2) - set unknown2($core.int v) { $_setUnsignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasUnknown2() => $_has(1); - @$pb.TagNumber(2) - void clearUnknown2() => clearField(2); - - @$pb.TagNumber(4) - $core.int get unknown4 => $_getIZ(2); - @$pb.TagNumber(4) - set unknown4($core.int v) { $_setUnsignedInt32(2, v); } - @$pb.TagNumber(4) - $core.bool hasUnknown4() => $_has(2); - @$pb.TagNumber(4) - void clearUnknown4() => clearField(4); - - @$pb.TagNumber(5) - $core.int get unknown5 => $_getIZ(3); - @$pb.TagNumber(5) - set unknown5($core.int v) { $_setUnsignedInt32(3, v); } - @$pb.TagNumber(5) - $core.bool hasUnknown5() => $_has(3); - @$pb.TagNumber(5) - void clearUnknown5() => clearField(5); - - @$pb.TagNumber(6) - $core.int get unknown6 => $_getIZ(4); - @$pb.TagNumber(6) - set unknown6($core.int v) { $_setUnsignedInt32(4, v); } - @$pb.TagNumber(6) - $core.bool hasUnknown6() => $_has(4); - @$pb.TagNumber(6) - void clearUnknown6() => clearField(6); -} - -class DeviceInformation extends $pb.GeneratedMessage { - factory DeviceInformation({ - $core.int? informationId, - SubContent? subContent, - }) { - final $result = create(); - if (informationId != null) { - $result.informationId = informationId; - } - if (subContent != null) { - $result.subContent = subContent; - } - return $result; - } - DeviceInformation._() : super(); - factory DeviceInformation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DeviceInformation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeviceInformation', package: const $pb.PackageName(_omitMessageNames ? '' : 'de.jonasbark'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'InformationId', $pb.PbFieldType.OU3, protoName: 'InformationId') - ..aOM(2, _omitFieldNames ? '' : 'SubContent', protoName: 'SubContent', subBuilder: SubContent.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - DeviceInformation clone() => DeviceInformation()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DeviceInformation copyWith(void Function(DeviceInformation) updates) => super.copyWith((message) => updates(message as DeviceInformation)) as DeviceInformation; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static DeviceInformation create() => DeviceInformation._(); - DeviceInformation createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static DeviceInformation getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static DeviceInformation? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get informationId => $_getIZ(0); - @$pb.TagNumber(1) - set informationId($core.int v) { $_setUnsignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasInformationId() => $_has(0); - @$pb.TagNumber(1) - void clearInformationId() => clearField(1); - - @$pb.TagNumber(2) - SubContent get subContent => $_getN(1); - @$pb.TagNumber(2) - set subContent(SubContent v) { setField(2, v); } - @$pb.TagNumber(2) - $core.bool hasSubContent() => $_has(1); - @$pb.TagNumber(2) - void clearSubContent() => clearField(2); - @$pb.TagNumber(2) - SubContent ensureSubContent() => $_ensure(1); -} - - -const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/bluetooth/devices/zwift/protocol/zwift.pbenum.dart b/lib/bluetooth/devices/zwift/protocol/zwift.pbenum.dart deleted file mode 100644 index 4ac584a7..00000000 --- a/lib/bluetooth/devices/zwift/protocol/zwift.pbenum.dart +++ /dev/null @@ -1,95 +0,0 @@ -// -// Generated code. Do not modify. -// source: zwift.proto -// -// @dart = 2.12 - -// 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; - -import 'package:protobuf/protobuf.dart' as $pb; - -class PlayButtonStatus extends $pb.ProtobufEnum { - static const PlayButtonStatus ON = PlayButtonStatus._(0, _omitEnumNames ? '' : 'ON'); - static const PlayButtonStatus OFF = PlayButtonStatus._(1, _omitEnumNames ? '' : 'OFF'); - - static const $core.List values = [ - ON, - OFF, - ]; - - static final $core.Map<$core.int, PlayButtonStatus> _byValue = $pb.ProtobufEnum.initByValue(values); - static PlayButtonStatus? valueOf($core.int value) => _byValue[value]; - - const PlayButtonStatus._($core.int v, $core.String n) : super(v, n); -} - -/// ----------------- Zwift Ride messages -class RideButtonMask extends $pb.ProtobufEnum { - static const RideButtonMask LEFT_BTN = RideButtonMask._(1, _omitEnumNames ? '' : 'LEFT_BTN'); - static const RideButtonMask UP_BTN = RideButtonMask._(2, _omitEnumNames ? '' : 'UP_BTN'); - static const RideButtonMask RIGHT_BTN = RideButtonMask._(4, _omitEnumNames ? '' : 'RIGHT_BTN'); - static const RideButtonMask DOWN_BTN = RideButtonMask._(8, _omitEnumNames ? '' : 'DOWN_BTN'); - static const RideButtonMask A_BTN = RideButtonMask._(16, _omitEnumNames ? '' : 'A_BTN'); - static const RideButtonMask B_BTN = RideButtonMask._(32, _omitEnumNames ? '' : 'B_BTN'); - static const RideButtonMask Y_BTN = RideButtonMask._(64, _omitEnumNames ? '' : 'Y_BTN'); - static const RideButtonMask Z_BTN = RideButtonMask._(256, _omitEnumNames ? '' : 'Z_BTN'); - static const RideButtonMask SHFT_UP_L_BTN = RideButtonMask._(512, _omitEnumNames ? '' : 'SHFT_UP_L_BTN'); - static const RideButtonMask SHFT_DN_L_BTN = RideButtonMask._(1024, _omitEnumNames ? '' : 'SHFT_DN_L_BTN'); - static const RideButtonMask POWERUP_L_BTN = RideButtonMask._(2048, _omitEnumNames ? '' : 'POWERUP_L_BTN'); - static const RideButtonMask ONOFF_L_BTN = RideButtonMask._(4096, _omitEnumNames ? '' : 'ONOFF_L_BTN'); - static const RideButtonMask SHFT_UP_R_BTN = RideButtonMask._(8192, _omitEnumNames ? '' : 'SHFT_UP_R_BTN'); - static const RideButtonMask SHFT_DN_R_BTN = RideButtonMask._(16384, _omitEnumNames ? '' : 'SHFT_DN_R_BTN'); - static const RideButtonMask POWERUP_R_BTN = RideButtonMask._(65536, _omitEnumNames ? '' : 'POWERUP_R_BTN'); - static const RideButtonMask ONOFF_R_BTN = RideButtonMask._(131072, _omitEnumNames ? '' : 'ONOFF_R_BTN'); - - static const $core.List values = [ - LEFT_BTN, - UP_BTN, - RIGHT_BTN, - DOWN_BTN, - A_BTN, - B_BTN, - Y_BTN, - Z_BTN, - SHFT_UP_L_BTN, - SHFT_DN_L_BTN, - POWERUP_L_BTN, - ONOFF_L_BTN, - SHFT_UP_R_BTN, - SHFT_DN_R_BTN, - POWERUP_R_BTN, - ONOFF_R_BTN, - ]; - - static final $core.Map<$core.int, RideButtonMask> _byValue = $pb.ProtobufEnum.initByValue(values); - static RideButtonMask? valueOf($core.int value) => _byValue[value]; - - const RideButtonMask._($core.int v, $core.String n) : super(v, n); -} - -class RideAnalogLocation extends $pb.ProtobufEnum { - static const RideAnalogLocation LEFT = RideAnalogLocation._(0, _omitEnumNames ? '' : 'LEFT'); - static const RideAnalogLocation RIGHT = RideAnalogLocation._(1, _omitEnumNames ? '' : 'RIGHT'); - static const RideAnalogLocation UP = RideAnalogLocation._(2, _omitEnumNames ? '' : 'UP'); - static const RideAnalogLocation DOWN = RideAnalogLocation._(3, _omitEnumNames ? '' : 'DOWN'); - - static const $core.List values = [ - LEFT, - RIGHT, - UP, - DOWN, - ]; - - static final $core.Map<$core.int, RideAnalogLocation> _byValue = $pb.ProtobufEnum.initByValue(values); - static RideAnalogLocation? valueOf($core.int value) => _byValue[value]; - - const RideAnalogLocation._($core.int v, $core.String n) : super(v, n); -} - - -const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/lib/bluetooth/devices/zwift/protocol/zwift.pbjson.dart b/lib/bluetooth/devices/zwift/protocol/zwift.pbjson.dart deleted file mode 100644 index 9951bb12..00000000 --- a/lib/bluetooth/devices/zwift/protocol/zwift.pbjson.dart +++ /dev/null @@ -1,264 +0,0 @@ -// -// Generated code. Do not modify. -// source: zwift.proto -// -// @dart = 2.12 - -// 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 playButtonStatusDescriptor instead') -const PlayButtonStatus$json = { - '1': 'PlayButtonStatus', - '2': [ - {'1': 'ON', '2': 0}, - {'1': 'OFF', '2': 1}, - ], -}; - -/// Descriptor for `PlayButtonStatus`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List playButtonStatusDescriptor = $convert.base64Decode( - 'ChBQbGF5QnV0dG9uU3RhdHVzEgYKAk9OEAASBwoDT0ZGEAE='); - -@$core.Deprecated('Use rideButtonMaskDescriptor instead') -const RideButtonMask$json = { - '1': 'RideButtonMask', - '2': [ - {'1': 'LEFT_BTN', '2': 1}, - {'1': 'UP_BTN', '2': 2}, - {'1': 'RIGHT_BTN', '2': 4}, - {'1': 'DOWN_BTN', '2': 8}, - {'1': 'A_BTN', '2': 16}, - {'1': 'B_BTN', '2': 32}, - {'1': 'Y_BTN', '2': 64}, - {'1': 'Z_BTN', '2': 256}, - {'1': 'SHFT_UP_L_BTN', '2': 512}, - {'1': 'SHFT_DN_L_BTN', '2': 1024}, - {'1': 'POWERUP_L_BTN', '2': 2048}, - {'1': 'ONOFF_L_BTN', '2': 4096}, - {'1': 'SHFT_UP_R_BTN', '2': 8192}, - {'1': 'SHFT_DN_R_BTN', '2': 16384}, - {'1': 'POWERUP_R_BTN', '2': 65536}, - {'1': 'ONOFF_R_BTN', '2': 131072}, - ], -}; - -/// Descriptor for `RideButtonMask`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List rideButtonMaskDescriptor = $convert.base64Decode( - 'Cg5SaWRlQnV0dG9uTWFzaxIMCghMRUZUX0JUThABEgoKBlVQX0JUThACEg0KCVJJR0hUX0JUTh' - 'AEEgwKCERPV05fQlROEAgSCQoFQV9CVE4QEBIJCgVCX0JUThAgEgkKBVlfQlROEEASCgoFWl9C' - 'VE4QgAISEgoNU0hGVF9VUF9MX0JUThCABBISCg1TSEZUX0ROX0xfQlROEIAIEhIKDVBPV0VSVV' - 'BfTF9CVE4QgBASEAoLT05PRkZfTF9CVE4QgCASEgoNU0hGVF9VUF9SX0JUThCAQBITCg1TSEZU' - 'X0ROX1JfQlROEICAARITCg1QT1dFUlVQX1JfQlROEICABBIRCgtPTk9GRl9SX0JUThCAgAg='); - -@$core.Deprecated('Use rideAnalogLocationDescriptor instead') -const RideAnalogLocation$json = { - '1': 'RideAnalogLocation', - '2': [ - {'1': 'LEFT', '2': 0}, - {'1': 'RIGHT', '2': 1}, - {'1': 'UP', '2': 2}, - {'1': 'DOWN', '2': 3}, - ], -}; - -/// Descriptor for `RideAnalogLocation`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List rideAnalogLocationDescriptor = $convert.base64Decode( - 'ChJSaWRlQW5hbG9nTG9jYXRpb24SCAoETEVGVBAAEgkKBVJJR0hUEAESBgoCVVAQAhIICgRET1' - 'dOEAM='); - -@$core.Deprecated('Use playKeyPadStatusDescriptor instead') -const PlayKeyPadStatus$json = { - '1': 'PlayKeyPadStatus', - '2': [ - {'1': 'RightPad', '3': 1, '4': 1, '5': 14, '6': '.de.jonasbark.PlayButtonStatus', '10': 'RightPad'}, - {'1': 'Button_Y_Up', '3': 2, '4': 1, '5': 14, '6': '.de.jonasbark.PlayButtonStatus', '10': 'ButtonYUp'}, - {'1': 'Button_Z_Left', '3': 3, '4': 1, '5': 14, '6': '.de.jonasbark.PlayButtonStatus', '10': 'ButtonZLeft'}, - {'1': 'Button_A_Right', '3': 4, '4': 1, '5': 14, '6': '.de.jonasbark.PlayButtonStatus', '10': 'ButtonARight'}, - {'1': 'Button_B_Down', '3': 5, '4': 1, '5': 14, '6': '.de.jonasbark.PlayButtonStatus', '10': 'ButtonBDown'}, - {'1': 'Button_Shift', '3': 6, '4': 1, '5': 14, '6': '.de.jonasbark.PlayButtonStatus', '10': 'ButtonShift'}, - {'1': 'Button_On', '3': 7, '4': 1, '5': 14, '6': '.de.jonasbark.PlayButtonStatus', '10': 'ButtonOn'}, - {'1': 'Analog_LR', '3': 8, '4': 1, '5': 17, '10': 'AnalogLR'}, - {'1': 'Analog_UD', '3': 9, '4': 1, '5': 17, '10': 'AnalogUD'}, - ], -}; - -/// Descriptor for `PlayKeyPadStatus`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List playKeyPadStatusDescriptor = $convert.base64Decode( - 'ChBQbGF5S2V5UGFkU3RhdHVzEjoKCFJpZ2h0UGFkGAEgASgOMh4uZGUuam9uYXNiYXJrLlBsYX' - 'lCdXR0b25TdGF0dXNSCFJpZ2h0UGFkEj4KC0J1dHRvbl9ZX1VwGAIgASgOMh4uZGUuam9uYXNi' - 'YXJrLlBsYXlCdXR0b25TdGF0dXNSCUJ1dHRvbllVcBJCCg1CdXR0b25fWl9MZWZ0GAMgASgOMh' - '4uZGUuam9uYXNiYXJrLlBsYXlCdXR0b25TdGF0dXNSC0J1dHRvblpMZWZ0EkQKDkJ1dHRvbl9B' - 'X1JpZ2h0GAQgASgOMh4uZGUuam9uYXNiYXJrLlBsYXlCdXR0b25TdGF0dXNSDEJ1dHRvbkFSaW' - 'dodBJCCg1CdXR0b25fQl9Eb3duGAUgASgOMh4uZGUuam9uYXNiYXJrLlBsYXlCdXR0b25TdGF0' - 'dXNSC0J1dHRvbkJEb3duEkEKDEJ1dHRvbl9TaGlmdBgGIAEoDjIeLmRlLmpvbmFzYmFyay5QbG' - 'F5QnV0dG9uU3RhdHVzUgtCdXR0b25TaGlmdBI7CglCdXR0b25fT24YByABKA4yHi5kZS5qb25h' - 'c2JhcmsuUGxheUJ1dHRvblN0YXR1c1IIQnV0dG9uT24SGwoJQW5hbG9nX0xSGAggASgRUghBbm' - 'Fsb2dMUhIbCglBbmFsb2dfVUQYCSABKBFSCEFuYWxvZ1VE'); - -@$core.Deprecated('Use playCommandParametersDescriptor instead') -const PlayCommandParameters$json = { - '1': 'PlayCommandParameters', - '2': [ - {'1': 'param1', '3': 1, '4': 1, '5': 13, '10': 'param1'}, - {'1': 'param2', '3': 2, '4': 1, '5': 13, '10': 'param2'}, - {'1': 'HapticPattern', '3': 3, '4': 1, '5': 13, '10': 'HapticPattern'}, - ], -}; - -/// Descriptor for `PlayCommandParameters`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List playCommandParametersDescriptor = $convert.base64Decode( - 'ChVQbGF5Q29tbWFuZFBhcmFtZXRlcnMSFgoGcGFyYW0xGAEgASgNUgZwYXJhbTESFgoGcGFyYW' - '0yGAIgASgNUgZwYXJhbTISJAoNSGFwdGljUGF0dGVybhgDIAEoDVINSGFwdGljUGF0dGVybg=='); - -@$core.Deprecated('Use playCommandContentsDescriptor instead') -const PlayCommandContents$json = { - '1': 'PlayCommandContents', - '2': [ - {'1': 'CommandParameters', '3': 1, '4': 1, '5': 11, '6': '.de.jonasbark.PlayCommandParameters', '10': 'CommandParameters'}, - ], -}; - -/// Descriptor for `PlayCommandContents`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List playCommandContentsDescriptor = $convert.base64Decode( - 'ChNQbGF5Q29tbWFuZENvbnRlbnRzElEKEUNvbW1hbmRQYXJhbWV0ZXJzGAEgASgLMiMuZGUuam' - '9uYXNiYXJrLlBsYXlDb21tYW5kUGFyYW1ldGVyc1IRQ29tbWFuZFBhcmFtZXRlcnM='); - -@$core.Deprecated('Use playCommandDescriptor instead') -const PlayCommand$json = { - '1': 'PlayCommand', - '2': [ - {'1': 'CommandContents', '3': 2, '4': 1, '5': 11, '6': '.de.jonasbark.PlayCommandContents', '10': 'CommandContents'}, - ], -}; - -/// Descriptor for `PlayCommand`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List playCommandDescriptor = $convert.base64Decode( - 'CgtQbGF5Q29tbWFuZBJLCg9Db21tYW5kQ29udGVudHMYAiABKAsyIS5kZS5qb25hc2JhcmsuUG' - 'xheUNvbW1hbmRDb250ZW50c1IPQ29tbWFuZENvbnRlbnRz'); - -@$core.Deprecated('Use idleDescriptor instead') -const Idle$json = { - '1': 'Idle', - '2': [ - {'1': 'Unknown2', '3': 2, '4': 1, '5': 13, '10': 'Unknown2'}, - ], -}; - -/// Descriptor for `Idle`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List idleDescriptor = $convert.base64Decode( - 'CgRJZGxlEhoKCFVua25vd24yGAIgASgNUghVbmtub3duMg=='); - -@$core.Deprecated('Use rideAnalogKeyPressDescriptor instead') -const RideAnalogKeyPress$json = { - '1': 'RideAnalogKeyPress', - '2': [ - {'1': 'Location', '3': 1, '4': 1, '5': 14, '6': '.de.jonasbark.RideAnalogLocation', '10': 'Location'}, - {'1': 'AnalogValue', '3': 2, '4': 1, '5': 17, '10': 'AnalogValue'}, - ], -}; - -/// Descriptor for `RideAnalogKeyPress`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List rideAnalogKeyPressDescriptor = $convert.base64Decode( - 'ChJSaWRlQW5hbG9nS2V5UHJlc3MSPAoITG9jYXRpb24YASABKA4yIC5kZS5qb25hc2JhcmsuUm' - 'lkZUFuYWxvZ0xvY2F0aW9uUghMb2NhdGlvbhIgCgtBbmFsb2dWYWx1ZRgCIAEoEVILQW5hbG9n' - 'VmFsdWU='); - -@$core.Deprecated('Use rideKeyPadStatusDescriptor instead') -const RideKeyPadStatus$json = { - '1': 'RideKeyPadStatus', - '2': [ - {'1': 'ButtonMap', '3': 1, '4': 1, '5': 13, '10': 'ButtonMap'}, - {'1': 'AnalogPaddles', '3': 3, '4': 3, '5': 11, '6': '.de.jonasbark.RideAnalogKeyPress', '10': 'AnalogPaddles'}, - ], -}; - -/// Descriptor for `RideKeyPadStatus`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List rideKeyPadStatusDescriptor = $convert.base64Decode( - 'ChBSaWRlS2V5UGFkU3RhdHVzEhwKCUJ1dHRvbk1hcBgBIAEoDVIJQnV0dG9uTWFwEkYKDUFuYW' - 'xvZ1BhZGRsZXMYAyADKAsyIC5kZS5qb25hc2JhcmsuUmlkZUFuYWxvZ0tleVByZXNzUg1BbmFs' - 'b2dQYWRkbGVz'); - -@$core.Deprecated('Use clickKeyPadStatusDescriptor instead') -const ClickKeyPadStatus$json = { - '1': 'ClickKeyPadStatus', - '2': [ - {'1': 'Button_Plus', '3': 1, '4': 1, '5': 14, '6': '.de.jonasbark.PlayButtonStatus', '10': 'ButtonPlus'}, - {'1': 'Button_Minus', '3': 2, '4': 1, '5': 14, '6': '.de.jonasbark.PlayButtonStatus', '10': 'ButtonMinus'}, - ], -}; - -/// Descriptor for `ClickKeyPadStatus`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List clickKeyPadStatusDescriptor = $convert.base64Decode( - 'ChFDbGlja0tleVBhZFN0YXR1cxI/CgtCdXR0b25fUGx1cxgBIAEoDjIeLmRlLmpvbmFzYmFyay' - '5QbGF5QnV0dG9uU3RhdHVzUgpCdXR0b25QbHVzEkEKDEJ1dHRvbl9NaW51cxgCIAEoDjIeLmRl' - 'LmpvbmFzYmFyay5QbGF5QnV0dG9uU3RhdHVzUgtCdXR0b25NaW51cw=='); - -@$core.Deprecated('Use deviceInformationContentDescriptor instead') -const DeviceInformationContent$json = { - '1': 'DeviceInformationContent', - '2': [ - {'1': 'Unknown1', '3': 1, '4': 1, '5': 13, '10': 'Unknown1'}, - {'1': 'SoftwareVersion', '3': 2, '4': 3, '5': 13, '10': 'SoftwareVersion'}, - {'1': 'DeviceName', '3': 3, '4': 1, '5': 9, '10': 'DeviceName'}, - {'1': 'Unknown4', '3': 4, '4': 1, '5': 13, '10': 'Unknown4'}, - {'1': 'Unknown5', '3': 5, '4': 1, '5': 13, '10': 'Unknown5'}, - {'1': 'SerialNumber', '3': 6, '4': 1, '5': 9, '10': 'SerialNumber'}, - {'1': 'HardwareVersion', '3': 7, '4': 1, '5': 9, '10': 'HardwareVersion'}, - {'1': 'ReplyData', '3': 8, '4': 3, '5': 13, '10': 'ReplyData'}, - {'1': 'Unknown9', '3': 9, '4': 1, '5': 13, '10': 'Unknown9'}, - {'1': 'Unknown10', '3': 10, '4': 1, '5': 13, '10': 'Unknown10'}, - {'1': 'Unknown13', '3': 13, '4': 1, '5': 13, '10': 'Unknown13'}, - ], -}; - -/// Descriptor for `DeviceInformationContent`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List deviceInformationContentDescriptor = $convert.base64Decode( - 'ChhEZXZpY2VJbmZvcm1hdGlvbkNvbnRlbnQSGgoIVW5rbm93bjEYASABKA1SCFVua25vd24xEi' - 'gKD1NvZnR3YXJlVmVyc2lvbhgCIAMoDVIPU29mdHdhcmVWZXJzaW9uEh4KCkRldmljZU5hbWUY' - 'AyABKAlSCkRldmljZU5hbWUSGgoIVW5rbm93bjQYBCABKA1SCFVua25vd240EhoKCFVua25vd2' - '41GAUgASgNUghVbmtub3duNRIiCgxTZXJpYWxOdW1iZXIYBiABKAlSDFNlcmlhbE51bWJlchIo' - 'Cg9IYXJkd2FyZVZlcnNpb24YByABKAlSD0hhcmR3YXJlVmVyc2lvbhIcCglSZXBseURhdGEYCC' - 'ADKA1SCVJlcGx5RGF0YRIaCghVbmtub3duORgJIAEoDVIIVW5rbm93bjkSHAoJVW5rbm93bjEw' - 'GAogASgNUglVbmtub3duMTASHAoJVW5rbm93bjEzGA0gASgNUglVbmtub3duMTM='); - -@$core.Deprecated('Use subContentDescriptor instead') -const SubContent$json = { - '1': 'SubContent', - '2': [ - {'1': 'Content', '3': 1, '4': 1, '5': 11, '6': '.de.jonasbark.DeviceInformationContent', '10': 'Content'}, - {'1': 'Unknown2', '3': 2, '4': 1, '5': 13, '10': 'Unknown2'}, - {'1': 'Unknown4', '3': 4, '4': 1, '5': 13, '10': 'Unknown4'}, - {'1': 'Unknown5', '3': 5, '4': 1, '5': 13, '10': 'Unknown5'}, - {'1': 'Unknown6', '3': 6, '4': 1, '5': 13, '10': 'Unknown6'}, - ], -}; - -/// Descriptor for `SubContent`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List subContentDescriptor = $convert.base64Decode( - 'CgpTdWJDb250ZW50EkAKB0NvbnRlbnQYASABKAsyJi5kZS5qb25hc2JhcmsuRGV2aWNlSW5mb3' - 'JtYXRpb25Db250ZW50UgdDb250ZW50EhoKCFVua25vd24yGAIgASgNUghVbmtub3duMhIaCghV' - 'bmtub3duNBgEIAEoDVIIVW5rbm93bjQSGgoIVW5rbm93bjUYBSABKA1SCFVua25vd241EhoKCF' - 'Vua25vd242GAYgASgNUghVbmtub3duNg=='); - -@$core.Deprecated('Use deviceInformationDescriptor instead') -const DeviceInformation$json = { - '1': 'DeviceInformation', - '2': [ - {'1': 'InformationId', '3': 1, '4': 1, '5': 13, '10': 'InformationId'}, - {'1': 'SubContent', '3': 2, '4': 1, '5': 11, '6': '.de.jonasbark.SubContent', '10': 'SubContent'}, - ], -}; - -/// Descriptor for `DeviceInformation`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List deviceInformationDescriptor = $convert.base64Decode( - 'ChFEZXZpY2VJbmZvcm1hdGlvbhIkCg1JbmZvcm1hdGlvbklkGAEgASgNUg1JbmZvcm1hdGlvbk' - 'lkEjgKClN1YkNvbnRlbnQYAiABKAsyGC5kZS5qb25hc2JhcmsuU3ViQ29udGVudFIKU3ViQ29u' - 'dGVudA=='); - diff --git a/lib/bluetooth/devices/zwift/protocol/zwift.pbserver.dart b/lib/bluetooth/devices/zwift/protocol/zwift.pbserver.dart deleted file mode 100644 index 8178db61..00000000 --- a/lib/bluetooth/devices/zwift/protocol/zwift.pbserver.dart +++ /dev/null @@ -1,14 +0,0 @@ -// -// Generated code. Do not modify. -// source: zwift.proto -// -// @dart = 2.12 - -// 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 'zwift.pb.dart'; - diff --git a/lib/bluetooth/devices/zwift/zwift_click.dart b/lib/bluetooth/devices/zwift/zwift_click.dart index a85cffe7..b958521a 100644 --- a/lib/bluetooth/devices/zwift/zwift_click.dart +++ b/lib/bluetooth/devices/zwift/zwift_click.dart @@ -1,7 +1,7 @@ -import 'package:flutter/foundation.dart'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zwift.pb.dart'; import 'package:bike_control/bluetooth/devices/zwift/zwift_device.dart'; import 'package:bike_control/utils/keymap/buttons.dart'; +import 'package:flutter/foundation.dart'; +import 'package:prop/prop.dart'; import 'constants.dart'; diff --git a/lib/bluetooth/devices/zwift/zwift_clickv2.dart b/lib/bluetooth/devices/zwift/zwift_clickv2.dart index ed0af15d..f28fb4ff 100644 --- a/lib/bluetooth/devices/zwift/zwift_clickv2.dart +++ b/lib/bluetooth/devices/zwift/zwift_clickv2.dart @@ -1,16 +1,19 @@ import 'package:bike_control/bluetooth/devices/zwift/constants.dart'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pbenum.dart'; import 'package:bike_control/bluetooth/devices/zwift/zwift_ride.dart'; -import 'package:bike_control/gen/l10n.dart'; -import 'package:bike_control/pages/markdown.dart'; +import 'package:bike_control/pages/unlock.dart'; import 'package:bike_control/utils/core.dart'; -import 'package:bike_control/utils/i18n_extension.dart'; import 'package:bike_control/widgets/ui/warning.dart'; import 'package:dartx/dartx.dart'; import 'package:flutter/foundation.dart'; +import 'package:intl/intl.dart'; +import 'package:prop/emulators/ftms_emulator.dart'; +import 'package:prop/prop.dart'; import 'package:shadcn_flutter/shadcn_flutter.dart'; +import 'package:universal_ble/universal_ble.dart'; class ZwiftClickV2 extends ZwiftRide { + late final FtmsEmulator emulator = FtmsEmulator(); + ZwiftClickV2(super.scanResult) : super( isBeta: true, @@ -26,7 +29,9 @@ class ZwiftClickV2 extends ZwiftRide { ZwiftButtons.shiftUpLeft, ZwiftButtons.shiftUpRight, ], - ); + ) { + emulator.setScanResult(scanResult); + } bool _noLongerSendsEvents = false; @@ -44,6 +49,14 @@ class ZwiftClickV2 extends ZwiftRide { return "$name V2"; } + bool get isUnlocked { + final lastUnlock = core.settings.getZwiftClickV2LastUnlock(this); + if (lastUnlock == null) { + return false; + } + return lastUnlock > DateTime.now().subtract(const Duration(days: 1)); + } + @override Future setupHandshake() async { super.setupHandshake(); @@ -59,8 +72,22 @@ class ZwiftClickV2 extends ZwiftRide { return super.processData(bytes); } + @override + Future handleServices(List services) async { + emulator.handleServices(services); + await super.handleServices(services); + } + + @override + Future processCharacteristic(String characteristic, Uint8List bytes) async { + if (!emulator.processCharacteristic(characteristic, bytes)) { + await super.processCharacteristic(characteristic, bytes); + } + } + @override Widget showInformation(BuildContext context) { + final lastUnlockDate = core.settings.getZwiftClickV2LastUnlock(this); return StatefulBuilder( builder: (context, setState) { return Column( @@ -71,79 +98,93 @@ class ZwiftClickV2 extends ZwiftRide { super.showInformation(context), if (isConnected) - if (core.settings.getShowZwiftClickV2ReconnectWarning()) - Stack( + if (isUnlocked && lastUnlockDate != null) + Warning( + important: false, children: [ - Warning( + Row( + spacing: 8, children: [ - Text( - 'Important Setup Information', - style: TextStyle( - fontWeight: FontWeight.bold, - color: Theme.of(context).colorScheme.destructive, + Container( + decoration: BoxDecoration( + color: Colors.green, + borderRadius: BorderRadius.circular(24), ), - ).small, + padding: const EdgeInsets.all(4), + child: Icon(Icons.lock_open_rounded, color: Colors.white), + ), Text( - AppLocalizations.of(context).clickV2Instructions, - style: TextStyle( - color: Theme.of(context).colorScheme.destructive, - ), + 'Unlocked until around ${DateFormat('EEEE, HH:MM').format(lastUnlockDate.add(const Duration(days: 1)))}', ).xSmall, - if (kDebugMode) - GhostButton( - onPressed: () { - sendCommand(Opcode.RESET, null); - }, - child: Text('Reset now'), - ), + Tooltip( + tooltip: (c) => Text('Unlock again'), + child: IconButton.ghost( + icon: Icon(Icons.lock_reset_rounded), - Button.secondary( - onPressed: () { - openDrawer( - context: context, - position: OverlayPosition.bottom, - builder: (_) => MarkdownPage(assetPath: 'TROUBLESHOOTING.md'), - ); - }, - leading: const Icon(Icons.help_outline_outlined), - child: Text(context.i18n.instructions), + onPressed: () { + openDrawer( + context: context, + position: OverlayPosition.bottom, + builder: (_) => UnlockPage(device: this), + ); + }, + ), ), ], ), - Align( - alignment: Alignment.topRight, - child: IconButton.link( - icon: Icon( - Icons.close, - color: Theme.of(context).colorScheme.destructive, - ), - onPressed: () { - core.settings.setShowZwiftClickV2ReconnectWarning(false); - setState(() {}); - }, - ), - ), ], ) else Warning( important: false, children: [ - Text( - AppLocalizations.of(context).clickV2EventInfo, - ).xSmall, - LinkButton( - child: Text(context.i18n.troubleshootingGuide), - onPressed: () { - openDrawer( - context: context, - position: OverlayPosition.bottom, - builder: (_) => MarkdownPage(assetPath: 'TROUBLESHOOTING.md'), - ); - }, + Row( + spacing: 8, + children: [ + Container( + decoration: BoxDecoration( + color: Colors.red, + borderRadius: BorderRadius.circular(24), + ), + padding: const EdgeInsets.all(4), + child: Icon(Icons.lock_rounded, color: Colors.white), + ), + + Text('Device is currently locked').xSmall, + Button.primary( + onPressed: () { + openDrawer( + context: context, + position: OverlayPosition.bottom, + builder: (_) => UnlockPage(device: this), + ); + }, + leading: const Icon(Icons.lock_open_rounded), + child: Text('Unlock now'), + ), + ], ), ], ), + /*else + Warning( + important: false, + children: [ + Text( + AppLocalizations.of(context).clickV2EventInfo, + ).xSmall, + LinkButton( + child: Text(context.i18n.troubleshootingGuide), + onPressed: () { + openDrawer( + context: context, + position: OverlayPosition.bottom, + builder: (_) => MarkdownPage(assetPath: 'TROUBLESHOOTING.md'), + ); + }, + ), + ], + ),*/ ], ); }, diff --git a/lib/bluetooth/devices/zwift/zwift_device.dart b/lib/bluetooth/devices/zwift/zwift_device.dart index f003c1f6..d93302b9 100644 --- a/lib/bluetooth/devices/zwift/zwift_device.dart +++ b/lib/bluetooth/devices/zwift/zwift_device.dart @@ -2,7 +2,6 @@ import 'dart:async'; import 'package:bike_control/bluetooth/devices/bluetooth_device.dart'; import 'package:bike_control/bluetooth/devices/zwift/constants.dart'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pbenum.dart'; import 'package:bike_control/bluetooth/messages/notification.dart'; import 'package:bike_control/utils/core.dart'; import 'package:bike_control/utils/i18n_extension.dart'; @@ -10,6 +9,7 @@ import 'package:bike_control/utils/keymap/buttons.dart'; import 'package:bike_control/utils/single_line_exception.dart'; import 'package:dartx/dartx.dart'; import 'package:flutter/foundation.dart'; +import 'package:prop/prop.dart'; import 'package:shadcn_flutter/shadcn_flutter.dart'; import 'package:universal_ble/universal_ble.dart'; diff --git a/lib/bluetooth/devices/zwift/zwift_emulator.dart b/lib/bluetooth/devices/zwift/zwift_emulator.dart index 736984cf..8bd87033 100644 --- a/lib/bluetooth/devices/zwift/zwift_emulator.dart +++ b/lib/bluetooth/devices/zwift/zwift_emulator.dart @@ -3,9 +3,6 @@ import 'dart:io'; import 'package:bike_control/bluetooth/ble.dart'; import 'package:bike_control/bluetooth/devices/trainer_connection.dart'; import 'package:bike_control/bluetooth/devices/zwift/constants.dart'; -import 'package:bike_control/bluetooth/devices/zwift/ftms_mdns_emulator.dart'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pb.dart'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zwift.pbserver.dart' hide RideButtonMask; import 'package:bike_control/bluetooth/devices/zwift/zwift_ride.dart'; import 'package:bike_control/bluetooth/messages/notification.dart'; import 'package:bike_control/gen/l10n.dart'; @@ -18,6 +15,7 @@ import 'package:bike_control/widgets/title.dart'; import 'package:bluetooth_low_energy/bluetooth_low_energy.dart'; import 'package:flutter/foundation.dart'; import 'package:permission_handler/permission_handler.dart'; +import 'package:prop/prop.dart' hide RideButtonMask; class ZwiftEmulator extends TrainerConnection { bool get isLoading => _isLoading; @@ -163,7 +161,7 @@ class ZwiftEmulator extends TrainerConnection { ); final request = eventArgs.request; - final response = handleWriteRequest(eventArgs.characteristic.uuid.toString(), request.value); + final response = SharedLogic.handleWriteRequest(eventArgs.characteristic.uuid.toString(), request.value); if (response != null) { await _peripheralManager.notifyCharacteristic( _central!, @@ -362,106 +360,6 @@ class ZwiftEmulator extends TrainerConnection { return Success('Sent action: ${keyPair.inGameAction!.name}'); } - Uint8List? handleWriteRequest(String characteristic, Uint8List value) { - print( - 'Write request for characteristic: $characteristic', - ); - - switch (characteristic.toUpperCase()) { - case ZwiftConstants.ZWIFT_SYNC_RX_CHARACTERISTIC_UUID: - print( - 'Handling write request for SYNC RX characteristic, value: ${value.map((e) => e.toRadixString(16).padLeft(2, '0')).join(' ')}\n${String.fromCharCodes(value)}', - ); - - Opcode? opcode = Opcode.valueOf(value[0]); - Uint8List message = value.sublist(1); - - switch (opcode) { - case Opcode.RIDE_ON: - print('Sending handshake'); - return ZwiftConstants.RIDE_ON; - case Opcode.GET: - final response = Get.fromBuffer(message); - final dataObjectType = DO.valueOf(response.dataObjectId); - print('Received GET for data object: $dataObjectType'); - switch (dataObjectType) { - case DO.PAGE_DEV_INFO: - /*final devInfo = DevInfoPage( - deviceName: 'Zwift Click'.codeUnits, - deviceUid: '0B-58D15ABB4363'.codeUnits, - manufacturerId: 0x01, - serialNumber: '58D15ABB4363'.codeUnits, - protocolVersion: 515, - systemFwVersion: [0, 0, 1, 1], - productId: 11, - systemHwRevision: 'B.0'.codeUnits, - deviceCapabilities: [DevInfoPage_DeviceCapabilities(deviceType: 2, capabilities: 1)], - ); - final serverInfoResponse = Uint8List.fromList([ - Opcode.GET_RESPONSE.value, - ...GetResponse( - dataObjectId: DO.PAGE_DEV_INFO.value, - dataObjectData: devInfo.writeToBuffer(), - ).writeToBuffer(), - ]);*/ - // 3C080012460A440883041204000001011A0B5A7769667420436C69636B320F30422D3538443135414242343336333A03422E304204080210014801500B5A0C353844313541424234333633 - final expected = Uint8List.fromList( - hexToBytes( - '3C080012460A440883041204000001011A0B5A7769667420436C69636B320F30422D3538443135414242343336333A03422E304204080210014801500B5A0C353844313541424234333633', - ), - ); - return expected; - case DO.PAGE_CLIENT_SERVER_CONFIGURATION: - final response = Uint8List.fromList([ - Opcode.GET_RESPONSE.value, - ...GetResponse( - dataObjectId: DO.PAGE_CLIENT_SERVER_CONFIGURATION.value, - dataObjectData: ClientServerCfgPage( - notifications: 0, - ).writeToBuffer(), - ).writeToBuffer(), - ]); - return response; - case DO.PAGE_CONTROLLER_INPUT_CONFIG: - final response = Uint8List.fromList([ - Opcode.GET_RESPONSE.value, - ...GetResponse( - dataObjectId: DO.PAGE_CONTROLLER_INPUT_CONFIG.value, - dataObjectData: ControllerInputConfigPage( - supportedDigitalInputs: 4607, - supportedAnalogInputs: 0, - analogDeadZone: [], - analogInputRange: [], - ).writeToBuffer(), - ).writeToBuffer(), - ]); - return response; - case DO.BATTERY_STATE: - final response = Uint8List.fromList([ - Opcode.GET_RESPONSE.value, - ...GetResponse( - dataObjectId: DO.BATTERY_STATE.value, - dataObjectData: BatteryStatus( - chgState: ChargingState.CHARGING_IDLE, - percLevel: 100, - timeToEmpty: 0, - timeToFull: 0, - ).writeToBuffer(), - ).writeToBuffer(), - ]); - return response; - default: - print('Unhandled data object type for GET: $dataObjectType'); - } - break; - } - break; - default: - print('Unhandled write request for characteristic: $characteristic $value'); - } - return null; - } - void cleanup() { _peripheralManager.stopAdvertising(); _peripheralManager.removeAllServices(); diff --git a/lib/bluetooth/devices/zwift/zwift_play.dart b/lib/bluetooth/devices/zwift/zwift_play.dart index 582fddf5..55feeea6 100644 --- a/lib/bluetooth/devices/zwift/zwift_play.dart +++ b/lib/bluetooth/devices/zwift/zwift_play.dart @@ -1,9 +1,9 @@ import 'package:bike_control/bluetooth/devices/zwift/constants.dart'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zwift.pb.dart'; import 'package:bike_control/bluetooth/devices/zwift/zwift_device.dart'; import 'package:bike_control/utils/keymap/buttons.dart'; import 'package:bike_control/widgets/keymap_explanation.dart'; import 'package:flutter/foundation.dart'; +import 'package:prop/prop.dart'; class ZwiftPlay extends ZwiftDevice { final ZwiftDeviceType deviceType; @@ -11,20 +11,24 @@ class ZwiftPlay extends ZwiftDevice { ZwiftPlay(super.scanResult, {required this.deviceType}) : super( availableButtons: [ - ZwiftButtons.y, - ZwiftButtons.z, - ZwiftButtons.a, - ZwiftButtons.b, - ZwiftButtons.onOffRight, - ZwiftButtons.sideButtonRight, - ZwiftButtons.paddleRight, - ZwiftButtons.navigationUp, - ZwiftButtons.navigationLeft, - ZwiftButtons.navigationRight, - ZwiftButtons.navigationDown, - ZwiftButtons.onOffLeft, - ZwiftButtons.sideButtonLeft, - ZwiftButtons.paddleLeft, + if (deviceType == ZwiftDeviceType.playLeft) ...[ + ZwiftButtons.navigationUp, + ZwiftButtons.navigationLeft, + ZwiftButtons.navigationRight, + ZwiftButtons.navigationDown, + ZwiftButtons.onOffLeft, + ZwiftButtons.sideButtonLeft, + ZwiftButtons.paddleLeft, + ], + if (deviceType == ZwiftDeviceType.playRight) ...[ + ZwiftButtons.y, + ZwiftButtons.z, + ZwiftButtons.a, + ZwiftButtons.b, + ZwiftButtons.onOffRight, + ZwiftButtons.sideButtonRight, + ZwiftButtons.paddleRight, + ], ], ); diff --git a/lib/bluetooth/devices/zwift/zwift_ride.dart b/lib/bluetooth/devices/zwift/zwift_ride.dart index 0c396aa0..205a721f 100644 --- a/lib/bluetooth/devices/zwift/zwift_ride.dart +++ b/lib/bluetooth/devices/zwift/zwift_ride.dart @@ -1,14 +1,12 @@ -import 'package:dartx/dartx.dart'; -import 'package:flutter/foundation.dart'; -import 'package:protobuf/protobuf.dart' as $pb; import 'package:bike_control/bluetooth/devices/zwift/constants.dart'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pb.dart'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp_vendor.pb.dart'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zwift.pb.dart'; import 'package:bike_control/bluetooth/devices/zwift/zwift_device.dart'; import 'package:bike_control/bluetooth/messages/notification.dart'; import 'package:bike_control/utils/core.dart'; import 'package:bike_control/utils/keymap/buttons.dart'; +import 'package:dartx/dartx.dart'; +import 'package:flutter/foundation.dart'; +import 'package:prop/prop.dart'; +import 'package:protobuf/protobuf.dart' as $pb; import 'package:universal_ble/universal_ble.dart'; class ZwiftRide extends ZwiftDevice { diff --git a/lib/bluetooth/messages/notification.dart b/lib/bluetooth/messages/notification.dart index 42745527..72a64d5b 100644 --- a/lib/bluetooth/messages/notification.dart +++ b/lib/bluetooth/messages/notification.dart @@ -1,4 +1,4 @@ -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pb.dart'; +import 'package:prop/prop.dart'; import 'package:bike_control/utils/actions/base_actions.dart'; import 'package:bike_control/utils/keymap/buttons.dart'; import 'package:bike_control/widgets/keymap_explanation.dart'; diff --git a/lib/bluetooth/remote_pairing.dart b/lib/bluetooth/remote_pairing.dart index 286f69db..5a32a277 100644 --- a/lib/bluetooth/remote_pairing.dart +++ b/lib/bluetooth/remote_pairing.dart @@ -1,7 +1,6 @@ import 'dart:io'; import 'package:bike_control/bluetooth/devices/trainer_connection.dart'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pb.dart'; import 'package:bike_control/bluetooth/messages/notification.dart'; import 'package:bike_control/gen/l10n.dart'; import 'package:bike_control/utils/actions/base_actions.dart'; @@ -12,6 +11,7 @@ import 'package:bike_control/utils/requirements/multi.dart'; import 'package:bluetooth_low_energy/bluetooth_low_energy.dart'; import 'package:flutter/foundation.dart'; import 'package:permission_handler/permission_handler.dart'; +import 'package:prop/prop.dart'; import '../utils/keymap/keymap.dart'; @@ -257,7 +257,7 @@ class RemotePairing extends TrainerConnection { : ''}', serviceUUIDs: [UUID.fromString(Platform.isIOS ? '1812' : '00001812-0000-1000-8000-00805F9B34FB')], ); - print('Starting advertising with Zwift service...'); + print('Starting advertising with Remote service...'); await _peripheralManager.startAdvertising(advertisement); _isLoading = false; diff --git a/lib/pages/trainer.dart b/lib/pages/trainer.dart index 0f36fc47..24366c6f 100644 --- a/lib/pages/trainer.dart +++ b/lib/pages/trainer.dart @@ -19,11 +19,11 @@ import 'package:bike_control/widgets/ui/colored_title.dart'; import 'package:bike_control/widgets/ui/toast.dart'; import 'package:dartx/dartx.dart'; import 'package:flutter/foundation.dart'; +import 'package:prop/prop.dart'; import 'package:shadcn_flutter/shadcn_flutter.dart'; import 'package:universal_ble/universal_ble.dart'; import 'package:wakelock_plus/wakelock_plus.dart'; -import '../bluetooth/devices/zwift/protocol/zp.pbenum.dart'; import '../utils/keymap/apps/supported_app.dart'; class TrainerPage extends StatefulWidget { diff --git a/lib/pages/unlock.dart b/lib/pages/unlock.dart new file mode 100644 index 00000000..b90d284b --- /dev/null +++ b/lib/pages/unlock.dart @@ -0,0 +1,168 @@ +import 'package:bike_control/bluetooth/devices/zwift/zwift_clickv2.dart'; +import 'package:bike_control/bluetooth/messages/notification.dart'; +import 'package:bike_control/gen/l10n.dart'; +import 'package:bike_control/main.dart'; +import 'package:bike_control/pages/markdown.dart'; +import 'package:bike_control/utils/core.dart'; +import 'package:bike_control/utils/i18n_extension.dart'; +import 'package:bike_control/widgets/ui/warning.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter_local_notifications/flutter_local_notifications.dart'; +import 'package:prop/prop.dart'; +import 'package:shadcn_flutter/shadcn_flutter.dart'; + +import '../widgets/ui/small_progress_indicator.dart'; + +class UnlockPage extends StatefulWidget { + final ZwiftClickV2 device; + const UnlockPage({super.key, required this.device}); + + @override + State createState() => _UnlockPageState(); +} + +class _UnlockPageState extends State { + late final bool _wasMdnsEmulatorActive; + bool _showManualSteps = false; + + void _isConnectedUpdate() { + setState(() {}); + if (widget.device.emulator.isUnlocked.value) { + final alreadyUnlocked = widget.device.emulator.alreadyUnlocked.value; + + final title = alreadyUnlocked + ? '${widget.device.toString()} is already unlocked' + : '${widget.device.toString()} is now unlocked'; + + final subtitle = 'You can now close Zwift and return to BikeControl.'; + core.connection.signalNotification( + AlertNotification(LogLevel.LOGLEVEL_INFO, title), + ); + + core.flutterLocalNotificationsPlugin.show( + 1339, + title, + subtitle, + NotificationDetails( + android: AndroidNotificationDetails('Unlocked', 'Device unlocked notification'), + iOS: DarwinNotificationDetails(presentAlert: true), + ), + ); + closeDrawer(context); + } + } + + @override + void initState() { + super.initState(); + + _wasMdnsEmulatorActive = core.zwiftMdnsEmulator.isStarted.value; + + if (_wasMdnsEmulatorActive) { + core.zwiftMdnsEmulator.stop(); + core.settings.setZwiftMdnsEmulatorEnabled(false); + } + + widget.device.emulator.alreadyUnlocked.value = false; + widget.device.emulator.isConnected.addListener(_isConnectedUpdate); + widget.device.emulator.isUnlocked.addListener(_isConnectedUpdate); + widget.device.emulator.startServer().then((_) {}).catchError((e, s) { + recordError(e, s, context: 'Emulator'); + core.connection.signalNotification(AlertNotification(LogLevel.LOGLEVEL_ERROR, e.toString())); + }); + } + + @override + void dispose() { + widget.device.emulator.isConnected.removeListener(_isConnectedUpdate); + widget.device.emulator.isUnlocked.removeListener(_isConnectedUpdate); + widget.device.emulator.stop(); + + if (_wasMdnsEmulatorActive) { + core.zwiftMdnsEmulator.startServer(); + core.settings.setZwiftMdnsEmulatorEnabled(true); + } + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Container( + constraints: BoxConstraints(maxWidth: 400), + padding: const EdgeInsets.symmetric(horizontal: 32.0), + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + if (_showManualSteps) + Warning( + children: [ + Text( + 'Important Setup Information', + style: TextStyle( + fontWeight: FontWeight.bold, + color: Theme.of(context).colorScheme.destructive, + ), + ).small, + Text( + AppLocalizations.of(context).clickV2Instructions, + style: TextStyle( + color: Theme.of(context).colorScheme.destructive, + ), + ).xSmall, + if (kDebugMode) + GhostButton( + onPressed: () { + widget.device.sendCommand(Opcode.RESET, null); + }, + child: Text('Reset now'), + ), + + Button.secondary( + onPressed: () { + openDrawer( + context: context, + position: OverlayPosition.bottom, + builder: (_) => MarkdownPage(assetPath: 'TROUBLESHOOTING.md'), + ); + }, + leading: const Icon(Icons.help_outline_outlined), + child: Text(context.i18n.instructions), + ), + ], + ) + else if (!widget.device.emulator.isConnected.value) ...[ + Text('Open Zwift (not the Companion) on this or another device').li, + Text('Connect to "BikeControl" as Power Source. It may take a few seconds to appear.').li, + SizedBox(height: 32), + Text('BikeControl and Zwift need to be on the same network.').small, + ] else if (!widget.device.emulator.isUnlocked.value) + Text('Waiting for Zwift to unlock your device...') + else + Text('Zwift Click is unlocked! You can now close this page.'), + SizedBox(height: 32), + if (!_showManualSteps) ...[ + SmallProgressIndicator(), + SizedBox(height: 20), + ], + if (!widget.device.emulator.isConnected.value && !_showManualSteps) ...[ + SizedBox(height: 32), + Center(child: Text('Not working?').small), + SizedBox(height: 6), + Center( + child: Button.secondary( + onPressed: () { + setState(() { + _showManualSteps = !_showManualSteps; + }); + }, + child: Text('Unlock manually'), + ), + ), + ], + SizedBox(height: 20), + ], + ), + ); + } +} diff --git a/lib/utils/core.dart b/lib/utils/core.dart index cf5162a7..eb0a9138 100644 --- a/lib/utils/core.dart +++ b/lib/utils/core.dart @@ -5,7 +5,7 @@ import 'package:bike_control/bluetooth/devices/openbikecontrol/obc_mdns_emulator import 'package:bike_control/bluetooth/devices/openbikecontrol/protocol_parser.dart'; import 'package:bike_control/bluetooth/devices/trainer_connection.dart'; import 'package:bike_control/bluetooth/devices/zwift/ftms_mdns_emulator.dart'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pb.dart'; +import 'package:prop/prop.dart'; import 'package:bike_control/bluetooth/devices/zwift/zwift_emulator.dart'; import 'package:bike_control/bluetooth/messages/notification.dart'; import 'package:bike_control/bluetooth/remote_pairing.dart'; diff --git a/lib/utils/iap/iap_service.dart b/lib/utils/iap/iap_service.dart index 0144311e..0dc523cd 100644 --- a/lib/utils/iap/iap_service.dart +++ b/lib/utils/iap/iap_service.dart @@ -2,7 +2,7 @@ import 'dart:async'; import 'dart:convert'; import 'dart:io'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pb.dart'; +import 'package:prop/prop.dart'; import 'package:bike_control/bluetooth/messages/notification.dart'; import 'package:bike_control/main.dart'; import 'package:bike_control/utils/core.dart'; diff --git a/lib/utils/iap/revenuecat_service.dart b/lib/utils/iap/revenuecat_service.dart index 3180a0cf..5083dcb2 100644 --- a/lib/utils/iap/revenuecat_service.dart +++ b/lib/utils/iap/revenuecat_service.dart @@ -1,7 +1,6 @@ import 'dart:async'; import 'dart:io'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pb.dart' as zp; import 'package:bike_control/bluetooth/messages/notification.dart'; import 'package:bike_control/gen/l10n.dart'; import 'package:bike_control/main.dart'; @@ -11,6 +10,7 @@ import 'package:dartx/dartx.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/services.dart'; import 'package:flutter_secure_storage/flutter_secure_storage.dart'; +import 'package:prop/prop.dart' as zp; import 'package:purchases_flutter/purchases_flutter.dart'; import 'package:purchases_ui_flutter/purchases_ui_flutter.dart'; import 'package:shadcn_flutter/shadcn_flutter.dart'; diff --git a/lib/utils/keymap/buttons.dart b/lib/utils/keymap/buttons.dart index 92bdbdfc..8f4a46cd 100644 --- a/lib/utils/keymap/buttons.dart +++ b/lib/utils/keymap/buttons.dart @@ -95,7 +95,7 @@ class ControllerButton { } String get displayName { - if (sourceDeviceId == null) { + if (sourceDeviceId == null || true) { return name; } diff --git a/lib/utils/keymap/keymap.dart b/lib/utils/keymap/keymap.dart index 27a9c6de..78faef66 100644 --- a/lib/utils/keymap/keymap.dart +++ b/lib/utils/keymap/keymap.dart @@ -82,21 +82,20 @@ class Keymap { } } - ControllerButton getOrAddButton(String name, ControllerButton Function() button) { + ControllerButton getOrAddButton(String name, ControllerButton button) { final allButtons = keyPairs.expand((kp) => kp.buttons).toSet().toList(); if (allButtons.none((b) => b.name == name)) { - final newButton = button(); addKeyPair( KeyPair( touchPosition: Offset.zero, - buttons: [newButton], + buttons: [button], physicalKey: null, logicalKey: null, - inGameAction: newButton.action, - isLongPress: newButton.action?.isLongPress ?? false, + inGameAction: button.action, + isLongPress: button.action?.isLongPress ?? false, ), ); - return newButton; + return button; } else { return allButtons.firstWhere((b) => b.name == name); } diff --git a/lib/utils/settings/settings.dart b/lib/utils/settings/settings.dart index ee650460..31259bff 100644 --- a/lib/utils/settings/settings.dart +++ b/lib/utils/settings/settings.dart @@ -2,6 +2,7 @@ import 'dart:convert'; import 'dart:io'; import 'package:bike_control/bluetooth/devices/gyroscope/gyroscope_steering.dart'; +import 'package:bike_control/bluetooth/devices/zwift/zwift_clickv2.dart'; import 'package:bike_control/utils/core.dart'; import 'package:bike_control/utils/iap/iap_manager.dart'; import 'package:bike_control/utils/keymap/apps/supported_app.dart'; @@ -404,4 +405,11 @@ class Settings { Future setHasAskedPermissions(bool asked) async { await prefs.setBool('asked_permissions', asked); } + + DateTime? getZwiftClickV2LastUnlock(ZwiftClickV2 device) { + final key = 'clickV2_${device.scanResult.deviceId}'; + final timestamp = prefs.getInt('${key}_unlock_date'); + if (timestamp == null) return null; + return DateTime.fromMillisecondsSinceEpoch(timestamp); + } } diff --git a/lib/widgets/apps/mywhoosh_link_tile.dart b/lib/widgets/apps/mywhoosh_link_tile.dart index 5e8779a5..038fa25a 100644 --- a/lib/widgets/apps/mywhoosh_link_tile.dart +++ b/lib/widgets/apps/mywhoosh_link_tile.dart @@ -1,4 +1,4 @@ -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pb.dart'; +import 'package:prop/prop.dart'; import 'package:bike_control/gen/l10n.dart'; import 'package:bike_control/main.dart'; import 'package:bike_control/pages/markdown.dart'; diff --git a/lib/widgets/apps/openbikecontrol_ble_tile.dart b/lib/widgets/apps/openbikecontrol_ble_tile.dart index 88ee6e4f..6dd6f641 100644 --- a/lib/widgets/apps/openbikecontrol_ble_tile.dart +++ b/lib/widgets/apps/openbikecontrol_ble_tile.dart @@ -1,4 +1,4 @@ -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pb.dart'; +import 'package:prop/prop.dart'; import 'package:bike_control/main.dart'; import 'package:bike_control/utils/core.dart'; import 'package:bike_control/utils/i18n_extension.dart'; diff --git a/lib/widgets/apps/openbikecontrol_mdns_tile.dart b/lib/widgets/apps/openbikecontrol_mdns_tile.dart index f6e58655..1a530639 100644 --- a/lib/widgets/apps/openbikecontrol_mdns_tile.dart +++ b/lib/widgets/apps/openbikecontrol_mdns_tile.dart @@ -1,4 +1,4 @@ -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pb.dart'; +import 'package:prop/prop.dart'; import 'package:bike_control/bluetooth/messages/notification.dart'; import 'package:bike_control/main.dart'; import 'package:bike_control/utils/core.dart'; diff --git a/lib/widgets/apps/zwift_mdns_tile.dart b/lib/widgets/apps/zwift_mdns_tile.dart index 7032a8ec..d63ce9b5 100644 --- a/lib/widgets/apps/zwift_mdns_tile.dart +++ b/lib/widgets/apps/zwift_mdns_tile.dart @@ -1,4 +1,4 @@ -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pb.dart'; +import 'package:prop/prop.dart'; import 'package:bike_control/bluetooth/messages/notification.dart'; import 'package:bike_control/main.dart'; import 'package:bike_control/utils/core.dart'; diff --git a/lib/widgets/apps/zwift_tile.dart b/lib/widgets/apps/zwift_tile.dart index bcfc7012..25b0c782 100644 --- a/lib/widgets/apps/zwift_tile.dart +++ b/lib/widgets/apps/zwift_tile.dart @@ -1,10 +1,10 @@ -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pbenum.dart'; import 'package:bike_control/bluetooth/messages/notification.dart'; import 'package:bike_control/main.dart'; import 'package:bike_control/utils/core.dart'; import 'package:bike_control/utils/i18n_extension.dart'; import 'package:bike_control/widgets/ui/connection_method.dart'; import 'package:flutter/material.dart'; +import 'package:prop/prop.dart'; class ZwiftTile extends StatefulWidget { final VoidCallback onUpdate; diff --git a/lib/widgets/keymap_explanation.dart b/lib/widgets/keymap_explanation.dart index fca0adc7..52a426bb 100644 --- a/lib/widgets/keymap_explanation.dart +++ b/lib/widgets/keymap_explanation.dart @@ -8,6 +8,7 @@ import 'package:bike_control/utils/keymap/apps/custom_app.dart'; import 'package:bike_control/utils/keymap/keymap.dart'; import 'package:bike_control/utils/keymap/manager.dart'; import 'package:bike_control/widgets/ui/button_widget.dart'; +import 'package:bike_control/widgets/ui/colored_title.dart'; import 'package:bike_control/widgets/ui/toast.dart'; import 'package:dartx/dartx.dart'; import 'package:shadcn_flutter/shadcn_flutter.dart'; @@ -74,16 +75,18 @@ class _KeymapExplanationState extends State { @override Widget build(BuildContext context) { - final allAvailableButtons = IterableFlatMap(core.connection.devices).flatMap((d) => d.availableButtons); - final availableKeypairs = widget.keymap.keyPairs - .whereNot( - (keyPair) => keyPair.buttons.filter((b) => allAvailableButtons.contains(b)).isEmpty, - ) - .sortedBy( - (k) => k.buttons.first.color != null - ? '0${(k.buttons.first.icon?.codePoint ?? 0 * -1)}' - : '1${(k.buttons.first.icon?.codePoint ?? 0 * -1)}', - ); + final keyButtonMap = core.connection.devices.associateWith((d) { + final allButtons = d.availableButtons; + return widget.keymap.keyPairs + .whereNot( + (keyPair) => keyPair.buttons.filter((b) => allButtons.contains(b)).isEmpty, + ) + .sortedBy( + (k) => k.buttons.first.color != null + ? '0${(k.buttons.first.icon?.codePoint ?? 0 * -1)}' + : '1${(k.buttons.first.icon?.codePoint ?? 0 * -1)}', + ); + }); return Column( crossAxisAlignment: CrossAxisAlignment.stretch, @@ -95,75 +98,79 @@ class _KeymapExplanationState extends State { style: TextStyle(fontSize: 12), ).muted, - for (final keyPair in availableKeypairs) ...[ - Button.card( - style: ButtonStyle.card().withBackgroundColor(color: Theme.of(context).colorScheme.background), - onPressed: () async { - if (core.actionHandler.supportedApp is! CustomApp) { - final currentProfile = core.actionHandler.supportedApp!.name; - final newName = await KeymapManager().duplicate( - context, - currentProfile, - skipName: '$currentProfile (Copy)', - ); - if (newName != null && context.mounted) { - buildToast(context, title: context.i18n.createdNewCustomProfile(newName)); - final selectedKeyPair = core.actionHandler.supportedApp!.keymap.keyPairs.firstWhere( - (e) => e == keyPair, + for (final devicePair in keyButtonMap.entries) ...[ + SizedBox(height: 12), + ColoredTitle(text: devicePair.key.toString()), + for (final keyPair in devicePair.value) ...[ + Button.card( + style: ButtonStyle.card().withBackgroundColor(color: Theme.of(context).colorScheme.background), + onPressed: () async { + if (core.actionHandler.supportedApp is! CustomApp) { + final currentProfile = core.actionHandler.supportedApp!.name; + final newName = await KeymapManager().duplicate( + context, + currentProfile, + skipName: '$currentProfile (Copy)', ); - _openKeyPairEditor(selectedKeyPair); + if (newName != null && context.mounted) { + buildToast(context, title: context.i18n.createdNewCustomProfile(newName)); + final selectedKeyPair = core.actionHandler.supportedApp!.keymap.keyPairs.firstWhere( + (e) => e == keyPair, + ); + _openKeyPairEditor(selectedKeyPair); + } + } else { + _openKeyPairEditor(keyPair); } - } else { - _openKeyPairEditor(keyPair); - } - }, - child: Row( - children: [ - Expanded( - child: Basic( - leading: SizedBox( - width: 68, - child: Wrap( - spacing: 8, - runSpacing: 8, - crossAxisAlignment: WrapCrossAlignment.center, - runAlignment: WrapAlignment.center, - children: [ - if (core.actionHandler.supportedApp is! CustomApp) - for (final button in keyPair.buttons.filter((b) => allAvailableButtons.contains(b))) - IntrinsicWidth( - child: ButtonWidget( - button: button, - big: true, + }, + child: Row( + children: [ + Expanded( + child: Basic( + leading: SizedBox( + width: 68, + child: Wrap( + spacing: 8, + runSpacing: 8, + crossAxisAlignment: WrapCrossAlignment.center, + runAlignment: WrapAlignment.center, + children: [ + if (core.actionHandler.supportedApp is! CustomApp) + for (final button in keyPair.buttons) + IntrinsicWidth( + child: ButtonWidget( + button: button, + big: true, + ), + ) + else + for (final button in keyPair.buttons) + IntrinsicWidth( + child: ButtonWidget( + button: button, + big: true, + ), ), - ) - else - for (final button in keyPair.buttons) - IntrinsicWidth( - child: ButtonWidget( - button: button, - big: true, - ), - ), - ], + ], + ), ), + content: (keyPair.buttons.isNotEmpty && keyPair.hasActiveAction) + ? KeypairExplanation( + keyPair: keyPair, + ) + : Text( + core.logic.hasNoConnectionMethod + ? AppLocalizations.of(context).noConnectionMethodSelected + : context.i18n.noActionAssigned, + style: TextStyle(height: 1), + ).muted, ), - content: (keyPair.buttons.isNotEmpty && keyPair.hasActiveAction) - ? KeypairExplanation( - keyPair: keyPair, - ) - : Text( - core.logic.hasNoConnectionMethod - ? AppLocalizations.of(context).noConnectionMethodSelected - : context.i18n.noActionAssigned, - style: TextStyle(height: 1), - ).muted, ), - ), - Icon(Icons.edit_outlined, size: 26), - ], + Icon(Icons.edit_outlined, size: 26), + ], + ), ), - ), + ], ], ], ); diff --git a/lib/widgets/pair_widget.dart b/lib/widgets/pair_widget.dart index 8c2df127..b571962d 100644 --- a/lib/widgets/pair_widget.dart +++ b/lib/widgets/pair_widget.dart @@ -1,10 +1,10 @@ import 'dart:io'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pbenum.dart' show LogLevel; import 'package:bike_control/bluetooth/messages/notification.dart'; import 'package:bike_control/utils/core.dart'; import 'package:bike_control/utils/i18n_extension.dart'; import 'package:bike_control/widgets/ui/connection_method.dart'; +import 'package:prop/prop.dart' show LogLevel; import 'package:shadcn_flutter/shadcn_flutter.dart'; import '../utils/requirements/multi.dart'; diff --git a/lib/widgets/testbed.dart b/lib/widgets/testbed.dart index fa03b7cf..b279887e 100644 --- a/lib/widgets/testbed.dart +++ b/lib/widgets/testbed.dart @@ -2,7 +2,7 @@ import 'dart:async'; import 'dart:math' as math; import 'dart:ui'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pb.dart'; +import 'package:prop/prop.dart'; import 'package:bike_control/utils/actions/base_actions.dart' as actions; import 'package:bike_control/utils/core.dart'; import 'package:bike_control/utils/i18n_extension.dart'; diff --git a/lib/widgets/ui/toast.dart b/lib/widgets/ui/toast.dart index a40a47fb..ca1efa04 100644 --- a/lib/widgets/ui/toast.dart +++ b/lib/widgets/ui/toast.dart @@ -1,4 +1,4 @@ -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pb.dart'; +import 'package:prop/prop.dart'; import 'package:bike_control/widgets/ui/button_widget.dart'; import 'package:shadcn_flutter/shadcn_flutter.dart'; diff --git a/linux/flutter/generated_plugin_registrant.cc b/linux/flutter/generated_plugin_registrant.cc index 07f984ae..67102250 100644 --- a/linux/flutter/generated_plugin_registrant.cc +++ b/linux/flutter/generated_plugin_registrant.cc @@ -11,10 +11,12 @@ #include #include #include +#include #include #include #include #include +#include void fl_register_plugins(FlPluginRegistry* registry) { g_autoptr(FlPluginRegistrar) bluetooth_low_energy_linux_registrar = @@ -32,6 +34,9 @@ void fl_register_plugins(FlPluginRegistry* registry) { g_autoptr(FlPluginRegistrar) gamepads_linux_registrar = fl_plugin_registry_get_registrar_for_plugin(registry, "GamepadsLinuxPlugin"); gamepads_linux_plugin_register_with_registrar(gamepads_linux_registrar); + g_autoptr(FlPluginRegistrar) gtk_registrar = + fl_plugin_registry_get_registrar_for_plugin(registry, "GtkPlugin"); + gtk_plugin_register_with_registrar(gtk_registrar); g_autoptr(FlPluginRegistrar) media_key_detector_linux_registrar = fl_plugin_registry_get_registrar_for_plugin(registry, "MediaKeyDetectorPlugin"); media_key_detector_plugin_register_with_registrar(media_key_detector_linux_registrar); @@ -44,4 +49,7 @@ void fl_register_plugins(FlPluginRegistry* registry) { g_autoptr(FlPluginRegistrar) window_manager_registrar = fl_plugin_registry_get_registrar_for_plugin(registry, "WindowManagerPlugin"); window_manager_plugin_register_with_registrar(window_manager_registrar); + g_autoptr(FlPluginRegistrar) yaru_window_linux_registrar = + fl_plugin_registry_get_registrar_for_plugin(registry, "YaruWindowLinuxPlugin"); + yaru_window_linux_plugin_register_with_registrar(yaru_window_linux_registrar); } diff --git a/linux/flutter/generated_plugins.cmake b/linux/flutter/generated_plugins.cmake index 97b7ff61..054b0a52 100644 --- a/linux/flutter/generated_plugins.cmake +++ b/linux/flutter/generated_plugins.cmake @@ -8,10 +8,12 @@ list(APPEND FLUTTER_PLUGIN_LIST flutter_secure_storage_linux flutter_volume_controller gamepads_linux + gtk media_key_detector_linux screen_retriever_linux url_launcher_linux window_manager + yaru_window_linux ) list(APPEND FLUTTER_FFI_PLUGIN_LIST diff --git a/prop b/prop new file mode 160000 index 00000000..5133808a --- /dev/null +++ b/prop @@ -0,0 +1 @@ +Subproject commit 5133808abbaeca7be4345868573e2c5327396b24 diff --git a/pubspec.lock b/pubspec.lock index 247cadba..42cfd208 100755 --- a/pubspec.lock +++ b/pubspec.lock @@ -1290,6 +1290,13 @@ packages: url: "https://pub.dev" source: hosted version: "5.0.5" + prop: + dependency: "direct main" + description: + path: prop + relative: true + source: path + version: "0.0.1" protobuf: dependency: "direct main" description: @@ -1850,5 +1857,5 @@ packages: source: hosted version: "0.0.4" sdks: - dart: ">=3.10.3 <4.0.0" + dart: ">=3.10.7 <4.0.0" flutter: ">=3.38.4" diff --git a/pubspec.yaml b/pubspec.yaml index 0e279e5b..43b8b2fc 100755 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -65,6 +65,8 @@ dependencies: package_info_plus: ^9.0.0 in_app_update: ^4.2.5 http: ^1.3.0 + prop: + path: prop shadcn_flutter: git: url: https://github.com/sunarya-thito/shadcn_flutter.git diff --git a/test/zwift.dart b/test/zwift.dart deleted file mode 100644 index 3ee9aaee..00000000 --- a/test/zwift.dart +++ /dev/null @@ -1,47 +0,0 @@ -import 'dart:typed_data'; - -import 'package:flutter_test/flutter_test.dart'; -import 'package:bike_control/bluetooth/devices/zwift/ftms_mdns_emulator.dart'; -import 'package:bike_control/bluetooth/devices/zwift/protocol/zp.pb.dart'; - -void main() { - group('Zwift Emulation', () { - test('compare bytes', () { - final devInfo = DevInfoPage( - deviceName: 'BikeControl'.codeUnits, - deviceUid: '58D15ABB4363'.codeUnits, - manufacturerId: 0x01, - serialNumber: '0B-58D15ABB4363'.codeUnits, - protocolVersion: 515, - systemFwVersion: [0, 0, 1, 1], - productId: 11, - systemHwRevision: 'B.0'.codeUnits, - deviceCapabilities: [DevInfoPage_DeviceCapabilities(deviceType: 2, capabilities: 1)], - ); - - final getResponse = GetResponse( - dataObjectId: DO.PAGE_DEV_INFO.value, - dataObjectData: devInfo.writeToBuffer(), - ); - - final serverInfoResponse = Uint8List.fromList([ - Opcode.GET_RESPONSE.value, - ...getResponse.writeToBuffer(), - ]); - final expected = Uint8List.fromList( - hexToBytes( - '3C080012460A440883041204000001011A0B42696b65436f6e74726f6c320F30422D3538443135414242343336333A03422E304204080210014801500B5A0C353844313541424234333633', - ), - ); - - final parsed = GetResponse.fromBuffer(expected.sublist(1)); - //expect(parsed, equals(getResponse)); - - final parsedDo = DevInfoPage.fromBuffer(parsed.dataObjectData); - expect(parsedDo.writeToBuffer(), equals(devInfo.writeToBuffer())); - expect(parsedDo, equals(devInfo)); - - //expect(serverInfoResponse, equals(expected)); - }); - }); -}