From 0bd5fe2b9f8112e264d1416666876bb3b03bcb7b Mon Sep 17 00:00:00 2001 From: Michael Lee Date: Thu, 14 Mar 2019 17:41:57 +0800 Subject: [PATCH] Regenerate protobuf for compatibility --- lib/gen/flutterblue.pb.dart | 108 +++++++++----------------------- lib/gen/flutterblue.pbenum.dart | 12 ---- 2 files changed, 30 insertions(+), 90 deletions(-) diff --git a/lib/gen/flutterblue.pb.dart b/lib/gen/flutterblue.pb.dart index 268b4d53..ff4ae10a 100644 --- a/lib/gen/flutterblue.pb.dart +++ b/lib/gen/flutterblue.pb.dart @@ -26,12 +26,10 @@ class Int32Value extends $pb.GeneratedMessage { Int32Value copyWith(void Function(Int32Value) updates) => super.copyWith((message) => updates(message as Int32Value)); $pb.BuilderInfo get info_ => _i; static Int32Value create() => new Int32Value(); + Int32Value createEmptyInstance() => create(); 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); } @@ -52,12 +50,10 @@ class BluetoothState extends $pb.GeneratedMessage { BluetoothState copyWith(void Function(BluetoothState) updates) => super.copyWith((message) => updates(message as BluetoothState)); $pb.BuilderInfo get info_ => _i; static BluetoothState create() => new BluetoothState(); + BluetoothState createEmptyInstance() => create(); 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); } @@ -70,8 +66,8 @@ class AdvertisementData extends $pb.GeneratedMessage { ..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) + ..m>(4, 'manufacturerData', 'AdvertisementData.ManufacturerDataEntry',$pb.PbFieldType.O3, $pb.PbFieldType.OY, null, null, null ) + ..m>(5, 'serviceData', 'AdvertisementData.ServiceDataEntry',$pb.PbFieldType.OS, $pb.PbFieldType.OY, null, null, null ) ..pPS(6, 'serviceUuids') ..hasRequiredFields = false ; @@ -83,12 +79,10 @@ class AdvertisementData extends $pb.GeneratedMessage { AdvertisementData copyWith(void Function(AdvertisementData) updates) => super.copyWith((message) => updates(message as AdvertisementData)); $pb.BuilderInfo get info_ => _i; static AdvertisementData create() => new AdvertisementData(); + AdvertisementData createEmptyInstance() => create(); 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); } @@ -126,12 +120,10 @@ class ScanSettings extends $pb.GeneratedMessage { ScanSettings copyWith(void Function(ScanSettings) updates) => super.copyWith((message) => updates(message as ScanSettings)); $pb.BuilderInfo get info_ => _i; static ScanSettings create() => new ScanSettings(); + ScanSettings createEmptyInstance() => create(); 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); } @@ -156,12 +148,10 @@ class ScanResult extends $pb.GeneratedMessage { ScanResult copyWith(void Function(ScanResult) updates) => super.copyWith((message) => updates(message as ScanResult)); $pb.BuilderInfo get info_ => _i; static ScanResult create() => new ScanResult(); + ScanResult createEmptyInstance() => create(); 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); } @@ -193,12 +183,10 @@ class ConnectRequest extends $pb.GeneratedMessage { ConnectRequest copyWith(void Function(ConnectRequest) updates) => super.copyWith((message) => updates(message as ConnectRequest)); $pb.BuilderInfo get info_ => _i; static ConnectRequest create() => new ConnectRequest(); + ConnectRequest createEmptyInstance() => create(); 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); } @@ -226,12 +214,10 @@ class BluetoothDevice extends $pb.GeneratedMessage { BluetoothDevice copyWith(void Function(BluetoothDevice) updates) => super.copyWith((message) => updates(message as BluetoothDevice)); $pb.BuilderInfo get info_ => _i; static BluetoothDevice create() => new BluetoothDevice(); + BluetoothDevice createEmptyInstance() => create(); 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); } @@ -254,8 +240,8 @@ class BluetoothService extends $pb.GeneratedMessage { ..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) + ..pc(4, 'characteristics', $pb.PbFieldType.PM,BluetoothCharacteristic.create) + ..pc(5, 'includedServices', $pb.PbFieldType.PM,BluetoothService.create) ..hasRequiredFields = false ; @@ -266,12 +252,10 @@ class BluetoothService extends $pb.GeneratedMessage { BluetoothService copyWith(void Function(BluetoothService) updates) => super.copyWith((message) => updates(message as BluetoothService)); $pb.BuilderInfo get info_ => _i; static BluetoothService create() => new BluetoothService(); + BluetoothService createEmptyInstance() => create(); 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); } @@ -298,7 +282,7 @@ class BluetoothCharacteristic extends $pb.GeneratedMessage { ..aOS(1, 'uuid') ..aOS(2, 'serviceUuid') ..aOS(3, 'secondaryServiceUuid') - ..pp(4, 'descriptors', $pb.PbFieldType.PM, BluetoothDescriptor.$checkItem, BluetoothDescriptor.create) + ..pc(4, 'descriptors', $pb.PbFieldType.PM,BluetoothDescriptor.create) ..a(5, 'properties', $pb.PbFieldType.OM, CharacteristicProperties.getDefault, CharacteristicProperties.create) ..a>(6, 'value', $pb.PbFieldType.OY) ..hasRequiredFields = false @@ -311,12 +295,10 @@ class BluetoothCharacteristic extends $pb.GeneratedMessage { BluetoothCharacteristic copyWith(void Function(BluetoothCharacteristic) updates) => super.copyWith((message) => updates(message as BluetoothCharacteristic)); $pb.BuilderInfo get info_ => _i; static BluetoothCharacteristic create() => new BluetoothCharacteristic(); + BluetoothCharacteristic createEmptyInstance() => create(); 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); } @@ -362,12 +344,10 @@ class BluetoothDescriptor extends $pb.GeneratedMessage { BluetoothDescriptor copyWith(void Function(BluetoothDescriptor) updates) => super.copyWith((message) => updates(message as BluetoothDescriptor)); $pb.BuilderInfo get info_ => _i; static BluetoothDescriptor create() => new BluetoothDescriptor(); + BluetoothDescriptor createEmptyInstance() => create(); 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); } @@ -412,12 +392,10 @@ class CharacteristicProperties extends $pb.GeneratedMessage { CharacteristicProperties copyWith(void Function(CharacteristicProperties) updates) => super.copyWith((message) => updates(message as CharacteristicProperties)); $pb.BuilderInfo get info_ => _i; static CharacteristicProperties create() => new CharacteristicProperties(); + CharacteristicProperties createEmptyInstance() => create(); 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); } @@ -473,7 +451,7 @@ class CharacteristicProperties extends $pb.GeneratedMessage { 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) + ..pc(2, 'services', $pb.PbFieldType.PM,BluetoothService.create) ..hasRequiredFields = false ; @@ -484,12 +462,10 @@ class DiscoverServicesResult extends $pb.GeneratedMessage { DiscoverServicesResult copyWith(void Function(DiscoverServicesResult) updates) => super.copyWith((message) => updates(message as DiscoverServicesResult)); $pb.BuilderInfo get info_ => _i; static DiscoverServicesResult create() => new DiscoverServicesResult(); + DiscoverServicesResult createEmptyInstance() => create(); 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); } @@ -515,12 +491,10 @@ class ReadCharacteristicRequest extends $pb.GeneratedMessage { ReadCharacteristicRequest copyWith(void Function(ReadCharacteristicRequest) updates) => super.copyWith((message) => updates(message as ReadCharacteristicRequest)); $pb.BuilderInfo get info_ => _i; static ReadCharacteristicRequest create() => new ReadCharacteristicRequest(); + ReadCharacteristicRequest createEmptyInstance() => create(); 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); } @@ -557,12 +531,10 @@ class ReadCharacteristicResponse extends $pb.GeneratedMessage { ReadCharacteristicResponse copyWith(void Function(ReadCharacteristicResponse) updates) => super.copyWith((message) => updates(message as ReadCharacteristicResponse)); $pb.BuilderInfo get info_ => _i; static ReadCharacteristicResponse create() => new ReadCharacteristicResponse(); + ReadCharacteristicResponse createEmptyInstance() => create(); 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); } @@ -592,12 +564,10 @@ class ReadDescriptorRequest extends $pb.GeneratedMessage { ReadDescriptorRequest copyWith(void Function(ReadDescriptorRequest) updates) => super.copyWith((message) => updates(message as ReadDescriptorRequest)); $pb.BuilderInfo get info_ => _i; static ReadDescriptorRequest create() => new ReadDescriptorRequest(); + ReadDescriptorRequest createEmptyInstance() => create(); 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); } @@ -639,12 +609,10 @@ class ReadDescriptorResponse extends $pb.GeneratedMessage { ReadDescriptorResponse copyWith(void Function(ReadDescriptorResponse) updates) => super.copyWith((message) => updates(message as ReadDescriptorResponse)); $pb.BuilderInfo get info_ => _i; static ReadDescriptorResponse create() => new ReadDescriptorResponse(); + ReadDescriptorResponse createEmptyInstance() => create(); 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); } @@ -675,12 +643,10 @@ class WriteCharacteristicRequest extends $pb.GeneratedMessage { WriteCharacteristicRequest copyWith(void Function(WriteCharacteristicRequest) updates) => super.copyWith((message) => updates(message as WriteCharacteristicRequest)); $pb.BuilderInfo get info_ => _i; static WriteCharacteristicRequest create() => new WriteCharacteristicRequest(); + WriteCharacteristicRequest createEmptyInstance() => create(); 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); } @@ -727,12 +693,10 @@ class WriteCharacteristicResponse extends $pb.GeneratedMessage { WriteCharacteristicResponse copyWith(void Function(WriteCharacteristicResponse) updates) => super.copyWith((message) => updates(message as WriteCharacteristicResponse)); $pb.BuilderInfo get info_ => _i; static WriteCharacteristicResponse create() => new WriteCharacteristicResponse(); + WriteCharacteristicResponse createEmptyInstance() => create(); 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); } @@ -763,12 +727,10 @@ class WriteDescriptorRequest extends $pb.GeneratedMessage { WriteDescriptorRequest copyWith(void Function(WriteDescriptorRequest) updates) => super.copyWith((message) => updates(message as WriteDescriptorRequest)); $pb.BuilderInfo get info_ => _i; static WriteDescriptorRequest create() => new WriteDescriptorRequest(); + WriteDescriptorRequest createEmptyInstance() => create(); 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); } @@ -815,12 +777,10 @@ class WriteDescriptorResponse extends $pb.GeneratedMessage { WriteDescriptorResponse copyWith(void Function(WriteDescriptorResponse) updates) => super.copyWith((message) => updates(message as WriteDescriptorResponse)); $pb.BuilderInfo get info_ => _i; static WriteDescriptorResponse create() => new WriteDescriptorResponse(); + WriteDescriptorResponse createEmptyInstance() => create(); 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); } @@ -850,12 +810,10 @@ class SetNotificationRequest extends $pb.GeneratedMessage { SetNotificationRequest copyWith(void Function(SetNotificationRequest) updates) => super.copyWith((message) => updates(message as SetNotificationRequest)); $pb.BuilderInfo get info_ => _i; static SetNotificationRequest create() => new SetNotificationRequest(); + SetNotificationRequest createEmptyInstance() => create(); 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); } @@ -898,12 +856,10 @@ class SetNotificationResponse extends $pb.GeneratedMessage { SetNotificationResponse copyWith(void Function(SetNotificationResponse) updates) => super.copyWith((message) => updates(message as SetNotificationResponse)); $pb.BuilderInfo get info_ => _i; static SetNotificationResponse create() => new SetNotificationResponse(); + SetNotificationResponse createEmptyInstance() => create(); 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); } @@ -935,12 +891,10 @@ class OnNotificationResponse extends $pb.GeneratedMessage { OnNotificationResponse copyWith(void Function(OnNotificationResponse) updates) => super.copyWith((message) => updates(message as OnNotificationResponse)); $pb.BuilderInfo get info_ => _i; static OnNotificationResponse create() => new OnNotificationResponse(); + OnNotificationResponse createEmptyInstance() => create(); 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); } @@ -967,12 +921,10 @@ class DeviceStateResponse extends $pb.GeneratedMessage { DeviceStateResponse copyWith(void Function(DeviceStateResponse) updates) => super.copyWith((message) => updates(message as DeviceStateResponse)); $pb.BuilderInfo get info_ => _i; static DeviceStateResponse create() => new DeviceStateResponse(); + DeviceStateResponse createEmptyInstance() => create(); 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); } diff --git a/lib/gen/flutterblue.pbenum.dart b/lib/gen/flutterblue.pbenum.dart index d6fc8171..bcdd1014 100644 --- a/lib/gen/flutterblue.pbenum.dart +++ b/lib/gen/flutterblue.pbenum.dart @@ -29,9 +29,6 @@ class BluetoothState_State extends $pb.ProtobufEnum { static final Map _byValue = $pb.ProtobufEnum.initByValue(values); static BluetoothState_State valueOf(int value) => _byValue[value]; - static void $checkItem(BluetoothState_State v) { - if (v is! BluetoothState_State) $pb.checkItemFailed(v, 'BluetoothState_State'); - } const BluetoothState_State._(int v, String n) : super(v, n); } @@ -51,9 +48,6 @@ class BluetoothDevice_Type extends $pb.ProtobufEnum { static final Map _byValue = $pb.ProtobufEnum.initByValue(values); static BluetoothDevice_Type valueOf(int value) => _byValue[value]; - static void $checkItem(BluetoothDevice_Type v) { - if (v is! BluetoothDevice_Type) $pb.checkItemFailed(v, 'BluetoothDevice_Type'); - } const BluetoothDevice_Type._(int v, String n) : super(v, n); } @@ -69,9 +63,6 @@ class WriteCharacteristicRequest_WriteType extends $pb.ProtobufEnum { static final Map _byValue = $pb.ProtobufEnum.initByValue(values); static WriteCharacteristicRequest_WriteType valueOf(int value) => _byValue[value]; - static void $checkItem(WriteCharacteristicRequest_WriteType v) { - if (v is! WriteCharacteristicRequest_WriteType) $pb.checkItemFailed(v, 'WriteCharacteristicRequest_WriteType'); - } const WriteCharacteristicRequest_WriteType._(int v, String n) : super(v, n); } @@ -91,9 +82,6 @@ class DeviceStateResponse_BluetoothDeviceState extends $pb.ProtobufEnum { static final Map _byValue = $pb.ProtobufEnum.initByValue(values); static DeviceStateResponse_BluetoothDeviceState valueOf(int value) => _byValue[value]; - static void $checkItem(DeviceStateResponse_BluetoothDeviceState v) { - if (v is! DeviceStateResponse_BluetoothDeviceState) $pb.checkItemFailed(v, 'DeviceStateResponse_BluetoothDeviceState'); - } const DeviceStateResponse_BluetoothDeviceState._(int v, String n) : super(v, n); }