/// // Generated code. Do not modify. // source: flutterblue.proto /// // ignore_for_file: non_constant_identifier_names,library_prefixes,unused_import // ignore: UNUSED_SHOWN_NAME import 'dart:core' show int, bool, double, String, List, Map, override; import 'package:protobuf/protobuf.dart' as $pb; import 'flutterblue.pbenum.dart'; export 'flutterblue.pbenum.dart'; class Int32Value extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = new $pb.BuilderInfo('Int32Value') ..a(1, 'value', $pb.PbFieldType.O3) ..hasRequiredFields = false ; Int32Value() : super(); Int32Value.fromBuffer(List i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); Int32Value.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); Int32Value clone() => new Int32Value()..mergeFromMessage(this); Int32Value copyWith(void Function(Int32Value) updates) => super.copyWith((message) => updates(message as Int32Value)); $pb.BuilderInfo get info_ => _i; static Int32Value create() => new Int32Value(); static $pb.PbList createRepeated() => new $pb.PbList(); static Int32Value getDefault() => _defaultInstance ??= create()..freeze(); static Int32Value _defaultInstance; static void $checkItem(Int32Value v) { if (v is! Int32Value) $pb.checkItemFailed(v, _i.qualifiedMessageName); } int get value => $_get(0, 0); set value(int v) { $_setSignedInt32(0, v); } bool hasValue() => $_has(0); void clearValue() => clearField(1); } class BluetoothState extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = new $pb.BuilderInfo('BluetoothState') ..e(1, 'state', $pb.PbFieldType.OE, BluetoothState_State.UNKNOWN, BluetoothState_State.valueOf, BluetoothState_State.values) ..hasRequiredFields = false ; BluetoothState() : super(); BluetoothState.fromBuffer(List i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); BluetoothState.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); BluetoothState clone() => new BluetoothState()..mergeFromMessage(this); BluetoothState copyWith(void Function(BluetoothState) updates) => super.copyWith((message) => updates(message as BluetoothState)); $pb.BuilderInfo get info_ => _i; static BluetoothState create() => new BluetoothState(); static $pb.PbList createRepeated() => new $pb.PbList(); static BluetoothState getDefault() => _defaultInstance ??= create()..freeze(); static BluetoothState _defaultInstance; static void $checkItem(BluetoothState v) { if (v is! BluetoothState) $pb.checkItemFailed(v, _i.qualifiedMessageName); } BluetoothState_State get state => $_getN(0); set state(BluetoothState_State v) { setField(1, v); } bool hasState() => $_has(0); void clearState() => clearField(1); } class AdvertisementData extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = new $pb.BuilderInfo('AdvertisementData') ..aOS(1, 'localName') ..a(2, 'txPowerLevel', $pb.PbFieldType.OM, Int32Value.getDefault, Int32Value.create) ..aOB(3, 'connectable') ..m>(4, 'manufacturerData', $pb.PbFieldType.O3, $pb.PbFieldType.OY) ..m>(5, 'serviceData', $pb.PbFieldType.OS, $pb.PbFieldType.OY) ..pPS(6, 'serviceUuids') ..hasRequiredFields = false ; AdvertisementData() : super(); AdvertisementData.fromBuffer(List i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); AdvertisementData.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); AdvertisementData clone() => new AdvertisementData()..mergeFromMessage(this); AdvertisementData copyWith(void Function(AdvertisementData) updates) => super.copyWith((message) => updates(message as AdvertisementData)); $pb.BuilderInfo get info_ => _i; static AdvertisementData create() => new AdvertisementData(); static $pb.PbList createRepeated() => new $pb.PbList(); static AdvertisementData getDefault() => _defaultInstance ??= create()..freeze(); static AdvertisementData _defaultInstance; static void $checkItem(AdvertisementData v) { if (v is! AdvertisementData) $pb.checkItemFailed(v, _i.qualifiedMessageName); } String get localName => $_getS(0, ''); set localName(String v) { $_setString(0, v); } bool hasLocalName() => $_has(0); void clearLocalName() => clearField(1); Int32Value get txPowerLevel => $_getN(1); set txPowerLevel(Int32Value v) { setField(2, v); } bool hasTxPowerLevel() => $_has(1); void clearTxPowerLevel() => clearField(2); bool get connectable => $_get(2, false); set connectable(bool v) { $_setBool(2, v); } bool hasConnectable() => $_has(2); void clearConnectable() => clearField(3); Map> get manufacturerData => $_getMap(3); Map> get serviceData => $_getMap(4); List get serviceUuids => $_getList(5); } class ScanSettings extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = new $pb.BuilderInfo('ScanSettings') ..a(1, 'androidScanMode', $pb.PbFieldType.O3) ..pPS(2, 'serviceUuids') ..hasRequiredFields = false ; ScanSettings() : super(); ScanSettings.fromBuffer(List i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); ScanSettings.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); ScanSettings clone() => new ScanSettings()..mergeFromMessage(this); ScanSettings copyWith(void Function(ScanSettings) updates) => super.copyWith((message) => updates(message as ScanSettings)); $pb.BuilderInfo get info_ => _i; static ScanSettings create() => new ScanSettings(); static $pb.PbList createRepeated() => new $pb.PbList(); static ScanSettings getDefault() => _defaultInstance ??= create()..freeze(); static ScanSettings _defaultInstance; static void $checkItem(ScanSettings v) { if (v is! ScanSettings) $pb.checkItemFailed(v, _i.qualifiedMessageName); } int get androidScanMode => $_get(0, 0); set androidScanMode(int v) { $_setSignedInt32(0, v); } bool hasAndroidScanMode() => $_has(0); void clearAndroidScanMode() => clearField(1); List get serviceUuids => $_getList(1); } class ScanResult extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = new $pb.BuilderInfo('ScanResult') ..a(1, 'device', $pb.PbFieldType.OM, BluetoothDevice.getDefault, BluetoothDevice.create) ..a(2, 'advertisementData', $pb.PbFieldType.OM, AdvertisementData.getDefault, AdvertisementData.create) ..a(3, 'rssi', $pb.PbFieldType.O3) ..hasRequiredFields = false ; ScanResult() : super(); ScanResult.fromBuffer(List i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); ScanResult.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); ScanResult clone() => new ScanResult()..mergeFromMessage(this); ScanResult copyWith(void Function(ScanResult) updates) => super.copyWith((message) => updates(message as ScanResult)); $pb.BuilderInfo get info_ => _i; static ScanResult create() => new ScanResult(); static $pb.PbList createRepeated() => new $pb.PbList(); static ScanResult getDefault() => _defaultInstance ??= create()..freeze(); static ScanResult _defaultInstance; static void $checkItem(ScanResult v) { if (v is! ScanResult) $pb.checkItemFailed(v, _i.qualifiedMessageName); } BluetoothDevice get device => $_getN(0); set device(BluetoothDevice v) { setField(1, v); } bool hasDevice() => $_has(0); void clearDevice() => clearField(1); AdvertisementData get advertisementData => $_getN(1); set advertisementData(AdvertisementData v) { setField(2, v); } bool hasAdvertisementData() => $_has(1); void clearAdvertisementData() => clearField(2); int get rssi => $_get(2, 0); set rssi(int v) { $_setSignedInt32(2, v); } bool hasRssi() => $_has(2); void clearRssi() => clearField(3); } class ConnectRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = new $pb.BuilderInfo('ConnectRequest') ..aOS(1, 'remoteId') ..aOB(2, 'androidAutoConnect') ..hasRequiredFields = false ; ConnectRequest() : super(); ConnectRequest.fromBuffer(List i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); ConnectRequest.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); ConnectRequest clone() => new ConnectRequest()..mergeFromMessage(this); ConnectRequest copyWith(void Function(ConnectRequest) updates) => super.copyWith((message) => updates(message as ConnectRequest)); $pb.BuilderInfo get info_ => _i; static ConnectRequest create() => new ConnectRequest(); static $pb.PbList createRepeated() => new $pb.PbList(); static ConnectRequest getDefault() => _defaultInstance ??= create()..freeze(); static ConnectRequest _defaultInstance; static void $checkItem(ConnectRequest v) { if (v is! ConnectRequest) $pb.checkItemFailed(v, _i.qualifiedMessageName); } String get remoteId => $_getS(0, ''); set remoteId(String v) { $_setString(0, v); } bool hasRemoteId() => $_has(0); void clearRemoteId() => clearField(1); bool get androidAutoConnect => $_get(1, false); set androidAutoConnect(bool v) { $_setBool(1, v); } bool hasAndroidAutoConnect() => $_has(1); void clearAndroidAutoConnect() => clearField(2); } class BluetoothDevice extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = new $pb.BuilderInfo('BluetoothDevice') ..aOS(1, 'remoteId') ..aOS(2, 'name') ..e(3, 'type', $pb.PbFieldType.OE, BluetoothDevice_Type.UNKNOWN, BluetoothDevice_Type.valueOf, BluetoothDevice_Type.values) ..hasRequiredFields = false ; BluetoothDevice() : super(); BluetoothDevice.fromBuffer(List i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); BluetoothDevice.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); BluetoothDevice clone() => new BluetoothDevice()..mergeFromMessage(this); BluetoothDevice copyWith(void Function(BluetoothDevice) updates) => super.copyWith((message) => updates(message as BluetoothDevice)); $pb.BuilderInfo get info_ => _i; static BluetoothDevice create() => new BluetoothDevice(); static $pb.PbList createRepeated() => new $pb.PbList(); static BluetoothDevice getDefault() => _defaultInstance ??= create()..freeze(); static BluetoothDevice _defaultInstance; static void $checkItem(BluetoothDevice v) { if (v is! BluetoothDevice) $pb.checkItemFailed(v, _i.qualifiedMessageName); } String get remoteId => $_getS(0, ''); set remoteId(String v) { $_setString(0, v); } bool hasRemoteId() => $_has(0); void clearRemoteId() => clearField(1); String get name => $_getS(1, ''); set name(String v) { $_setString(1, v); } bool hasName() => $_has(1); void clearName() => clearField(2); BluetoothDevice_Type get type => $_getN(2); set type(BluetoothDevice_Type v) { setField(3, v); } bool hasType() => $_has(2); void clearType() => clearField(3); } class BluetoothService extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = new $pb.BuilderInfo('BluetoothService') ..aOS(1, 'uuid') ..aOS(2, 'remoteId') ..aOB(3, 'isPrimary') ..pp(4, 'characteristics', $pb.PbFieldType.PM, BluetoothCharacteristic.$checkItem, BluetoothCharacteristic.create) ..pp(5, 'includedServices', $pb.PbFieldType.PM, BluetoothService.$checkItem, BluetoothService.create) ..hasRequiredFields = false ; BluetoothService() : super(); BluetoothService.fromBuffer(List i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); BluetoothService.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); BluetoothService clone() => new BluetoothService()..mergeFromMessage(this); BluetoothService copyWith(void Function(BluetoothService) updates) => super.copyWith((message) => updates(message as BluetoothService)); $pb.BuilderInfo get info_ => _i; static BluetoothService create() => new BluetoothService(); static $pb.PbList createRepeated() => new $pb.PbList(); static BluetoothService getDefault() => _defaultInstance ??= create()..freeze(); static BluetoothService _defaultInstance; static void $checkItem(BluetoothService v) { if (v is! BluetoothService) $pb.checkItemFailed(v, _i.qualifiedMessageName); } String get uuid => $_getS(0, ''); set uuid(String v) { $_setString(0, v); } bool hasUuid() => $_has(0); void clearUuid() => clearField(1); String get remoteId => $_getS(1, ''); set remoteId(String v) { $_setString(1, v); } bool hasRemoteId() => $_has(1); void clearRemoteId() => clearField(2); bool get isPrimary => $_get(2, false); set isPrimary(bool v) { $_setBool(2, v); } bool hasIsPrimary() => $_has(2); void clearIsPrimary() => clearField(3); List get characteristics => $_getList(3); List get includedServices => $_getList(4); } class BluetoothCharacteristic extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = new $pb.BuilderInfo('BluetoothCharacteristic') ..aOS(1, 'uuid') ..aOS(2, 'serviceUuid') ..aOS(3, 'secondaryServiceUuid') ..pp(4, 'descriptors', $pb.PbFieldType.PM, BluetoothDescriptor.$checkItem, BluetoothDescriptor.create) ..a(5, 'properties', $pb.PbFieldType.OM, CharacteristicProperties.getDefault, CharacteristicProperties.create) ..a>(6, 'value', $pb.PbFieldType.OY) ..hasRequiredFields = false ; BluetoothCharacteristic() : super(); BluetoothCharacteristic.fromBuffer(List i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); BluetoothCharacteristic.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); BluetoothCharacteristic clone() => new BluetoothCharacteristic()..mergeFromMessage(this); BluetoothCharacteristic copyWith(void Function(BluetoothCharacteristic) updates) => super.copyWith((message) => updates(message as BluetoothCharacteristic)); $pb.BuilderInfo get info_ => _i; static BluetoothCharacteristic create() => new BluetoothCharacteristic(); static $pb.PbList createRepeated() => new $pb.PbList(); static BluetoothCharacteristic getDefault() => _defaultInstance ??= create()..freeze(); static BluetoothCharacteristic _defaultInstance; static void $checkItem(BluetoothCharacteristic v) { if (v is! BluetoothCharacteristic) $pb.checkItemFailed(v, _i.qualifiedMessageName); } String get uuid => $_getS(0, ''); set uuid(String v) { $_setString(0, v); } bool hasUuid() => $_has(0); void clearUuid() => clearField(1); String get serviceUuid => $_getS(1, ''); set serviceUuid(String v) { $_setString(1, v); } bool hasServiceUuid() => $_has(1); void clearServiceUuid() => clearField(2); String get secondaryServiceUuid => $_getS(2, ''); set secondaryServiceUuid(String v) { $_setString(2, v); } bool hasSecondaryServiceUuid() => $_has(2); void clearSecondaryServiceUuid() => clearField(3); List get descriptors => $_getList(3); CharacteristicProperties get properties => $_getN(4); set properties(CharacteristicProperties v) { setField(5, v); } bool hasProperties() => $_has(4); void clearProperties() => clearField(5); List get value => $_getN(5); set value(List v) { $_setBytes(5, v); } bool hasValue() => $_has(5); void clearValue() => clearField(6); } class BluetoothDescriptor extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = new $pb.BuilderInfo('BluetoothDescriptor') ..aOS(1, 'uuid') ..aOS(2, 'serviceUuid') ..aOS(3, 'characteristicUuid') ..a>(4, 'value', $pb.PbFieldType.OY) ..hasRequiredFields = false ; BluetoothDescriptor() : super(); BluetoothDescriptor.fromBuffer(List i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); BluetoothDescriptor.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); BluetoothDescriptor clone() => new BluetoothDescriptor()..mergeFromMessage(this); BluetoothDescriptor copyWith(void Function(BluetoothDescriptor) updates) => super.copyWith((message) => updates(message as BluetoothDescriptor)); $pb.BuilderInfo get info_ => _i; static BluetoothDescriptor create() => new BluetoothDescriptor(); static $pb.PbList createRepeated() => new $pb.PbList(); static BluetoothDescriptor getDefault() => _defaultInstance ??= create()..freeze(); static BluetoothDescriptor _defaultInstance; static void $checkItem(BluetoothDescriptor v) { if (v is! BluetoothDescriptor) $pb.checkItemFailed(v, _i.qualifiedMessageName); } String get uuid => $_getS(0, ''); set uuid(String v) { $_setString(0, v); } bool hasUuid() => $_has(0); void clearUuid() => clearField(1); String get serviceUuid => $_getS(1, ''); set serviceUuid(String v) { $_setString(1, v); } bool hasServiceUuid() => $_has(1); void clearServiceUuid() => clearField(2); String get characteristicUuid => $_getS(2, ''); set characteristicUuid(String v) { $_setString(2, v); } bool hasCharacteristicUuid() => $_has(2); void clearCharacteristicUuid() => clearField(3); List get value => $_getN(3); set value(List v) { $_setBytes(3, v); } bool hasValue() => $_has(3); void clearValue() => clearField(4); } class CharacteristicProperties extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = new $pb.BuilderInfo('CharacteristicProperties') ..aOB(1, 'broadcast') ..aOB(2, 'read') ..aOB(3, 'writeWithoutResponse') ..aOB(4, 'write') ..aOB(5, 'notify') ..aOB(6, 'indicate') ..aOB(7, 'authenticatedSignedWrites') ..aOB(8, 'extendedProperties') ..aOB(9, 'notifyEncryptionRequired') ..aOB(10, 'indicateEncryptionRequired') ..hasRequiredFields = false ; CharacteristicProperties() : super(); CharacteristicProperties.fromBuffer(List i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); CharacteristicProperties.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); CharacteristicProperties clone() => new CharacteristicProperties()..mergeFromMessage(this); CharacteristicProperties copyWith(void Function(CharacteristicProperties) updates) => super.copyWith((message) => updates(message as CharacteristicProperties)); $pb.BuilderInfo get info_ => _i; static CharacteristicProperties create() => new CharacteristicProperties(); static $pb.PbList createRepeated() => new $pb.PbList(); static CharacteristicProperties getDefault() => _defaultInstance ??= create()..freeze(); static CharacteristicProperties _defaultInstance; static void $checkItem(CharacteristicProperties v) { if (v is! CharacteristicProperties) $pb.checkItemFailed(v, _i.qualifiedMessageName); } bool get broadcast => $_get(0, false); set broadcast(bool v) { $_setBool(0, v); } bool hasBroadcast() => $_has(0); void clearBroadcast() => clearField(1); bool get read => $_get(1, false); set read(bool v) { $_setBool(1, v); } bool hasRead() => $_has(1); void clearRead() => clearField(2); bool get writeWithoutResponse => $_get(2, false); set writeWithoutResponse(bool v) { $_setBool(2, v); } bool hasWriteWithoutResponse() => $_has(2); void clearWriteWithoutResponse() => clearField(3); bool get write => $_get(3, false); set write(bool v) { $_setBool(3, v); } bool hasWrite() => $_has(3); void clearWrite() => clearField(4); bool get notify => $_get(4, false); set notify(bool v) { $_setBool(4, v); } bool hasNotify() => $_has(4); void clearNotify() => clearField(5); bool get indicate => $_get(5, false); set indicate(bool v) { $_setBool(5, v); } bool hasIndicate() => $_has(5); void clearIndicate() => clearField(6); bool get authenticatedSignedWrites => $_get(6, false); set authenticatedSignedWrites(bool v) { $_setBool(6, v); } bool hasAuthenticatedSignedWrites() => $_has(6); void clearAuthenticatedSignedWrites() => clearField(7); bool get extendedProperties => $_get(7, false); set extendedProperties(bool v) { $_setBool(7, v); } bool hasExtendedProperties() => $_has(7); void clearExtendedProperties() => clearField(8); bool get notifyEncryptionRequired => $_get(8, false); set notifyEncryptionRequired(bool v) { $_setBool(8, v); } bool hasNotifyEncryptionRequired() => $_has(8); void clearNotifyEncryptionRequired() => clearField(9); bool get indicateEncryptionRequired => $_get(9, false); set indicateEncryptionRequired(bool v) { $_setBool(9, v); } bool hasIndicateEncryptionRequired() => $_has(9); void clearIndicateEncryptionRequired() => clearField(10); } class DiscoverServicesResult extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = new $pb.BuilderInfo('DiscoverServicesResult') ..aOS(1, 'remoteId') ..pp(2, 'services', $pb.PbFieldType.PM, BluetoothService.$checkItem, BluetoothService.create) ..hasRequiredFields = false ; DiscoverServicesResult() : super(); DiscoverServicesResult.fromBuffer(List i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); DiscoverServicesResult.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); DiscoverServicesResult clone() => new DiscoverServicesResult()..mergeFromMessage(this); DiscoverServicesResult copyWith(void Function(DiscoverServicesResult) updates) => super.copyWith((message) => updates(message as DiscoverServicesResult)); $pb.BuilderInfo get info_ => _i; static DiscoverServicesResult create() => new DiscoverServicesResult(); static $pb.PbList createRepeated() => new $pb.PbList(); static DiscoverServicesResult getDefault() => _defaultInstance ??= create()..freeze(); static DiscoverServicesResult _defaultInstance; static void $checkItem(DiscoverServicesResult v) { if (v is! DiscoverServicesResult) $pb.checkItemFailed(v, _i.qualifiedMessageName); } String get remoteId => $_getS(0, ''); set remoteId(String v) { $_setString(0, v); } bool hasRemoteId() => $_has(0); void clearRemoteId() => clearField(1); List get services => $_getList(1); } class ReadCharacteristicRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = new $pb.BuilderInfo('ReadCharacteristicRequest') ..aOS(1, 'remoteId') ..aOS(2, 'characteristicUuid') ..aOS(3, 'serviceUuid') ..aOS(4, 'secondaryServiceUuid') ..hasRequiredFields = false ; ReadCharacteristicRequest() : super(); ReadCharacteristicRequest.fromBuffer(List i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); ReadCharacteristicRequest.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); ReadCharacteristicRequest clone() => new ReadCharacteristicRequest()..mergeFromMessage(this); ReadCharacteristicRequest copyWith(void Function(ReadCharacteristicRequest) updates) => super.copyWith((message) => updates(message as ReadCharacteristicRequest)); $pb.BuilderInfo get info_ => _i; static ReadCharacteristicRequest create() => new ReadCharacteristicRequest(); static $pb.PbList createRepeated() => new $pb.PbList(); static ReadCharacteristicRequest getDefault() => _defaultInstance ??= create()..freeze(); static ReadCharacteristicRequest _defaultInstance; static void $checkItem(ReadCharacteristicRequest v) { if (v is! ReadCharacteristicRequest) $pb.checkItemFailed(v, _i.qualifiedMessageName); } String get remoteId => $_getS(0, ''); set remoteId(String v) { $_setString(0, v); } bool hasRemoteId() => $_has(0); void clearRemoteId() => clearField(1); String get characteristicUuid => $_getS(1, ''); set characteristicUuid(String v) { $_setString(1, v); } bool hasCharacteristicUuid() => $_has(1); void clearCharacteristicUuid() => clearField(2); String get serviceUuid => $_getS(2, ''); set serviceUuid(String v) { $_setString(2, v); } bool hasServiceUuid() => $_has(2); void clearServiceUuid() => clearField(3); String get secondaryServiceUuid => $_getS(3, ''); set secondaryServiceUuid(String v) { $_setString(3, v); } bool hasSecondaryServiceUuid() => $_has(3); void clearSecondaryServiceUuid() => clearField(4); } class ReadCharacteristicResponse extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = new $pb.BuilderInfo('ReadCharacteristicResponse') ..aOS(1, 'remoteId') ..a(2, 'characteristic', $pb.PbFieldType.OM, BluetoothCharacteristic.getDefault, BluetoothCharacteristic.create) ..hasRequiredFields = false ; ReadCharacteristicResponse() : super(); ReadCharacteristicResponse.fromBuffer(List i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); ReadCharacteristicResponse.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); ReadCharacteristicResponse clone() => new ReadCharacteristicResponse()..mergeFromMessage(this); ReadCharacteristicResponse copyWith(void Function(ReadCharacteristicResponse) updates) => super.copyWith((message) => updates(message as ReadCharacteristicResponse)); $pb.BuilderInfo get info_ => _i; static ReadCharacteristicResponse create() => new ReadCharacteristicResponse(); static $pb.PbList createRepeated() => new $pb.PbList(); static ReadCharacteristicResponse getDefault() => _defaultInstance ??= create()..freeze(); static ReadCharacteristicResponse _defaultInstance; static void $checkItem(ReadCharacteristicResponse v) { if (v is! ReadCharacteristicResponse) $pb.checkItemFailed(v, _i.qualifiedMessageName); } String get remoteId => $_getS(0, ''); set remoteId(String v) { $_setString(0, v); } bool hasRemoteId() => $_has(0); void clearRemoteId() => clearField(1); BluetoothCharacteristic get characteristic => $_getN(1); set characteristic(BluetoothCharacteristic v) { setField(2, v); } bool hasCharacteristic() => $_has(1); void clearCharacteristic() => clearField(2); } class ReadDescriptorRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = new $pb.BuilderInfo('ReadDescriptorRequest') ..aOS(1, 'remoteId') ..aOS(2, 'descriptorUuid') ..aOS(3, 'serviceUuid') ..aOS(4, 'secondaryServiceUuid') ..aOS(5, 'characteristicUuid') ..hasRequiredFields = false ; ReadDescriptorRequest() : super(); ReadDescriptorRequest.fromBuffer(List i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); ReadDescriptorRequest.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); ReadDescriptorRequest clone() => new ReadDescriptorRequest()..mergeFromMessage(this); ReadDescriptorRequest copyWith(void Function(ReadDescriptorRequest) updates) => super.copyWith((message) => updates(message as ReadDescriptorRequest)); $pb.BuilderInfo get info_ => _i; static ReadDescriptorRequest create() => new ReadDescriptorRequest(); static $pb.PbList createRepeated() => new $pb.PbList(); static ReadDescriptorRequest getDefault() => _defaultInstance ??= create()..freeze(); static ReadDescriptorRequest _defaultInstance; static void $checkItem(ReadDescriptorRequest v) { if (v is! ReadDescriptorRequest) $pb.checkItemFailed(v, _i.qualifiedMessageName); } String get remoteId => $_getS(0, ''); set remoteId(String v) { $_setString(0, v); } bool hasRemoteId() => $_has(0); void clearRemoteId() => clearField(1); String get descriptorUuid => $_getS(1, ''); set descriptorUuid(String v) { $_setString(1, v); } bool hasDescriptorUuid() => $_has(1); void clearDescriptorUuid() => clearField(2); String get serviceUuid => $_getS(2, ''); set serviceUuid(String v) { $_setString(2, v); } bool hasServiceUuid() => $_has(2); void clearServiceUuid() => clearField(3); String get secondaryServiceUuid => $_getS(3, ''); set secondaryServiceUuid(String v) { $_setString(3, v); } bool hasSecondaryServiceUuid() => $_has(3); void clearSecondaryServiceUuid() => clearField(4); String get characteristicUuid => $_getS(4, ''); set characteristicUuid(String v) { $_setString(4, v); } bool hasCharacteristicUuid() => $_has(4); void clearCharacteristicUuid() => clearField(5); } class ReadDescriptorResponse extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = new $pb.BuilderInfo('ReadDescriptorResponse') ..a(1, 'request', $pb.PbFieldType.OM, ReadDescriptorRequest.getDefault, ReadDescriptorRequest.create) ..a>(2, 'value', $pb.PbFieldType.OY) ..hasRequiredFields = false ; ReadDescriptorResponse() : super(); ReadDescriptorResponse.fromBuffer(List i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); ReadDescriptorResponse.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); ReadDescriptorResponse clone() => new ReadDescriptorResponse()..mergeFromMessage(this); ReadDescriptorResponse copyWith(void Function(ReadDescriptorResponse) updates) => super.copyWith((message) => updates(message as ReadDescriptorResponse)); $pb.BuilderInfo get info_ => _i; static ReadDescriptorResponse create() => new ReadDescriptorResponse(); static $pb.PbList createRepeated() => new $pb.PbList(); static ReadDescriptorResponse getDefault() => _defaultInstance ??= create()..freeze(); static ReadDescriptorResponse _defaultInstance; static void $checkItem(ReadDescriptorResponse v) { if (v is! ReadDescriptorResponse) $pb.checkItemFailed(v, _i.qualifiedMessageName); } ReadDescriptorRequest get request => $_getN(0); set request(ReadDescriptorRequest v) { setField(1, v); } bool hasRequest() => $_has(0); void clearRequest() => clearField(1); List get value => $_getN(1); set value(List v) { $_setBytes(1, v); } bool hasValue() => $_has(1); void clearValue() => clearField(2); } class WriteCharacteristicRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = new $pb.BuilderInfo('WriteCharacteristicRequest') ..aOS(1, 'remoteId') ..aOS(2, 'characteristicUuid') ..aOS(3, 'serviceUuid') ..aOS(4, 'secondaryServiceUuid') ..e(5, 'writeType', $pb.PbFieldType.OE, WriteCharacteristicRequest_WriteType.WITH_RESPONSE, WriteCharacteristicRequest_WriteType.valueOf, WriteCharacteristicRequest_WriteType.values) ..a>(6, 'value', $pb.PbFieldType.OY) ..hasRequiredFields = false ; WriteCharacteristicRequest() : super(); WriteCharacteristicRequest.fromBuffer(List i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); WriteCharacteristicRequest.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); WriteCharacteristicRequest clone() => new WriteCharacteristicRequest()..mergeFromMessage(this); WriteCharacteristicRequest copyWith(void Function(WriteCharacteristicRequest) updates) => super.copyWith((message) => updates(message as WriteCharacteristicRequest)); $pb.BuilderInfo get info_ => _i; static WriteCharacteristicRequest create() => new WriteCharacteristicRequest(); static $pb.PbList createRepeated() => new $pb.PbList(); static WriteCharacteristicRequest getDefault() => _defaultInstance ??= create()..freeze(); static WriteCharacteristicRequest _defaultInstance; static void $checkItem(WriteCharacteristicRequest v) { if (v is! WriteCharacteristicRequest) $pb.checkItemFailed(v, _i.qualifiedMessageName); } String get remoteId => $_getS(0, ''); set remoteId(String v) { $_setString(0, v); } bool hasRemoteId() => $_has(0); void clearRemoteId() => clearField(1); String get characteristicUuid => $_getS(1, ''); set characteristicUuid(String v) { $_setString(1, v); } bool hasCharacteristicUuid() => $_has(1); void clearCharacteristicUuid() => clearField(2); String get serviceUuid => $_getS(2, ''); set serviceUuid(String v) { $_setString(2, v); } bool hasServiceUuid() => $_has(2); void clearServiceUuid() => clearField(3); String get secondaryServiceUuid => $_getS(3, ''); set secondaryServiceUuid(String v) { $_setString(3, v); } bool hasSecondaryServiceUuid() => $_has(3); void clearSecondaryServiceUuid() => clearField(4); WriteCharacteristicRequest_WriteType get writeType => $_getN(4); set writeType(WriteCharacteristicRequest_WriteType v) { setField(5, v); } bool hasWriteType() => $_has(4); void clearWriteType() => clearField(5); List get value => $_getN(5); set value(List v) { $_setBytes(5, v); } bool hasValue() => $_has(5); void clearValue() => clearField(6); } class WriteCharacteristicResponse extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = new $pb.BuilderInfo('WriteCharacteristicResponse') ..a(1, 'request', $pb.PbFieldType.OM, WriteCharacteristicRequest.getDefault, WriteCharacteristicRequest.create) ..aOB(2, 'success') ..hasRequiredFields = false ; WriteCharacteristicResponse() : super(); WriteCharacteristicResponse.fromBuffer(List i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); WriteCharacteristicResponse.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); WriteCharacteristicResponse clone() => new WriteCharacteristicResponse()..mergeFromMessage(this); WriteCharacteristicResponse copyWith(void Function(WriteCharacteristicResponse) updates) => super.copyWith((message) => updates(message as WriteCharacteristicResponse)); $pb.BuilderInfo get info_ => _i; static WriteCharacteristicResponse create() => new WriteCharacteristicResponse(); static $pb.PbList createRepeated() => new $pb.PbList(); static WriteCharacteristicResponse getDefault() => _defaultInstance ??= create()..freeze(); static WriteCharacteristicResponse _defaultInstance; static void $checkItem(WriteCharacteristicResponse v) { if (v is! WriteCharacteristicResponse) $pb.checkItemFailed(v, _i.qualifiedMessageName); } WriteCharacteristicRequest get request => $_getN(0); set request(WriteCharacteristicRequest v) { setField(1, v); } bool hasRequest() => $_has(0); void clearRequest() => clearField(1); bool get success => $_get(1, false); set success(bool v) { $_setBool(1, v); } bool hasSuccess() => $_has(1); void clearSuccess() => clearField(2); } class WriteDescriptorRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = new $pb.BuilderInfo('WriteDescriptorRequest') ..aOS(1, 'remoteId') ..aOS(2, 'descriptorUuid') ..aOS(3, 'serviceUuid') ..aOS(4, 'secondaryServiceUuid') ..aOS(5, 'characteristicUuid') ..a>(6, 'value', $pb.PbFieldType.OY) ..hasRequiredFields = false ; WriteDescriptorRequest() : super(); WriteDescriptorRequest.fromBuffer(List i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); WriteDescriptorRequest.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); WriteDescriptorRequest clone() => new WriteDescriptorRequest()..mergeFromMessage(this); WriteDescriptorRequest copyWith(void Function(WriteDescriptorRequest) updates) => super.copyWith((message) => updates(message as WriteDescriptorRequest)); $pb.BuilderInfo get info_ => _i; static WriteDescriptorRequest create() => new WriteDescriptorRequest(); static $pb.PbList createRepeated() => new $pb.PbList(); static WriteDescriptorRequest getDefault() => _defaultInstance ??= create()..freeze(); static WriteDescriptorRequest _defaultInstance; static void $checkItem(WriteDescriptorRequest v) { if (v is! WriteDescriptorRequest) $pb.checkItemFailed(v, _i.qualifiedMessageName); } String get remoteId => $_getS(0, ''); set remoteId(String v) { $_setString(0, v); } bool hasRemoteId() => $_has(0); void clearRemoteId() => clearField(1); String get descriptorUuid => $_getS(1, ''); set descriptorUuid(String v) { $_setString(1, v); } bool hasDescriptorUuid() => $_has(1); void clearDescriptorUuid() => clearField(2); String get serviceUuid => $_getS(2, ''); set serviceUuid(String v) { $_setString(2, v); } bool hasServiceUuid() => $_has(2); void clearServiceUuid() => clearField(3); String get secondaryServiceUuid => $_getS(3, ''); set secondaryServiceUuid(String v) { $_setString(3, v); } bool hasSecondaryServiceUuid() => $_has(3); void clearSecondaryServiceUuid() => clearField(4); String get characteristicUuid => $_getS(4, ''); set characteristicUuid(String v) { $_setString(4, v); } bool hasCharacteristicUuid() => $_has(4); void clearCharacteristicUuid() => clearField(5); List get value => $_getN(5); set value(List v) { $_setBytes(5, v); } bool hasValue() => $_has(5); void clearValue() => clearField(6); } class WriteDescriptorResponse extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = new $pb.BuilderInfo('WriteDescriptorResponse') ..a(1, 'request', $pb.PbFieldType.OM, WriteDescriptorRequest.getDefault, WriteDescriptorRequest.create) ..aOB(2, 'success') ..hasRequiredFields = false ; WriteDescriptorResponse() : super(); WriteDescriptorResponse.fromBuffer(List i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); WriteDescriptorResponse.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); WriteDescriptorResponse clone() => new WriteDescriptorResponse()..mergeFromMessage(this); WriteDescriptorResponse copyWith(void Function(WriteDescriptorResponse) updates) => super.copyWith((message) => updates(message as WriteDescriptorResponse)); $pb.BuilderInfo get info_ => _i; static WriteDescriptorResponse create() => new WriteDescriptorResponse(); static $pb.PbList createRepeated() => new $pb.PbList(); static WriteDescriptorResponse getDefault() => _defaultInstance ??= create()..freeze(); static WriteDescriptorResponse _defaultInstance; static void $checkItem(WriteDescriptorResponse v) { if (v is! WriteDescriptorResponse) $pb.checkItemFailed(v, _i.qualifiedMessageName); } WriteDescriptorRequest get request => $_getN(0); set request(WriteDescriptorRequest v) { setField(1, v); } bool hasRequest() => $_has(0); void clearRequest() => clearField(1); bool get success => $_get(1, false); set success(bool v) { $_setBool(1, v); } bool hasSuccess() => $_has(1); void clearSuccess() => clearField(2); } class SetNotificationRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = new $pb.BuilderInfo('SetNotificationRequest') ..aOS(1, 'remoteId') ..aOS(2, 'serviceUuid') ..aOS(3, 'secondaryServiceUuid') ..aOS(4, 'characteristicUuid') ..aOB(5, 'enable') ..hasRequiredFields = false ; SetNotificationRequest() : super(); SetNotificationRequest.fromBuffer(List i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); SetNotificationRequest.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); SetNotificationRequest clone() => new SetNotificationRequest()..mergeFromMessage(this); SetNotificationRequest copyWith(void Function(SetNotificationRequest) updates) => super.copyWith((message) => updates(message as SetNotificationRequest)); $pb.BuilderInfo get info_ => _i; static SetNotificationRequest create() => new SetNotificationRequest(); static $pb.PbList createRepeated() => new $pb.PbList(); static SetNotificationRequest getDefault() => _defaultInstance ??= create()..freeze(); static SetNotificationRequest _defaultInstance; static void $checkItem(SetNotificationRequest v) { if (v is! SetNotificationRequest) $pb.checkItemFailed(v, _i.qualifiedMessageName); } String get remoteId => $_getS(0, ''); set remoteId(String v) { $_setString(0, v); } bool hasRemoteId() => $_has(0); void clearRemoteId() => clearField(1); String get serviceUuid => $_getS(1, ''); set serviceUuid(String v) { $_setString(1, v); } bool hasServiceUuid() => $_has(1); void clearServiceUuid() => clearField(2); String get secondaryServiceUuid => $_getS(2, ''); set secondaryServiceUuid(String v) { $_setString(2, v); } bool hasSecondaryServiceUuid() => $_has(2); void clearSecondaryServiceUuid() => clearField(3); String get characteristicUuid => $_getS(3, ''); set characteristicUuid(String v) { $_setString(3, v); } bool hasCharacteristicUuid() => $_has(3); void clearCharacteristicUuid() => clearField(4); bool get enable => $_get(4, false); set enable(bool v) { $_setBool(4, v); } bool hasEnable() => $_has(4); void clearEnable() => clearField(5); } class SetNotificationResponse extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = new $pb.BuilderInfo('SetNotificationResponse') ..aOS(1, 'remoteId') ..a(2, 'characteristic', $pb.PbFieldType.OM, BluetoothCharacteristic.getDefault, BluetoothCharacteristic.create) ..aOB(3, 'success') ..hasRequiredFields = false ; SetNotificationResponse() : super(); SetNotificationResponse.fromBuffer(List i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); SetNotificationResponse.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); SetNotificationResponse clone() => new SetNotificationResponse()..mergeFromMessage(this); SetNotificationResponse copyWith(void Function(SetNotificationResponse) updates) => super.copyWith((message) => updates(message as SetNotificationResponse)); $pb.BuilderInfo get info_ => _i; static SetNotificationResponse create() => new SetNotificationResponse(); static $pb.PbList createRepeated() => new $pb.PbList(); static SetNotificationResponse getDefault() => _defaultInstance ??= create()..freeze(); static SetNotificationResponse _defaultInstance; static void $checkItem(SetNotificationResponse v) { if (v is! SetNotificationResponse) $pb.checkItemFailed(v, _i.qualifiedMessageName); } String get remoteId => $_getS(0, ''); set remoteId(String v) { $_setString(0, v); } bool hasRemoteId() => $_has(0); void clearRemoteId() => clearField(1); BluetoothCharacteristic get characteristic => $_getN(1); set characteristic(BluetoothCharacteristic v) { setField(2, v); } bool hasCharacteristic() => $_has(1); void clearCharacteristic() => clearField(2); bool get success => $_get(2, false); set success(bool v) { $_setBool(2, v); } bool hasSuccess() => $_has(2); void clearSuccess() => clearField(3); } class OnNotificationResponse extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = new $pb.BuilderInfo('OnNotificationResponse') ..aOS(1, 'remoteId') ..a(2, 'characteristic', $pb.PbFieldType.OM, BluetoothCharacteristic.getDefault, BluetoothCharacteristic.create) ..hasRequiredFields = false ; OnNotificationResponse() : super(); OnNotificationResponse.fromBuffer(List i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); OnNotificationResponse.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); OnNotificationResponse clone() => new OnNotificationResponse()..mergeFromMessage(this); OnNotificationResponse copyWith(void Function(OnNotificationResponse) updates) => super.copyWith((message) => updates(message as OnNotificationResponse)); $pb.BuilderInfo get info_ => _i; static OnNotificationResponse create() => new OnNotificationResponse(); static $pb.PbList createRepeated() => new $pb.PbList(); static OnNotificationResponse getDefault() => _defaultInstance ??= create()..freeze(); static OnNotificationResponse _defaultInstance; static void $checkItem(OnNotificationResponse v) { if (v is! OnNotificationResponse) $pb.checkItemFailed(v, _i.qualifiedMessageName); } String get remoteId => $_getS(0, ''); set remoteId(String v) { $_setString(0, v); } bool hasRemoteId() => $_has(0); void clearRemoteId() => clearField(1); BluetoothCharacteristic get characteristic => $_getN(1); set characteristic(BluetoothCharacteristic v) { setField(2, v); } bool hasCharacteristic() => $_has(1); void clearCharacteristic() => clearField(2); } class DeviceStateResponse extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = new $pb.BuilderInfo('DeviceStateResponse') ..aOS(1, 'remoteId') ..e(2, 'state', $pb.PbFieldType.OE, DeviceStateResponse_BluetoothDeviceState.DISCONNECTED, DeviceStateResponse_BluetoothDeviceState.valueOf, DeviceStateResponse_BluetoothDeviceState.values) ..hasRequiredFields = false ; DeviceStateResponse() : super(); DeviceStateResponse.fromBuffer(List i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); DeviceStateResponse.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); DeviceStateResponse clone() => new DeviceStateResponse()..mergeFromMessage(this); DeviceStateResponse copyWith(void Function(DeviceStateResponse) updates) => super.copyWith((message) => updates(message as DeviceStateResponse)); $pb.BuilderInfo get info_ => _i; static DeviceStateResponse create() => new DeviceStateResponse(); static $pb.PbList createRepeated() => new $pb.PbList(); static DeviceStateResponse getDefault() => _defaultInstance ??= create()..freeze(); static DeviceStateResponse _defaultInstance; static void $checkItem(DeviceStateResponse v) { if (v is! DeviceStateResponse) $pb.checkItemFailed(v, _i.qualifiedMessageName); } String get remoteId => $_getS(0, ''); set remoteId(String v) { $_setString(0, v); } bool hasRemoteId() => $_has(0); void clearRemoteId() => clearField(1); DeviceStateResponse_BluetoothDeviceState get state => $_getN(1); set state(DeviceStateResponse_BluetoothDeviceState v) { setField(2, v); } bool hasState() => $_has(1); void clearState() => clearField(2); }