flutterblue.pb.dart 101 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310
  1. ///
  2. // Generated code. Do not modify.
  3. // source: flutterblue.proto
  4. //
  5. // @dart = 2.12
  6. // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields
  7. import 'dart:core' as $core;
  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 = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Int32Value', createEmptyInstance: create)
  13. ..a<$core.int>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value', $pb.PbFieldType.O3)
  14. ..hasRequiredFields = false
  15. ;
  16. Int32Value._() : super();
  17. factory Int32Value({
  18. $core.int? value,
  19. }) {
  20. final _result = create();
  21. if (value != null) {
  22. _result.value = value;
  23. }
  24. return _result;
  25. }
  26. factory Int32Value.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  27. factory Int32Value.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  28. @$core.Deprecated(
  29. 'Using this can add significant overhead to your binary. '
  30. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  31. 'Will be removed in next major version')
  32. Int32Value clone() => Int32Value()..mergeFromMessage(this);
  33. @$core.Deprecated(
  34. 'Using this can add significant overhead to your binary. '
  35. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  36. 'Will be removed in next major version')
  37. Int32Value copyWith(void Function(Int32Value) updates) => super.copyWith((message) => updates(message as Int32Value)) as Int32Value; // ignore: deprecated_member_use
  38. $pb.BuilderInfo get info_ => _i;
  39. @$core.pragma('dart2js:noInline')
  40. static Int32Value create() => Int32Value._();
  41. Int32Value createEmptyInstance() => create();
  42. static $pb.PbList<Int32Value> createRepeated() => $pb.PbList<Int32Value>();
  43. @$core.pragma('dart2js:noInline')
  44. static Int32Value getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Int32Value>(create);
  45. static Int32Value? _defaultInstance;
  46. @$pb.TagNumber(1)
  47. $core.int get value => $_getIZ(0);
  48. @$pb.TagNumber(1)
  49. set value($core.int v) { $_setSignedInt32(0, v); }
  50. @$pb.TagNumber(1)
  51. $core.bool hasValue() => $_has(0);
  52. @$pb.TagNumber(1)
  53. void clearValue() => clearField(1);
  54. }
  55. class BluetoothState extends $pb.GeneratedMessage {
  56. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BluetoothState', createEmptyInstance: create)
  57. ..e<BluetoothState_State>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'state', $pb.PbFieldType.OE, defaultOrMaker: BluetoothState_State.UNKNOWN, valueOf: BluetoothState_State.valueOf, enumValues: BluetoothState_State.values)
  58. ..hasRequiredFields = false
  59. ;
  60. BluetoothState._() : super();
  61. factory BluetoothState({
  62. BluetoothState_State? state,
  63. }) {
  64. final _result = create();
  65. if (state != null) {
  66. _result.state = state;
  67. }
  68. return _result;
  69. }
  70. factory BluetoothState.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  71. factory BluetoothState.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  72. @$core.Deprecated(
  73. 'Using this can add significant overhead to your binary. '
  74. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  75. 'Will be removed in next major version')
  76. BluetoothState clone() => BluetoothState()..mergeFromMessage(this);
  77. @$core.Deprecated(
  78. 'Using this can add significant overhead to your binary. '
  79. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  80. 'Will be removed in next major version')
  81. BluetoothState copyWith(void Function(BluetoothState) updates) => super.copyWith((message) => updates(message as BluetoothState)) as BluetoothState; // ignore: deprecated_member_use
  82. $pb.BuilderInfo get info_ => _i;
  83. @$core.pragma('dart2js:noInline')
  84. static BluetoothState create() => BluetoothState._();
  85. BluetoothState createEmptyInstance() => create();
  86. static $pb.PbList<BluetoothState> createRepeated() => $pb.PbList<BluetoothState>();
  87. @$core.pragma('dart2js:noInline')
  88. static BluetoothState getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<BluetoothState>(create);
  89. static BluetoothState? _defaultInstance;
  90. @$pb.TagNumber(1)
  91. BluetoothState_State get state => $_getN(0);
  92. @$pb.TagNumber(1)
  93. set state(BluetoothState_State v) { setField(1, v); }
  94. @$pb.TagNumber(1)
  95. $core.bool hasState() => $_has(0);
  96. @$pb.TagNumber(1)
  97. void clearState() => clearField(1);
  98. }
  99. class AdvertisementData extends $pb.GeneratedMessage {
  100. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'AdvertisementData', createEmptyInstance: create)
  101. ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'localName')
  102. ..aOM<Int32Value>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'txPowerLevel', subBuilder: Int32Value.create)
  103. ..aOB(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'connectable')
  104. ..m<$core.int, $core.List<$core.int>>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'manufacturerData', entryClassName: 'AdvertisementData.ManufacturerDataEntry', keyFieldType: $pb.PbFieldType.O3, valueFieldType: $pb.PbFieldType.OY)
  105. ..m<$core.String, $core.List<$core.int>>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceData', entryClassName: 'AdvertisementData.ServiceDataEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OY)
  106. ..pPS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceUuids')
  107. ..hasRequiredFields = false
  108. ;
  109. AdvertisementData._() : super();
  110. factory AdvertisementData({
  111. $core.String? localName,
  112. Int32Value? txPowerLevel,
  113. $core.bool? connectable,
  114. $core.Map<$core.int, $core.List<$core.int>>? manufacturerData,
  115. $core.Map<$core.String, $core.List<$core.int>>? serviceData,
  116. $core.Iterable<$core.String>? serviceUuids,
  117. }) {
  118. final _result = create();
  119. if (localName != null) {
  120. _result.localName = localName;
  121. }
  122. if (txPowerLevel != null) {
  123. _result.txPowerLevel = txPowerLevel;
  124. }
  125. if (connectable != null) {
  126. _result.connectable = connectable;
  127. }
  128. if (manufacturerData != null) {
  129. _result.manufacturerData.addAll(manufacturerData);
  130. }
  131. if (serviceData != null) {
  132. _result.serviceData.addAll(serviceData);
  133. }
  134. if (serviceUuids != null) {
  135. _result.serviceUuids.addAll(serviceUuids);
  136. }
  137. return _result;
  138. }
  139. factory AdvertisementData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  140. factory AdvertisementData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  141. @$core.Deprecated(
  142. 'Using this can add significant overhead to your binary. '
  143. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  144. 'Will be removed in next major version')
  145. AdvertisementData clone() => AdvertisementData()..mergeFromMessage(this);
  146. @$core.Deprecated(
  147. 'Using this can add significant overhead to your binary. '
  148. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  149. 'Will be removed in next major version')
  150. AdvertisementData copyWith(void Function(AdvertisementData) updates) => super.copyWith((message) => updates(message as AdvertisementData)) as AdvertisementData; // ignore: deprecated_member_use
  151. $pb.BuilderInfo get info_ => _i;
  152. @$core.pragma('dart2js:noInline')
  153. static AdvertisementData create() => AdvertisementData._();
  154. AdvertisementData createEmptyInstance() => create();
  155. static $pb.PbList<AdvertisementData> createRepeated() => $pb.PbList<AdvertisementData>();
  156. @$core.pragma('dart2js:noInline')
  157. static AdvertisementData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<AdvertisementData>(create);
  158. static AdvertisementData? _defaultInstance;
  159. @$pb.TagNumber(1)
  160. $core.String get localName => $_getSZ(0);
  161. @$pb.TagNumber(1)
  162. set localName($core.String v) { $_setString(0, v); }
  163. @$pb.TagNumber(1)
  164. $core.bool hasLocalName() => $_has(0);
  165. @$pb.TagNumber(1)
  166. void clearLocalName() => clearField(1);
  167. @$pb.TagNumber(2)
  168. Int32Value get txPowerLevel => $_getN(1);
  169. @$pb.TagNumber(2)
  170. set txPowerLevel(Int32Value v) { setField(2, v); }
  171. @$pb.TagNumber(2)
  172. $core.bool hasTxPowerLevel() => $_has(1);
  173. @$pb.TagNumber(2)
  174. void clearTxPowerLevel() => clearField(2);
  175. @$pb.TagNumber(2)
  176. Int32Value ensureTxPowerLevel() => $_ensure(1);
  177. @$pb.TagNumber(3)
  178. $core.bool get connectable => $_getBF(2);
  179. @$pb.TagNumber(3)
  180. set connectable($core.bool v) { $_setBool(2, v); }
  181. @$pb.TagNumber(3)
  182. $core.bool hasConnectable() => $_has(2);
  183. @$pb.TagNumber(3)
  184. void clearConnectable() => clearField(3);
  185. @$pb.TagNumber(4)
  186. $core.Map<$core.int, $core.List<$core.int>> get manufacturerData => $_getMap(3);
  187. @$pb.TagNumber(5)
  188. $core.Map<$core.String, $core.List<$core.int>> get serviceData => $_getMap(4);
  189. @$pb.TagNumber(6)
  190. $core.List<$core.String> get serviceUuids => $_getList(5);
  191. }
  192. class ScanSettings extends $pb.GeneratedMessage {
  193. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ScanSettings', createEmptyInstance: create)
  194. ..a<$core.int>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'androidScanMode', $pb.PbFieldType.O3)
  195. ..pPS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceUuids')
  196. ..aOB(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'allowDuplicates')
  197. ..hasRequiredFields = false
  198. ;
  199. ScanSettings._() : super();
  200. factory ScanSettings({
  201. $core.int? androidScanMode,
  202. $core.Iterable<$core.String>? serviceUuids,
  203. $core.bool? allowDuplicates,
  204. }) {
  205. final _result = create();
  206. if (androidScanMode != null) {
  207. _result.androidScanMode = androidScanMode;
  208. }
  209. if (serviceUuids != null) {
  210. _result.serviceUuids.addAll(serviceUuids);
  211. }
  212. if (allowDuplicates != null) {
  213. _result.allowDuplicates = allowDuplicates;
  214. }
  215. return _result;
  216. }
  217. factory ScanSettings.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  218. factory ScanSettings.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  219. @$core.Deprecated(
  220. 'Using this can add significant overhead to your binary. '
  221. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  222. 'Will be removed in next major version')
  223. ScanSettings clone() => ScanSettings()..mergeFromMessage(this);
  224. @$core.Deprecated(
  225. 'Using this can add significant overhead to your binary. '
  226. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  227. 'Will be removed in next major version')
  228. ScanSettings copyWith(void Function(ScanSettings) updates) => super.copyWith((message) => updates(message as ScanSettings)) as ScanSettings; // ignore: deprecated_member_use
  229. $pb.BuilderInfo get info_ => _i;
  230. @$core.pragma('dart2js:noInline')
  231. static ScanSettings create() => ScanSettings._();
  232. ScanSettings createEmptyInstance() => create();
  233. static $pb.PbList<ScanSettings> createRepeated() => $pb.PbList<ScanSettings>();
  234. @$core.pragma('dart2js:noInline')
  235. static ScanSettings getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ScanSettings>(create);
  236. static ScanSettings? _defaultInstance;
  237. @$pb.TagNumber(1)
  238. $core.int get androidScanMode => $_getIZ(0);
  239. @$pb.TagNumber(1)
  240. set androidScanMode($core.int v) { $_setSignedInt32(0, v); }
  241. @$pb.TagNumber(1)
  242. $core.bool hasAndroidScanMode() => $_has(0);
  243. @$pb.TagNumber(1)
  244. void clearAndroidScanMode() => clearField(1);
  245. @$pb.TagNumber(2)
  246. $core.List<$core.String> get serviceUuids => $_getList(1);
  247. @$pb.TagNumber(3)
  248. $core.bool get allowDuplicates => $_getBF(2);
  249. @$pb.TagNumber(3)
  250. set allowDuplicates($core.bool v) { $_setBool(2, v); }
  251. @$pb.TagNumber(3)
  252. $core.bool hasAllowDuplicates() => $_has(2);
  253. @$pb.TagNumber(3)
  254. void clearAllowDuplicates() => clearField(3);
  255. }
  256. class ScanResult extends $pb.GeneratedMessage {
  257. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ScanResult', createEmptyInstance: create)
  258. ..aOM<BluetoothDevice>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'device', subBuilder: BluetoothDevice.create)
  259. ..aOM<AdvertisementData>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'advertisementData', subBuilder: AdvertisementData.create)
  260. ..a<$core.int>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'rssi', $pb.PbFieldType.O3)
  261. ..hasRequiredFields = false
  262. ;
  263. ScanResult._() : super();
  264. factory ScanResult({
  265. BluetoothDevice? device,
  266. AdvertisementData? advertisementData,
  267. $core.int? rssi,
  268. }) {
  269. final _result = create();
  270. if (device != null) {
  271. _result.device = device;
  272. }
  273. if (advertisementData != null) {
  274. _result.advertisementData = advertisementData;
  275. }
  276. if (rssi != null) {
  277. _result.rssi = rssi;
  278. }
  279. return _result;
  280. }
  281. factory ScanResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  282. factory ScanResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  283. @$core.Deprecated(
  284. 'Using this can add significant overhead to your binary. '
  285. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  286. 'Will be removed in next major version')
  287. ScanResult clone() => ScanResult()..mergeFromMessage(this);
  288. @$core.Deprecated(
  289. 'Using this can add significant overhead to your binary. '
  290. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  291. 'Will be removed in next major version')
  292. ScanResult copyWith(void Function(ScanResult) updates) => super.copyWith((message) => updates(message as ScanResult)) as ScanResult; // ignore: deprecated_member_use
  293. $pb.BuilderInfo get info_ => _i;
  294. @$core.pragma('dart2js:noInline')
  295. static ScanResult create() => ScanResult._();
  296. ScanResult createEmptyInstance() => create();
  297. static $pb.PbList<ScanResult> createRepeated() => $pb.PbList<ScanResult>();
  298. @$core.pragma('dart2js:noInline')
  299. static ScanResult getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ScanResult>(create);
  300. static ScanResult? _defaultInstance;
  301. @$pb.TagNumber(1)
  302. BluetoothDevice get device => $_getN(0);
  303. @$pb.TagNumber(1)
  304. set device(BluetoothDevice v) { setField(1, v); }
  305. @$pb.TagNumber(1)
  306. $core.bool hasDevice() => $_has(0);
  307. @$pb.TagNumber(1)
  308. void clearDevice() => clearField(1);
  309. @$pb.TagNumber(1)
  310. BluetoothDevice ensureDevice() => $_ensure(0);
  311. @$pb.TagNumber(2)
  312. AdvertisementData get advertisementData => $_getN(1);
  313. @$pb.TagNumber(2)
  314. set advertisementData(AdvertisementData v) { setField(2, v); }
  315. @$pb.TagNumber(2)
  316. $core.bool hasAdvertisementData() => $_has(1);
  317. @$pb.TagNumber(2)
  318. void clearAdvertisementData() => clearField(2);
  319. @$pb.TagNumber(2)
  320. AdvertisementData ensureAdvertisementData() => $_ensure(1);
  321. @$pb.TagNumber(3)
  322. $core.int get rssi => $_getIZ(2);
  323. @$pb.TagNumber(3)
  324. set rssi($core.int v) { $_setSignedInt32(2, v); }
  325. @$pb.TagNumber(3)
  326. $core.bool hasRssi() => $_has(2);
  327. @$pb.TagNumber(3)
  328. void clearRssi() => clearField(3);
  329. }
  330. class ConnectRequest extends $pb.GeneratedMessage {
  331. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ConnectRequest', createEmptyInstance: create)
  332. ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId')
  333. ..aOB(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'androidAutoConnect')
  334. ..hasRequiredFields = false
  335. ;
  336. ConnectRequest._() : super();
  337. factory ConnectRequest({
  338. $core.String? remoteId,
  339. $core.bool? androidAutoConnect,
  340. }) {
  341. final _result = create();
  342. if (remoteId != null) {
  343. _result.remoteId = remoteId;
  344. }
  345. if (androidAutoConnect != null) {
  346. _result.androidAutoConnect = androidAutoConnect;
  347. }
  348. return _result;
  349. }
  350. factory ConnectRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  351. factory ConnectRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  352. @$core.Deprecated(
  353. 'Using this can add significant overhead to your binary. '
  354. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  355. 'Will be removed in next major version')
  356. ConnectRequest clone() => ConnectRequest()..mergeFromMessage(this);
  357. @$core.Deprecated(
  358. 'Using this can add significant overhead to your binary. '
  359. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  360. 'Will be removed in next major version')
  361. ConnectRequest copyWith(void Function(ConnectRequest) updates) => super.copyWith((message) => updates(message as ConnectRequest)) as ConnectRequest; // ignore: deprecated_member_use
  362. $pb.BuilderInfo get info_ => _i;
  363. @$core.pragma('dart2js:noInline')
  364. static ConnectRequest create() => ConnectRequest._();
  365. ConnectRequest createEmptyInstance() => create();
  366. static $pb.PbList<ConnectRequest> createRepeated() => $pb.PbList<ConnectRequest>();
  367. @$core.pragma('dart2js:noInline')
  368. static ConnectRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ConnectRequest>(create);
  369. static ConnectRequest? _defaultInstance;
  370. @$pb.TagNumber(1)
  371. $core.String get remoteId => $_getSZ(0);
  372. @$pb.TagNumber(1)
  373. set remoteId($core.String v) { $_setString(0, v); }
  374. @$pb.TagNumber(1)
  375. $core.bool hasRemoteId() => $_has(0);
  376. @$pb.TagNumber(1)
  377. void clearRemoteId() => clearField(1);
  378. @$pb.TagNumber(2)
  379. $core.bool get androidAutoConnect => $_getBF(1);
  380. @$pb.TagNumber(2)
  381. set androidAutoConnect($core.bool v) { $_setBool(1, v); }
  382. @$pb.TagNumber(2)
  383. $core.bool hasAndroidAutoConnect() => $_has(1);
  384. @$pb.TagNumber(2)
  385. void clearAndroidAutoConnect() => clearField(2);
  386. }
  387. class BluetoothDevice extends $pb.GeneratedMessage {
  388. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BluetoothDevice', createEmptyInstance: create)
  389. ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId')
  390. ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'name')
  391. ..e<BluetoothDevice_Type>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: BluetoothDevice_Type.UNKNOWN, valueOf: BluetoothDevice_Type.valueOf, enumValues: BluetoothDevice_Type.values)
  392. ..hasRequiredFields = false
  393. ;
  394. BluetoothDevice._() : super();
  395. factory BluetoothDevice({
  396. $core.String? remoteId,
  397. $core.String? name,
  398. BluetoothDevice_Type? type,
  399. }) {
  400. final _result = create();
  401. if (remoteId != null) {
  402. _result.remoteId = remoteId;
  403. }
  404. if (name != null) {
  405. _result.name = name;
  406. }
  407. if (type != null) {
  408. _result.type = type;
  409. }
  410. return _result;
  411. }
  412. factory BluetoothDevice.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  413. factory BluetoothDevice.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  414. @$core.Deprecated(
  415. 'Using this can add significant overhead to your binary. '
  416. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  417. 'Will be removed in next major version')
  418. BluetoothDevice clone() => BluetoothDevice()..mergeFromMessage(this);
  419. @$core.Deprecated(
  420. 'Using this can add significant overhead to your binary. '
  421. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  422. 'Will be removed in next major version')
  423. BluetoothDevice copyWith(void Function(BluetoothDevice) updates) => super.copyWith((message) => updates(message as BluetoothDevice)) as BluetoothDevice; // ignore: deprecated_member_use
  424. $pb.BuilderInfo get info_ => _i;
  425. @$core.pragma('dart2js:noInline')
  426. static BluetoothDevice create() => BluetoothDevice._();
  427. BluetoothDevice createEmptyInstance() => create();
  428. static $pb.PbList<BluetoothDevice> createRepeated() => $pb.PbList<BluetoothDevice>();
  429. @$core.pragma('dart2js:noInline')
  430. static BluetoothDevice getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<BluetoothDevice>(create);
  431. static BluetoothDevice? _defaultInstance;
  432. @$pb.TagNumber(1)
  433. $core.String get remoteId => $_getSZ(0);
  434. @$pb.TagNumber(1)
  435. set remoteId($core.String v) { $_setString(0, v); }
  436. @$pb.TagNumber(1)
  437. $core.bool hasRemoteId() => $_has(0);
  438. @$pb.TagNumber(1)
  439. void clearRemoteId() => clearField(1);
  440. @$pb.TagNumber(2)
  441. $core.String get name => $_getSZ(1);
  442. @$pb.TagNumber(2)
  443. set name($core.String v) { $_setString(1, v); }
  444. @$pb.TagNumber(2)
  445. $core.bool hasName() => $_has(1);
  446. @$pb.TagNumber(2)
  447. void clearName() => clearField(2);
  448. @$pb.TagNumber(3)
  449. BluetoothDevice_Type get type => $_getN(2);
  450. @$pb.TagNumber(3)
  451. set type(BluetoothDevice_Type v) { setField(3, v); }
  452. @$pb.TagNumber(3)
  453. $core.bool hasType() => $_has(2);
  454. @$pb.TagNumber(3)
  455. void clearType() => clearField(3);
  456. }
  457. class BluetoothService extends $pb.GeneratedMessage {
  458. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BluetoothService', createEmptyInstance: create)
  459. ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'uuid')
  460. ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId')
  461. ..aOB(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'isPrimary')
  462. ..pc<BluetoothCharacteristic>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'characteristics', $pb.PbFieldType.PM, subBuilder: BluetoothCharacteristic.create)
  463. ..pc<BluetoothService>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'includedServices', $pb.PbFieldType.PM, subBuilder: BluetoothService.create)
  464. ..hasRequiredFields = false
  465. ;
  466. BluetoothService._() : super();
  467. factory BluetoothService({
  468. $core.String? uuid,
  469. $core.String? remoteId,
  470. $core.bool? isPrimary,
  471. $core.Iterable<BluetoothCharacteristic>? characteristics,
  472. $core.Iterable<BluetoothService>? includedServices,
  473. }) {
  474. final _result = create();
  475. if (uuid != null) {
  476. _result.uuid = uuid;
  477. }
  478. if (remoteId != null) {
  479. _result.remoteId = remoteId;
  480. }
  481. if (isPrimary != null) {
  482. _result.isPrimary = isPrimary;
  483. }
  484. if (characteristics != null) {
  485. _result.characteristics.addAll(characteristics);
  486. }
  487. if (includedServices != null) {
  488. _result.includedServices.addAll(includedServices);
  489. }
  490. return _result;
  491. }
  492. factory BluetoothService.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  493. factory BluetoothService.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  494. @$core.Deprecated(
  495. 'Using this can add significant overhead to your binary. '
  496. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  497. 'Will be removed in next major version')
  498. BluetoothService clone() => BluetoothService()..mergeFromMessage(this);
  499. @$core.Deprecated(
  500. 'Using this can add significant overhead to your binary. '
  501. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  502. 'Will be removed in next major version')
  503. BluetoothService copyWith(void Function(BluetoothService) updates) => super.copyWith((message) => updates(message as BluetoothService)) as BluetoothService; // ignore: deprecated_member_use
  504. $pb.BuilderInfo get info_ => _i;
  505. @$core.pragma('dart2js:noInline')
  506. static BluetoothService create() => BluetoothService._();
  507. BluetoothService createEmptyInstance() => create();
  508. static $pb.PbList<BluetoothService> createRepeated() => $pb.PbList<BluetoothService>();
  509. @$core.pragma('dart2js:noInline')
  510. static BluetoothService getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<BluetoothService>(create);
  511. static BluetoothService? _defaultInstance;
  512. @$pb.TagNumber(1)
  513. $core.String get uuid => $_getSZ(0);
  514. @$pb.TagNumber(1)
  515. set uuid($core.String v) { $_setString(0, v); }
  516. @$pb.TagNumber(1)
  517. $core.bool hasUuid() => $_has(0);
  518. @$pb.TagNumber(1)
  519. void clearUuid() => clearField(1);
  520. @$pb.TagNumber(2)
  521. $core.String get remoteId => $_getSZ(1);
  522. @$pb.TagNumber(2)
  523. set remoteId($core.String v) { $_setString(1, v); }
  524. @$pb.TagNumber(2)
  525. $core.bool hasRemoteId() => $_has(1);
  526. @$pb.TagNumber(2)
  527. void clearRemoteId() => clearField(2);
  528. @$pb.TagNumber(3)
  529. $core.bool get isPrimary => $_getBF(2);
  530. @$pb.TagNumber(3)
  531. set isPrimary($core.bool v) { $_setBool(2, v); }
  532. @$pb.TagNumber(3)
  533. $core.bool hasIsPrimary() => $_has(2);
  534. @$pb.TagNumber(3)
  535. void clearIsPrimary() => clearField(3);
  536. @$pb.TagNumber(4)
  537. $core.List<BluetoothCharacteristic> get characteristics => $_getList(3);
  538. @$pb.TagNumber(5)
  539. $core.List<BluetoothService> get includedServices => $_getList(4);
  540. }
  541. class BluetoothCharacteristic extends $pb.GeneratedMessage {
  542. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BluetoothCharacteristic', createEmptyInstance: create)
  543. ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'uuid')
  544. ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId')
  545. ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceUuid', protoName: 'serviceUuid')
  546. ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'secondaryServiceUuid', protoName: 'secondaryServiceUuid')
  547. ..pc<BluetoothDescriptor>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'descriptors', $pb.PbFieldType.PM, subBuilder: BluetoothDescriptor.create)
  548. ..aOM<CharacteristicProperties>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'properties', subBuilder: CharacteristicProperties.create)
  549. ..a<$core.List<$core.int>>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value', $pb.PbFieldType.OY)
  550. ..hasRequiredFields = false
  551. ;
  552. BluetoothCharacteristic._() : super();
  553. factory BluetoothCharacteristic({
  554. $core.String? uuid,
  555. $core.String? remoteId,
  556. $core.String? serviceUuid,
  557. $core.String? secondaryServiceUuid,
  558. $core.Iterable<BluetoothDescriptor>? descriptors,
  559. CharacteristicProperties? properties,
  560. $core.List<$core.int>? value,
  561. }) {
  562. final _result = create();
  563. if (uuid != null) {
  564. _result.uuid = uuid;
  565. }
  566. if (remoteId != null) {
  567. _result.remoteId = remoteId;
  568. }
  569. if (serviceUuid != null) {
  570. _result.serviceUuid = serviceUuid;
  571. }
  572. if (secondaryServiceUuid != null) {
  573. _result.secondaryServiceUuid = secondaryServiceUuid;
  574. }
  575. if (descriptors != null) {
  576. _result.descriptors.addAll(descriptors);
  577. }
  578. if (properties != null) {
  579. _result.properties = properties;
  580. }
  581. if (value != null) {
  582. _result.value = value;
  583. }
  584. return _result;
  585. }
  586. factory BluetoothCharacteristic.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  587. factory BluetoothCharacteristic.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  588. @$core.Deprecated(
  589. 'Using this can add significant overhead to your binary. '
  590. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  591. 'Will be removed in next major version')
  592. BluetoothCharacteristic clone() => BluetoothCharacteristic()..mergeFromMessage(this);
  593. @$core.Deprecated(
  594. 'Using this can add significant overhead to your binary. '
  595. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  596. 'Will be removed in next major version')
  597. BluetoothCharacteristic copyWith(void Function(BluetoothCharacteristic) updates) => super.copyWith((message) => updates(message as BluetoothCharacteristic)) as BluetoothCharacteristic; // ignore: deprecated_member_use
  598. $pb.BuilderInfo get info_ => _i;
  599. @$core.pragma('dart2js:noInline')
  600. static BluetoothCharacteristic create() => BluetoothCharacteristic._();
  601. BluetoothCharacteristic createEmptyInstance() => create();
  602. static $pb.PbList<BluetoothCharacteristic> createRepeated() => $pb.PbList<BluetoothCharacteristic>();
  603. @$core.pragma('dart2js:noInline')
  604. static BluetoothCharacteristic getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<BluetoothCharacteristic>(create);
  605. static BluetoothCharacteristic? _defaultInstance;
  606. @$pb.TagNumber(1)
  607. $core.String get uuid => $_getSZ(0);
  608. @$pb.TagNumber(1)
  609. set uuid($core.String v) { $_setString(0, v); }
  610. @$pb.TagNumber(1)
  611. $core.bool hasUuid() => $_has(0);
  612. @$pb.TagNumber(1)
  613. void clearUuid() => clearField(1);
  614. @$pb.TagNumber(2)
  615. $core.String get remoteId => $_getSZ(1);
  616. @$pb.TagNumber(2)
  617. set remoteId($core.String v) { $_setString(1, v); }
  618. @$pb.TagNumber(2)
  619. $core.bool hasRemoteId() => $_has(1);
  620. @$pb.TagNumber(2)
  621. void clearRemoteId() => clearField(2);
  622. @$pb.TagNumber(3)
  623. $core.String get serviceUuid => $_getSZ(2);
  624. @$pb.TagNumber(3)
  625. set serviceUuid($core.String v) { $_setString(2, v); }
  626. @$pb.TagNumber(3)
  627. $core.bool hasServiceUuid() => $_has(2);
  628. @$pb.TagNumber(3)
  629. void clearServiceUuid() => clearField(3);
  630. @$pb.TagNumber(4)
  631. $core.String get secondaryServiceUuid => $_getSZ(3);
  632. @$pb.TagNumber(4)
  633. set secondaryServiceUuid($core.String v) { $_setString(3, v); }
  634. @$pb.TagNumber(4)
  635. $core.bool hasSecondaryServiceUuid() => $_has(3);
  636. @$pb.TagNumber(4)
  637. void clearSecondaryServiceUuid() => clearField(4);
  638. @$pb.TagNumber(5)
  639. $core.List<BluetoothDescriptor> get descriptors => $_getList(4);
  640. @$pb.TagNumber(6)
  641. CharacteristicProperties get properties => $_getN(5);
  642. @$pb.TagNumber(6)
  643. set properties(CharacteristicProperties v) { setField(6, v); }
  644. @$pb.TagNumber(6)
  645. $core.bool hasProperties() => $_has(5);
  646. @$pb.TagNumber(6)
  647. void clearProperties() => clearField(6);
  648. @$pb.TagNumber(6)
  649. CharacteristicProperties ensureProperties() => $_ensure(5);
  650. @$pb.TagNumber(7)
  651. $core.List<$core.int> get value => $_getN(6);
  652. @$pb.TagNumber(7)
  653. set value($core.List<$core.int> v) { $_setBytes(6, v); }
  654. @$pb.TagNumber(7)
  655. $core.bool hasValue() => $_has(6);
  656. @$pb.TagNumber(7)
  657. void clearValue() => clearField(7);
  658. }
  659. class BluetoothDescriptor extends $pb.GeneratedMessage {
  660. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BluetoothDescriptor', createEmptyInstance: create)
  661. ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'uuid')
  662. ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId')
  663. ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceUuid', protoName: 'serviceUuid')
  664. ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'characteristicUuid', protoName: 'characteristicUuid')
  665. ..a<$core.List<$core.int>>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value', $pb.PbFieldType.OY)
  666. ..hasRequiredFields = false
  667. ;
  668. BluetoothDescriptor._() : super();
  669. factory BluetoothDescriptor({
  670. $core.String? uuid,
  671. $core.String? remoteId,
  672. $core.String? serviceUuid,
  673. $core.String? characteristicUuid,
  674. $core.List<$core.int>? value,
  675. }) {
  676. final _result = create();
  677. if (uuid != null) {
  678. _result.uuid = uuid;
  679. }
  680. if (remoteId != null) {
  681. _result.remoteId = remoteId;
  682. }
  683. if (serviceUuid != null) {
  684. _result.serviceUuid = serviceUuid;
  685. }
  686. if (characteristicUuid != null) {
  687. _result.characteristicUuid = characteristicUuid;
  688. }
  689. if (value != null) {
  690. _result.value = value;
  691. }
  692. return _result;
  693. }
  694. factory BluetoothDescriptor.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  695. factory BluetoothDescriptor.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  696. @$core.Deprecated(
  697. 'Using this can add significant overhead to your binary. '
  698. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  699. 'Will be removed in next major version')
  700. BluetoothDescriptor clone() => BluetoothDescriptor()..mergeFromMessage(this);
  701. @$core.Deprecated(
  702. 'Using this can add significant overhead to your binary. '
  703. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  704. 'Will be removed in next major version')
  705. BluetoothDescriptor copyWith(void Function(BluetoothDescriptor) updates) => super.copyWith((message) => updates(message as BluetoothDescriptor)) as BluetoothDescriptor; // ignore: deprecated_member_use
  706. $pb.BuilderInfo get info_ => _i;
  707. @$core.pragma('dart2js:noInline')
  708. static BluetoothDescriptor create() => BluetoothDescriptor._();
  709. BluetoothDescriptor createEmptyInstance() => create();
  710. static $pb.PbList<BluetoothDescriptor> createRepeated() => $pb.PbList<BluetoothDescriptor>();
  711. @$core.pragma('dart2js:noInline')
  712. static BluetoothDescriptor getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<BluetoothDescriptor>(create);
  713. static BluetoothDescriptor? _defaultInstance;
  714. @$pb.TagNumber(1)
  715. $core.String get uuid => $_getSZ(0);
  716. @$pb.TagNumber(1)
  717. set uuid($core.String v) { $_setString(0, v); }
  718. @$pb.TagNumber(1)
  719. $core.bool hasUuid() => $_has(0);
  720. @$pb.TagNumber(1)
  721. void clearUuid() => clearField(1);
  722. @$pb.TagNumber(2)
  723. $core.String get remoteId => $_getSZ(1);
  724. @$pb.TagNumber(2)
  725. set remoteId($core.String v) { $_setString(1, v); }
  726. @$pb.TagNumber(2)
  727. $core.bool hasRemoteId() => $_has(1);
  728. @$pb.TagNumber(2)
  729. void clearRemoteId() => clearField(2);
  730. @$pb.TagNumber(3)
  731. $core.String get serviceUuid => $_getSZ(2);
  732. @$pb.TagNumber(3)
  733. set serviceUuid($core.String v) { $_setString(2, v); }
  734. @$pb.TagNumber(3)
  735. $core.bool hasServiceUuid() => $_has(2);
  736. @$pb.TagNumber(3)
  737. void clearServiceUuid() => clearField(3);
  738. @$pb.TagNumber(4)
  739. $core.String get characteristicUuid => $_getSZ(3);
  740. @$pb.TagNumber(4)
  741. set characteristicUuid($core.String v) { $_setString(3, v); }
  742. @$pb.TagNumber(4)
  743. $core.bool hasCharacteristicUuid() => $_has(3);
  744. @$pb.TagNumber(4)
  745. void clearCharacteristicUuid() => clearField(4);
  746. @$pb.TagNumber(5)
  747. $core.List<$core.int> get value => $_getN(4);
  748. @$pb.TagNumber(5)
  749. set value($core.List<$core.int> v) { $_setBytes(4, v); }
  750. @$pb.TagNumber(5)
  751. $core.bool hasValue() => $_has(4);
  752. @$pb.TagNumber(5)
  753. void clearValue() => clearField(5);
  754. }
  755. class CharacteristicProperties extends $pb.GeneratedMessage {
  756. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'CharacteristicProperties', createEmptyInstance: create)
  757. ..aOB(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'broadcast')
  758. ..aOB(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'read')
  759. ..aOB(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'writeWithoutResponse')
  760. ..aOB(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'write')
  761. ..aOB(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'notify')
  762. ..aOB(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'indicate')
  763. ..aOB(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'authenticatedSignedWrites')
  764. ..aOB(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'extendedProperties')
  765. ..aOB(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'notifyEncryptionRequired')
  766. ..aOB(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'indicateEncryptionRequired')
  767. ..hasRequiredFields = false
  768. ;
  769. CharacteristicProperties._() : super();
  770. factory CharacteristicProperties({
  771. $core.bool? broadcast,
  772. $core.bool? read,
  773. $core.bool? writeWithoutResponse,
  774. $core.bool? write,
  775. $core.bool? notify,
  776. $core.bool? indicate,
  777. $core.bool? authenticatedSignedWrites,
  778. $core.bool? extendedProperties,
  779. $core.bool? notifyEncryptionRequired,
  780. $core.bool? indicateEncryptionRequired,
  781. }) {
  782. final _result = create();
  783. if (broadcast != null) {
  784. _result.broadcast = broadcast;
  785. }
  786. if (read != null) {
  787. _result.read = read;
  788. }
  789. if (writeWithoutResponse != null) {
  790. _result.writeWithoutResponse = writeWithoutResponse;
  791. }
  792. if (write != null) {
  793. _result.write = write;
  794. }
  795. if (notify != null) {
  796. _result.notify = notify;
  797. }
  798. if (indicate != null) {
  799. _result.indicate = indicate;
  800. }
  801. if (authenticatedSignedWrites != null) {
  802. _result.authenticatedSignedWrites = authenticatedSignedWrites;
  803. }
  804. if (extendedProperties != null) {
  805. _result.extendedProperties = extendedProperties;
  806. }
  807. if (notifyEncryptionRequired != null) {
  808. _result.notifyEncryptionRequired = notifyEncryptionRequired;
  809. }
  810. if (indicateEncryptionRequired != null) {
  811. _result.indicateEncryptionRequired = indicateEncryptionRequired;
  812. }
  813. return _result;
  814. }
  815. factory CharacteristicProperties.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  816. factory CharacteristicProperties.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  817. @$core.Deprecated(
  818. 'Using this can add significant overhead to your binary. '
  819. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  820. 'Will be removed in next major version')
  821. CharacteristicProperties clone() => CharacteristicProperties()..mergeFromMessage(this);
  822. @$core.Deprecated(
  823. 'Using this can add significant overhead to your binary. '
  824. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  825. 'Will be removed in next major version')
  826. CharacteristicProperties copyWith(void Function(CharacteristicProperties) updates) => super.copyWith((message) => updates(message as CharacteristicProperties)) as CharacteristicProperties; // ignore: deprecated_member_use
  827. $pb.BuilderInfo get info_ => _i;
  828. @$core.pragma('dart2js:noInline')
  829. static CharacteristicProperties create() => CharacteristicProperties._();
  830. CharacteristicProperties createEmptyInstance() => create();
  831. static $pb.PbList<CharacteristicProperties> createRepeated() => $pb.PbList<CharacteristicProperties>();
  832. @$core.pragma('dart2js:noInline')
  833. static CharacteristicProperties getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<CharacteristicProperties>(create);
  834. static CharacteristicProperties? _defaultInstance;
  835. @$pb.TagNumber(1)
  836. $core.bool get broadcast => $_getBF(0);
  837. @$pb.TagNumber(1)
  838. set broadcast($core.bool v) { $_setBool(0, v); }
  839. @$pb.TagNumber(1)
  840. $core.bool hasBroadcast() => $_has(0);
  841. @$pb.TagNumber(1)
  842. void clearBroadcast() => clearField(1);
  843. @$pb.TagNumber(2)
  844. $core.bool get read => $_getBF(1);
  845. @$pb.TagNumber(2)
  846. set read($core.bool v) { $_setBool(1, v); }
  847. @$pb.TagNumber(2)
  848. $core.bool hasRead() => $_has(1);
  849. @$pb.TagNumber(2)
  850. void clearRead() => clearField(2);
  851. @$pb.TagNumber(3)
  852. $core.bool get writeWithoutResponse => $_getBF(2);
  853. @$pb.TagNumber(3)
  854. set writeWithoutResponse($core.bool v) { $_setBool(2, v); }
  855. @$pb.TagNumber(3)
  856. $core.bool hasWriteWithoutResponse() => $_has(2);
  857. @$pb.TagNumber(3)
  858. void clearWriteWithoutResponse() => clearField(3);
  859. @$pb.TagNumber(4)
  860. $core.bool get write => $_getBF(3);
  861. @$pb.TagNumber(4)
  862. set write($core.bool v) { $_setBool(3, v); }
  863. @$pb.TagNumber(4)
  864. $core.bool hasWrite() => $_has(3);
  865. @$pb.TagNumber(4)
  866. void clearWrite() => clearField(4);
  867. @$pb.TagNumber(5)
  868. $core.bool get notify => $_getBF(4);
  869. @$pb.TagNumber(5)
  870. set notify($core.bool v) { $_setBool(4, v); }
  871. @$pb.TagNumber(5)
  872. $core.bool hasNotify() => $_has(4);
  873. @$pb.TagNumber(5)
  874. void clearNotify() => clearField(5);
  875. @$pb.TagNumber(6)
  876. $core.bool get indicate => $_getBF(5);
  877. @$pb.TagNumber(6)
  878. set indicate($core.bool v) { $_setBool(5, v); }
  879. @$pb.TagNumber(6)
  880. $core.bool hasIndicate() => $_has(5);
  881. @$pb.TagNumber(6)
  882. void clearIndicate() => clearField(6);
  883. @$pb.TagNumber(7)
  884. $core.bool get authenticatedSignedWrites => $_getBF(6);
  885. @$pb.TagNumber(7)
  886. set authenticatedSignedWrites($core.bool v) { $_setBool(6, v); }
  887. @$pb.TagNumber(7)
  888. $core.bool hasAuthenticatedSignedWrites() => $_has(6);
  889. @$pb.TagNumber(7)
  890. void clearAuthenticatedSignedWrites() => clearField(7);
  891. @$pb.TagNumber(8)
  892. $core.bool get extendedProperties => $_getBF(7);
  893. @$pb.TagNumber(8)
  894. set extendedProperties($core.bool v) { $_setBool(7, v); }
  895. @$pb.TagNumber(8)
  896. $core.bool hasExtendedProperties() => $_has(7);
  897. @$pb.TagNumber(8)
  898. void clearExtendedProperties() => clearField(8);
  899. @$pb.TagNumber(9)
  900. $core.bool get notifyEncryptionRequired => $_getBF(8);
  901. @$pb.TagNumber(9)
  902. set notifyEncryptionRequired($core.bool v) { $_setBool(8, v); }
  903. @$pb.TagNumber(9)
  904. $core.bool hasNotifyEncryptionRequired() => $_has(8);
  905. @$pb.TagNumber(9)
  906. void clearNotifyEncryptionRequired() => clearField(9);
  907. @$pb.TagNumber(10)
  908. $core.bool get indicateEncryptionRequired => $_getBF(9);
  909. @$pb.TagNumber(10)
  910. set indicateEncryptionRequired($core.bool v) { $_setBool(9, v); }
  911. @$pb.TagNumber(10)
  912. $core.bool hasIndicateEncryptionRequired() => $_has(9);
  913. @$pb.TagNumber(10)
  914. void clearIndicateEncryptionRequired() => clearField(10);
  915. }
  916. class DiscoverServicesResult extends $pb.GeneratedMessage {
  917. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'DiscoverServicesResult', createEmptyInstance: create)
  918. ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId')
  919. ..pc<BluetoothService>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'services', $pb.PbFieldType.PM, subBuilder: BluetoothService.create)
  920. ..hasRequiredFields = false
  921. ;
  922. DiscoverServicesResult._() : super();
  923. factory DiscoverServicesResult({
  924. $core.String? remoteId,
  925. $core.Iterable<BluetoothService>? services,
  926. }) {
  927. final _result = create();
  928. if (remoteId != null) {
  929. _result.remoteId = remoteId;
  930. }
  931. if (services != null) {
  932. _result.services.addAll(services);
  933. }
  934. return _result;
  935. }
  936. factory DiscoverServicesResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  937. factory DiscoverServicesResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  938. @$core.Deprecated(
  939. 'Using this can add significant overhead to your binary. '
  940. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  941. 'Will be removed in next major version')
  942. DiscoverServicesResult clone() => DiscoverServicesResult()..mergeFromMessage(this);
  943. @$core.Deprecated(
  944. 'Using this can add significant overhead to your binary. '
  945. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  946. 'Will be removed in next major version')
  947. DiscoverServicesResult copyWith(void Function(DiscoverServicesResult) updates) => super.copyWith((message) => updates(message as DiscoverServicesResult)) as DiscoverServicesResult; // ignore: deprecated_member_use
  948. $pb.BuilderInfo get info_ => _i;
  949. @$core.pragma('dart2js:noInline')
  950. static DiscoverServicesResult create() => DiscoverServicesResult._();
  951. DiscoverServicesResult createEmptyInstance() => create();
  952. static $pb.PbList<DiscoverServicesResult> createRepeated() => $pb.PbList<DiscoverServicesResult>();
  953. @$core.pragma('dart2js:noInline')
  954. static DiscoverServicesResult getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<DiscoverServicesResult>(create);
  955. static DiscoverServicesResult? _defaultInstance;
  956. @$pb.TagNumber(1)
  957. $core.String get remoteId => $_getSZ(0);
  958. @$pb.TagNumber(1)
  959. set remoteId($core.String v) { $_setString(0, v); }
  960. @$pb.TagNumber(1)
  961. $core.bool hasRemoteId() => $_has(0);
  962. @$pb.TagNumber(1)
  963. void clearRemoteId() => clearField(1);
  964. @$pb.TagNumber(2)
  965. $core.List<BluetoothService> get services => $_getList(1);
  966. }
  967. class ReadCharacteristicRequest extends $pb.GeneratedMessage {
  968. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ReadCharacteristicRequest', createEmptyInstance: create)
  969. ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId')
  970. ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'characteristicUuid')
  971. ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceUuid')
  972. ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'secondaryServiceUuid')
  973. ..hasRequiredFields = false
  974. ;
  975. ReadCharacteristicRequest._() : super();
  976. factory ReadCharacteristicRequest({
  977. $core.String? remoteId,
  978. $core.String? characteristicUuid,
  979. $core.String? serviceUuid,
  980. $core.String? secondaryServiceUuid,
  981. }) {
  982. final _result = create();
  983. if (remoteId != null) {
  984. _result.remoteId = remoteId;
  985. }
  986. if (characteristicUuid != null) {
  987. _result.characteristicUuid = characteristicUuid;
  988. }
  989. if (serviceUuid != null) {
  990. _result.serviceUuid = serviceUuid;
  991. }
  992. if (secondaryServiceUuid != null) {
  993. _result.secondaryServiceUuid = secondaryServiceUuid;
  994. }
  995. return _result;
  996. }
  997. factory ReadCharacteristicRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  998. factory ReadCharacteristicRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  999. @$core.Deprecated(
  1000. 'Using this can add significant overhead to your binary. '
  1001. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  1002. 'Will be removed in next major version')
  1003. ReadCharacteristicRequest clone() => ReadCharacteristicRequest()..mergeFromMessage(this);
  1004. @$core.Deprecated(
  1005. 'Using this can add significant overhead to your binary. '
  1006. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  1007. 'Will be removed in next major version')
  1008. ReadCharacteristicRequest copyWith(void Function(ReadCharacteristicRequest) updates) => super.copyWith((message) => updates(message as ReadCharacteristicRequest)) as ReadCharacteristicRequest; // ignore: deprecated_member_use
  1009. $pb.BuilderInfo get info_ => _i;
  1010. @$core.pragma('dart2js:noInline')
  1011. static ReadCharacteristicRequest create() => ReadCharacteristicRequest._();
  1012. ReadCharacteristicRequest createEmptyInstance() => create();
  1013. static $pb.PbList<ReadCharacteristicRequest> createRepeated() => $pb.PbList<ReadCharacteristicRequest>();
  1014. @$core.pragma('dart2js:noInline')
  1015. static ReadCharacteristicRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ReadCharacteristicRequest>(create);
  1016. static ReadCharacteristicRequest? _defaultInstance;
  1017. @$pb.TagNumber(1)
  1018. $core.String get remoteId => $_getSZ(0);
  1019. @$pb.TagNumber(1)
  1020. set remoteId($core.String v) { $_setString(0, v); }
  1021. @$pb.TagNumber(1)
  1022. $core.bool hasRemoteId() => $_has(0);
  1023. @$pb.TagNumber(1)
  1024. void clearRemoteId() => clearField(1);
  1025. @$pb.TagNumber(2)
  1026. $core.String get characteristicUuid => $_getSZ(1);
  1027. @$pb.TagNumber(2)
  1028. set characteristicUuid($core.String v) { $_setString(1, v); }
  1029. @$pb.TagNumber(2)
  1030. $core.bool hasCharacteristicUuid() => $_has(1);
  1031. @$pb.TagNumber(2)
  1032. void clearCharacteristicUuid() => clearField(2);
  1033. @$pb.TagNumber(3)
  1034. $core.String get serviceUuid => $_getSZ(2);
  1035. @$pb.TagNumber(3)
  1036. set serviceUuid($core.String v) { $_setString(2, v); }
  1037. @$pb.TagNumber(3)
  1038. $core.bool hasServiceUuid() => $_has(2);
  1039. @$pb.TagNumber(3)
  1040. void clearServiceUuid() => clearField(3);
  1041. @$pb.TagNumber(4)
  1042. $core.String get secondaryServiceUuid => $_getSZ(3);
  1043. @$pb.TagNumber(4)
  1044. set secondaryServiceUuid($core.String v) { $_setString(3, v); }
  1045. @$pb.TagNumber(4)
  1046. $core.bool hasSecondaryServiceUuid() => $_has(3);
  1047. @$pb.TagNumber(4)
  1048. void clearSecondaryServiceUuid() => clearField(4);
  1049. }
  1050. class ReadCharacteristicResponse extends $pb.GeneratedMessage {
  1051. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ReadCharacteristicResponse', createEmptyInstance: create)
  1052. ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId')
  1053. ..aOM<BluetoothCharacteristic>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'characteristic', subBuilder: BluetoothCharacteristic.create)
  1054. ..hasRequiredFields = false
  1055. ;
  1056. ReadCharacteristicResponse._() : super();
  1057. factory ReadCharacteristicResponse({
  1058. $core.String? remoteId,
  1059. BluetoothCharacteristic? characteristic,
  1060. }) {
  1061. final _result = create();
  1062. if (remoteId != null) {
  1063. _result.remoteId = remoteId;
  1064. }
  1065. if (characteristic != null) {
  1066. _result.characteristic = characteristic;
  1067. }
  1068. return _result;
  1069. }
  1070. factory ReadCharacteristicResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  1071. factory ReadCharacteristicResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  1072. @$core.Deprecated(
  1073. 'Using this can add significant overhead to your binary. '
  1074. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  1075. 'Will be removed in next major version')
  1076. ReadCharacteristicResponse clone() => ReadCharacteristicResponse()..mergeFromMessage(this);
  1077. @$core.Deprecated(
  1078. 'Using this can add significant overhead to your binary. '
  1079. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  1080. 'Will be removed in next major version')
  1081. ReadCharacteristicResponse copyWith(void Function(ReadCharacteristicResponse) updates) => super.copyWith((message) => updates(message as ReadCharacteristicResponse)) as ReadCharacteristicResponse; // ignore: deprecated_member_use
  1082. $pb.BuilderInfo get info_ => _i;
  1083. @$core.pragma('dart2js:noInline')
  1084. static ReadCharacteristicResponse create() => ReadCharacteristicResponse._();
  1085. ReadCharacteristicResponse createEmptyInstance() => create();
  1086. static $pb.PbList<ReadCharacteristicResponse> createRepeated() => $pb.PbList<ReadCharacteristicResponse>();
  1087. @$core.pragma('dart2js:noInline')
  1088. static ReadCharacteristicResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ReadCharacteristicResponse>(create);
  1089. static ReadCharacteristicResponse? _defaultInstance;
  1090. @$pb.TagNumber(1)
  1091. $core.String get remoteId => $_getSZ(0);
  1092. @$pb.TagNumber(1)
  1093. set remoteId($core.String v) { $_setString(0, v); }
  1094. @$pb.TagNumber(1)
  1095. $core.bool hasRemoteId() => $_has(0);
  1096. @$pb.TagNumber(1)
  1097. void clearRemoteId() => clearField(1);
  1098. @$pb.TagNumber(2)
  1099. BluetoothCharacteristic get characteristic => $_getN(1);
  1100. @$pb.TagNumber(2)
  1101. set characteristic(BluetoothCharacteristic v) { setField(2, v); }
  1102. @$pb.TagNumber(2)
  1103. $core.bool hasCharacteristic() => $_has(1);
  1104. @$pb.TagNumber(2)
  1105. void clearCharacteristic() => clearField(2);
  1106. @$pb.TagNumber(2)
  1107. BluetoothCharacteristic ensureCharacteristic() => $_ensure(1);
  1108. }
  1109. class ReadDescriptorRequest extends $pb.GeneratedMessage {
  1110. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ReadDescriptorRequest', createEmptyInstance: create)
  1111. ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId')
  1112. ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'descriptorUuid')
  1113. ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceUuid')
  1114. ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'secondaryServiceUuid')
  1115. ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'characteristicUuid')
  1116. ..hasRequiredFields = false
  1117. ;
  1118. ReadDescriptorRequest._() : super();
  1119. factory ReadDescriptorRequest({
  1120. $core.String? remoteId,
  1121. $core.String? descriptorUuid,
  1122. $core.String? serviceUuid,
  1123. $core.String? secondaryServiceUuid,
  1124. $core.String? characteristicUuid,
  1125. }) {
  1126. final _result = create();
  1127. if (remoteId != null) {
  1128. _result.remoteId = remoteId;
  1129. }
  1130. if (descriptorUuid != null) {
  1131. _result.descriptorUuid = descriptorUuid;
  1132. }
  1133. if (serviceUuid != null) {
  1134. _result.serviceUuid = serviceUuid;
  1135. }
  1136. if (secondaryServiceUuid != null) {
  1137. _result.secondaryServiceUuid = secondaryServiceUuid;
  1138. }
  1139. if (characteristicUuid != null) {
  1140. _result.characteristicUuid = characteristicUuid;
  1141. }
  1142. return _result;
  1143. }
  1144. factory ReadDescriptorRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  1145. factory ReadDescriptorRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  1146. @$core.Deprecated(
  1147. 'Using this can add significant overhead to your binary. '
  1148. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  1149. 'Will be removed in next major version')
  1150. ReadDescriptorRequest clone() => ReadDescriptorRequest()..mergeFromMessage(this);
  1151. @$core.Deprecated(
  1152. 'Using this can add significant overhead to your binary. '
  1153. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  1154. 'Will be removed in next major version')
  1155. ReadDescriptorRequest copyWith(void Function(ReadDescriptorRequest) updates) => super.copyWith((message) => updates(message as ReadDescriptorRequest)) as ReadDescriptorRequest; // ignore: deprecated_member_use
  1156. $pb.BuilderInfo get info_ => _i;
  1157. @$core.pragma('dart2js:noInline')
  1158. static ReadDescriptorRequest create() => ReadDescriptorRequest._();
  1159. ReadDescriptorRequest createEmptyInstance() => create();
  1160. static $pb.PbList<ReadDescriptorRequest> createRepeated() => $pb.PbList<ReadDescriptorRequest>();
  1161. @$core.pragma('dart2js:noInline')
  1162. static ReadDescriptorRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ReadDescriptorRequest>(create);
  1163. static ReadDescriptorRequest? _defaultInstance;
  1164. @$pb.TagNumber(1)
  1165. $core.String get remoteId => $_getSZ(0);
  1166. @$pb.TagNumber(1)
  1167. set remoteId($core.String v) { $_setString(0, v); }
  1168. @$pb.TagNumber(1)
  1169. $core.bool hasRemoteId() => $_has(0);
  1170. @$pb.TagNumber(1)
  1171. void clearRemoteId() => clearField(1);
  1172. @$pb.TagNumber(2)
  1173. $core.String get descriptorUuid => $_getSZ(1);
  1174. @$pb.TagNumber(2)
  1175. set descriptorUuid($core.String v) { $_setString(1, v); }
  1176. @$pb.TagNumber(2)
  1177. $core.bool hasDescriptorUuid() => $_has(1);
  1178. @$pb.TagNumber(2)
  1179. void clearDescriptorUuid() => clearField(2);
  1180. @$pb.TagNumber(3)
  1181. $core.String get serviceUuid => $_getSZ(2);
  1182. @$pb.TagNumber(3)
  1183. set serviceUuid($core.String v) { $_setString(2, v); }
  1184. @$pb.TagNumber(3)
  1185. $core.bool hasServiceUuid() => $_has(2);
  1186. @$pb.TagNumber(3)
  1187. void clearServiceUuid() => clearField(3);
  1188. @$pb.TagNumber(4)
  1189. $core.String get secondaryServiceUuid => $_getSZ(3);
  1190. @$pb.TagNumber(4)
  1191. set secondaryServiceUuid($core.String v) { $_setString(3, v); }
  1192. @$pb.TagNumber(4)
  1193. $core.bool hasSecondaryServiceUuid() => $_has(3);
  1194. @$pb.TagNumber(4)
  1195. void clearSecondaryServiceUuid() => clearField(4);
  1196. @$pb.TagNumber(5)
  1197. $core.String get characteristicUuid => $_getSZ(4);
  1198. @$pb.TagNumber(5)
  1199. set characteristicUuid($core.String v) { $_setString(4, v); }
  1200. @$pb.TagNumber(5)
  1201. $core.bool hasCharacteristicUuid() => $_has(4);
  1202. @$pb.TagNumber(5)
  1203. void clearCharacteristicUuid() => clearField(5);
  1204. }
  1205. class ReadDescriptorResponse extends $pb.GeneratedMessage {
  1206. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ReadDescriptorResponse', createEmptyInstance: create)
  1207. ..aOM<ReadDescriptorRequest>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'request', subBuilder: ReadDescriptorRequest.create)
  1208. ..a<$core.List<$core.int>>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value', $pb.PbFieldType.OY)
  1209. ..hasRequiredFields = false
  1210. ;
  1211. ReadDescriptorResponse._() : super();
  1212. factory ReadDescriptorResponse({
  1213. ReadDescriptorRequest? request,
  1214. $core.List<$core.int>? value,
  1215. }) {
  1216. final _result = create();
  1217. if (request != null) {
  1218. _result.request = request;
  1219. }
  1220. if (value != null) {
  1221. _result.value = value;
  1222. }
  1223. return _result;
  1224. }
  1225. factory ReadDescriptorResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  1226. factory ReadDescriptorResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  1227. @$core.Deprecated(
  1228. 'Using this can add significant overhead to your binary. '
  1229. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  1230. 'Will be removed in next major version')
  1231. ReadDescriptorResponse clone() => ReadDescriptorResponse()..mergeFromMessage(this);
  1232. @$core.Deprecated(
  1233. 'Using this can add significant overhead to your binary. '
  1234. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  1235. 'Will be removed in next major version')
  1236. ReadDescriptorResponse copyWith(void Function(ReadDescriptorResponse) updates) => super.copyWith((message) => updates(message as ReadDescriptorResponse)) as ReadDescriptorResponse; // ignore: deprecated_member_use
  1237. $pb.BuilderInfo get info_ => _i;
  1238. @$core.pragma('dart2js:noInline')
  1239. static ReadDescriptorResponse create() => ReadDescriptorResponse._();
  1240. ReadDescriptorResponse createEmptyInstance() => create();
  1241. static $pb.PbList<ReadDescriptorResponse> createRepeated() => $pb.PbList<ReadDescriptorResponse>();
  1242. @$core.pragma('dart2js:noInline')
  1243. static ReadDescriptorResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ReadDescriptorResponse>(create);
  1244. static ReadDescriptorResponse? _defaultInstance;
  1245. @$pb.TagNumber(1)
  1246. ReadDescriptorRequest get request => $_getN(0);
  1247. @$pb.TagNumber(1)
  1248. set request(ReadDescriptorRequest v) { setField(1, v); }
  1249. @$pb.TagNumber(1)
  1250. $core.bool hasRequest() => $_has(0);
  1251. @$pb.TagNumber(1)
  1252. void clearRequest() => clearField(1);
  1253. @$pb.TagNumber(1)
  1254. ReadDescriptorRequest ensureRequest() => $_ensure(0);
  1255. @$pb.TagNumber(2)
  1256. $core.List<$core.int> get value => $_getN(1);
  1257. @$pb.TagNumber(2)
  1258. set value($core.List<$core.int> v) { $_setBytes(1, v); }
  1259. @$pb.TagNumber(2)
  1260. $core.bool hasValue() => $_has(1);
  1261. @$pb.TagNumber(2)
  1262. void clearValue() => clearField(2);
  1263. }
  1264. class WriteCharacteristicRequest extends $pb.GeneratedMessage {
  1265. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'WriteCharacteristicRequest', createEmptyInstance: create)
  1266. ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId')
  1267. ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'characteristicUuid')
  1268. ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceUuid')
  1269. ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'secondaryServiceUuid')
  1270. ..e<WriteCharacteristicRequest_WriteType>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'writeType', $pb.PbFieldType.OE, defaultOrMaker: WriteCharacteristicRequest_WriteType.WITH_RESPONSE, valueOf: WriteCharacteristicRequest_WriteType.valueOf, enumValues: WriteCharacteristicRequest_WriteType.values)
  1271. ..a<$core.List<$core.int>>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value', $pb.PbFieldType.OY)
  1272. ..hasRequiredFields = false
  1273. ;
  1274. WriteCharacteristicRequest._() : super();
  1275. factory WriteCharacteristicRequest({
  1276. $core.String? remoteId,
  1277. $core.String? characteristicUuid,
  1278. $core.String? serviceUuid,
  1279. $core.String? secondaryServiceUuid,
  1280. WriteCharacteristicRequest_WriteType? writeType,
  1281. $core.List<$core.int>? value,
  1282. }) {
  1283. final _result = create();
  1284. if (remoteId != null) {
  1285. _result.remoteId = remoteId;
  1286. }
  1287. if (characteristicUuid != null) {
  1288. _result.characteristicUuid = characteristicUuid;
  1289. }
  1290. if (serviceUuid != null) {
  1291. _result.serviceUuid = serviceUuid;
  1292. }
  1293. if (secondaryServiceUuid != null) {
  1294. _result.secondaryServiceUuid = secondaryServiceUuid;
  1295. }
  1296. if (writeType != null) {
  1297. _result.writeType = writeType;
  1298. }
  1299. if (value != null) {
  1300. _result.value = value;
  1301. }
  1302. return _result;
  1303. }
  1304. factory WriteCharacteristicRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  1305. factory WriteCharacteristicRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  1306. @$core.Deprecated(
  1307. 'Using this can add significant overhead to your binary. '
  1308. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  1309. 'Will be removed in next major version')
  1310. WriteCharacteristicRequest clone() => WriteCharacteristicRequest()..mergeFromMessage(this);
  1311. @$core.Deprecated(
  1312. 'Using this can add significant overhead to your binary. '
  1313. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  1314. 'Will be removed in next major version')
  1315. WriteCharacteristicRequest copyWith(void Function(WriteCharacteristicRequest) updates) => super.copyWith((message) => updates(message as WriteCharacteristicRequest)) as WriteCharacteristicRequest; // ignore: deprecated_member_use
  1316. $pb.BuilderInfo get info_ => _i;
  1317. @$core.pragma('dart2js:noInline')
  1318. static WriteCharacteristicRequest create() => WriteCharacteristicRequest._();
  1319. WriteCharacteristicRequest createEmptyInstance() => create();
  1320. static $pb.PbList<WriteCharacteristicRequest> createRepeated() => $pb.PbList<WriteCharacteristicRequest>();
  1321. @$core.pragma('dart2js:noInline')
  1322. static WriteCharacteristicRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<WriteCharacteristicRequest>(create);
  1323. static WriteCharacteristicRequest? _defaultInstance;
  1324. @$pb.TagNumber(1)
  1325. $core.String get remoteId => $_getSZ(0);
  1326. @$pb.TagNumber(1)
  1327. set remoteId($core.String v) { $_setString(0, v); }
  1328. @$pb.TagNumber(1)
  1329. $core.bool hasRemoteId() => $_has(0);
  1330. @$pb.TagNumber(1)
  1331. void clearRemoteId() => clearField(1);
  1332. @$pb.TagNumber(2)
  1333. $core.String get characteristicUuid => $_getSZ(1);
  1334. @$pb.TagNumber(2)
  1335. set characteristicUuid($core.String v) { $_setString(1, v); }
  1336. @$pb.TagNumber(2)
  1337. $core.bool hasCharacteristicUuid() => $_has(1);
  1338. @$pb.TagNumber(2)
  1339. void clearCharacteristicUuid() => clearField(2);
  1340. @$pb.TagNumber(3)
  1341. $core.String get serviceUuid => $_getSZ(2);
  1342. @$pb.TagNumber(3)
  1343. set serviceUuid($core.String v) { $_setString(2, v); }
  1344. @$pb.TagNumber(3)
  1345. $core.bool hasServiceUuid() => $_has(2);
  1346. @$pb.TagNumber(3)
  1347. void clearServiceUuid() => clearField(3);
  1348. @$pb.TagNumber(4)
  1349. $core.String get secondaryServiceUuid => $_getSZ(3);
  1350. @$pb.TagNumber(4)
  1351. set secondaryServiceUuid($core.String v) { $_setString(3, v); }
  1352. @$pb.TagNumber(4)
  1353. $core.bool hasSecondaryServiceUuid() => $_has(3);
  1354. @$pb.TagNumber(4)
  1355. void clearSecondaryServiceUuid() => clearField(4);
  1356. @$pb.TagNumber(5)
  1357. WriteCharacteristicRequest_WriteType get writeType => $_getN(4);
  1358. @$pb.TagNumber(5)
  1359. set writeType(WriteCharacteristicRequest_WriteType v) { setField(5, v); }
  1360. @$pb.TagNumber(5)
  1361. $core.bool hasWriteType() => $_has(4);
  1362. @$pb.TagNumber(5)
  1363. void clearWriteType() => clearField(5);
  1364. @$pb.TagNumber(6)
  1365. $core.List<$core.int> get value => $_getN(5);
  1366. @$pb.TagNumber(6)
  1367. set value($core.List<$core.int> v) { $_setBytes(5, v); }
  1368. @$pb.TagNumber(6)
  1369. $core.bool hasValue() => $_has(5);
  1370. @$pb.TagNumber(6)
  1371. void clearValue() => clearField(6);
  1372. }
  1373. class WriteCharacteristicResponse extends $pb.GeneratedMessage {
  1374. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'WriteCharacteristicResponse', createEmptyInstance: create)
  1375. ..aOM<WriteCharacteristicRequest>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'request', subBuilder: WriteCharacteristicRequest.create)
  1376. ..aOB(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'success')
  1377. ..hasRequiredFields = false
  1378. ;
  1379. WriteCharacteristicResponse._() : super();
  1380. factory WriteCharacteristicResponse({
  1381. WriteCharacteristicRequest? request,
  1382. $core.bool? success,
  1383. }) {
  1384. final _result = create();
  1385. if (request != null) {
  1386. _result.request = request;
  1387. }
  1388. if (success != null) {
  1389. _result.success = success;
  1390. }
  1391. return _result;
  1392. }
  1393. factory WriteCharacteristicResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  1394. factory WriteCharacteristicResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  1395. @$core.Deprecated(
  1396. 'Using this can add significant overhead to your binary. '
  1397. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  1398. 'Will be removed in next major version')
  1399. WriteCharacteristicResponse clone() => WriteCharacteristicResponse()..mergeFromMessage(this);
  1400. @$core.Deprecated(
  1401. 'Using this can add significant overhead to your binary. '
  1402. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  1403. 'Will be removed in next major version')
  1404. WriteCharacteristicResponse copyWith(void Function(WriteCharacteristicResponse) updates) => super.copyWith((message) => updates(message as WriteCharacteristicResponse)) as WriteCharacteristicResponse; // ignore: deprecated_member_use
  1405. $pb.BuilderInfo get info_ => _i;
  1406. @$core.pragma('dart2js:noInline')
  1407. static WriteCharacteristicResponse create() => WriteCharacteristicResponse._();
  1408. WriteCharacteristicResponse createEmptyInstance() => create();
  1409. static $pb.PbList<WriteCharacteristicResponse> createRepeated() => $pb.PbList<WriteCharacteristicResponse>();
  1410. @$core.pragma('dart2js:noInline')
  1411. static WriteCharacteristicResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<WriteCharacteristicResponse>(create);
  1412. static WriteCharacteristicResponse? _defaultInstance;
  1413. @$pb.TagNumber(1)
  1414. WriteCharacteristicRequest get request => $_getN(0);
  1415. @$pb.TagNumber(1)
  1416. set request(WriteCharacteristicRequest v) { setField(1, v); }
  1417. @$pb.TagNumber(1)
  1418. $core.bool hasRequest() => $_has(0);
  1419. @$pb.TagNumber(1)
  1420. void clearRequest() => clearField(1);
  1421. @$pb.TagNumber(1)
  1422. WriteCharacteristicRequest ensureRequest() => $_ensure(0);
  1423. @$pb.TagNumber(2)
  1424. $core.bool get success => $_getBF(1);
  1425. @$pb.TagNumber(2)
  1426. set success($core.bool v) { $_setBool(1, v); }
  1427. @$pb.TagNumber(2)
  1428. $core.bool hasSuccess() => $_has(1);
  1429. @$pb.TagNumber(2)
  1430. void clearSuccess() => clearField(2);
  1431. }
  1432. class WriteDescriptorRequest extends $pb.GeneratedMessage {
  1433. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'WriteDescriptorRequest', createEmptyInstance: create)
  1434. ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId')
  1435. ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'descriptorUuid')
  1436. ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceUuid')
  1437. ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'secondaryServiceUuid')
  1438. ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'characteristicUuid')
  1439. ..a<$core.List<$core.int>>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value', $pb.PbFieldType.OY)
  1440. ..hasRequiredFields = false
  1441. ;
  1442. WriteDescriptorRequest._() : super();
  1443. factory WriteDescriptorRequest({
  1444. $core.String? remoteId,
  1445. $core.String? descriptorUuid,
  1446. $core.String? serviceUuid,
  1447. $core.String? secondaryServiceUuid,
  1448. $core.String? characteristicUuid,
  1449. $core.List<$core.int>? value,
  1450. }) {
  1451. final _result = create();
  1452. if (remoteId != null) {
  1453. _result.remoteId = remoteId;
  1454. }
  1455. if (descriptorUuid != null) {
  1456. _result.descriptorUuid = descriptorUuid;
  1457. }
  1458. if (serviceUuid != null) {
  1459. _result.serviceUuid = serviceUuid;
  1460. }
  1461. if (secondaryServiceUuid != null) {
  1462. _result.secondaryServiceUuid = secondaryServiceUuid;
  1463. }
  1464. if (characteristicUuid != null) {
  1465. _result.characteristicUuid = characteristicUuid;
  1466. }
  1467. if (value != null) {
  1468. _result.value = value;
  1469. }
  1470. return _result;
  1471. }
  1472. factory WriteDescriptorRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  1473. factory WriteDescriptorRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  1474. @$core.Deprecated(
  1475. 'Using this can add significant overhead to your binary. '
  1476. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  1477. 'Will be removed in next major version')
  1478. WriteDescriptorRequest clone() => WriteDescriptorRequest()..mergeFromMessage(this);
  1479. @$core.Deprecated(
  1480. 'Using this can add significant overhead to your binary. '
  1481. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  1482. 'Will be removed in next major version')
  1483. WriteDescriptorRequest copyWith(void Function(WriteDescriptorRequest) updates) => super.copyWith((message) => updates(message as WriteDescriptorRequest)) as WriteDescriptorRequest; // ignore: deprecated_member_use
  1484. $pb.BuilderInfo get info_ => _i;
  1485. @$core.pragma('dart2js:noInline')
  1486. static WriteDescriptorRequest create() => WriteDescriptorRequest._();
  1487. WriteDescriptorRequest createEmptyInstance() => create();
  1488. static $pb.PbList<WriteDescriptorRequest> createRepeated() => $pb.PbList<WriteDescriptorRequest>();
  1489. @$core.pragma('dart2js:noInline')
  1490. static WriteDescriptorRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<WriteDescriptorRequest>(create);
  1491. static WriteDescriptorRequest? _defaultInstance;
  1492. @$pb.TagNumber(1)
  1493. $core.String get remoteId => $_getSZ(0);
  1494. @$pb.TagNumber(1)
  1495. set remoteId($core.String v) { $_setString(0, v); }
  1496. @$pb.TagNumber(1)
  1497. $core.bool hasRemoteId() => $_has(0);
  1498. @$pb.TagNumber(1)
  1499. void clearRemoteId() => clearField(1);
  1500. @$pb.TagNumber(2)
  1501. $core.String get descriptorUuid => $_getSZ(1);
  1502. @$pb.TagNumber(2)
  1503. set descriptorUuid($core.String v) { $_setString(1, v); }
  1504. @$pb.TagNumber(2)
  1505. $core.bool hasDescriptorUuid() => $_has(1);
  1506. @$pb.TagNumber(2)
  1507. void clearDescriptorUuid() => clearField(2);
  1508. @$pb.TagNumber(3)
  1509. $core.String get serviceUuid => $_getSZ(2);
  1510. @$pb.TagNumber(3)
  1511. set serviceUuid($core.String v) { $_setString(2, v); }
  1512. @$pb.TagNumber(3)
  1513. $core.bool hasServiceUuid() => $_has(2);
  1514. @$pb.TagNumber(3)
  1515. void clearServiceUuid() => clearField(3);
  1516. @$pb.TagNumber(4)
  1517. $core.String get secondaryServiceUuid => $_getSZ(3);
  1518. @$pb.TagNumber(4)
  1519. set secondaryServiceUuid($core.String v) { $_setString(3, v); }
  1520. @$pb.TagNumber(4)
  1521. $core.bool hasSecondaryServiceUuid() => $_has(3);
  1522. @$pb.TagNumber(4)
  1523. void clearSecondaryServiceUuid() => clearField(4);
  1524. @$pb.TagNumber(5)
  1525. $core.String get characteristicUuid => $_getSZ(4);
  1526. @$pb.TagNumber(5)
  1527. set characteristicUuid($core.String v) { $_setString(4, v); }
  1528. @$pb.TagNumber(5)
  1529. $core.bool hasCharacteristicUuid() => $_has(4);
  1530. @$pb.TagNumber(5)
  1531. void clearCharacteristicUuid() => clearField(5);
  1532. @$pb.TagNumber(6)
  1533. $core.List<$core.int> get value => $_getN(5);
  1534. @$pb.TagNumber(6)
  1535. set value($core.List<$core.int> v) { $_setBytes(5, v); }
  1536. @$pb.TagNumber(6)
  1537. $core.bool hasValue() => $_has(5);
  1538. @$pb.TagNumber(6)
  1539. void clearValue() => clearField(6);
  1540. }
  1541. class WriteDescriptorResponse extends $pb.GeneratedMessage {
  1542. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'WriteDescriptorResponse', createEmptyInstance: create)
  1543. ..aOM<WriteDescriptorRequest>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'request', subBuilder: WriteDescriptorRequest.create)
  1544. ..aOB(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'success')
  1545. ..hasRequiredFields = false
  1546. ;
  1547. WriteDescriptorResponse._() : super();
  1548. factory WriteDescriptorResponse({
  1549. WriteDescriptorRequest? request,
  1550. $core.bool? success,
  1551. }) {
  1552. final _result = create();
  1553. if (request != null) {
  1554. _result.request = request;
  1555. }
  1556. if (success != null) {
  1557. _result.success = success;
  1558. }
  1559. return _result;
  1560. }
  1561. factory WriteDescriptorResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  1562. factory WriteDescriptorResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  1563. @$core.Deprecated(
  1564. 'Using this can add significant overhead to your binary. '
  1565. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  1566. 'Will be removed in next major version')
  1567. WriteDescriptorResponse clone() => WriteDescriptorResponse()..mergeFromMessage(this);
  1568. @$core.Deprecated(
  1569. 'Using this can add significant overhead to your binary. '
  1570. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  1571. 'Will be removed in next major version')
  1572. WriteDescriptorResponse copyWith(void Function(WriteDescriptorResponse) updates) => super.copyWith((message) => updates(message as WriteDescriptorResponse)) as WriteDescriptorResponse; // ignore: deprecated_member_use
  1573. $pb.BuilderInfo get info_ => _i;
  1574. @$core.pragma('dart2js:noInline')
  1575. static WriteDescriptorResponse create() => WriteDescriptorResponse._();
  1576. WriteDescriptorResponse createEmptyInstance() => create();
  1577. static $pb.PbList<WriteDescriptorResponse> createRepeated() => $pb.PbList<WriteDescriptorResponse>();
  1578. @$core.pragma('dart2js:noInline')
  1579. static WriteDescriptorResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<WriteDescriptorResponse>(create);
  1580. static WriteDescriptorResponse? _defaultInstance;
  1581. @$pb.TagNumber(1)
  1582. WriteDescriptorRequest get request => $_getN(0);
  1583. @$pb.TagNumber(1)
  1584. set request(WriteDescriptorRequest v) { setField(1, v); }
  1585. @$pb.TagNumber(1)
  1586. $core.bool hasRequest() => $_has(0);
  1587. @$pb.TagNumber(1)
  1588. void clearRequest() => clearField(1);
  1589. @$pb.TagNumber(1)
  1590. WriteDescriptorRequest ensureRequest() => $_ensure(0);
  1591. @$pb.TagNumber(2)
  1592. $core.bool get success => $_getBF(1);
  1593. @$pb.TagNumber(2)
  1594. set success($core.bool v) { $_setBool(1, v); }
  1595. @$pb.TagNumber(2)
  1596. $core.bool hasSuccess() => $_has(1);
  1597. @$pb.TagNumber(2)
  1598. void clearSuccess() => clearField(2);
  1599. }
  1600. class SetNotificationRequest extends $pb.GeneratedMessage {
  1601. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'SetNotificationRequest', createEmptyInstance: create)
  1602. ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId')
  1603. ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceUuid')
  1604. ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'secondaryServiceUuid')
  1605. ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'characteristicUuid')
  1606. ..aOB(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'enable')
  1607. ..hasRequiredFields = false
  1608. ;
  1609. SetNotificationRequest._() : super();
  1610. factory SetNotificationRequest({
  1611. $core.String? remoteId,
  1612. $core.String? serviceUuid,
  1613. $core.String? secondaryServiceUuid,
  1614. $core.String? characteristicUuid,
  1615. $core.bool? enable,
  1616. }) {
  1617. final _result = create();
  1618. if (remoteId != null) {
  1619. _result.remoteId = remoteId;
  1620. }
  1621. if (serviceUuid != null) {
  1622. _result.serviceUuid = serviceUuid;
  1623. }
  1624. if (secondaryServiceUuid != null) {
  1625. _result.secondaryServiceUuid = secondaryServiceUuid;
  1626. }
  1627. if (characteristicUuid != null) {
  1628. _result.characteristicUuid = characteristicUuid;
  1629. }
  1630. if (enable != null) {
  1631. _result.enable = enable;
  1632. }
  1633. return _result;
  1634. }
  1635. factory SetNotificationRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  1636. factory SetNotificationRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  1637. @$core.Deprecated(
  1638. 'Using this can add significant overhead to your binary. '
  1639. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  1640. 'Will be removed in next major version')
  1641. SetNotificationRequest clone() => SetNotificationRequest()..mergeFromMessage(this);
  1642. @$core.Deprecated(
  1643. 'Using this can add significant overhead to your binary. '
  1644. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  1645. 'Will be removed in next major version')
  1646. SetNotificationRequest copyWith(void Function(SetNotificationRequest) updates) => super.copyWith((message) => updates(message as SetNotificationRequest)) as SetNotificationRequest; // ignore: deprecated_member_use
  1647. $pb.BuilderInfo get info_ => _i;
  1648. @$core.pragma('dart2js:noInline')
  1649. static SetNotificationRequest create() => SetNotificationRequest._();
  1650. SetNotificationRequest createEmptyInstance() => create();
  1651. static $pb.PbList<SetNotificationRequest> createRepeated() => $pb.PbList<SetNotificationRequest>();
  1652. @$core.pragma('dart2js:noInline')
  1653. static SetNotificationRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<SetNotificationRequest>(create);
  1654. static SetNotificationRequest? _defaultInstance;
  1655. @$pb.TagNumber(1)
  1656. $core.String get remoteId => $_getSZ(0);
  1657. @$pb.TagNumber(1)
  1658. set remoteId($core.String v) { $_setString(0, v); }
  1659. @$pb.TagNumber(1)
  1660. $core.bool hasRemoteId() => $_has(0);
  1661. @$pb.TagNumber(1)
  1662. void clearRemoteId() => clearField(1);
  1663. @$pb.TagNumber(2)
  1664. $core.String get serviceUuid => $_getSZ(1);
  1665. @$pb.TagNumber(2)
  1666. set serviceUuid($core.String v) { $_setString(1, v); }
  1667. @$pb.TagNumber(2)
  1668. $core.bool hasServiceUuid() => $_has(1);
  1669. @$pb.TagNumber(2)
  1670. void clearServiceUuid() => clearField(2);
  1671. @$pb.TagNumber(3)
  1672. $core.String get secondaryServiceUuid => $_getSZ(2);
  1673. @$pb.TagNumber(3)
  1674. set secondaryServiceUuid($core.String v) { $_setString(2, v); }
  1675. @$pb.TagNumber(3)
  1676. $core.bool hasSecondaryServiceUuid() => $_has(2);
  1677. @$pb.TagNumber(3)
  1678. void clearSecondaryServiceUuid() => clearField(3);
  1679. @$pb.TagNumber(4)
  1680. $core.String get characteristicUuid => $_getSZ(3);
  1681. @$pb.TagNumber(4)
  1682. set characteristicUuid($core.String v) { $_setString(3, v); }
  1683. @$pb.TagNumber(4)
  1684. $core.bool hasCharacteristicUuid() => $_has(3);
  1685. @$pb.TagNumber(4)
  1686. void clearCharacteristicUuid() => clearField(4);
  1687. @$pb.TagNumber(5)
  1688. $core.bool get enable => $_getBF(4);
  1689. @$pb.TagNumber(5)
  1690. set enable($core.bool v) { $_setBool(4, v); }
  1691. @$pb.TagNumber(5)
  1692. $core.bool hasEnable() => $_has(4);
  1693. @$pb.TagNumber(5)
  1694. void clearEnable() => clearField(5);
  1695. }
  1696. class SetNotificationResponse extends $pb.GeneratedMessage {
  1697. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'SetNotificationResponse', createEmptyInstance: create)
  1698. ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId')
  1699. ..aOM<BluetoothCharacteristic>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'characteristic', subBuilder: BluetoothCharacteristic.create)
  1700. ..aOB(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'success')
  1701. ..hasRequiredFields = false
  1702. ;
  1703. SetNotificationResponse._() : super();
  1704. factory SetNotificationResponse({
  1705. $core.String? remoteId,
  1706. BluetoothCharacteristic? characteristic,
  1707. $core.bool? success,
  1708. }) {
  1709. final _result = create();
  1710. if (remoteId != null) {
  1711. _result.remoteId = remoteId;
  1712. }
  1713. if (characteristic != null) {
  1714. _result.characteristic = characteristic;
  1715. }
  1716. if (success != null) {
  1717. _result.success = success;
  1718. }
  1719. return _result;
  1720. }
  1721. factory SetNotificationResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  1722. factory SetNotificationResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  1723. @$core.Deprecated(
  1724. 'Using this can add significant overhead to your binary. '
  1725. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  1726. 'Will be removed in next major version')
  1727. SetNotificationResponse clone() => SetNotificationResponse()..mergeFromMessage(this);
  1728. @$core.Deprecated(
  1729. 'Using this can add significant overhead to your binary. '
  1730. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  1731. 'Will be removed in next major version')
  1732. SetNotificationResponse copyWith(void Function(SetNotificationResponse) updates) => super.copyWith((message) => updates(message as SetNotificationResponse)) as SetNotificationResponse; // ignore: deprecated_member_use
  1733. $pb.BuilderInfo get info_ => _i;
  1734. @$core.pragma('dart2js:noInline')
  1735. static SetNotificationResponse create() => SetNotificationResponse._();
  1736. SetNotificationResponse createEmptyInstance() => create();
  1737. static $pb.PbList<SetNotificationResponse> createRepeated() => $pb.PbList<SetNotificationResponse>();
  1738. @$core.pragma('dart2js:noInline')
  1739. static SetNotificationResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<SetNotificationResponse>(create);
  1740. static SetNotificationResponse? _defaultInstance;
  1741. @$pb.TagNumber(1)
  1742. $core.String get remoteId => $_getSZ(0);
  1743. @$pb.TagNumber(1)
  1744. set remoteId($core.String v) { $_setString(0, v); }
  1745. @$pb.TagNumber(1)
  1746. $core.bool hasRemoteId() => $_has(0);
  1747. @$pb.TagNumber(1)
  1748. void clearRemoteId() => clearField(1);
  1749. @$pb.TagNumber(2)
  1750. BluetoothCharacteristic get characteristic => $_getN(1);
  1751. @$pb.TagNumber(2)
  1752. set characteristic(BluetoothCharacteristic v) { setField(2, v); }
  1753. @$pb.TagNumber(2)
  1754. $core.bool hasCharacteristic() => $_has(1);
  1755. @$pb.TagNumber(2)
  1756. void clearCharacteristic() => clearField(2);
  1757. @$pb.TagNumber(2)
  1758. BluetoothCharacteristic ensureCharacteristic() => $_ensure(1);
  1759. @$pb.TagNumber(3)
  1760. $core.bool get success => $_getBF(2);
  1761. @$pb.TagNumber(3)
  1762. set success($core.bool v) { $_setBool(2, v); }
  1763. @$pb.TagNumber(3)
  1764. $core.bool hasSuccess() => $_has(2);
  1765. @$pb.TagNumber(3)
  1766. void clearSuccess() => clearField(3);
  1767. }
  1768. class OnCharacteristicChanged extends $pb.GeneratedMessage {
  1769. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'OnCharacteristicChanged', createEmptyInstance: create)
  1770. ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId')
  1771. ..aOM<BluetoothCharacteristic>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'characteristic', subBuilder: BluetoothCharacteristic.create)
  1772. ..hasRequiredFields = false
  1773. ;
  1774. OnCharacteristicChanged._() : super();
  1775. factory OnCharacteristicChanged({
  1776. $core.String? remoteId,
  1777. BluetoothCharacteristic? characteristic,
  1778. }) {
  1779. final _result = create();
  1780. if (remoteId != null) {
  1781. _result.remoteId = remoteId;
  1782. }
  1783. if (characteristic != null) {
  1784. _result.characteristic = characteristic;
  1785. }
  1786. return _result;
  1787. }
  1788. factory OnCharacteristicChanged.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  1789. factory OnCharacteristicChanged.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  1790. @$core.Deprecated(
  1791. 'Using this can add significant overhead to your binary. '
  1792. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  1793. 'Will be removed in next major version')
  1794. OnCharacteristicChanged clone() => OnCharacteristicChanged()..mergeFromMessage(this);
  1795. @$core.Deprecated(
  1796. 'Using this can add significant overhead to your binary. '
  1797. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  1798. 'Will be removed in next major version')
  1799. OnCharacteristicChanged copyWith(void Function(OnCharacteristicChanged) updates) => super.copyWith((message) => updates(message as OnCharacteristicChanged)) as OnCharacteristicChanged; // ignore: deprecated_member_use
  1800. $pb.BuilderInfo get info_ => _i;
  1801. @$core.pragma('dart2js:noInline')
  1802. static OnCharacteristicChanged create() => OnCharacteristicChanged._();
  1803. OnCharacteristicChanged createEmptyInstance() => create();
  1804. static $pb.PbList<OnCharacteristicChanged> createRepeated() => $pb.PbList<OnCharacteristicChanged>();
  1805. @$core.pragma('dart2js:noInline')
  1806. static OnCharacteristicChanged getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<OnCharacteristicChanged>(create);
  1807. static OnCharacteristicChanged? _defaultInstance;
  1808. @$pb.TagNumber(1)
  1809. $core.String get remoteId => $_getSZ(0);
  1810. @$pb.TagNumber(1)
  1811. set remoteId($core.String v) { $_setString(0, v); }
  1812. @$pb.TagNumber(1)
  1813. $core.bool hasRemoteId() => $_has(0);
  1814. @$pb.TagNumber(1)
  1815. void clearRemoteId() => clearField(1);
  1816. @$pb.TagNumber(2)
  1817. BluetoothCharacteristic get characteristic => $_getN(1);
  1818. @$pb.TagNumber(2)
  1819. set characteristic(BluetoothCharacteristic v) { setField(2, v); }
  1820. @$pb.TagNumber(2)
  1821. $core.bool hasCharacteristic() => $_has(1);
  1822. @$pb.TagNumber(2)
  1823. void clearCharacteristic() => clearField(2);
  1824. @$pb.TagNumber(2)
  1825. BluetoothCharacteristic ensureCharacteristic() => $_ensure(1);
  1826. }
  1827. class DeviceStateResponse extends $pb.GeneratedMessage {
  1828. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'DeviceStateResponse', createEmptyInstance: create)
  1829. ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId')
  1830. ..e<DeviceStateResponse_BluetoothDeviceState>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'state', $pb.PbFieldType.OE, defaultOrMaker: DeviceStateResponse_BluetoothDeviceState.DISCONNECTED, valueOf: DeviceStateResponse_BluetoothDeviceState.valueOf, enumValues: DeviceStateResponse_BluetoothDeviceState.values)
  1831. ..hasRequiredFields = false
  1832. ;
  1833. DeviceStateResponse._() : super();
  1834. factory DeviceStateResponse({
  1835. $core.String? remoteId,
  1836. DeviceStateResponse_BluetoothDeviceState? state,
  1837. }) {
  1838. final _result = create();
  1839. if (remoteId != null) {
  1840. _result.remoteId = remoteId;
  1841. }
  1842. if (state != null) {
  1843. _result.state = state;
  1844. }
  1845. return _result;
  1846. }
  1847. factory DeviceStateResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  1848. factory DeviceStateResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  1849. @$core.Deprecated(
  1850. 'Using this can add significant overhead to your binary. '
  1851. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  1852. 'Will be removed in next major version')
  1853. DeviceStateResponse clone() => DeviceStateResponse()..mergeFromMessage(this);
  1854. @$core.Deprecated(
  1855. 'Using this can add significant overhead to your binary. '
  1856. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  1857. 'Will be removed in next major version')
  1858. DeviceStateResponse copyWith(void Function(DeviceStateResponse) updates) => super.copyWith((message) => updates(message as DeviceStateResponse)) as DeviceStateResponse; // ignore: deprecated_member_use
  1859. $pb.BuilderInfo get info_ => _i;
  1860. @$core.pragma('dart2js:noInline')
  1861. static DeviceStateResponse create() => DeviceStateResponse._();
  1862. DeviceStateResponse createEmptyInstance() => create();
  1863. static $pb.PbList<DeviceStateResponse> createRepeated() => $pb.PbList<DeviceStateResponse>();
  1864. @$core.pragma('dart2js:noInline')
  1865. static DeviceStateResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<DeviceStateResponse>(create);
  1866. static DeviceStateResponse? _defaultInstance;
  1867. @$pb.TagNumber(1)
  1868. $core.String get remoteId => $_getSZ(0);
  1869. @$pb.TagNumber(1)
  1870. set remoteId($core.String v) { $_setString(0, v); }
  1871. @$pb.TagNumber(1)
  1872. $core.bool hasRemoteId() => $_has(0);
  1873. @$pb.TagNumber(1)
  1874. void clearRemoteId() => clearField(1);
  1875. @$pb.TagNumber(2)
  1876. DeviceStateResponse_BluetoothDeviceState get state => $_getN(1);
  1877. @$pb.TagNumber(2)
  1878. set state(DeviceStateResponse_BluetoothDeviceState v) { setField(2, v); }
  1879. @$pb.TagNumber(2)
  1880. $core.bool hasState() => $_has(1);
  1881. @$pb.TagNumber(2)
  1882. void clearState() => clearField(2);
  1883. }
  1884. class ConnectedDevicesResponse extends $pb.GeneratedMessage {
  1885. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ConnectedDevicesResponse', createEmptyInstance: create)
  1886. ..pc<BluetoothDevice>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'devices', $pb.PbFieldType.PM, subBuilder: BluetoothDevice.create)
  1887. ..hasRequiredFields = false
  1888. ;
  1889. ConnectedDevicesResponse._() : super();
  1890. factory ConnectedDevicesResponse({
  1891. $core.Iterable<BluetoothDevice>? devices,
  1892. }) {
  1893. final _result = create();
  1894. if (devices != null) {
  1895. _result.devices.addAll(devices);
  1896. }
  1897. return _result;
  1898. }
  1899. factory ConnectedDevicesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  1900. factory ConnectedDevicesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  1901. @$core.Deprecated(
  1902. 'Using this can add significant overhead to your binary. '
  1903. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  1904. 'Will be removed in next major version')
  1905. ConnectedDevicesResponse clone() => ConnectedDevicesResponse()..mergeFromMessage(this);
  1906. @$core.Deprecated(
  1907. 'Using this can add significant overhead to your binary. '
  1908. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  1909. 'Will be removed in next major version')
  1910. ConnectedDevicesResponse copyWith(void Function(ConnectedDevicesResponse) updates) => super.copyWith((message) => updates(message as ConnectedDevicesResponse)) as ConnectedDevicesResponse; // ignore: deprecated_member_use
  1911. $pb.BuilderInfo get info_ => _i;
  1912. @$core.pragma('dart2js:noInline')
  1913. static ConnectedDevicesResponse create() => ConnectedDevicesResponse._();
  1914. ConnectedDevicesResponse createEmptyInstance() => create();
  1915. static $pb.PbList<ConnectedDevicesResponse> createRepeated() => $pb.PbList<ConnectedDevicesResponse>();
  1916. @$core.pragma('dart2js:noInline')
  1917. static ConnectedDevicesResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ConnectedDevicesResponse>(create);
  1918. static ConnectedDevicesResponse? _defaultInstance;
  1919. @$pb.TagNumber(1)
  1920. $core.List<BluetoothDevice> get devices => $_getList(0);
  1921. }
  1922. class MtuSizeRequest extends $pb.GeneratedMessage {
  1923. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'MtuSizeRequest', createEmptyInstance: create)
  1924. ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId')
  1925. ..a<$core.int>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mtu', $pb.PbFieldType.OU3)
  1926. ..hasRequiredFields = false
  1927. ;
  1928. MtuSizeRequest._() : super();
  1929. factory MtuSizeRequest({
  1930. $core.String? remoteId,
  1931. $core.int? mtu,
  1932. }) {
  1933. final _result = create();
  1934. if (remoteId != null) {
  1935. _result.remoteId = remoteId;
  1936. }
  1937. if (mtu != null) {
  1938. _result.mtu = mtu;
  1939. }
  1940. return _result;
  1941. }
  1942. factory MtuSizeRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  1943. factory MtuSizeRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  1944. @$core.Deprecated(
  1945. 'Using this can add significant overhead to your binary. '
  1946. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  1947. 'Will be removed in next major version')
  1948. MtuSizeRequest clone() => MtuSizeRequest()..mergeFromMessage(this);
  1949. @$core.Deprecated(
  1950. 'Using this can add significant overhead to your binary. '
  1951. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  1952. 'Will be removed in next major version')
  1953. MtuSizeRequest copyWith(void Function(MtuSizeRequest) updates) => super.copyWith((message) => updates(message as MtuSizeRequest)) as MtuSizeRequest; // ignore: deprecated_member_use
  1954. $pb.BuilderInfo get info_ => _i;
  1955. @$core.pragma('dart2js:noInline')
  1956. static MtuSizeRequest create() => MtuSizeRequest._();
  1957. MtuSizeRequest createEmptyInstance() => create();
  1958. static $pb.PbList<MtuSizeRequest> createRepeated() => $pb.PbList<MtuSizeRequest>();
  1959. @$core.pragma('dart2js:noInline')
  1960. static MtuSizeRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<MtuSizeRequest>(create);
  1961. static MtuSizeRequest? _defaultInstance;
  1962. @$pb.TagNumber(1)
  1963. $core.String get remoteId => $_getSZ(0);
  1964. @$pb.TagNumber(1)
  1965. set remoteId($core.String v) { $_setString(0, v); }
  1966. @$pb.TagNumber(1)
  1967. $core.bool hasRemoteId() => $_has(0);
  1968. @$pb.TagNumber(1)
  1969. void clearRemoteId() => clearField(1);
  1970. @$pb.TagNumber(2)
  1971. $core.int get mtu => $_getIZ(1);
  1972. @$pb.TagNumber(2)
  1973. set mtu($core.int v) { $_setUnsignedInt32(1, v); }
  1974. @$pb.TagNumber(2)
  1975. $core.bool hasMtu() => $_has(1);
  1976. @$pb.TagNumber(2)
  1977. void clearMtu() => clearField(2);
  1978. }
  1979. class MtuSizeResponse extends $pb.GeneratedMessage {
  1980. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'MtuSizeResponse', createEmptyInstance: create)
  1981. ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId')
  1982. ..a<$core.int>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mtu', $pb.PbFieldType.OU3)
  1983. ..hasRequiredFields = false
  1984. ;
  1985. MtuSizeResponse._() : super();
  1986. factory MtuSizeResponse({
  1987. $core.String? remoteId,
  1988. $core.int? mtu,
  1989. }) {
  1990. final _result = create();
  1991. if (remoteId != null) {
  1992. _result.remoteId = remoteId;
  1993. }
  1994. if (mtu != null) {
  1995. _result.mtu = mtu;
  1996. }
  1997. return _result;
  1998. }
  1999. factory MtuSizeResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  2000. factory MtuSizeResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  2001. @$core.Deprecated(
  2002. 'Using this can add significant overhead to your binary. '
  2003. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  2004. 'Will be removed in next major version')
  2005. MtuSizeResponse clone() => MtuSizeResponse()..mergeFromMessage(this);
  2006. @$core.Deprecated(
  2007. 'Using this can add significant overhead to your binary. '
  2008. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  2009. 'Will be removed in next major version')
  2010. MtuSizeResponse copyWith(void Function(MtuSizeResponse) updates) => super.copyWith((message) => updates(message as MtuSizeResponse)) as MtuSizeResponse; // ignore: deprecated_member_use
  2011. $pb.BuilderInfo get info_ => _i;
  2012. @$core.pragma('dart2js:noInline')
  2013. static MtuSizeResponse create() => MtuSizeResponse._();
  2014. MtuSizeResponse createEmptyInstance() => create();
  2015. static $pb.PbList<MtuSizeResponse> createRepeated() => $pb.PbList<MtuSizeResponse>();
  2016. @$core.pragma('dart2js:noInline')
  2017. static MtuSizeResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<MtuSizeResponse>(create);
  2018. static MtuSizeResponse? _defaultInstance;
  2019. @$pb.TagNumber(1)
  2020. $core.String get remoteId => $_getSZ(0);
  2021. @$pb.TagNumber(1)
  2022. set remoteId($core.String v) { $_setString(0, v); }
  2023. @$pb.TagNumber(1)
  2024. $core.bool hasRemoteId() => $_has(0);
  2025. @$pb.TagNumber(1)
  2026. void clearRemoteId() => clearField(1);
  2027. @$pb.TagNumber(2)
  2028. $core.int get mtu => $_getIZ(1);
  2029. @$pb.TagNumber(2)
  2030. set mtu($core.int v) { $_setUnsignedInt32(1, v); }
  2031. @$pb.TagNumber(2)
  2032. $core.bool hasMtu() => $_has(1);
  2033. @$pb.TagNumber(2)
  2034. void clearMtu() => clearField(2);
  2035. }
  2036. class RssiRequest extends $pb.GeneratedMessage {
  2037. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'RssiRequest', createEmptyInstance: create)
  2038. ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId')
  2039. ..a<$core.int>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'rssi', $pb.PbFieldType.OS3)
  2040. ..hasRequiredFields = false
  2041. ;
  2042. RssiRequest._() : super();
  2043. factory RssiRequest({
  2044. $core.String? remoteId,
  2045. $core.int? rssi,
  2046. }) {
  2047. final _result = create();
  2048. if (remoteId != null) {
  2049. _result.remoteId = remoteId;
  2050. }
  2051. if (rssi != null) {
  2052. _result.rssi = rssi;
  2053. }
  2054. return _result;
  2055. }
  2056. factory RssiRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  2057. factory RssiRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  2058. @$core.Deprecated(
  2059. 'Using this can add significant overhead to your binary. '
  2060. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  2061. 'Will be removed in next major version')
  2062. RssiRequest clone() => RssiRequest()..mergeFromMessage(this);
  2063. @$core.Deprecated(
  2064. 'Using this can add significant overhead to your binary. '
  2065. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  2066. 'Will be removed in next major version')
  2067. RssiRequest copyWith(void Function(RssiRequest) updates) => super.copyWith((message) => updates(message as RssiRequest)) as RssiRequest; // ignore: deprecated_member_use
  2068. $pb.BuilderInfo get info_ => _i;
  2069. @$core.pragma('dart2js:noInline')
  2070. static RssiRequest create() => RssiRequest._();
  2071. RssiRequest createEmptyInstance() => create();
  2072. static $pb.PbList<RssiRequest> createRepeated() => $pb.PbList<RssiRequest>();
  2073. @$core.pragma('dart2js:noInline')
  2074. static RssiRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<RssiRequest>(create);
  2075. static RssiRequest? _defaultInstance;
  2076. @$pb.TagNumber(1)
  2077. $core.String get remoteId => $_getSZ(0);
  2078. @$pb.TagNumber(1)
  2079. set remoteId($core.String v) { $_setString(0, v); }
  2080. @$pb.TagNumber(1)
  2081. $core.bool hasRemoteId() => $_has(0);
  2082. @$pb.TagNumber(1)
  2083. void clearRemoteId() => clearField(1);
  2084. @$pb.TagNumber(2)
  2085. $core.int get rssi => $_getIZ(1);
  2086. @$pb.TagNumber(2)
  2087. set rssi($core.int v) { $_setSignedInt32(1, v); }
  2088. @$pb.TagNumber(2)
  2089. $core.bool hasRssi() => $_has(1);
  2090. @$pb.TagNumber(2)
  2091. void clearRssi() => clearField(2);
  2092. }
  2093. class RssiResponse extends $pb.GeneratedMessage {
  2094. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'RssiResponse', createEmptyInstance: create)
  2095. ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId')
  2096. ..a<$core.int>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'rssi', $pb.PbFieldType.OS3)
  2097. ..hasRequiredFields = false
  2098. ;
  2099. RssiResponse._() : super();
  2100. factory RssiResponse({
  2101. $core.String? remoteId,
  2102. $core.int? rssi,
  2103. }) {
  2104. final _result = create();
  2105. if (remoteId != null) {
  2106. _result.remoteId = remoteId;
  2107. }
  2108. if (rssi != null) {
  2109. _result.rssi = rssi;
  2110. }
  2111. return _result;
  2112. }
  2113. factory RssiResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  2114. factory RssiResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  2115. @$core.Deprecated(
  2116. 'Using this can add significant overhead to your binary. '
  2117. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  2118. 'Will be removed in next major version')
  2119. RssiResponse clone() => RssiResponse()..mergeFromMessage(this);
  2120. @$core.Deprecated(
  2121. 'Using this can add significant overhead to your binary. '
  2122. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  2123. 'Will be removed in next major version')
  2124. RssiResponse copyWith(void Function(RssiResponse) updates) => super.copyWith((message) => updates(message as RssiResponse)) as RssiResponse; // ignore: deprecated_member_use
  2125. $pb.BuilderInfo get info_ => _i;
  2126. @$core.pragma('dart2js:noInline')
  2127. static RssiResponse create() => RssiResponse._();
  2128. RssiResponse createEmptyInstance() => create();
  2129. static $pb.PbList<RssiResponse> createRepeated() => $pb.PbList<RssiResponse>();
  2130. @$core.pragma('dart2js:noInline')
  2131. static RssiResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<RssiResponse>(create);
  2132. static RssiResponse? _defaultInstance;
  2133. @$pb.TagNumber(1)
  2134. $core.String get remoteId => $_getSZ(0);
  2135. @$pb.TagNumber(1)
  2136. set remoteId($core.String v) { $_setString(0, v); }
  2137. @$pb.TagNumber(1)
  2138. $core.bool hasRemoteId() => $_has(0);
  2139. @$pb.TagNumber(1)
  2140. void clearRemoteId() => clearField(1);
  2141. @$pb.TagNumber(2)
  2142. $core.int get rssi => $_getIZ(1);
  2143. @$pb.TagNumber(2)
  2144. set rssi($core.int v) { $_setSignedInt32(1, v); }
  2145. @$pb.TagNumber(2)
  2146. $core.bool hasRssi() => $_has(1);
  2147. @$pb.TagNumber(2)
  2148. void clearRssi() => clearField(2);
  2149. }