Masterarbeit Richard Stern. Flutter App, sich mit einem Bluetooth-Gerät verbindet und Berührungen auf einem Sensor visualisiert.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

flutterblue.pb.dart 47KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987
  1. ///
  2. // Generated code. Do not modify.
  3. // source: flutterblue.proto
  4. ///
  5. // ignore_for_file: non_constant_identifier_names,library_prefixes,unused_import
  6. // ignore: UNUSED_SHOWN_NAME
  7. import 'dart:core' show int, bool, double, String, List, Map, override;
  8. import 'package:protobuf/protobuf.dart' as $pb;
  9. import 'flutterblue.pbenum.dart';
  10. export 'flutterblue.pbenum.dart';
  11. class Int32Value extends $pb.GeneratedMessage {
  12. static final $pb.BuilderInfo _i = new $pb.BuilderInfo('Int32Value')
  13. ..a<int>(1, 'value', $pb.PbFieldType.O3)
  14. ..hasRequiredFields = false
  15. ;
  16. Int32Value() : super();
  17. Int32Value.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r);
  18. Int32Value.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
  19. Int32Value clone() => new Int32Value()..mergeFromMessage(this);
  20. Int32Value copyWith(void Function(Int32Value) updates) => super.copyWith((message) => updates(message as Int32Value));
  21. $pb.BuilderInfo get info_ => _i;
  22. static Int32Value create() => new Int32Value();
  23. static $pb.PbList<Int32Value> createRepeated() => new $pb.PbList<Int32Value>();
  24. static Int32Value getDefault() => _defaultInstance ??= create()..freeze();
  25. static Int32Value _defaultInstance;
  26. static void $checkItem(Int32Value v) {
  27. if (v is! Int32Value) $pb.checkItemFailed(v, _i.qualifiedMessageName);
  28. }
  29. int get value => $_get(0, 0);
  30. set value(int v) { $_setSignedInt32(0, v); }
  31. bool hasValue() => $_has(0);
  32. void clearValue() => clearField(1);
  33. }
  34. class BluetoothState extends $pb.GeneratedMessage {
  35. static final $pb.BuilderInfo _i = new $pb.BuilderInfo('BluetoothState')
  36. ..e<BluetoothState_State>(1, 'state', $pb.PbFieldType.OE, BluetoothState_State.UNKNOWN, BluetoothState_State.valueOf, BluetoothState_State.values)
  37. ..hasRequiredFields = false
  38. ;
  39. BluetoothState() : super();
  40. BluetoothState.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r);
  41. BluetoothState.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
  42. BluetoothState clone() => new BluetoothState()..mergeFromMessage(this);
  43. BluetoothState copyWith(void Function(BluetoothState) updates) => super.copyWith((message) => updates(message as BluetoothState));
  44. $pb.BuilderInfo get info_ => _i;
  45. static BluetoothState create() => new BluetoothState();
  46. static $pb.PbList<BluetoothState> createRepeated() => new $pb.PbList<BluetoothState>();
  47. static BluetoothState getDefault() => _defaultInstance ??= create()..freeze();
  48. static BluetoothState _defaultInstance;
  49. static void $checkItem(BluetoothState v) {
  50. if (v is! BluetoothState) $pb.checkItemFailed(v, _i.qualifiedMessageName);
  51. }
  52. BluetoothState_State get state => $_getN(0);
  53. set state(BluetoothState_State v) { setField(1, v); }
  54. bool hasState() => $_has(0);
  55. void clearState() => clearField(1);
  56. }
  57. class AdvertisementData extends $pb.GeneratedMessage {
  58. static final $pb.BuilderInfo _i = new $pb.BuilderInfo('AdvertisementData')
  59. ..aOS(1, 'localName')
  60. ..a<Int32Value>(2, 'txPowerLevel', $pb.PbFieldType.OM, Int32Value.getDefault, Int32Value.create)
  61. ..aOB(3, 'connectable')
  62. ..m<int, List<int>>(4, 'manufacturerData', $pb.PbFieldType.O3, $pb.PbFieldType.OY)
  63. ..m<String, List<int>>(5, 'serviceData', $pb.PbFieldType.OS, $pb.PbFieldType.OY)
  64. ..pPS(6, 'serviceUuids')
  65. ..hasRequiredFields = false
  66. ;
  67. AdvertisementData() : super();
  68. AdvertisementData.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r);
  69. AdvertisementData.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
  70. AdvertisementData clone() => new AdvertisementData()..mergeFromMessage(this);
  71. AdvertisementData copyWith(void Function(AdvertisementData) updates) => super.copyWith((message) => updates(message as AdvertisementData));
  72. $pb.BuilderInfo get info_ => _i;
  73. static AdvertisementData create() => new AdvertisementData();
  74. static $pb.PbList<AdvertisementData> createRepeated() => new $pb.PbList<AdvertisementData>();
  75. static AdvertisementData getDefault() => _defaultInstance ??= create()..freeze();
  76. static AdvertisementData _defaultInstance;
  77. static void $checkItem(AdvertisementData v) {
  78. if (v is! AdvertisementData) $pb.checkItemFailed(v, _i.qualifiedMessageName);
  79. }
  80. String get localName => $_getS(0, '');
  81. set localName(String v) { $_setString(0, v); }
  82. bool hasLocalName() => $_has(0);
  83. void clearLocalName() => clearField(1);
  84. Int32Value get txPowerLevel => $_getN(1);
  85. set txPowerLevel(Int32Value v) { setField(2, v); }
  86. bool hasTxPowerLevel() => $_has(1);
  87. void clearTxPowerLevel() => clearField(2);
  88. bool get connectable => $_get(2, false);
  89. set connectable(bool v) { $_setBool(2, v); }
  90. bool hasConnectable() => $_has(2);
  91. void clearConnectable() => clearField(3);
  92. Map<int, List<int>> get manufacturerData => $_getMap(3);
  93. Map<String, List<int>> get serviceData => $_getMap(4);
  94. List<String> get serviceUuids => $_getList(5);
  95. }
  96. class ScanSettings extends $pb.GeneratedMessage {
  97. static final $pb.BuilderInfo _i = new $pb.BuilderInfo('ScanSettings')
  98. ..a<int>(1, 'androidScanMode', $pb.PbFieldType.O3)
  99. ..pPS(2, 'serviceUuids')
  100. ..hasRequiredFields = false
  101. ;
  102. ScanSettings() : super();
  103. ScanSettings.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r);
  104. ScanSettings.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
  105. ScanSettings clone() => new ScanSettings()..mergeFromMessage(this);
  106. ScanSettings copyWith(void Function(ScanSettings) updates) => super.copyWith((message) => updates(message as ScanSettings));
  107. $pb.BuilderInfo get info_ => _i;
  108. static ScanSettings create() => new ScanSettings();
  109. static $pb.PbList<ScanSettings> createRepeated() => new $pb.PbList<ScanSettings>();
  110. static ScanSettings getDefault() => _defaultInstance ??= create()..freeze();
  111. static ScanSettings _defaultInstance;
  112. static void $checkItem(ScanSettings v) {
  113. if (v is! ScanSettings) $pb.checkItemFailed(v, _i.qualifiedMessageName);
  114. }
  115. int get androidScanMode => $_get(0, 0);
  116. set androidScanMode(int v) { $_setSignedInt32(0, v); }
  117. bool hasAndroidScanMode() => $_has(0);
  118. void clearAndroidScanMode() => clearField(1);
  119. List<String> get serviceUuids => $_getList(1);
  120. }
  121. class ScanResult extends $pb.GeneratedMessage {
  122. static final $pb.BuilderInfo _i = new $pb.BuilderInfo('ScanResult')
  123. ..a<BluetoothDevice>(1, 'device', $pb.PbFieldType.OM, BluetoothDevice.getDefault, BluetoothDevice.create)
  124. ..a<AdvertisementData>(2, 'advertisementData', $pb.PbFieldType.OM, AdvertisementData.getDefault, AdvertisementData.create)
  125. ..a<int>(3, 'rssi', $pb.PbFieldType.O3)
  126. ..hasRequiredFields = false
  127. ;
  128. ScanResult() : super();
  129. ScanResult.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r);
  130. ScanResult.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
  131. ScanResult clone() => new ScanResult()..mergeFromMessage(this);
  132. ScanResult copyWith(void Function(ScanResult) updates) => super.copyWith((message) => updates(message as ScanResult));
  133. $pb.BuilderInfo get info_ => _i;
  134. static ScanResult create() => new ScanResult();
  135. static $pb.PbList<ScanResult> createRepeated() => new $pb.PbList<ScanResult>();
  136. static ScanResult getDefault() => _defaultInstance ??= create()..freeze();
  137. static ScanResult _defaultInstance;
  138. static void $checkItem(ScanResult v) {
  139. if (v is! ScanResult) $pb.checkItemFailed(v, _i.qualifiedMessageName);
  140. }
  141. BluetoothDevice get device => $_getN(0);
  142. set device(BluetoothDevice v) { setField(1, v); }
  143. bool hasDevice() => $_has(0);
  144. void clearDevice() => clearField(1);
  145. AdvertisementData get advertisementData => $_getN(1);
  146. set advertisementData(AdvertisementData v) { setField(2, v); }
  147. bool hasAdvertisementData() => $_has(1);
  148. void clearAdvertisementData() => clearField(2);
  149. int get rssi => $_get(2, 0);
  150. set rssi(int v) { $_setSignedInt32(2, v); }
  151. bool hasRssi() => $_has(2);
  152. void clearRssi() => clearField(3);
  153. }
  154. class ConnectRequest extends $pb.GeneratedMessage {
  155. static final $pb.BuilderInfo _i = new $pb.BuilderInfo('ConnectRequest')
  156. ..aOS(1, 'remoteId')
  157. ..aOB(2, 'androidAutoConnect')
  158. ..hasRequiredFields = false
  159. ;
  160. ConnectRequest() : super();
  161. ConnectRequest.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r);
  162. ConnectRequest.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
  163. ConnectRequest clone() => new ConnectRequest()..mergeFromMessage(this);
  164. ConnectRequest copyWith(void Function(ConnectRequest) updates) => super.copyWith((message) => updates(message as ConnectRequest));
  165. $pb.BuilderInfo get info_ => _i;
  166. static ConnectRequest create() => new ConnectRequest();
  167. static $pb.PbList<ConnectRequest> createRepeated() => new $pb.PbList<ConnectRequest>();
  168. static ConnectRequest getDefault() => _defaultInstance ??= create()..freeze();
  169. static ConnectRequest _defaultInstance;
  170. static void $checkItem(ConnectRequest v) {
  171. if (v is! ConnectRequest) $pb.checkItemFailed(v, _i.qualifiedMessageName);
  172. }
  173. String get remoteId => $_getS(0, '');
  174. set remoteId(String v) { $_setString(0, v); }
  175. bool hasRemoteId() => $_has(0);
  176. void clearRemoteId() => clearField(1);
  177. bool get androidAutoConnect => $_get(1, false);
  178. set androidAutoConnect(bool v) { $_setBool(1, v); }
  179. bool hasAndroidAutoConnect() => $_has(1);
  180. void clearAndroidAutoConnect() => clearField(2);
  181. }
  182. class BluetoothDevice extends $pb.GeneratedMessage {
  183. static final $pb.BuilderInfo _i = new $pb.BuilderInfo('BluetoothDevice')
  184. ..aOS(1, 'remoteId')
  185. ..aOS(2, 'name')
  186. ..e<BluetoothDevice_Type>(3, 'type', $pb.PbFieldType.OE, BluetoothDevice_Type.UNKNOWN, BluetoothDevice_Type.valueOf, BluetoothDevice_Type.values)
  187. ..hasRequiredFields = false
  188. ;
  189. BluetoothDevice() : super();
  190. BluetoothDevice.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r);
  191. BluetoothDevice.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
  192. BluetoothDevice clone() => new BluetoothDevice()..mergeFromMessage(this);
  193. BluetoothDevice copyWith(void Function(BluetoothDevice) updates) => super.copyWith((message) => updates(message as BluetoothDevice));
  194. $pb.BuilderInfo get info_ => _i;
  195. static BluetoothDevice create() => new BluetoothDevice();
  196. static $pb.PbList<BluetoothDevice> createRepeated() => new $pb.PbList<BluetoothDevice>();
  197. static BluetoothDevice getDefault() => _defaultInstance ??= create()..freeze();
  198. static BluetoothDevice _defaultInstance;
  199. static void $checkItem(BluetoothDevice v) {
  200. if (v is! BluetoothDevice) $pb.checkItemFailed(v, _i.qualifiedMessageName);
  201. }
  202. String get remoteId => $_getS(0, '');
  203. set remoteId(String v) { $_setString(0, v); }
  204. bool hasRemoteId() => $_has(0);
  205. void clearRemoteId() => clearField(1);
  206. String get name => $_getS(1, '');
  207. set name(String v) { $_setString(1, v); }
  208. bool hasName() => $_has(1);
  209. void clearName() => clearField(2);
  210. BluetoothDevice_Type get type => $_getN(2);
  211. set type(BluetoothDevice_Type v) { setField(3, v); }
  212. bool hasType() => $_has(2);
  213. void clearType() => clearField(3);
  214. }
  215. class BluetoothService extends $pb.GeneratedMessage {
  216. static final $pb.BuilderInfo _i = new $pb.BuilderInfo('BluetoothService')
  217. ..aOS(1, 'uuid')
  218. ..aOS(2, 'remoteId')
  219. ..aOB(3, 'isPrimary')
  220. ..pp<BluetoothCharacteristic>(4, 'characteristics', $pb.PbFieldType.PM, BluetoothCharacteristic.$checkItem, BluetoothCharacteristic.create)
  221. ..pp<BluetoothService>(5, 'includedServices', $pb.PbFieldType.PM, BluetoothService.$checkItem, BluetoothService.create)
  222. ..hasRequiredFields = false
  223. ;
  224. BluetoothService() : super();
  225. BluetoothService.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r);
  226. BluetoothService.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
  227. BluetoothService clone() => new BluetoothService()..mergeFromMessage(this);
  228. BluetoothService copyWith(void Function(BluetoothService) updates) => super.copyWith((message) => updates(message as BluetoothService));
  229. $pb.BuilderInfo get info_ => _i;
  230. static BluetoothService create() => new BluetoothService();
  231. static $pb.PbList<BluetoothService> createRepeated() => new $pb.PbList<BluetoothService>();
  232. static BluetoothService getDefault() => _defaultInstance ??= create()..freeze();
  233. static BluetoothService _defaultInstance;
  234. static void $checkItem(BluetoothService v) {
  235. if (v is! BluetoothService) $pb.checkItemFailed(v, _i.qualifiedMessageName);
  236. }
  237. String get uuid => $_getS(0, '');
  238. set uuid(String v) { $_setString(0, v); }
  239. bool hasUuid() => $_has(0);
  240. void clearUuid() => clearField(1);
  241. String get remoteId => $_getS(1, '');
  242. set remoteId(String v) { $_setString(1, v); }
  243. bool hasRemoteId() => $_has(1);
  244. void clearRemoteId() => clearField(2);
  245. bool get isPrimary => $_get(2, false);
  246. set isPrimary(bool v) { $_setBool(2, v); }
  247. bool hasIsPrimary() => $_has(2);
  248. void clearIsPrimary() => clearField(3);
  249. List<BluetoothCharacteristic> get characteristics => $_getList(3);
  250. List<BluetoothService> get includedServices => $_getList(4);
  251. }
  252. class BluetoothCharacteristic extends $pb.GeneratedMessage {
  253. static final $pb.BuilderInfo _i = new $pb.BuilderInfo('BluetoothCharacteristic')
  254. ..aOS(1, 'uuid')
  255. ..aOS(2, 'serviceUuid')
  256. ..aOS(3, 'secondaryServiceUuid')
  257. ..pp<BluetoothDescriptor>(4, 'descriptors', $pb.PbFieldType.PM, BluetoothDescriptor.$checkItem, BluetoothDescriptor.create)
  258. ..a<CharacteristicProperties>(5, 'properties', $pb.PbFieldType.OM, CharacteristicProperties.getDefault, CharacteristicProperties.create)
  259. ..a<List<int>>(6, 'value', $pb.PbFieldType.OY)
  260. ..hasRequiredFields = false
  261. ;
  262. BluetoothCharacteristic() : super();
  263. BluetoothCharacteristic.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r);
  264. BluetoothCharacteristic.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
  265. BluetoothCharacteristic clone() => new BluetoothCharacteristic()..mergeFromMessage(this);
  266. BluetoothCharacteristic copyWith(void Function(BluetoothCharacteristic) updates) => super.copyWith((message) => updates(message as BluetoothCharacteristic));
  267. $pb.BuilderInfo get info_ => _i;
  268. static BluetoothCharacteristic create() => new BluetoothCharacteristic();
  269. static $pb.PbList<BluetoothCharacteristic> createRepeated() => new $pb.PbList<BluetoothCharacteristic>();
  270. static BluetoothCharacteristic getDefault() => _defaultInstance ??= create()..freeze();
  271. static BluetoothCharacteristic _defaultInstance;
  272. static void $checkItem(BluetoothCharacteristic v) {
  273. if (v is! BluetoothCharacteristic) $pb.checkItemFailed(v, _i.qualifiedMessageName);
  274. }
  275. String get uuid => $_getS(0, '');
  276. set uuid(String v) { $_setString(0, v); }
  277. bool hasUuid() => $_has(0);
  278. void clearUuid() => clearField(1);
  279. String get serviceUuid => $_getS(1, '');
  280. set serviceUuid(String v) { $_setString(1, v); }
  281. bool hasServiceUuid() => $_has(1);
  282. void clearServiceUuid() => clearField(2);
  283. String get secondaryServiceUuid => $_getS(2, '');
  284. set secondaryServiceUuid(String v) { $_setString(2, v); }
  285. bool hasSecondaryServiceUuid() => $_has(2);
  286. void clearSecondaryServiceUuid() => clearField(3);
  287. List<BluetoothDescriptor> get descriptors => $_getList(3);
  288. CharacteristicProperties get properties => $_getN(4);
  289. set properties(CharacteristicProperties v) { setField(5, v); }
  290. bool hasProperties() => $_has(4);
  291. void clearProperties() => clearField(5);
  292. List<int> get value => $_getN(5);
  293. set value(List<int> v) { $_setBytes(5, v); }
  294. bool hasValue() => $_has(5);
  295. void clearValue() => clearField(6);
  296. }
  297. class BluetoothDescriptor extends $pb.GeneratedMessage {
  298. static final $pb.BuilderInfo _i = new $pb.BuilderInfo('BluetoothDescriptor')
  299. ..aOS(1, 'uuid')
  300. ..aOS(2, 'serviceUuid')
  301. ..aOS(3, 'characteristicUuid')
  302. ..a<List<int>>(4, 'value', $pb.PbFieldType.OY)
  303. ..hasRequiredFields = false
  304. ;
  305. BluetoothDescriptor() : super();
  306. BluetoothDescriptor.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r);
  307. BluetoothDescriptor.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
  308. BluetoothDescriptor clone() => new BluetoothDescriptor()..mergeFromMessage(this);
  309. BluetoothDescriptor copyWith(void Function(BluetoothDescriptor) updates) => super.copyWith((message) => updates(message as BluetoothDescriptor));
  310. $pb.BuilderInfo get info_ => _i;
  311. static BluetoothDescriptor create() => new BluetoothDescriptor();
  312. static $pb.PbList<BluetoothDescriptor> createRepeated() => new $pb.PbList<BluetoothDescriptor>();
  313. static BluetoothDescriptor getDefault() => _defaultInstance ??= create()..freeze();
  314. static BluetoothDescriptor _defaultInstance;
  315. static void $checkItem(BluetoothDescriptor v) {
  316. if (v is! BluetoothDescriptor) $pb.checkItemFailed(v, _i.qualifiedMessageName);
  317. }
  318. String get uuid => $_getS(0, '');
  319. set uuid(String v) { $_setString(0, v); }
  320. bool hasUuid() => $_has(0);
  321. void clearUuid() => clearField(1);
  322. String get serviceUuid => $_getS(1, '');
  323. set serviceUuid(String v) { $_setString(1, v); }
  324. bool hasServiceUuid() => $_has(1);
  325. void clearServiceUuid() => clearField(2);
  326. String get characteristicUuid => $_getS(2, '');
  327. set characteristicUuid(String v) { $_setString(2, v); }
  328. bool hasCharacteristicUuid() => $_has(2);
  329. void clearCharacteristicUuid() => clearField(3);
  330. List<int> get value => $_getN(3);
  331. set value(List<int> v) { $_setBytes(3, v); }
  332. bool hasValue() => $_has(3);
  333. void clearValue() => clearField(4);
  334. }
  335. class CharacteristicProperties extends $pb.GeneratedMessage {
  336. static final $pb.BuilderInfo _i = new $pb.BuilderInfo('CharacteristicProperties')
  337. ..aOB(1, 'broadcast')
  338. ..aOB(2, 'read')
  339. ..aOB(3, 'writeWithoutResponse')
  340. ..aOB(4, 'write')
  341. ..aOB(5, 'notify')
  342. ..aOB(6, 'indicate')
  343. ..aOB(7, 'authenticatedSignedWrites')
  344. ..aOB(8, 'extendedProperties')
  345. ..aOB(9, 'notifyEncryptionRequired')
  346. ..aOB(10, 'indicateEncryptionRequired')
  347. ..hasRequiredFields = false
  348. ;
  349. CharacteristicProperties() : super();
  350. CharacteristicProperties.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r);
  351. CharacteristicProperties.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
  352. CharacteristicProperties clone() => new CharacteristicProperties()..mergeFromMessage(this);
  353. CharacteristicProperties copyWith(void Function(CharacteristicProperties) updates) => super.copyWith((message) => updates(message as CharacteristicProperties));
  354. $pb.BuilderInfo get info_ => _i;
  355. static CharacteristicProperties create() => new CharacteristicProperties();
  356. static $pb.PbList<CharacteristicProperties> createRepeated() => new $pb.PbList<CharacteristicProperties>();
  357. static CharacteristicProperties getDefault() => _defaultInstance ??= create()..freeze();
  358. static CharacteristicProperties _defaultInstance;
  359. static void $checkItem(CharacteristicProperties v) {
  360. if (v is! CharacteristicProperties) $pb.checkItemFailed(v, _i.qualifiedMessageName);
  361. }
  362. bool get broadcast => $_get(0, false);
  363. set broadcast(bool v) { $_setBool(0, v); }
  364. bool hasBroadcast() => $_has(0);
  365. void clearBroadcast() => clearField(1);
  366. bool get read => $_get(1, false);
  367. set read(bool v) { $_setBool(1, v); }
  368. bool hasRead() => $_has(1);
  369. void clearRead() => clearField(2);
  370. bool get writeWithoutResponse => $_get(2, false);
  371. set writeWithoutResponse(bool v) { $_setBool(2, v); }
  372. bool hasWriteWithoutResponse() => $_has(2);
  373. void clearWriteWithoutResponse() => clearField(3);
  374. bool get write => $_get(3, false);
  375. set write(bool v) { $_setBool(3, v); }
  376. bool hasWrite() => $_has(3);
  377. void clearWrite() => clearField(4);
  378. bool get notify => $_get(4, false);
  379. set notify(bool v) { $_setBool(4, v); }
  380. bool hasNotify() => $_has(4);
  381. void clearNotify() => clearField(5);
  382. bool get indicate => $_get(5, false);
  383. set indicate(bool v) { $_setBool(5, v); }
  384. bool hasIndicate() => $_has(5);
  385. void clearIndicate() => clearField(6);
  386. bool get authenticatedSignedWrites => $_get(6, false);
  387. set authenticatedSignedWrites(bool v) { $_setBool(6, v); }
  388. bool hasAuthenticatedSignedWrites() => $_has(6);
  389. void clearAuthenticatedSignedWrites() => clearField(7);
  390. bool get extendedProperties => $_get(7, false);
  391. set extendedProperties(bool v) { $_setBool(7, v); }
  392. bool hasExtendedProperties() => $_has(7);
  393. void clearExtendedProperties() => clearField(8);
  394. bool get notifyEncryptionRequired => $_get(8, false);
  395. set notifyEncryptionRequired(bool v) { $_setBool(8, v); }
  396. bool hasNotifyEncryptionRequired() => $_has(8);
  397. void clearNotifyEncryptionRequired() => clearField(9);
  398. bool get indicateEncryptionRequired => $_get(9, false);
  399. set indicateEncryptionRequired(bool v) { $_setBool(9, v); }
  400. bool hasIndicateEncryptionRequired() => $_has(9);
  401. void clearIndicateEncryptionRequired() => clearField(10);
  402. }
  403. class DiscoverServicesResult extends $pb.GeneratedMessage {
  404. static final $pb.BuilderInfo _i = new $pb.BuilderInfo('DiscoverServicesResult')
  405. ..aOS(1, 'remoteId')
  406. ..pp<BluetoothService>(2, 'services', $pb.PbFieldType.PM, BluetoothService.$checkItem, BluetoothService.create)
  407. ..hasRequiredFields = false
  408. ;
  409. DiscoverServicesResult() : super();
  410. DiscoverServicesResult.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r);
  411. DiscoverServicesResult.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
  412. DiscoverServicesResult clone() => new DiscoverServicesResult()..mergeFromMessage(this);
  413. DiscoverServicesResult copyWith(void Function(DiscoverServicesResult) updates) => super.copyWith((message) => updates(message as DiscoverServicesResult));
  414. $pb.BuilderInfo get info_ => _i;
  415. static DiscoverServicesResult create() => new DiscoverServicesResult();
  416. static $pb.PbList<DiscoverServicesResult> createRepeated() => new $pb.PbList<DiscoverServicesResult>();
  417. static DiscoverServicesResult getDefault() => _defaultInstance ??= create()..freeze();
  418. static DiscoverServicesResult _defaultInstance;
  419. static void $checkItem(DiscoverServicesResult v) {
  420. if (v is! DiscoverServicesResult) $pb.checkItemFailed(v, _i.qualifiedMessageName);
  421. }
  422. String get remoteId => $_getS(0, '');
  423. set remoteId(String v) { $_setString(0, v); }
  424. bool hasRemoteId() => $_has(0);
  425. void clearRemoteId() => clearField(1);
  426. List<BluetoothService> get services => $_getList(1);
  427. }
  428. class ReadCharacteristicRequest extends $pb.GeneratedMessage {
  429. static final $pb.BuilderInfo _i = new $pb.BuilderInfo('ReadCharacteristicRequest')
  430. ..aOS(1, 'remoteId')
  431. ..aOS(2, 'characteristicUuid')
  432. ..aOS(3, 'serviceUuid')
  433. ..aOS(4, 'secondaryServiceUuid')
  434. ..hasRequiredFields = false
  435. ;
  436. ReadCharacteristicRequest() : super();
  437. ReadCharacteristicRequest.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r);
  438. ReadCharacteristicRequest.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
  439. ReadCharacteristicRequest clone() => new ReadCharacteristicRequest()..mergeFromMessage(this);
  440. ReadCharacteristicRequest copyWith(void Function(ReadCharacteristicRequest) updates) => super.copyWith((message) => updates(message as ReadCharacteristicRequest));
  441. $pb.BuilderInfo get info_ => _i;
  442. static ReadCharacteristicRequest create() => new ReadCharacteristicRequest();
  443. static $pb.PbList<ReadCharacteristicRequest> createRepeated() => new $pb.PbList<ReadCharacteristicRequest>();
  444. static ReadCharacteristicRequest getDefault() => _defaultInstance ??= create()..freeze();
  445. static ReadCharacteristicRequest _defaultInstance;
  446. static void $checkItem(ReadCharacteristicRequest v) {
  447. if (v is! ReadCharacteristicRequest) $pb.checkItemFailed(v, _i.qualifiedMessageName);
  448. }
  449. String get remoteId => $_getS(0, '');
  450. set remoteId(String v) { $_setString(0, v); }
  451. bool hasRemoteId() => $_has(0);
  452. void clearRemoteId() => clearField(1);
  453. String get characteristicUuid => $_getS(1, '');
  454. set characteristicUuid(String v) { $_setString(1, v); }
  455. bool hasCharacteristicUuid() => $_has(1);
  456. void clearCharacteristicUuid() => clearField(2);
  457. String get serviceUuid => $_getS(2, '');
  458. set serviceUuid(String v) { $_setString(2, v); }
  459. bool hasServiceUuid() => $_has(2);
  460. void clearServiceUuid() => clearField(3);
  461. String get secondaryServiceUuid => $_getS(3, '');
  462. set secondaryServiceUuid(String v) { $_setString(3, v); }
  463. bool hasSecondaryServiceUuid() => $_has(3);
  464. void clearSecondaryServiceUuid() => clearField(4);
  465. }
  466. class ReadCharacteristicResponse extends $pb.GeneratedMessage {
  467. static final $pb.BuilderInfo _i = new $pb.BuilderInfo('ReadCharacteristicResponse')
  468. ..aOS(1, 'remoteId')
  469. ..a<BluetoothCharacteristic>(2, 'characteristic', $pb.PbFieldType.OM, BluetoothCharacteristic.getDefault, BluetoothCharacteristic.create)
  470. ..hasRequiredFields = false
  471. ;
  472. ReadCharacteristicResponse() : super();
  473. ReadCharacteristicResponse.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r);
  474. ReadCharacteristicResponse.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
  475. ReadCharacteristicResponse clone() => new ReadCharacteristicResponse()..mergeFromMessage(this);
  476. ReadCharacteristicResponse copyWith(void Function(ReadCharacteristicResponse) updates) => super.copyWith((message) => updates(message as ReadCharacteristicResponse));
  477. $pb.BuilderInfo get info_ => _i;
  478. static ReadCharacteristicResponse create() => new ReadCharacteristicResponse();
  479. static $pb.PbList<ReadCharacteristicResponse> createRepeated() => new $pb.PbList<ReadCharacteristicResponse>();
  480. static ReadCharacteristicResponse getDefault() => _defaultInstance ??= create()..freeze();
  481. static ReadCharacteristicResponse _defaultInstance;
  482. static void $checkItem(ReadCharacteristicResponse v) {
  483. if (v is! ReadCharacteristicResponse) $pb.checkItemFailed(v, _i.qualifiedMessageName);
  484. }
  485. String get remoteId => $_getS(0, '');
  486. set remoteId(String v) { $_setString(0, v); }
  487. bool hasRemoteId() => $_has(0);
  488. void clearRemoteId() => clearField(1);
  489. BluetoothCharacteristic get characteristic => $_getN(1);
  490. set characteristic(BluetoothCharacteristic v) { setField(2, v); }
  491. bool hasCharacteristic() => $_has(1);
  492. void clearCharacteristic() => clearField(2);
  493. }
  494. class ReadDescriptorRequest extends $pb.GeneratedMessage {
  495. static final $pb.BuilderInfo _i = new $pb.BuilderInfo('ReadDescriptorRequest')
  496. ..aOS(1, 'remoteId')
  497. ..aOS(2, 'descriptorUuid')
  498. ..aOS(3, 'serviceUuid')
  499. ..aOS(4, 'secondaryServiceUuid')
  500. ..aOS(5, 'characteristicUuid')
  501. ..hasRequiredFields = false
  502. ;
  503. ReadDescriptorRequest() : super();
  504. ReadDescriptorRequest.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r);
  505. ReadDescriptorRequest.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
  506. ReadDescriptorRequest clone() => new ReadDescriptorRequest()..mergeFromMessage(this);
  507. ReadDescriptorRequest copyWith(void Function(ReadDescriptorRequest) updates) => super.copyWith((message) => updates(message as ReadDescriptorRequest));
  508. $pb.BuilderInfo get info_ => _i;
  509. static ReadDescriptorRequest create() => new ReadDescriptorRequest();
  510. static $pb.PbList<ReadDescriptorRequest> createRepeated() => new $pb.PbList<ReadDescriptorRequest>();
  511. static ReadDescriptorRequest getDefault() => _defaultInstance ??= create()..freeze();
  512. static ReadDescriptorRequest _defaultInstance;
  513. static void $checkItem(ReadDescriptorRequest v) {
  514. if (v is! ReadDescriptorRequest) $pb.checkItemFailed(v, _i.qualifiedMessageName);
  515. }
  516. String get remoteId => $_getS(0, '');
  517. set remoteId(String v) { $_setString(0, v); }
  518. bool hasRemoteId() => $_has(0);
  519. void clearRemoteId() => clearField(1);
  520. String get descriptorUuid => $_getS(1, '');
  521. set descriptorUuid(String v) { $_setString(1, v); }
  522. bool hasDescriptorUuid() => $_has(1);
  523. void clearDescriptorUuid() => clearField(2);
  524. String get serviceUuid => $_getS(2, '');
  525. set serviceUuid(String v) { $_setString(2, v); }
  526. bool hasServiceUuid() => $_has(2);
  527. void clearServiceUuid() => clearField(3);
  528. String get secondaryServiceUuid => $_getS(3, '');
  529. set secondaryServiceUuid(String v) { $_setString(3, v); }
  530. bool hasSecondaryServiceUuid() => $_has(3);
  531. void clearSecondaryServiceUuid() => clearField(4);
  532. String get characteristicUuid => $_getS(4, '');
  533. set characteristicUuid(String v) { $_setString(4, v); }
  534. bool hasCharacteristicUuid() => $_has(4);
  535. void clearCharacteristicUuid() => clearField(5);
  536. }
  537. class ReadDescriptorResponse extends $pb.GeneratedMessage {
  538. static final $pb.BuilderInfo _i = new $pb.BuilderInfo('ReadDescriptorResponse')
  539. ..a<ReadDescriptorRequest>(1, 'request', $pb.PbFieldType.OM, ReadDescriptorRequest.getDefault, ReadDescriptorRequest.create)
  540. ..a<List<int>>(2, 'value', $pb.PbFieldType.OY)
  541. ..hasRequiredFields = false
  542. ;
  543. ReadDescriptorResponse() : super();
  544. ReadDescriptorResponse.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r);
  545. ReadDescriptorResponse.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
  546. ReadDescriptorResponse clone() => new ReadDescriptorResponse()..mergeFromMessage(this);
  547. ReadDescriptorResponse copyWith(void Function(ReadDescriptorResponse) updates) => super.copyWith((message) => updates(message as ReadDescriptorResponse));
  548. $pb.BuilderInfo get info_ => _i;
  549. static ReadDescriptorResponse create() => new ReadDescriptorResponse();
  550. static $pb.PbList<ReadDescriptorResponse> createRepeated() => new $pb.PbList<ReadDescriptorResponse>();
  551. static ReadDescriptorResponse getDefault() => _defaultInstance ??= create()..freeze();
  552. static ReadDescriptorResponse _defaultInstance;
  553. static void $checkItem(ReadDescriptorResponse v) {
  554. if (v is! ReadDescriptorResponse) $pb.checkItemFailed(v, _i.qualifiedMessageName);
  555. }
  556. ReadDescriptorRequest get request => $_getN(0);
  557. set request(ReadDescriptorRequest v) { setField(1, v); }
  558. bool hasRequest() => $_has(0);
  559. void clearRequest() => clearField(1);
  560. List<int> get value => $_getN(1);
  561. set value(List<int> v) { $_setBytes(1, v); }
  562. bool hasValue() => $_has(1);
  563. void clearValue() => clearField(2);
  564. }
  565. class WriteCharacteristicRequest extends $pb.GeneratedMessage {
  566. static final $pb.BuilderInfo _i = new $pb.BuilderInfo('WriteCharacteristicRequest')
  567. ..aOS(1, 'remoteId')
  568. ..aOS(2, 'characteristicUuid')
  569. ..aOS(3, 'serviceUuid')
  570. ..aOS(4, 'secondaryServiceUuid')
  571. ..e<WriteCharacteristicRequest_WriteType>(5, 'writeType', $pb.PbFieldType.OE, WriteCharacteristicRequest_WriteType.WITH_RESPONSE, WriteCharacteristicRequest_WriteType.valueOf, WriteCharacteristicRequest_WriteType.values)
  572. ..a<List<int>>(6, 'value', $pb.PbFieldType.OY)
  573. ..hasRequiredFields = false
  574. ;
  575. WriteCharacteristicRequest() : super();
  576. WriteCharacteristicRequest.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r);
  577. WriteCharacteristicRequest.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
  578. WriteCharacteristicRequest clone() => new WriteCharacteristicRequest()..mergeFromMessage(this);
  579. WriteCharacteristicRequest copyWith(void Function(WriteCharacteristicRequest) updates) => super.copyWith((message) => updates(message as WriteCharacteristicRequest));
  580. $pb.BuilderInfo get info_ => _i;
  581. static WriteCharacteristicRequest create() => new WriteCharacteristicRequest();
  582. static $pb.PbList<WriteCharacteristicRequest> createRepeated() => new $pb.PbList<WriteCharacteristicRequest>();
  583. static WriteCharacteristicRequest getDefault() => _defaultInstance ??= create()..freeze();
  584. static WriteCharacteristicRequest _defaultInstance;
  585. static void $checkItem(WriteCharacteristicRequest v) {
  586. if (v is! WriteCharacteristicRequest) $pb.checkItemFailed(v, _i.qualifiedMessageName);
  587. }
  588. String get remoteId => $_getS(0, '');
  589. set remoteId(String v) { $_setString(0, v); }
  590. bool hasRemoteId() => $_has(0);
  591. void clearRemoteId() => clearField(1);
  592. String get characteristicUuid => $_getS(1, '');
  593. set characteristicUuid(String v) { $_setString(1, v); }
  594. bool hasCharacteristicUuid() => $_has(1);
  595. void clearCharacteristicUuid() => clearField(2);
  596. String get serviceUuid => $_getS(2, '');
  597. set serviceUuid(String v) { $_setString(2, v); }
  598. bool hasServiceUuid() => $_has(2);
  599. void clearServiceUuid() => clearField(3);
  600. String get secondaryServiceUuid => $_getS(3, '');
  601. set secondaryServiceUuid(String v) { $_setString(3, v); }
  602. bool hasSecondaryServiceUuid() => $_has(3);
  603. void clearSecondaryServiceUuid() => clearField(4);
  604. WriteCharacteristicRequest_WriteType get writeType => $_getN(4);
  605. set writeType(WriteCharacteristicRequest_WriteType v) { setField(5, v); }
  606. bool hasWriteType() => $_has(4);
  607. void clearWriteType() => clearField(5);
  608. List<int> get value => $_getN(5);
  609. set value(List<int> v) { $_setBytes(5, v); }
  610. bool hasValue() => $_has(5);
  611. void clearValue() => clearField(6);
  612. }
  613. class WriteCharacteristicResponse extends $pb.GeneratedMessage {
  614. static final $pb.BuilderInfo _i = new $pb.BuilderInfo('WriteCharacteristicResponse')
  615. ..a<WriteCharacteristicRequest>(1, 'request', $pb.PbFieldType.OM, WriteCharacteristicRequest.getDefault, WriteCharacteristicRequest.create)
  616. ..aOB(2, 'success')
  617. ..hasRequiredFields = false
  618. ;
  619. WriteCharacteristicResponse() : super();
  620. WriteCharacteristicResponse.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r);
  621. WriteCharacteristicResponse.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
  622. WriteCharacteristicResponse clone() => new WriteCharacteristicResponse()..mergeFromMessage(this);
  623. WriteCharacteristicResponse copyWith(void Function(WriteCharacteristicResponse) updates) => super.copyWith((message) => updates(message as WriteCharacteristicResponse));
  624. $pb.BuilderInfo get info_ => _i;
  625. static WriteCharacteristicResponse create() => new WriteCharacteristicResponse();
  626. static $pb.PbList<WriteCharacteristicResponse> createRepeated() => new $pb.PbList<WriteCharacteristicResponse>();
  627. static WriteCharacteristicResponse getDefault() => _defaultInstance ??= create()..freeze();
  628. static WriteCharacteristicResponse _defaultInstance;
  629. static void $checkItem(WriteCharacteristicResponse v) {
  630. if (v is! WriteCharacteristicResponse) $pb.checkItemFailed(v, _i.qualifiedMessageName);
  631. }
  632. WriteCharacteristicRequest get request => $_getN(0);
  633. set request(WriteCharacteristicRequest v) { setField(1, v); }
  634. bool hasRequest() => $_has(0);
  635. void clearRequest() => clearField(1);
  636. bool get success => $_get(1, false);
  637. set success(bool v) { $_setBool(1, v); }
  638. bool hasSuccess() => $_has(1);
  639. void clearSuccess() => clearField(2);
  640. }
  641. class WriteDescriptorRequest extends $pb.GeneratedMessage {
  642. static final $pb.BuilderInfo _i = new $pb.BuilderInfo('WriteDescriptorRequest')
  643. ..aOS(1, 'remoteId')
  644. ..aOS(2, 'descriptorUuid')
  645. ..aOS(3, 'serviceUuid')
  646. ..aOS(4, 'secondaryServiceUuid')
  647. ..aOS(5, 'characteristicUuid')
  648. ..a<List<int>>(6, 'value', $pb.PbFieldType.OY)
  649. ..hasRequiredFields = false
  650. ;
  651. WriteDescriptorRequest() : super();
  652. WriteDescriptorRequest.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r);
  653. WriteDescriptorRequest.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
  654. WriteDescriptorRequest clone() => new WriteDescriptorRequest()..mergeFromMessage(this);
  655. WriteDescriptorRequest copyWith(void Function(WriteDescriptorRequest) updates) => super.copyWith((message) => updates(message as WriteDescriptorRequest));
  656. $pb.BuilderInfo get info_ => _i;
  657. static WriteDescriptorRequest create() => new WriteDescriptorRequest();
  658. static $pb.PbList<WriteDescriptorRequest> createRepeated() => new $pb.PbList<WriteDescriptorRequest>();
  659. static WriteDescriptorRequest getDefault() => _defaultInstance ??= create()..freeze();
  660. static WriteDescriptorRequest _defaultInstance;
  661. static void $checkItem(WriteDescriptorRequest v) {
  662. if (v is! WriteDescriptorRequest) $pb.checkItemFailed(v, _i.qualifiedMessageName);
  663. }
  664. String get remoteId => $_getS(0, '');
  665. set remoteId(String v) { $_setString(0, v); }
  666. bool hasRemoteId() => $_has(0);
  667. void clearRemoteId() => clearField(1);
  668. String get descriptorUuid => $_getS(1, '');
  669. set descriptorUuid(String v) { $_setString(1, v); }
  670. bool hasDescriptorUuid() => $_has(1);
  671. void clearDescriptorUuid() => clearField(2);
  672. String get serviceUuid => $_getS(2, '');
  673. set serviceUuid(String v) { $_setString(2, v); }
  674. bool hasServiceUuid() => $_has(2);
  675. void clearServiceUuid() => clearField(3);
  676. String get secondaryServiceUuid => $_getS(3, '');
  677. set secondaryServiceUuid(String v) { $_setString(3, v); }
  678. bool hasSecondaryServiceUuid() => $_has(3);
  679. void clearSecondaryServiceUuid() => clearField(4);
  680. String get characteristicUuid => $_getS(4, '');
  681. set characteristicUuid(String v) { $_setString(4, v); }
  682. bool hasCharacteristicUuid() => $_has(4);
  683. void clearCharacteristicUuid() => clearField(5);
  684. List<int> get value => $_getN(5);
  685. set value(List<int> v) { $_setBytes(5, v); }
  686. bool hasValue() => $_has(5);
  687. void clearValue() => clearField(6);
  688. }
  689. class WriteDescriptorResponse extends $pb.GeneratedMessage {
  690. static final $pb.BuilderInfo _i = new $pb.BuilderInfo('WriteDescriptorResponse')
  691. ..a<WriteDescriptorRequest>(1, 'request', $pb.PbFieldType.OM, WriteDescriptorRequest.getDefault, WriteDescriptorRequest.create)
  692. ..aOB(2, 'success')
  693. ..hasRequiredFields = false
  694. ;
  695. WriteDescriptorResponse() : super();
  696. WriteDescriptorResponse.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r);
  697. WriteDescriptorResponse.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
  698. WriteDescriptorResponse clone() => new WriteDescriptorResponse()..mergeFromMessage(this);
  699. WriteDescriptorResponse copyWith(void Function(WriteDescriptorResponse) updates) => super.copyWith((message) => updates(message as WriteDescriptorResponse));
  700. $pb.BuilderInfo get info_ => _i;
  701. static WriteDescriptorResponse create() => new WriteDescriptorResponse();
  702. static $pb.PbList<WriteDescriptorResponse> createRepeated() => new $pb.PbList<WriteDescriptorResponse>();
  703. static WriteDescriptorResponse getDefault() => _defaultInstance ??= create()..freeze();
  704. static WriteDescriptorResponse _defaultInstance;
  705. static void $checkItem(WriteDescriptorResponse v) {
  706. if (v is! WriteDescriptorResponse) $pb.checkItemFailed(v, _i.qualifiedMessageName);
  707. }
  708. WriteDescriptorRequest get request => $_getN(0);
  709. set request(WriteDescriptorRequest v) { setField(1, v); }
  710. bool hasRequest() => $_has(0);
  711. void clearRequest() => clearField(1);
  712. bool get success => $_get(1, false);
  713. set success(bool v) { $_setBool(1, v); }
  714. bool hasSuccess() => $_has(1);
  715. void clearSuccess() => clearField(2);
  716. }
  717. class SetNotificationRequest extends $pb.GeneratedMessage {
  718. static final $pb.BuilderInfo _i = new $pb.BuilderInfo('SetNotificationRequest')
  719. ..aOS(1, 'remoteId')
  720. ..aOS(2, 'serviceUuid')
  721. ..aOS(3, 'secondaryServiceUuid')
  722. ..aOS(4, 'characteristicUuid')
  723. ..aOB(5, 'enable')
  724. ..hasRequiredFields = false
  725. ;
  726. SetNotificationRequest() : super();
  727. SetNotificationRequest.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r);
  728. SetNotificationRequest.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
  729. SetNotificationRequest clone() => new SetNotificationRequest()..mergeFromMessage(this);
  730. SetNotificationRequest copyWith(void Function(SetNotificationRequest) updates) => super.copyWith((message) => updates(message as SetNotificationRequest));
  731. $pb.BuilderInfo get info_ => _i;
  732. static SetNotificationRequest create() => new SetNotificationRequest();
  733. static $pb.PbList<SetNotificationRequest> createRepeated() => new $pb.PbList<SetNotificationRequest>();
  734. static SetNotificationRequest getDefault() => _defaultInstance ??= create()..freeze();
  735. static SetNotificationRequest _defaultInstance;
  736. static void $checkItem(SetNotificationRequest v) {
  737. if (v is! SetNotificationRequest) $pb.checkItemFailed(v, _i.qualifiedMessageName);
  738. }
  739. String get remoteId => $_getS(0, '');
  740. set remoteId(String v) { $_setString(0, v); }
  741. bool hasRemoteId() => $_has(0);
  742. void clearRemoteId() => clearField(1);
  743. String get serviceUuid => $_getS(1, '');
  744. set serviceUuid(String v) { $_setString(1, v); }
  745. bool hasServiceUuid() => $_has(1);
  746. void clearServiceUuid() => clearField(2);
  747. String get secondaryServiceUuid => $_getS(2, '');
  748. set secondaryServiceUuid(String v) { $_setString(2, v); }
  749. bool hasSecondaryServiceUuid() => $_has(2);
  750. void clearSecondaryServiceUuid() => clearField(3);
  751. String get characteristicUuid => $_getS(3, '');
  752. set characteristicUuid(String v) { $_setString(3, v); }
  753. bool hasCharacteristicUuid() => $_has(3);
  754. void clearCharacteristicUuid() => clearField(4);
  755. bool get enable => $_get(4, false);
  756. set enable(bool v) { $_setBool(4, v); }
  757. bool hasEnable() => $_has(4);
  758. void clearEnable() => clearField(5);
  759. }
  760. class SetNotificationResponse extends $pb.GeneratedMessage {
  761. static final $pb.BuilderInfo _i = new $pb.BuilderInfo('SetNotificationResponse')
  762. ..aOS(1, 'remoteId')
  763. ..a<BluetoothCharacteristic>(2, 'characteristic', $pb.PbFieldType.OM, BluetoothCharacteristic.getDefault, BluetoothCharacteristic.create)
  764. ..aOB(3, 'success')
  765. ..hasRequiredFields = false
  766. ;
  767. SetNotificationResponse() : super();
  768. SetNotificationResponse.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r);
  769. SetNotificationResponse.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
  770. SetNotificationResponse clone() => new SetNotificationResponse()..mergeFromMessage(this);
  771. SetNotificationResponse copyWith(void Function(SetNotificationResponse) updates) => super.copyWith((message) => updates(message as SetNotificationResponse));
  772. $pb.BuilderInfo get info_ => _i;
  773. static SetNotificationResponse create() => new SetNotificationResponse();
  774. static $pb.PbList<SetNotificationResponse> createRepeated() => new $pb.PbList<SetNotificationResponse>();
  775. static SetNotificationResponse getDefault() => _defaultInstance ??= create()..freeze();
  776. static SetNotificationResponse _defaultInstance;
  777. static void $checkItem(SetNotificationResponse v) {
  778. if (v is! SetNotificationResponse) $pb.checkItemFailed(v, _i.qualifiedMessageName);
  779. }
  780. String get remoteId => $_getS(0, '');
  781. set remoteId(String v) { $_setString(0, v); }
  782. bool hasRemoteId() => $_has(0);
  783. void clearRemoteId() => clearField(1);
  784. BluetoothCharacteristic get characteristic => $_getN(1);
  785. set characteristic(BluetoothCharacteristic v) { setField(2, v); }
  786. bool hasCharacteristic() => $_has(1);
  787. void clearCharacteristic() => clearField(2);
  788. bool get success => $_get(2, false);
  789. set success(bool v) { $_setBool(2, v); }
  790. bool hasSuccess() => $_has(2);
  791. void clearSuccess() => clearField(3);
  792. }
  793. class OnNotificationResponse extends $pb.GeneratedMessage {
  794. static final $pb.BuilderInfo _i = new $pb.BuilderInfo('OnNotificationResponse')
  795. ..aOS(1, 'remoteId')
  796. ..a<BluetoothCharacteristic>(2, 'characteristic', $pb.PbFieldType.OM, BluetoothCharacteristic.getDefault, BluetoothCharacteristic.create)
  797. ..hasRequiredFields = false
  798. ;
  799. OnNotificationResponse() : super();
  800. OnNotificationResponse.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r);
  801. OnNotificationResponse.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
  802. OnNotificationResponse clone() => new OnNotificationResponse()..mergeFromMessage(this);
  803. OnNotificationResponse copyWith(void Function(OnNotificationResponse) updates) => super.copyWith((message) => updates(message as OnNotificationResponse));
  804. $pb.BuilderInfo get info_ => _i;
  805. static OnNotificationResponse create() => new OnNotificationResponse();
  806. static $pb.PbList<OnNotificationResponse> createRepeated() => new $pb.PbList<OnNotificationResponse>();
  807. static OnNotificationResponse getDefault() => _defaultInstance ??= create()..freeze();
  808. static OnNotificationResponse _defaultInstance;
  809. static void $checkItem(OnNotificationResponse v) {
  810. if (v is! OnNotificationResponse) $pb.checkItemFailed(v, _i.qualifiedMessageName);
  811. }
  812. String get remoteId => $_getS(0, '');
  813. set remoteId(String v) { $_setString(0, v); }
  814. bool hasRemoteId() => $_has(0);
  815. void clearRemoteId() => clearField(1);
  816. BluetoothCharacteristic get characteristic => $_getN(1);
  817. set characteristic(BluetoothCharacteristic v) { setField(2, v); }
  818. bool hasCharacteristic() => $_has(1);
  819. void clearCharacteristic() => clearField(2);
  820. }
  821. class DeviceStateResponse extends $pb.GeneratedMessage {
  822. static final $pb.BuilderInfo _i = new $pb.BuilderInfo('DeviceStateResponse')
  823. ..aOS(1, 'remoteId')
  824. ..e<DeviceStateResponse_BluetoothDeviceState>(2, 'state', $pb.PbFieldType.OE, DeviceStateResponse_BluetoothDeviceState.DISCONNECTED, DeviceStateResponse_BluetoothDeviceState.valueOf, DeviceStateResponse_BluetoothDeviceState.values)
  825. ..hasRequiredFields = false
  826. ;
  827. DeviceStateResponse() : super();
  828. DeviceStateResponse.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r);
  829. DeviceStateResponse.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
  830. DeviceStateResponse clone() => new DeviceStateResponse()..mergeFromMessage(this);
  831. DeviceStateResponse copyWith(void Function(DeviceStateResponse) updates) => super.copyWith((message) => updates(message as DeviceStateResponse));
  832. $pb.BuilderInfo get info_ => _i;
  833. static DeviceStateResponse create() => new DeviceStateResponse();
  834. static $pb.PbList<DeviceStateResponse> createRepeated() => new $pb.PbList<DeviceStateResponse>();
  835. static DeviceStateResponse getDefault() => _defaultInstance ??= create()..freeze();
  836. static DeviceStateResponse _defaultInstance;
  837. static void $checkItem(DeviceStateResponse v) {
  838. if (v is! DeviceStateResponse) $pb.checkItemFailed(v, _i.qualifiedMessageName);
  839. }
  840. String get remoteId => $_getS(0, '');
  841. set remoteId(String v) { $_setString(0, v); }
  842. bool hasRemoteId() => $_has(0);
  843. void clearRemoteId() => clearField(1);
  844. DeviceStateResponse_BluetoothDeviceState get state => $_getN(1);
  845. set state(DeviceStateResponse_BluetoothDeviceState v) { setField(2, v); }
  846. bool hasState() => $_has(1);
  847. void clearState() => clearField(2);
  848. }