diff --git a/lib/gen/flutterblue.pb.dart b/lib/gen/flutterblue.pb.dart index df68b9e2..3d3c24cc 100644 --- a/lib/gen/flutterblue.pb.dart +++ b/lib/gen/flutterblue.pb.dart @@ -36,13 +36,18 @@ class Int32Value extends $pb.GeneratedMessage { Int32Value createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Int32Value getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Int32Value getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Int32Value _defaultInstance; - $core.int get value => $_get(0, 0); + @$pb.TagNumber(1) + $core.int get value => $_getIZ(0); + @$pb.TagNumber(1) set value($core.int v) { $_setSignedInt32(0, v); } + + @$pb.TagNumber(1) $core.bool hasValue() => $_has(0); @$pb.TagNumber(1) void clearValue() => clearField(1); @@ -74,15 +79,19 @@ class BluetoothState extends $pb.GeneratedMessage { BluetoothState createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static BluetoothState getDefault() => _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static BluetoothState getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static BluetoothState _defaultInstance; @$pb.TagNumber(1) BluetoothState_State get state => $_getN(0); + @$pb.TagNumber(1) set state(BluetoothState_State v) { setField(1, v); } - + + @$pb.TagNumber(1) $core.bool hasState() => $_has(0); @$pb.TagNumber(1) void clearState() => clearField(1); @@ -92,9 +101,7 @@ class AdvertisementData extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo('AdvertisementData', createEmptyInstance: create) ..aOS(1, 'localName') - ..a(2, 'txPowerLevel', $pb.PbFieldType.OM, - defaultOrMaker: Int32Value.getDefault, - subBuilder: Int32Value.create) + ..aOM(2, 'txPowerLevel', subBuilder: Int32Value.create) ..aOB(3, 'connectable') ..m<$core.int, $core.List<$core.int>>(4, 'manufacturerData', entryClassName: 'AdvertisementData.ManufacturerDataEntry', @@ -124,37 +131,50 @@ class AdvertisementData extends $pb.GeneratedMessage { AdvertisementData createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static AdvertisementData getDefault() => - _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static AdvertisementData getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static AdvertisementData _defaultInstance; - $core.String get localName => $_getS(0, ''); + @$pb.TagNumber(1) + $core.String get localName => $_getSZ(0); + @$pb.TagNumber(1) set localName($core.String v) { $_setString(0, v); } + + @$pb.TagNumber(1) $core.bool hasLocalName() => $_has(0); @$pb.TagNumber(1) void clearLocalName() => clearField(1); @$pb.TagNumber(2) Int32Value get txPowerLevel => $_getN(1); + @$pb.TagNumber(2) set txPowerLevel(Int32Value v) { setField(2, v); } + + @$pb.TagNumber(2) $core.bool hasTxPowerLevel() => $_has(1); @$pb.TagNumber(2) void clearTxPowerLevel() => clearField(2); @$pb.TagNumber(2) Int32Value ensureTxPowerLevel() => $_ensure(1); - $core.bool get connectable => $_get(2, false); + @$pb.TagNumber(3) + $core.bool get connectable => $_getBF(2); + @$pb.TagNumber(3) set connectable($core.bool v) { $_setBool(2, v); } + + @$pb.TagNumber(3) $core.bool hasConnectable() => $_has(2); @$pb.TagNumber(3) void clearConnectable() => clearField(3); + @$pb.TagNumber(4) $core.Map<$core.int, $core.List<$core.int>> get manufacturerData => $_getMap(3); @@ -190,13 +210,19 @@ class ScanSettings extends $pb.GeneratedMessage { ScanSettings createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static ScanSettings getDefault() => _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static ScanSettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ScanSettings _defaultInstance; - $core.int get androidScanMode => $_get(0, 0); + @$pb.TagNumber(1) + $core.int get androidScanMode => $_getIZ(0); + @$pb.TagNumber(1) set androidScanMode($core.int v) { $_setSignedInt32(0, v); } + + @$pb.TagNumber(1) $core.bool hasAndroidScanMode() => $_has(0); @$pb.TagNumber(1) void clearAndroidScanMode() => clearField(1); @@ -207,7 +233,10 @@ class ScanSettings extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.bool get allowDuplicates => $_getBF(2); @$pb.TagNumber(3) - set allowDuplicates($core.bool v) { $_setBool(2, v); } + set allowDuplicates($core.bool v) { + $_setBool(2, v); + } + @$pb.TagNumber(3) $core.bool hasAllowDuplicates() => $_has(2); @$pb.TagNumber(3) @@ -217,11 +246,8 @@ class ScanSettings extends $pb.GeneratedMessage { class ScanResult extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo('ScanResult', createEmptyInstance: create) - ..a(1, 'device', $pb.PbFieldType.OM, - defaultOrMaker: BluetoothDevice.getDefault, - subBuilder: BluetoothDevice.create) - ..a(2, 'advertisementData', $pb.PbFieldType.OM, - defaultOrMaker: AdvertisementData.getDefault, + ..aOM(1, 'device', subBuilder: BluetoothDevice.create) + ..aOM(2, 'advertisementData', subBuilder: AdvertisementData.create) ..a<$core.int>(3, 'rssi', $pb.PbFieldType.O3) ..hasRequiredFields = false; @@ -243,14 +269,18 @@ class ScanResult extends $pb.GeneratedMessage { ScanResult createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ScanResult getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ScanResult getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ScanResult _defaultInstance; @$pb.TagNumber(1) BluetoothDevice get device => $_getN(0); + @$pb.TagNumber(1) set device(BluetoothDevice v) { setField(1, v); } + + @$pb.TagNumber(1) $core.bool hasDevice() => $_has(0); @$pb.TagNumber(1) void clearDevice() => clearField(1); @@ -259,19 +289,26 @@ class ScanResult extends $pb.GeneratedMessage { @$pb.TagNumber(2) AdvertisementData get advertisementData => $_getN(1); + @$pb.TagNumber(2) set advertisementData(AdvertisementData v) { setField(2, v); } + + @$pb.TagNumber(2) $core.bool hasAdvertisementData() => $_has(1); @$pb.TagNumber(2) void clearAdvertisementData() => clearField(2); @$pb.TagNumber(2) AdvertisementData ensureAdvertisementData() => $_ensure(1); - $core.int get rssi => $_get(2, 0); + @$pb.TagNumber(3) + $core.int get rssi => $_getIZ(2); + @$pb.TagNumber(3) set rssi($core.int v) { $_setSignedInt32(2, v); } + + @$pb.TagNumber(3) $core.bool hasRssi() => $_has(2); @$pb.TagNumber(3) void clearRssi() => clearField(3); @@ -301,21 +338,31 @@ class ConnectRequest extends $pb.GeneratedMessage { ConnectRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static ConnectRequest getDefault() => _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static ConnectRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ConnectRequest _defaultInstance; - $core.String get remoteId => $_getS(0, ''); + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) set remoteId($core.String v) { $_setString(0, v); } + + @$pb.TagNumber(1) $core.bool hasRemoteId() => $_has(0); @$pb.TagNumber(1) void clearRemoteId() => clearField(1); - $core.bool get androidAutoConnect => $_get(1, false); + @$pb.TagNumber(2) + $core.bool get androidAutoConnect => $_getBF(1); + @$pb.TagNumber(2) set androidAutoConnect($core.bool v) { $_setBool(1, v); } + + @$pb.TagNumber(2) $core.bool hasAndroidAutoConnect() => $_has(1); @$pb.TagNumber(2) void clearAndroidAutoConnect() => clearField(2); @@ -349,30 +396,43 @@ class BluetoothDevice extends $pb.GeneratedMessage { BluetoothDevice createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static BluetoothDevice getDefault() => - _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static BluetoothDevice getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static BluetoothDevice _defaultInstance; - $core.String get remoteId => $_getS(0, ''); + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) set remoteId($core.String v) { $_setString(0, v); } + + @$pb.TagNumber(1) $core.bool hasRemoteId() => $_has(0); @$pb.TagNumber(1) void clearRemoteId() => clearField(1); - $core.String get name => $_getS(1, ''); + + @$pb.TagNumber(2) + $core.String get name => $_getSZ(1); + @$pb.TagNumber(2) set name($core.String v) { $_setString(1, v); } + + @$pb.TagNumber(2) $core.bool hasName() => $_has(1); @$pb.TagNumber(2) void clearName() => clearField(2); @$pb.TagNumber(3) BluetoothDevice_Type get type => $_getN(2); + @$pb.TagNumber(3) set type(BluetoothDevice_Type v) { setField(3, v); } + + @$pb.TagNumber(3) $core.bool hasType() => $_has(2); @$pb.TagNumber(3) void clearType() => clearField(3); @@ -407,30 +467,43 @@ class BluetoothService extends $pb.GeneratedMessage { BluetoothService createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static BluetoothService getDefault() => - _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static BluetoothService getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static BluetoothService _defaultInstance; - $core.String get uuid => $_getS(0, ''); + @$pb.TagNumber(1) + $core.String get uuid => $_getSZ(0); + @$pb.TagNumber(1) set uuid($core.String v) { $_setString(0, v); } + + @$pb.TagNumber(1) $core.bool hasUuid() => $_has(0); @$pb.TagNumber(1) void clearUuid() => clearField(1); - $core.String get remoteId => $_getS(1, ''); + @$pb.TagNumber(2) + $core.String get remoteId => $_getSZ(1); + @$pb.TagNumber(2) set remoteId($core.String v) { $_setString(1, v); } + + @$pb.TagNumber(2) $core.bool hasRemoteId() => $_has(1); @$pb.TagNumber(2) void clearRemoteId() => clearField(2); - $core.bool get isPrimary => $_get(2, false); + @$pb.TagNumber(3) + $core.bool get isPrimary => $_getBF(2); + @$pb.TagNumber(3) set isPrimary($core.bool v) { $_setBool(2, v); } + + @$pb.TagNumber(3) $core.bool hasIsPrimary() => $_has(2); @$pb.TagNumber(3) void clearIsPrimary() => clearField(3); @@ -451,8 +524,7 @@ class BluetoothCharacteristic extends $pb.GeneratedMessage { ..aOS(4, 'secondaryServiceUuid', protoName: 'secondaryServiceUuid') ..pc(5, 'descriptors', $pb.PbFieldType.PM, subBuilder: BluetoothDescriptor.create) - ..a(6, 'properties', $pb.PbFieldType.OM, - defaultOrMaker: CharacteristicProperties.getDefault, + ..aOM(6, 'properties', subBuilder: CharacteristicProperties.create) ..a<$core.List<$core.int>>(7, 'value', $pb.PbFieldType.OY) ..hasRequiredFields = false; @@ -476,41 +548,55 @@ class BluetoothCharacteristic extends $pb.GeneratedMessage { BluetoothCharacteristic createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static BluetoothCharacteristic getDefault() => - _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static BluetoothCharacteristic getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static BluetoothCharacteristic _defaultInstance; - $core.String get uuid => $_getS(0, ''); + @$pb.TagNumber(1) + $core.String get uuid => $_getSZ(0); + @$pb.TagNumber(1) set uuid($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) $core.bool hasUuid() => $_has(0); @$pb.TagNumber(1) void clearUuid() => clearField(1); - $core.String get remoteId => $_getS(1, ''); + @$pb.TagNumber(2) + $core.String get remoteId => $_getSZ(1); + @$pb.TagNumber(2) set remoteId($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) $core.bool hasRemoteId() => $_has(1); @$pb.TagNumber(2) void clearRemoteId() => clearField(2); - $core.String get serviceUuid => $_getS(2, ''); + @$pb.TagNumber(3) + $core.String get serviceUuid => $_getSZ(2); + @$pb.TagNumber(3) set serviceUuid($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) $core.bool hasServiceUuid() => $_has(2); @$pb.TagNumber(3) void clearServiceUuid() => clearField(3); - $core.String get secondaryServiceUuid => $_getS(3, ''); + @$pb.TagNumber(4) + $core.String get secondaryServiceUuid => $_getSZ(3); + @$pb.TagNumber(4) set secondaryServiceUuid($core.String v) { $_setString(3, v); } + + @$pb.TagNumber(4) $core.bool hasSecondaryServiceUuid() => $_has(3); @$pb.TagNumber(4) void clearSecondaryServiceUuid() => clearField(4); @@ -520,10 +606,12 @@ class BluetoothCharacteristic extends $pb.GeneratedMessage { @$pb.TagNumber(6) CharacteristicProperties get properties => $_getN(5); + @$pb.TagNumber(6) set properties(CharacteristicProperties v) { setField(6, v); } + @$pb.TagNumber(6) $core.bool hasProperties() => $_has(5); @$pb.TagNumber(6) void clearProperties() => clearField(6); @@ -532,10 +620,12 @@ class BluetoothCharacteristic extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.List<$core.int> get value => $_getN(6); + @$pb.TagNumber(7) set value($core.List<$core.int> v) { $_setBytes(6, v); } + @$pb.TagNumber(7) $core.bool hasValue() => $_has(6); @$pb.TagNumber(7) void clearValue() => clearField(7); @@ -568,50 +658,67 @@ class BluetoothDescriptor extends $pb.GeneratedMessage { BluetoothDescriptor createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static BluetoothDescriptor getDefault() => - _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static BluetoothDescriptor getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static BluetoothDescriptor _defaultInstance; - $core.String get uuid => $_getS(0, ''); + @$pb.TagNumber(1) + $core.String get uuid => $_getSZ(0); + @$pb.TagNumber(1) set uuid($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) $core.bool hasUuid() => $_has(0); @$pb.TagNumber(1) void clearUuid() => clearField(1); - $core.String get remoteId => $_getS(1, ''); + @$pb.TagNumber(2) + $core.String get remoteId => $_getSZ(1); + @$pb.TagNumber(2) set remoteId($core.String v) { $_setString(1, v); } + + @$pb.TagNumber(2) $core.bool hasRemoteId() => $_has(1); @$pb.TagNumber(2) void clearRemoteId() => clearField(2); - $core.String get serviceUuid => $_getS(2, ''); + + @$pb.TagNumber(3) + $core.String get serviceUuid => $_getSZ(2); + @$pb.TagNumber(3) set serviceUuid($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) $core.bool hasServiceUuid() => $_has(2); @$pb.TagNumber(3) void clearServiceUuid() => clearField(3); - $core.String get characteristicUuid => $_getS(3, ''); + @$pb.TagNumber(4) + $core.String get characteristicUuid => $_getSZ(3); + @$pb.TagNumber(4) set characteristicUuid($core.String v) { $_setString(3, v); } + @$pb.TagNumber(4) $core.bool hasCharacteristicUuid() => $_has(3); @$pb.TagNumber(4) void clearCharacteristicUuid() => clearField(4); @$pb.TagNumber(5) $core.List<$core.int> get value => $_getN(4); + @$pb.TagNumber(5) set value($core.List<$core.int> v) { $_setBytes(4, v); } + @$pb.TagNumber(5) $core.bool hasValue() => $_has(4); @$pb.TagNumber(5) void clearValue() => clearField(5); @@ -651,96 +758,127 @@ class CharacteristicProperties extends $pb.GeneratedMessage { CharacteristicProperties createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static CharacteristicProperties getDefault() => - _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static CharacteristicProperties getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static CharacteristicProperties _defaultInstance; - $core.bool get broadcast => $_get(0, false); + @$pb.TagNumber(1) + $core.bool get broadcast => $_getBF(0); + @$pb.TagNumber(1) set broadcast($core.bool v) { $_setBool(0, v); } + @$pb.TagNumber(1) $core.bool hasBroadcast() => $_has(0); @$pb.TagNumber(1) void clearBroadcast() => clearField(1); - $core.bool get read => $_get(1, false); + @$pb.TagNumber(2) + $core.bool get read => $_getBF(1); + @$pb.TagNumber(2) set read($core.bool v) { $_setBool(1, v); } + @$pb.TagNumber(2) $core.bool hasRead() => $_has(1); @$pb.TagNumber(2) void clearRead() => clearField(2); - $core.bool get writeWithoutResponse => $_get(2, false); + @$pb.TagNumber(3) + $core.bool get writeWithoutResponse => $_getBF(2); + @$pb.TagNumber(3) set writeWithoutResponse($core.bool v) { $_setBool(2, v); } + @$pb.TagNumber(3) $core.bool hasWriteWithoutResponse() => $_has(2); @$pb.TagNumber(3) void clearWriteWithoutResponse() => clearField(3); - $core.bool get write => $_get(3, false); + @$pb.TagNumber(4) + $core.bool get write => $_getBF(3); + @$pb.TagNumber(4) set write($core.bool v) { $_setBool(3, v); } + @$pb.TagNumber(4) $core.bool hasWrite() => $_has(3); @$pb.TagNumber(4) void clearWrite() => clearField(4); - $core.bool get notify => $_get(4, false); + @$pb.TagNumber(5) + $core.bool get notify => $_getBF(4); + @$pb.TagNumber(5) set notify($core.bool v) { $_setBool(4, v); } + @$pb.TagNumber(5) $core.bool hasNotify() => $_has(4); @$pb.TagNumber(5) void clearNotify() => clearField(5); - $core.bool get indicate => $_get(5, false); + @$pb.TagNumber(6) + $core.bool get indicate => $_getBF(5); + @$pb.TagNumber(6) set indicate($core.bool v) { $_setBool(5, v); } + @$pb.TagNumber(6) $core.bool hasIndicate() => $_has(5); @$pb.TagNumber(6) void clearIndicate() => clearField(6); - $core.bool get authenticatedSignedWrites => $_get(6, false); + @$pb.TagNumber(7) + $core.bool get authenticatedSignedWrites => $_getBF(6); + @$pb.TagNumber(7) set authenticatedSignedWrites($core.bool v) { $_setBool(6, v); } + @$pb.TagNumber(7) $core.bool hasAuthenticatedSignedWrites() => $_has(6); @$pb.TagNumber(7) void clearAuthenticatedSignedWrites() => clearField(7); - $core.bool get extendedProperties => $_get(7, false); + @$pb.TagNumber(8) + $core.bool get extendedProperties => $_getBF(7); + @$pb.TagNumber(8) set extendedProperties($core.bool v) { $_setBool(7, v); } + @$pb.TagNumber(8) $core.bool hasExtendedProperties() => $_has(7); @$pb.TagNumber(8) void clearExtendedProperties() => clearField(8); - $core.bool get notifyEncryptionRequired => $_get(8, false); + @$pb.TagNumber(9) + $core.bool get notifyEncryptionRequired => $_getBF(8); + @$pb.TagNumber(9) set notifyEncryptionRequired($core.bool v) { $_setBool(8, v); } + @$pb.TagNumber(9) $core.bool hasNotifyEncryptionRequired() => $_has(8); @$pb.TagNumber(9) void clearNotifyEncryptionRequired() => clearField(9); - $core.bool get indicateEncryptionRequired => $_get(9, false); + @$pb.TagNumber(10) + $core.bool get indicateEncryptionRequired => $_getBF(9); + @$pb.TagNumber(10) set indicateEncryptionRequired($core.bool v) { $_setBool(9, v); } + @$pb.TagNumber(10) $core.bool hasIndicateEncryptionRequired() => $_has(9); @$pb.TagNumber(10) void clearIndicateEncryptionRequired() => clearField(10); @@ -773,15 +911,19 @@ class DiscoverServicesResult extends $pb.GeneratedMessage { DiscoverServicesResult createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static DiscoverServicesResult getDefault() => - _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static DiscoverServicesResult getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static DiscoverServicesResult _defaultInstance; - $core.String get remoteId => $_getS(0, ''); + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) $core.bool hasRemoteId() => $_has(0); @$pb.TagNumber(1) void clearRemoteId() => clearField(1); @@ -819,42 +961,55 @@ class ReadCharacteristicRequest extends $pb.GeneratedMessage { ReadCharacteristicRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static ReadCharacteristicRequest getDefault() => - _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static ReadCharacteristicRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ReadCharacteristicRequest _defaultInstance; - $core.String get remoteId => $_getS(0, ''); + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) $core.bool hasRemoteId() => $_has(0); @$pb.TagNumber(1) void clearRemoteId() => clearField(1); - $core.String get characteristicUuid => $_getS(1, ''); + @$pb.TagNumber(2) + $core.String get characteristicUuid => $_getSZ(1); + @$pb.TagNumber(2) set characteristicUuid($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) $core.bool hasCharacteristicUuid() => $_has(1); @$pb.TagNumber(2) void clearCharacteristicUuid() => clearField(2); - $core.String get serviceUuid => $_getS(2, ''); + @$pb.TagNumber(3) + $core.String get serviceUuid => $_getSZ(2); + @$pb.TagNumber(3) set serviceUuid($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) $core.bool hasServiceUuid() => $_has(2); @$pb.TagNumber(3) void clearServiceUuid() => clearField(3); - $core.String get secondaryServiceUuid => $_getS(3, ''); + @$pb.TagNumber(4) + $core.String get secondaryServiceUuid => $_getSZ(3); + @$pb.TagNumber(4) set secondaryServiceUuid($core.String v) { $_setString(3, v); } + @$pb.TagNumber(4) $core.bool hasSecondaryServiceUuid() => $_has(3); @$pb.TagNumber(4) void clearSecondaryServiceUuid() => clearField(4); @@ -864,8 +1019,7 @@ class ReadCharacteristicResponse extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo('ReadCharacteristicResponse', createEmptyInstance: create) ..aOS(1, 'remoteId') - ..a(2, 'characteristic', $pb.PbFieldType.OM, - defaultOrMaker: BluetoothCharacteristic.getDefault, + ..aOM(2, 'characteristic', subBuilder: BluetoothCharacteristic.create) ..hasRequiredFields = false; @@ -889,25 +1043,31 @@ class ReadCharacteristicResponse extends $pb.GeneratedMessage { ReadCharacteristicResponse createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static ReadCharacteristicResponse getDefault() => - _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static ReadCharacteristicResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ReadCharacteristicResponse _defaultInstance; - $core.String get remoteId => $_getS(0, ''); + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) $core.bool hasRemoteId() => $_has(0); @$pb.TagNumber(1) void clearRemoteId() => clearField(1); @$pb.TagNumber(2) BluetoothCharacteristic get characteristic => $_getN(1); + @$pb.TagNumber(2) set characteristic(BluetoothCharacteristic v) { setField(2, v); } + @$pb.TagNumber(2) $core.bool hasCharacteristic() => $_has(1); @$pb.TagNumber(2) void clearCharacteristic() => clearField(2); @@ -944,51 +1104,67 @@ class ReadDescriptorRequest extends $pb.GeneratedMessage { ReadDescriptorRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static ReadDescriptorRequest getDefault() => - _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static ReadDescriptorRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ReadDescriptorRequest _defaultInstance; - $core.String get remoteId => $_getS(0, ''); + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) $core.bool hasRemoteId() => $_has(0); @$pb.TagNumber(1) void clearRemoteId() => clearField(1); - $core.String get descriptorUuid => $_getS(1, ''); + @$pb.TagNumber(2) + $core.String get descriptorUuid => $_getSZ(1); + @$pb.TagNumber(2) set descriptorUuid($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) $core.bool hasDescriptorUuid() => $_has(1); @$pb.TagNumber(2) void clearDescriptorUuid() => clearField(2); - $core.String get serviceUuid => $_getS(2, ''); + @$pb.TagNumber(3) + $core.String get serviceUuid => $_getSZ(2); + @$pb.TagNumber(3) set serviceUuid($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) $core.bool hasServiceUuid() => $_has(2); @$pb.TagNumber(3) void clearServiceUuid() => clearField(3); - $core.String get secondaryServiceUuid => $_getS(3, ''); + @$pb.TagNumber(4) + $core.String get secondaryServiceUuid => $_getSZ(3); + @$pb.TagNumber(4) set secondaryServiceUuid($core.String v) { $_setString(3, v); } + @$pb.TagNumber(4) $core.bool hasSecondaryServiceUuid() => $_has(3); @$pb.TagNumber(4) void clearSecondaryServiceUuid() => clearField(4); - $core.String get characteristicUuid => $_getS(4, ''); + @$pb.TagNumber(5) + $core.String get characteristicUuid => $_getSZ(4); + @$pb.TagNumber(5) set characteristicUuid($core.String v) { $_setString(4, v); } + @$pb.TagNumber(5) $core.bool hasCharacteristicUuid() => $_has(4); @$pb.TagNumber(5) void clearCharacteristicUuid() => clearField(5); @@ -997,8 +1173,7 @@ class ReadDescriptorRequest extends $pb.GeneratedMessage { class ReadDescriptorResponse extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo('ReadDescriptorResponse', createEmptyInstance: create) - ..a(1, 'request', $pb.PbFieldType.OM, - defaultOrMaker: ReadDescriptorRequest.getDefault, + ..aOM(1, 'request', subBuilder: ReadDescriptorRequest.create) ..a<$core.List<$core.int>>(2, 'value', $pb.PbFieldType.OY) ..hasRequiredFields = false; @@ -1022,16 +1197,19 @@ class ReadDescriptorResponse extends $pb.GeneratedMessage { ReadDescriptorResponse createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static ReadDescriptorResponse getDefault() => - _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static ReadDescriptorResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ReadDescriptorResponse _defaultInstance; @$pb.TagNumber(1) ReadDescriptorRequest get request => $_getN(0); + @$pb.TagNumber(1) set request(ReadDescriptorRequest v) { setField(1, v); } + @$pb.TagNumber(1) $core.bool hasRequest() => $_has(0); @$pb.TagNumber(1) void clearRequest() => clearField(1); @@ -1040,10 +1218,12 @@ class ReadDescriptorResponse extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.List<$core.int> get value => $_getN(1); + @$pb.TagNumber(2) set value($core.List<$core.int> v) { $_setBytes(1, v); } + @$pb.TagNumber(2) $core.bool hasValue() => $_has(1); @$pb.TagNumber(2) void clearValue() => clearField(2); @@ -1084,62 +1264,79 @@ class WriteCharacteristicRequest extends $pb.GeneratedMessage { WriteCharacteristicRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static WriteCharacteristicRequest getDefault() => - _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static WriteCharacteristicRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static WriteCharacteristicRequest _defaultInstance; - $core.String get remoteId => $_getS(0, ''); + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) $core.bool hasRemoteId() => $_has(0); @$pb.TagNumber(1) void clearRemoteId() => clearField(1); - $core.String get characteristicUuid => $_getS(1, ''); + @$pb.TagNumber(2) + $core.String get characteristicUuid => $_getSZ(1); + @$pb.TagNumber(2) set characteristicUuid($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) $core.bool hasCharacteristicUuid() => $_has(1); @$pb.TagNumber(2) void clearCharacteristicUuid() => clearField(2); - $core.String get serviceUuid => $_getS(2, ''); + @$pb.TagNumber(3) + $core.String get serviceUuid => $_getSZ(2); + @$pb.TagNumber(3) set serviceUuid($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) $core.bool hasServiceUuid() => $_has(2); @$pb.TagNumber(3) void clearServiceUuid() => clearField(3); - $core.String get secondaryServiceUuid => $_getS(3, ''); + @$pb.TagNumber(4) + $core.String get secondaryServiceUuid => $_getSZ(3); + @$pb.TagNumber(4) set secondaryServiceUuid($core.String v) { $_setString(3, v); } + @$pb.TagNumber(4) $core.bool hasSecondaryServiceUuid() => $_has(3); @$pb.TagNumber(4) void clearSecondaryServiceUuid() => clearField(4); @$pb.TagNumber(5) WriteCharacteristicRequest_WriteType get writeType => $_getN(4); + @$pb.TagNumber(5) set writeType(WriteCharacteristicRequest_WriteType v) { setField(5, v); } + @$pb.TagNumber(5) $core.bool hasWriteType() => $_has(4); @$pb.TagNumber(5) void clearWriteType() => clearField(5); @$pb.TagNumber(6) $core.List<$core.int> get value => $_getN(5); + @$pb.TagNumber(6) set value($core.List<$core.int> v) { $_setBytes(5, v); } + @$pb.TagNumber(6) $core.bool hasValue() => $_has(5); @$pb.TagNumber(6) void clearValue() => clearField(6); @@ -1149,8 +1346,7 @@ class WriteCharacteristicResponse extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo( 'WriteCharacteristicResponse', createEmptyInstance: create) - ..a(1, 'request', $pb.PbFieldType.OM, - defaultOrMaker: WriteCharacteristicRequest.getDefault, + ..aOM(1, 'request', subBuilder: WriteCharacteristicRequest.create) ..aOB(2, 'success') ..hasRequiredFields = false; @@ -1176,27 +1372,33 @@ class WriteCharacteristicResponse extends $pb.GeneratedMessage { WriteCharacteristicResponse createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static WriteCharacteristicResponse getDefault() => - _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static WriteCharacteristicResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static WriteCharacteristicResponse _defaultInstance; @$pb.TagNumber(1) WriteCharacteristicRequest get request => $_getN(0); + @$pb.TagNumber(1) set request(WriteCharacteristicRequest v) { setField(1, v); } + @$pb.TagNumber(1) $core.bool hasRequest() => $_has(0); @$pb.TagNumber(1) void clearRequest() => clearField(1); @$pb.TagNumber(1) WriteCharacteristicRequest ensureRequest() => $_ensure(0); - $core.bool get success => $_get(1, false); + @$pb.TagNumber(2) + $core.bool get success => $_getBF(1); + @$pb.TagNumber(2) set success($core.bool v) { $_setBool(1, v); } + @$pb.TagNumber(2) $core.bool hasSuccess() => $_has(1); @$pb.TagNumber(2) void clearSuccess() => clearField(2); @@ -1232,61 +1434,79 @@ class WriteDescriptorRequest extends $pb.GeneratedMessage { WriteDescriptorRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static WriteDescriptorRequest getDefault() => - _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static WriteDescriptorRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static WriteDescriptorRequest _defaultInstance; - $core.String get remoteId => $_getS(0, ''); + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) $core.bool hasRemoteId() => $_has(0); @$pb.TagNumber(1) void clearRemoteId() => clearField(1); - $core.String get descriptorUuid => $_getS(1, ''); + @$pb.TagNumber(2) + $core.String get descriptorUuid => $_getSZ(1); + @$pb.TagNumber(2) set descriptorUuid($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) $core.bool hasDescriptorUuid() => $_has(1); @$pb.TagNumber(2) void clearDescriptorUuid() => clearField(2); - $core.String get serviceUuid => $_getS(2, ''); + @$pb.TagNumber(3) + $core.String get serviceUuid => $_getSZ(2); + @$pb.TagNumber(3) set serviceUuid($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) $core.bool hasServiceUuid() => $_has(2); @$pb.TagNumber(3) void clearServiceUuid() => clearField(3); - $core.String get secondaryServiceUuid => $_getS(3, ''); + @$pb.TagNumber(4) + $core.String get secondaryServiceUuid => $_getSZ(3); + @$pb.TagNumber(4) set secondaryServiceUuid($core.String v) { $_setString(3, v); } + @$pb.TagNumber(4) $core.bool hasSecondaryServiceUuid() => $_has(3); @$pb.TagNumber(4) void clearSecondaryServiceUuid() => clearField(4); - $core.String get characteristicUuid => $_getS(4, ''); + @$pb.TagNumber(5) + $core.String get characteristicUuid => $_getSZ(4); + @$pb.TagNumber(5) set characteristicUuid($core.String v) { $_setString(4, v); } + @$pb.TagNumber(5) $core.bool hasCharacteristicUuid() => $_has(4); @$pb.TagNumber(5) void clearCharacteristicUuid() => clearField(5); @$pb.TagNumber(6) $core.List<$core.int> get value => $_getN(5); + @$pb.TagNumber(6) set value($core.List<$core.int> v) { $_setBytes(5, v); } + @$pb.TagNumber(6) $core.bool hasValue() => $_has(5); @$pb.TagNumber(6) void clearValue() => clearField(6); @@ -1295,8 +1515,7 @@ class WriteDescriptorRequest extends $pb.GeneratedMessage { class WriteDescriptorResponse extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo('WriteDescriptorResponse', createEmptyInstance: create) - ..a(1, 'request', $pb.PbFieldType.OM, - defaultOrMaker: WriteDescriptorRequest.getDefault, + ..aOM(1, 'request', subBuilder: WriteDescriptorRequest.create) ..aOB(2, 'success') ..hasRequiredFields = false; @@ -1320,27 +1539,33 @@ class WriteDescriptorResponse extends $pb.GeneratedMessage { WriteDescriptorResponse createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static WriteDescriptorResponse getDefault() => - _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static WriteDescriptorResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static WriteDescriptorResponse _defaultInstance; @$pb.TagNumber(1) WriteDescriptorRequest get request => $_getN(0); + @$pb.TagNumber(1) set request(WriteDescriptorRequest v) { setField(1, v); } + @$pb.TagNumber(1) $core.bool hasRequest() => $_has(0); @$pb.TagNumber(1) void clearRequest() => clearField(1); @$pb.TagNumber(1) WriteDescriptorRequest ensureRequest() => $_ensure(0); - $core.bool get success => $_get(1, false); + @$pb.TagNumber(2) + $core.bool get success => $_getBF(1); + @$pb.TagNumber(2) set success($core.bool v) { $_setBool(1, v); } + @$pb.TagNumber(2) $core.bool hasSuccess() => $_has(1); @$pb.TagNumber(2) void clearSuccess() => clearField(2); @@ -1375,50 +1600,67 @@ class SetNotificationRequest extends $pb.GeneratedMessage { SetNotificationRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static SetNotificationRequest getDefault() => - _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static SetNotificationRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static SetNotificationRequest _defaultInstance; - $core.String get remoteId => $_getS(0, ''); + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) $core.bool hasRemoteId() => $_has(0); @$pb.TagNumber(1) void clearRemoteId() => clearField(1); - $core.String get serviceUuid => $_getS(1, ''); + @$pb.TagNumber(2) + $core.String get serviceUuid => $_getSZ(1); + @$pb.TagNumber(2) set serviceUuid($core.String v) { $_setString(1, v); } + + @$pb.TagNumber(2) $core.bool hasServiceUuid() => $_has(1); @$pb.TagNumber(2) void clearServiceUuid() => clearField(2); - $core.String get secondaryServiceUuid => $_getS(2, ''); + @$pb.TagNumber(3) + $core.String get secondaryServiceUuid => $_getSZ(2); + @$pb.TagNumber(3) set secondaryServiceUuid($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) $core.bool hasSecondaryServiceUuid() => $_has(2); @$pb.TagNumber(3) void clearSecondaryServiceUuid() => clearField(3); - $core.String get characteristicUuid => $_getS(3, ''); + @$pb.TagNumber(4) + $core.String get characteristicUuid => $_getSZ(3); + @$pb.TagNumber(4) set characteristicUuid($core.String v) { $_setString(3, v); } + @$pb.TagNumber(4) $core.bool hasCharacteristicUuid() => $_has(3); @$pb.TagNumber(4) void clearCharacteristicUuid() => clearField(4); - $core.bool get enable => $_get(4, false); + @$pb.TagNumber(5) + $core.bool get enable => $_getBF(4); + @$pb.TagNumber(5) set enable($core.bool v) { $_setBool(4, v); } + @$pb.TagNumber(5) $core.bool hasEnable() => $_has(4); @$pb.TagNumber(5) void clearEnable() => clearField(5); @@ -1428,8 +1670,7 @@ class SetNotificationResponse extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo('SetNotificationResponse', createEmptyInstance: create) ..aOS(1, 'remoteId') - ..a(2, 'characteristic', $pb.PbFieldType.OM, - defaultOrMaker: BluetoothCharacteristic.getDefault, + ..aOM(2, 'characteristic', subBuilder: BluetoothCharacteristic.create) ..aOB(3, 'success') ..hasRequiredFields = false; @@ -1453,36 +1694,45 @@ class SetNotificationResponse extends $pb.GeneratedMessage { SetNotificationResponse createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static SetNotificationResponse getDefault() => - _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static SetNotificationResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static SetNotificationResponse _defaultInstance; - $core.String get remoteId => $_getS(0, ''); + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) $core.bool hasRemoteId() => $_has(0); @$pb.TagNumber(1) void clearRemoteId() => clearField(1); @$pb.TagNumber(2) BluetoothCharacteristic get characteristic => $_getN(1); + @$pb.TagNumber(2) set characteristic(BluetoothCharacteristic v) { setField(2, v); } + @$pb.TagNumber(2) $core.bool hasCharacteristic() => $_has(1); @$pb.TagNumber(2) void clearCharacteristic() => clearField(2); @$pb.TagNumber(2) BluetoothCharacteristic ensureCharacteristic() => $_ensure(1); - $core.bool get success => $_get(2, false); + @$pb.TagNumber(3) + $core.bool get success => $_getBF(2); + @$pb.TagNumber(3) set success($core.bool v) { $_setBool(2, v); } + @$pb.TagNumber(3) $core.bool hasSuccess() => $_has(2); @$pb.TagNumber(3) void clearSuccess() => clearField(3); @@ -1492,8 +1742,7 @@ class OnCharacteristicChanged extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo('OnCharacteristicChanged', createEmptyInstance: create) ..aOS(1, 'remoteId') - ..a(2, 'characteristic', $pb.PbFieldType.OM, - defaultOrMaker: BluetoothCharacteristic.getDefault, + ..aOM(2, 'characteristic', subBuilder: BluetoothCharacteristic.create) ..hasRequiredFields = false; @@ -1516,23 +1765,31 @@ class OnCharacteristicChanged extends $pb.GeneratedMessage { OnCharacteristicChanged createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static OnCharacteristicChanged getDefault() => - _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static OnCharacteristicChanged getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static OnCharacteristicChanged _defaultInstance; - $core.String get remoteId => $_getS(0, ''); + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) set remoteId($core.String v) { $_setString(0, v); } + + @$pb.TagNumber(1) $core.bool hasRemoteId() => $_has(0); @$pb.TagNumber(1) void clearRemoteId() => clearField(1); @$pb.TagNumber(2) BluetoothCharacteristic get characteristic => $_getN(1); + @$pb.TagNumber(2) set characteristic(BluetoothCharacteristic v) { setField(2, v); } + + @$pb.TagNumber(2) $core.bool hasCharacteristic() => $_has(1); @$pb.TagNumber(2) void clearCharacteristic() => clearField(2); @@ -1568,25 +1825,31 @@ class DeviceStateResponse extends $pb.GeneratedMessage { DeviceStateResponse createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static DeviceStateResponse getDefault() => - _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static DeviceStateResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static DeviceStateResponse _defaultInstance; - $core.String get remoteId => $_getS(0, ''); + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) $core.bool hasRemoteId() => $_has(0); @$pb.TagNumber(1) void clearRemoteId() => clearField(1); @$pb.TagNumber(2) DeviceStateResponse_BluetoothDeviceState get state => $_getN(1); + @$pb.TagNumber(2) set state(DeviceStateResponse_BluetoothDeviceState v) { setField(2, v); } + @$pb.TagNumber(2) $core.bool hasState() => $_has(1); @$pb.TagNumber(2) void clearState() => clearField(2); @@ -1618,8 +1881,9 @@ class ConnectedDevicesResponse extends $pb.GeneratedMessage { ConnectedDevicesResponse createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static ConnectedDevicesResponse getDefault() => - _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static ConnectedDevicesResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ConnectedDevicesResponse _defaultInstance; @$pb.TagNumber(1) @@ -1650,23 +1914,31 @@ class MtuSizeRequest extends $pb.GeneratedMessage { MtuSizeRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static MtuSizeRequest getDefault() => _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static MtuSizeRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static MtuSizeRequest _defaultInstance; - $core.String get remoteId => $_getS(0, ''); + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) $core.bool hasRemoteId() => $_has(0); @$pb.TagNumber(1) void clearRemoteId() => clearField(1); - $core.int get mtu => $_get(1, 0); + @$pb.TagNumber(2) + $core.int get mtu => $_getIZ(1); + @$pb.TagNumber(2) set mtu($core.int v) { $_setUnsignedInt32(1, v); } + @$pb.TagNumber(2) $core.bool hasMtu() => $_has(1); @$pb.TagNumber(2) void clearMtu() => clearField(2); @@ -1696,24 +1968,31 @@ class MtuSizeResponse extends $pb.GeneratedMessage { MtuSizeResponse createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - static MtuSizeResponse getDefault() => - _defaultInstance ??= create()..freeze(); + @$core.pragma('dart2js:noInline') + static MtuSizeResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static MtuSizeResponse _defaultInstance; - $core.String get remoteId => $_getS(0, ''); + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) $core.bool hasRemoteId() => $_has(0); @$pb.TagNumber(1) void clearRemoteId() => clearField(1); - $core.int get mtu => $_get(1, 0); + @$pb.TagNumber(2) + $core.int get mtu => $_getIZ(1); + @$pb.TagNumber(2) set mtu($core.int v) { $_setUnsignedInt32(1, v); } + @$pb.TagNumber(2) $core.bool hasMtu() => $_has(1); @$pb.TagNumber(2) void clearMtu() => clearField(2); diff --git a/lib/gen/flutterblue.pbjson.dart b/lib/gen/flutterblue.pbjson.dart index bed9b3ee..d1695fd3 100644 --- a/lib/gen/flutterblue.pbjson.dart +++ b/lib/gen/flutterblue.pbjson.dart @@ -106,7 +106,13 @@ const ScanSettings$json = const { '10': 'androidScanMode' }, const {'1': 'service_uuids', '3': 2, '4': 3, '5': 9, '10': 'serviceUuids'}, - const {'1': 'allow_duplicates', '3': 3, '4': 1, '5': 8, '10': 'allowDuplicates'}, + const { + '1': 'allow_duplicates', + '3': 3, + '4': 1, + '5': 8, + '10': 'allowDuplicates' + }, ], }; diff --git a/lib/src/flutter_blue.dart b/lib/src/flutter_blue.dart index 31b4b315..e5aff0a0 100644 --- a/lib/src/flutter_blue.dart +++ b/lib/src/flutter_blue.dart @@ -65,7 +65,7 @@ class FlutterBlue { .then((p) => p.devices) .then((p) => p.map((d) => BluetoothDevice.fromProto(d)).toList()); } - + _setLogLevelIfAvailable() async { if (await isAvailable) { // Send the log level to the underlying platforms. diff --git a/pubspec.yaml b/pubspec.yaml index 547e7f94..c39fb45b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -14,7 +14,7 @@ dependencies: flutter: sdk: flutter convert: "^2.1.1" - protobuf: "^1.0.0" + protobuf: "^1.0.1" rxdart: ^0.23.1 dev_dependencies: