Flutterblue.pbobjc.h 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: flutterblue.proto
  3. // This CPP symbol can be defined to use imports that match up to the framework
  4. // imports needed when using CocoaPods.
  5. #if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS)
  6. #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0
  7. #endif
  8. #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
  9. #import <protobuf/GPBProtocolBuffers.h>
  10. #else
  11. #import "GPBProtocolBuffers.h"
  12. #endif
  13. #if GOOGLE_PROTOBUF_OBJC_VERSION < 30002
  14. #error This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer library sources.
  15. #endif
  16. #if 30002 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION
  17. #error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer library sources.
  18. #endif
  19. // @@protoc_insertion_point(imports)
  20. #pragma clang diagnostic push
  21. #pragma clang diagnostic ignored "-Wdeprecated-declarations"
  22. CF_EXTERN_C_BEGIN
  23. @class ProtosAdvertisementData;
  24. @class ProtosBluetoothCharacteristic;
  25. @class ProtosBluetoothDescriptor;
  26. @class ProtosBluetoothDevice;
  27. @class ProtosBluetoothService;
  28. @class ProtosCharacteristicProperties;
  29. @class ProtosInt32Value;
  30. @class ProtosReadDescriptorRequest;
  31. @class ProtosWriteCharacteristicRequest;
  32. @class ProtosWriteDescriptorRequest;
  33. NS_ASSUME_NONNULL_BEGIN
  34. #pragma mark - Enum ProtosBluetoothState_State
  35. typedef GPB_ENUM(ProtosBluetoothState_State) {
  36. /**
  37. * Value used if any message's field encounters a value that is not defined
  38. * by this enum. The message will also have C functions to get/set the rawValue
  39. * of the field.
  40. **/
  41. ProtosBluetoothState_State_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue,
  42. ProtosBluetoothState_State_Unknown = 0,
  43. ProtosBluetoothState_State_Unavailable = 1,
  44. ProtosBluetoothState_State_Unauthorized = 2,
  45. ProtosBluetoothState_State_TurningOn = 3,
  46. ProtosBluetoothState_State_On = 4,
  47. ProtosBluetoothState_State_TurningOff = 5,
  48. ProtosBluetoothState_State_Off = 6,
  49. };
  50. GPBEnumDescriptor *ProtosBluetoothState_State_EnumDescriptor(void);
  51. /**
  52. * Checks to see if the given value is defined by the enum or was not known at
  53. * the time this source was generated.
  54. **/
  55. BOOL ProtosBluetoothState_State_IsValidValue(int32_t value);
  56. #pragma mark - Enum ProtosBluetoothDevice_Type
  57. typedef GPB_ENUM(ProtosBluetoothDevice_Type) {
  58. /**
  59. * Value used if any message's field encounters a value that is not defined
  60. * by this enum. The message will also have C functions to get/set the rawValue
  61. * of the field.
  62. **/
  63. ProtosBluetoothDevice_Type_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue,
  64. ProtosBluetoothDevice_Type_Unknown = 0,
  65. ProtosBluetoothDevice_Type_Classic = 1,
  66. ProtosBluetoothDevice_Type_Le = 2,
  67. ProtosBluetoothDevice_Type_Dual = 3,
  68. };
  69. GPBEnumDescriptor *ProtosBluetoothDevice_Type_EnumDescriptor(void);
  70. /**
  71. * Checks to see if the given value is defined by the enum or was not known at
  72. * the time this source was generated.
  73. **/
  74. BOOL ProtosBluetoothDevice_Type_IsValidValue(int32_t value);
  75. #pragma mark - Enum ProtosWriteCharacteristicRequest_WriteType
  76. typedef GPB_ENUM(ProtosWriteCharacteristicRequest_WriteType) {
  77. /**
  78. * Value used if any message's field encounters a value that is not defined
  79. * by this enum. The message will also have C functions to get/set the rawValue
  80. * of the field.
  81. **/
  82. ProtosWriteCharacteristicRequest_WriteType_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue,
  83. ProtosWriteCharacteristicRequest_WriteType_WithResponse = 0,
  84. ProtosWriteCharacteristicRequest_WriteType_WithoutResponse = 1,
  85. };
  86. GPBEnumDescriptor *ProtosWriteCharacteristicRequest_WriteType_EnumDescriptor(void);
  87. /**
  88. * Checks to see if the given value is defined by the enum or was not known at
  89. * the time this source was generated.
  90. **/
  91. BOOL ProtosWriteCharacteristicRequest_WriteType_IsValidValue(int32_t value);
  92. #pragma mark - Enum ProtosDeviceStateResponse_BluetoothDeviceState
  93. typedef GPB_ENUM(ProtosDeviceStateResponse_BluetoothDeviceState) {
  94. /**
  95. * Value used if any message's field encounters a value that is not defined
  96. * by this enum. The message will also have C functions to get/set the rawValue
  97. * of the field.
  98. **/
  99. ProtosDeviceStateResponse_BluetoothDeviceState_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue,
  100. ProtosDeviceStateResponse_BluetoothDeviceState_Disconnected = 0,
  101. ProtosDeviceStateResponse_BluetoothDeviceState_Connecting = 1,
  102. ProtosDeviceStateResponse_BluetoothDeviceState_Connected = 2,
  103. ProtosDeviceStateResponse_BluetoothDeviceState_Disconnecting = 3,
  104. };
  105. GPBEnumDescriptor *ProtosDeviceStateResponse_BluetoothDeviceState_EnumDescriptor(void);
  106. /**
  107. * Checks to see if the given value is defined by the enum or was not known at
  108. * the time this source was generated.
  109. **/
  110. BOOL ProtosDeviceStateResponse_BluetoothDeviceState_IsValidValue(int32_t value);
  111. #pragma mark - ProtosFlutterblueRoot
  112. /**
  113. * Exposes the extension registry for this file.
  114. *
  115. * The base class provides:
  116. * @code
  117. * + (GPBExtensionRegistry *)extensionRegistry;
  118. * @endcode
  119. * which is a @c GPBExtensionRegistry that includes all the extensions defined by
  120. * this file and all files that it depends on.
  121. **/
  122. @interface ProtosFlutterblueRoot : GPBRootObject
  123. @end
  124. #pragma mark - ProtosInt32Value
  125. typedef GPB_ENUM(ProtosInt32Value_FieldNumber) {
  126. ProtosInt32Value_FieldNumber_Value = 1,
  127. };
  128. /**
  129. * Wrapper message for `int32`.
  130. *
  131. * Allows for nullability of fields in messages
  132. **/
  133. @interface ProtosInt32Value : GPBMessage
  134. /** The int32 value. */
  135. @property(nonatomic, readwrite) int32_t value;
  136. @end
  137. #pragma mark - ProtosBluetoothState
  138. typedef GPB_ENUM(ProtosBluetoothState_FieldNumber) {
  139. ProtosBluetoothState_FieldNumber_State = 1,
  140. };
  141. @interface ProtosBluetoothState : GPBMessage
  142. @property(nonatomic, readwrite) ProtosBluetoothState_State state;
  143. @end
  144. /**
  145. * Fetches the raw value of a @c ProtosBluetoothState's @c state property, even
  146. * if the value was not defined by the enum at the time the code was generated.
  147. **/
  148. int32_t ProtosBluetoothState_State_RawValue(ProtosBluetoothState *message);
  149. /**
  150. * Sets the raw value of an @c ProtosBluetoothState's @c state property, allowing
  151. * it to be set to a value that was not defined by the enum at the time the code
  152. * was generated.
  153. **/
  154. void SetProtosBluetoothState_State_RawValue(ProtosBluetoothState *message, int32_t value);
  155. #pragma mark - ProtosAdvertisementData
  156. typedef GPB_ENUM(ProtosAdvertisementData_FieldNumber) {
  157. ProtosAdvertisementData_FieldNumber_LocalName = 1,
  158. ProtosAdvertisementData_FieldNumber_TxPowerLevel = 2,
  159. ProtosAdvertisementData_FieldNumber_Connectable = 3,
  160. ProtosAdvertisementData_FieldNumber_ManufacturerData = 4,
  161. ProtosAdvertisementData_FieldNumber_ServiceData = 5,
  162. ProtosAdvertisementData_FieldNumber_ServiceUuidsArray = 6,
  163. };
  164. @interface ProtosAdvertisementData : GPBMessage
  165. @property(nonatomic, readwrite, copy, null_resettable) NSString *localName;
  166. @property(nonatomic, readwrite, strong, null_resettable) ProtosInt32Value *txPowerLevel;
  167. /** Test to see if @c txPowerLevel has been set. */
  168. @property(nonatomic, readwrite) BOOL hasTxPowerLevel;
  169. @property(nonatomic, readwrite) BOOL connectable;
  170. /** Map of manufacturers to their data */
  171. @property(nonatomic, readwrite, strong, null_resettable) GPBInt32ObjectDictionary<NSData*> *manufacturerData;
  172. /** The number of items in @c manufacturerData without causing the array to be created. */
  173. @property(nonatomic, readonly) NSUInteger manufacturerData_Count;
  174. /** Map of service UUIDs to their data. */
  175. @property(nonatomic, readwrite, strong, null_resettable) NSMutableDictionary<NSString*, NSData*> *serviceData;
  176. /** The number of items in @c serviceData without causing the array to be created. */
  177. @property(nonatomic, readonly) NSUInteger serviceData_Count;
  178. @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<NSString*> *serviceUuidsArray;
  179. /** The number of items in @c serviceUuidsArray without causing the array to be created. */
  180. @property(nonatomic, readonly) NSUInteger serviceUuidsArray_Count;
  181. @end
  182. #pragma mark - ProtosScanSettings
  183. typedef GPB_ENUM(ProtosScanSettings_FieldNumber) {
  184. ProtosScanSettings_FieldNumber_AndroidScanMode = 1,
  185. ProtosScanSettings_FieldNumber_ServiceUuidsArray = 2,
  186. ProtosScanSettings_FieldNumber_AllowDuplicates = 3,
  187. };
  188. @interface ProtosScanSettings : GPBMessage
  189. @property(nonatomic, readwrite) int32_t androidScanMode;
  190. @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<NSString*> *serviceUuidsArray;
  191. /** The number of items in @c serviceUuidsArray without causing the array to be created. */
  192. @property(nonatomic, readonly) NSUInteger serviceUuidsArray_Count;
  193. @property(nonatomic, readwrite) BOOL allowDuplicates;
  194. @end
  195. #pragma mark - ProtosScanResult
  196. typedef GPB_ENUM(ProtosScanResult_FieldNumber) {
  197. ProtosScanResult_FieldNumber_Device = 1,
  198. ProtosScanResult_FieldNumber_AdvertisementData = 2,
  199. ProtosScanResult_FieldNumber_Rssi = 3,
  200. };
  201. @interface ProtosScanResult : GPBMessage
  202. /** The received peer's ID. */
  203. @property(nonatomic, readwrite, strong, null_resettable) ProtosBluetoothDevice *device;
  204. /** Test to see if @c device has been set. */
  205. @property(nonatomic, readwrite) BOOL hasDevice;
  206. @property(nonatomic, readwrite, strong, null_resettable) ProtosAdvertisementData *advertisementData;
  207. /** Test to see if @c advertisementData has been set. */
  208. @property(nonatomic, readwrite) BOOL hasAdvertisementData;
  209. @property(nonatomic, readwrite) int32_t rssi;
  210. @end
  211. #pragma mark - ProtosConnectRequest
  212. typedef GPB_ENUM(ProtosConnectRequest_FieldNumber) {
  213. ProtosConnectRequest_FieldNumber_RemoteId = 1,
  214. ProtosConnectRequest_FieldNumber_AndroidAutoConnect = 2,
  215. };
  216. @interface ProtosConnectRequest : GPBMessage
  217. @property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId;
  218. @property(nonatomic, readwrite) BOOL androidAutoConnect;
  219. @end
  220. #pragma mark - ProtosBluetoothDevice
  221. typedef GPB_ENUM(ProtosBluetoothDevice_FieldNumber) {
  222. ProtosBluetoothDevice_FieldNumber_RemoteId = 1,
  223. ProtosBluetoothDevice_FieldNumber_Name = 2,
  224. ProtosBluetoothDevice_FieldNumber_Type = 3,
  225. };
  226. @interface ProtosBluetoothDevice : GPBMessage
  227. @property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId;
  228. @property(nonatomic, readwrite, copy, null_resettable) NSString *name;
  229. @property(nonatomic, readwrite) ProtosBluetoothDevice_Type type;
  230. @end
  231. /**
  232. * Fetches the raw value of a @c ProtosBluetoothDevice's @c type property, even
  233. * if the value was not defined by the enum at the time the code was generated.
  234. **/
  235. int32_t ProtosBluetoothDevice_Type_RawValue(ProtosBluetoothDevice *message);
  236. /**
  237. * Sets the raw value of an @c ProtosBluetoothDevice's @c type property, allowing
  238. * it to be set to a value that was not defined by the enum at the time the code
  239. * was generated.
  240. **/
  241. void SetProtosBluetoothDevice_Type_RawValue(ProtosBluetoothDevice *message, int32_t value);
  242. #pragma mark - ProtosBluetoothService
  243. typedef GPB_ENUM(ProtosBluetoothService_FieldNumber) {
  244. ProtosBluetoothService_FieldNumber_Uuid = 1,
  245. ProtosBluetoothService_FieldNumber_RemoteId = 2,
  246. ProtosBluetoothService_FieldNumber_IsPrimary = 3,
  247. ProtosBluetoothService_FieldNumber_CharacteristicsArray = 4,
  248. ProtosBluetoothService_FieldNumber_IncludedServicesArray = 5,
  249. };
  250. @interface ProtosBluetoothService : GPBMessage
  251. @property(nonatomic, readwrite, copy, null_resettable) NSString *uuid;
  252. @property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId;
  253. /** Indicates whether the type of service is primary or secondary. */
  254. @property(nonatomic, readwrite) BOOL isPrimary;
  255. /** A list of characteristics that have been discovered in this service. */
  256. @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<ProtosBluetoothCharacteristic*> *characteristicsArray;
  257. /** The number of items in @c characteristicsArray without causing the array to be created. */
  258. @property(nonatomic, readonly) NSUInteger characteristicsArray_Count;
  259. /** A list of included services that have been discovered in this service. */
  260. @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<ProtosBluetoothService*> *includedServicesArray;
  261. /** The number of items in @c includedServicesArray without causing the array to be created. */
  262. @property(nonatomic, readonly) NSUInteger includedServicesArray_Count;
  263. @end
  264. #pragma mark - ProtosBluetoothCharacteristic
  265. typedef GPB_ENUM(ProtosBluetoothCharacteristic_FieldNumber) {
  266. ProtosBluetoothCharacteristic_FieldNumber_Uuid = 1,
  267. ProtosBluetoothCharacteristic_FieldNumber_RemoteId = 2,
  268. ProtosBluetoothCharacteristic_FieldNumber_ServiceUuid = 3,
  269. ProtosBluetoothCharacteristic_FieldNumber_SecondaryServiceUuid = 4,
  270. ProtosBluetoothCharacteristic_FieldNumber_DescriptorsArray = 5,
  271. ProtosBluetoothCharacteristic_FieldNumber_Properties = 6,
  272. ProtosBluetoothCharacteristic_FieldNumber_Value = 7,
  273. };
  274. @interface ProtosBluetoothCharacteristic : GPBMessage
  275. @property(nonatomic, readwrite, copy, null_resettable) NSString *uuid;
  276. @property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId;
  277. /** The service that this characteristic belongs to. */
  278. @property(nonatomic, readwrite, copy, null_resettable) NSString *serviceUuid;
  279. /** The secondary service if nested */
  280. @property(nonatomic, readwrite, copy, null_resettable) NSString *secondaryServiceUuid;
  281. /** A list of descriptors that have been discovered in this characteristic. */
  282. @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<ProtosBluetoothDescriptor*> *descriptorsArray;
  283. /** The number of items in @c descriptorsArray without causing the array to be created. */
  284. @property(nonatomic, readonly) NSUInteger descriptorsArray_Count;
  285. /** The properties of the characteristic. */
  286. @property(nonatomic, readwrite, strong, null_resettable) ProtosCharacteristicProperties *properties;
  287. /** Test to see if @c properties has been set. */
  288. @property(nonatomic, readwrite) BOOL hasProperties;
  289. @property(nonatomic, readwrite, copy, null_resettable) NSData *value;
  290. @end
  291. #pragma mark - ProtosBluetoothDescriptor
  292. typedef GPB_ENUM(ProtosBluetoothDescriptor_FieldNumber) {
  293. ProtosBluetoothDescriptor_FieldNumber_Uuid = 1,
  294. ProtosBluetoothDescriptor_FieldNumber_RemoteId = 2,
  295. ProtosBluetoothDescriptor_FieldNumber_ServiceUuid = 3,
  296. ProtosBluetoothDescriptor_FieldNumber_CharacteristicUuid = 4,
  297. ProtosBluetoothDescriptor_FieldNumber_Value = 5,
  298. };
  299. @interface ProtosBluetoothDescriptor : GPBMessage
  300. @property(nonatomic, readwrite, copy, null_resettable) NSString *uuid;
  301. @property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId;
  302. /** The service that this descriptor belongs to. */
  303. @property(nonatomic, readwrite, copy, null_resettable) NSString *serviceUuid;
  304. /** The characteristic that this descriptor belongs to. */
  305. @property(nonatomic, readwrite, copy, null_resettable) NSString *characteristicUuid;
  306. @property(nonatomic, readwrite, copy, null_resettable) NSData *value;
  307. @end
  308. #pragma mark - ProtosCharacteristicProperties
  309. typedef GPB_ENUM(ProtosCharacteristicProperties_FieldNumber) {
  310. ProtosCharacteristicProperties_FieldNumber_Broadcast = 1,
  311. ProtosCharacteristicProperties_FieldNumber_Read = 2,
  312. ProtosCharacteristicProperties_FieldNumber_WriteWithoutResponse = 3,
  313. ProtosCharacteristicProperties_FieldNumber_Write = 4,
  314. ProtosCharacteristicProperties_FieldNumber_Notify = 5,
  315. ProtosCharacteristicProperties_FieldNumber_Indicate = 6,
  316. ProtosCharacteristicProperties_FieldNumber_AuthenticatedSignedWrites = 7,
  317. ProtosCharacteristicProperties_FieldNumber_ExtendedProperties = 8,
  318. ProtosCharacteristicProperties_FieldNumber_NotifyEncryptionRequired = 9,
  319. ProtosCharacteristicProperties_FieldNumber_IndicateEncryptionRequired = 10,
  320. };
  321. @interface ProtosCharacteristicProperties : GPBMessage
  322. @property(nonatomic, readwrite) BOOL broadcast;
  323. @property(nonatomic, readwrite) BOOL read;
  324. @property(nonatomic, readwrite) BOOL writeWithoutResponse;
  325. @property(nonatomic, readwrite) BOOL write;
  326. @property(nonatomic, readwrite) BOOL notify;
  327. @property(nonatomic, readwrite) BOOL indicate;
  328. @property(nonatomic, readwrite) BOOL authenticatedSignedWrites;
  329. @property(nonatomic, readwrite) BOOL extendedProperties;
  330. @property(nonatomic, readwrite) BOOL notifyEncryptionRequired;
  331. @property(nonatomic, readwrite) BOOL indicateEncryptionRequired;
  332. @end
  333. #pragma mark - ProtosDiscoverServicesResult
  334. typedef GPB_ENUM(ProtosDiscoverServicesResult_FieldNumber) {
  335. ProtosDiscoverServicesResult_FieldNumber_RemoteId = 1,
  336. ProtosDiscoverServicesResult_FieldNumber_ServicesArray = 2,
  337. };
  338. @interface ProtosDiscoverServicesResult : GPBMessage
  339. @property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId;
  340. @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<ProtosBluetoothService*> *servicesArray;
  341. /** The number of items in @c servicesArray without causing the array to be created. */
  342. @property(nonatomic, readonly) NSUInteger servicesArray_Count;
  343. @end
  344. #pragma mark - ProtosReadCharacteristicRequest
  345. typedef GPB_ENUM(ProtosReadCharacteristicRequest_FieldNumber) {
  346. ProtosReadCharacteristicRequest_FieldNumber_RemoteId = 1,
  347. ProtosReadCharacteristicRequest_FieldNumber_CharacteristicUuid = 2,
  348. ProtosReadCharacteristicRequest_FieldNumber_ServiceUuid = 3,
  349. ProtosReadCharacteristicRequest_FieldNumber_SecondaryServiceUuid = 4,
  350. };
  351. @interface ProtosReadCharacteristicRequest : GPBMessage
  352. @property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId;
  353. @property(nonatomic, readwrite, copy, null_resettable) NSString *characteristicUuid;
  354. @property(nonatomic, readwrite, copy, null_resettable) NSString *serviceUuid;
  355. @property(nonatomic, readwrite, copy, null_resettable) NSString *secondaryServiceUuid;
  356. @end
  357. #pragma mark - ProtosReadCharacteristicResponse
  358. typedef GPB_ENUM(ProtosReadCharacteristicResponse_FieldNumber) {
  359. ProtosReadCharacteristicResponse_FieldNumber_RemoteId = 1,
  360. ProtosReadCharacteristicResponse_FieldNumber_Characteristic = 2,
  361. };
  362. @interface ProtosReadCharacteristicResponse : GPBMessage
  363. @property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId;
  364. @property(nonatomic, readwrite, strong, null_resettable) ProtosBluetoothCharacteristic *characteristic;
  365. /** Test to see if @c characteristic has been set. */
  366. @property(nonatomic, readwrite) BOOL hasCharacteristic;
  367. @end
  368. #pragma mark - ProtosReadDescriptorRequest
  369. typedef GPB_ENUM(ProtosReadDescriptorRequest_FieldNumber) {
  370. ProtosReadDescriptorRequest_FieldNumber_RemoteId = 1,
  371. ProtosReadDescriptorRequest_FieldNumber_DescriptorUuid = 2,
  372. ProtosReadDescriptorRequest_FieldNumber_ServiceUuid = 3,
  373. ProtosReadDescriptorRequest_FieldNumber_SecondaryServiceUuid = 4,
  374. ProtosReadDescriptorRequest_FieldNumber_CharacteristicUuid = 5,
  375. };
  376. @interface ProtosReadDescriptorRequest : GPBMessage
  377. @property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId;
  378. @property(nonatomic, readwrite, copy, null_resettable) NSString *descriptorUuid;
  379. @property(nonatomic, readwrite, copy, null_resettable) NSString *serviceUuid;
  380. @property(nonatomic, readwrite, copy, null_resettable) NSString *secondaryServiceUuid;
  381. @property(nonatomic, readwrite, copy, null_resettable) NSString *characteristicUuid;
  382. @end
  383. #pragma mark - ProtosReadDescriptorResponse
  384. typedef GPB_ENUM(ProtosReadDescriptorResponse_FieldNumber) {
  385. ProtosReadDescriptorResponse_FieldNumber_Request = 1,
  386. ProtosReadDescriptorResponse_FieldNumber_Value = 2,
  387. };
  388. @interface ProtosReadDescriptorResponse : GPBMessage
  389. @property(nonatomic, readwrite, strong, null_resettable) ProtosReadDescriptorRequest *request;
  390. /** Test to see if @c request has been set. */
  391. @property(nonatomic, readwrite) BOOL hasRequest;
  392. @property(nonatomic, readwrite, copy, null_resettable) NSData *value;
  393. @end
  394. #pragma mark - ProtosWriteCharacteristicRequest
  395. typedef GPB_ENUM(ProtosWriteCharacteristicRequest_FieldNumber) {
  396. ProtosWriteCharacteristicRequest_FieldNumber_RemoteId = 1,
  397. ProtosWriteCharacteristicRequest_FieldNumber_CharacteristicUuid = 2,
  398. ProtosWriteCharacteristicRequest_FieldNumber_ServiceUuid = 3,
  399. ProtosWriteCharacteristicRequest_FieldNumber_SecondaryServiceUuid = 4,
  400. ProtosWriteCharacteristicRequest_FieldNumber_WriteType = 5,
  401. ProtosWriteCharacteristicRequest_FieldNumber_Value = 6,
  402. };
  403. @interface ProtosWriteCharacteristicRequest : GPBMessage
  404. @property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId;
  405. @property(nonatomic, readwrite, copy, null_resettable) NSString *characteristicUuid;
  406. @property(nonatomic, readwrite, copy, null_resettable) NSString *serviceUuid;
  407. @property(nonatomic, readwrite, copy, null_resettable) NSString *secondaryServiceUuid;
  408. @property(nonatomic, readwrite) ProtosWriteCharacteristicRequest_WriteType writeType;
  409. @property(nonatomic, readwrite, copy, null_resettable) NSData *value;
  410. @end
  411. /**
  412. * Fetches the raw value of a @c ProtosWriteCharacteristicRequest's @c writeType property, even
  413. * if the value was not defined by the enum at the time the code was generated.
  414. **/
  415. int32_t ProtosWriteCharacteristicRequest_WriteType_RawValue(ProtosWriteCharacteristicRequest *message);
  416. /**
  417. * Sets the raw value of an @c ProtosWriteCharacteristicRequest's @c writeType property, allowing
  418. * it to be set to a value that was not defined by the enum at the time the code
  419. * was generated.
  420. **/
  421. void SetProtosWriteCharacteristicRequest_WriteType_RawValue(ProtosWriteCharacteristicRequest *message, int32_t value);
  422. #pragma mark - ProtosWriteCharacteristicResponse
  423. typedef GPB_ENUM(ProtosWriteCharacteristicResponse_FieldNumber) {
  424. ProtosWriteCharacteristicResponse_FieldNumber_Request = 1,
  425. ProtosWriteCharacteristicResponse_FieldNumber_Success = 2,
  426. };
  427. @interface ProtosWriteCharacteristicResponse : GPBMessage
  428. @property(nonatomic, readwrite, strong, null_resettable) ProtosWriteCharacteristicRequest *request;
  429. /** Test to see if @c request has been set. */
  430. @property(nonatomic, readwrite) BOOL hasRequest;
  431. @property(nonatomic, readwrite) BOOL success;
  432. @end
  433. #pragma mark - ProtosWriteDescriptorRequest
  434. typedef GPB_ENUM(ProtosWriteDescriptorRequest_FieldNumber) {
  435. ProtosWriteDescriptorRequest_FieldNumber_RemoteId = 1,
  436. ProtosWriteDescriptorRequest_FieldNumber_DescriptorUuid = 2,
  437. ProtosWriteDescriptorRequest_FieldNumber_ServiceUuid = 3,
  438. ProtosWriteDescriptorRequest_FieldNumber_SecondaryServiceUuid = 4,
  439. ProtosWriteDescriptorRequest_FieldNumber_CharacteristicUuid = 5,
  440. ProtosWriteDescriptorRequest_FieldNumber_Value = 6,
  441. };
  442. @interface ProtosWriteDescriptorRequest : GPBMessage
  443. @property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId;
  444. @property(nonatomic, readwrite, copy, null_resettable) NSString *descriptorUuid;
  445. @property(nonatomic, readwrite, copy, null_resettable) NSString *serviceUuid;
  446. @property(nonatomic, readwrite, copy, null_resettable) NSString *secondaryServiceUuid;
  447. @property(nonatomic, readwrite, copy, null_resettable) NSString *characteristicUuid;
  448. @property(nonatomic, readwrite, copy, null_resettable) NSData *value;
  449. @end
  450. #pragma mark - ProtosWriteDescriptorResponse
  451. typedef GPB_ENUM(ProtosWriteDescriptorResponse_FieldNumber) {
  452. ProtosWriteDescriptorResponse_FieldNumber_Request = 1,
  453. ProtosWriteDescriptorResponse_FieldNumber_Success = 2,
  454. };
  455. @interface ProtosWriteDescriptorResponse : GPBMessage
  456. @property(nonatomic, readwrite, strong, null_resettable) ProtosWriteDescriptorRequest *request;
  457. /** Test to see if @c request has been set. */
  458. @property(nonatomic, readwrite) BOOL hasRequest;
  459. @property(nonatomic, readwrite) BOOL success;
  460. @end
  461. #pragma mark - ProtosSetNotificationRequest
  462. typedef GPB_ENUM(ProtosSetNotificationRequest_FieldNumber) {
  463. ProtosSetNotificationRequest_FieldNumber_RemoteId = 1,
  464. ProtosSetNotificationRequest_FieldNumber_ServiceUuid = 2,
  465. ProtosSetNotificationRequest_FieldNumber_SecondaryServiceUuid = 3,
  466. ProtosSetNotificationRequest_FieldNumber_CharacteristicUuid = 4,
  467. ProtosSetNotificationRequest_FieldNumber_Enable = 5,
  468. };
  469. @interface ProtosSetNotificationRequest : GPBMessage
  470. @property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId;
  471. @property(nonatomic, readwrite, copy, null_resettable) NSString *serviceUuid;
  472. @property(nonatomic, readwrite, copy, null_resettable) NSString *secondaryServiceUuid;
  473. @property(nonatomic, readwrite, copy, null_resettable) NSString *characteristicUuid;
  474. @property(nonatomic, readwrite) BOOL enable;
  475. @end
  476. #pragma mark - ProtosSetNotificationResponse
  477. typedef GPB_ENUM(ProtosSetNotificationResponse_FieldNumber) {
  478. ProtosSetNotificationResponse_FieldNumber_RemoteId = 1,
  479. ProtosSetNotificationResponse_FieldNumber_Characteristic = 2,
  480. ProtosSetNotificationResponse_FieldNumber_Success = 3,
  481. };
  482. @interface ProtosSetNotificationResponse : GPBMessage
  483. @property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId;
  484. @property(nonatomic, readwrite, strong, null_resettable) ProtosBluetoothCharacteristic *characteristic;
  485. /** Test to see if @c characteristic has been set. */
  486. @property(nonatomic, readwrite) BOOL hasCharacteristic;
  487. @property(nonatomic, readwrite) BOOL success;
  488. @end
  489. #pragma mark - ProtosOnCharacteristicChanged
  490. typedef GPB_ENUM(ProtosOnCharacteristicChanged_FieldNumber) {
  491. ProtosOnCharacteristicChanged_FieldNumber_RemoteId = 1,
  492. ProtosOnCharacteristicChanged_FieldNumber_Characteristic = 2,
  493. };
  494. @interface ProtosOnCharacteristicChanged : GPBMessage
  495. @property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId;
  496. @property(nonatomic, readwrite, strong, null_resettable) ProtosBluetoothCharacteristic *characteristic;
  497. /** Test to see if @c characteristic has been set. */
  498. @property(nonatomic, readwrite) BOOL hasCharacteristic;
  499. @end
  500. #pragma mark - ProtosDeviceStateResponse
  501. typedef GPB_ENUM(ProtosDeviceStateResponse_FieldNumber) {
  502. ProtosDeviceStateResponse_FieldNumber_RemoteId = 1,
  503. ProtosDeviceStateResponse_FieldNumber_State = 2,
  504. };
  505. @interface ProtosDeviceStateResponse : GPBMessage
  506. @property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId;
  507. @property(nonatomic, readwrite) ProtosDeviceStateResponse_BluetoothDeviceState state;
  508. @end
  509. /**
  510. * Fetches the raw value of a @c ProtosDeviceStateResponse's @c state property, even
  511. * if the value was not defined by the enum at the time the code was generated.
  512. **/
  513. int32_t ProtosDeviceStateResponse_State_RawValue(ProtosDeviceStateResponse *message);
  514. /**
  515. * Sets the raw value of an @c ProtosDeviceStateResponse's @c state property, allowing
  516. * it to be set to a value that was not defined by the enum at the time the code
  517. * was generated.
  518. **/
  519. void SetProtosDeviceStateResponse_State_RawValue(ProtosDeviceStateResponse *message, int32_t value);
  520. #pragma mark - ProtosConnectedDevicesResponse
  521. typedef GPB_ENUM(ProtosConnectedDevicesResponse_FieldNumber) {
  522. ProtosConnectedDevicesResponse_FieldNumber_DevicesArray = 1,
  523. };
  524. @interface ProtosConnectedDevicesResponse : GPBMessage
  525. @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<ProtosBluetoothDevice*> *devicesArray;
  526. /** The number of items in @c devicesArray without causing the array to be created. */
  527. @property(nonatomic, readonly) NSUInteger devicesArray_Count;
  528. @end
  529. #pragma mark - ProtosMtuSizeRequest
  530. typedef GPB_ENUM(ProtosMtuSizeRequest_FieldNumber) {
  531. ProtosMtuSizeRequest_FieldNumber_RemoteId = 1,
  532. ProtosMtuSizeRequest_FieldNumber_Mtu = 2,
  533. };
  534. @interface ProtosMtuSizeRequest : GPBMessage
  535. @property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId;
  536. @property(nonatomic, readwrite) uint32_t mtu;
  537. @end
  538. #pragma mark - ProtosMtuSizeResponse
  539. typedef GPB_ENUM(ProtosMtuSizeResponse_FieldNumber) {
  540. ProtosMtuSizeResponse_FieldNumber_RemoteId = 1,
  541. ProtosMtuSizeResponse_FieldNumber_Mtu = 2,
  542. };
  543. @interface ProtosMtuSizeResponse : GPBMessage
  544. @property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId;
  545. @property(nonatomic, readwrite) uint32_t mtu;
  546. @end
  547. NS_ASSUME_NONNULL_END
  548. CF_EXTERN_C_END
  549. #pragma clang diagnostic pop
  550. // @@protoc_insertion_point(global_scope)