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