esp_local_ctrl.pb-c.c 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942
  1. /* Generated by the protocol buffer compiler. DO NOT EDIT! */
  2. /* Generated from: esp_local_ctrl.proto */
  3. /* Do not generate deprecated warnings for self */
  4. #ifndef PROTOBUF_C__NO_DEPRECATED
  5. #define PROTOBUF_C__NO_DEPRECATED
  6. #endif
  7. #include "esp_local_ctrl.pb-c.h"
  8. void cmd_get_property_count__init
  9. (CmdGetPropertyCount *message)
  10. {
  11. static const CmdGetPropertyCount init_value = CMD_GET_PROPERTY_COUNT__INIT;
  12. *message = init_value;
  13. }
  14. size_t cmd_get_property_count__get_packed_size
  15. (const CmdGetPropertyCount *message)
  16. {
  17. assert(message->base.descriptor == &cmd_get_property_count__descriptor);
  18. return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
  19. }
  20. size_t cmd_get_property_count__pack
  21. (const CmdGetPropertyCount *message,
  22. uint8_t *out)
  23. {
  24. assert(message->base.descriptor == &cmd_get_property_count__descriptor);
  25. return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
  26. }
  27. size_t cmd_get_property_count__pack_to_buffer
  28. (const CmdGetPropertyCount *message,
  29. ProtobufCBuffer *buffer)
  30. {
  31. assert(message->base.descriptor == &cmd_get_property_count__descriptor);
  32. return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
  33. }
  34. CmdGetPropertyCount *
  35. cmd_get_property_count__unpack
  36. (ProtobufCAllocator *allocator,
  37. size_t len,
  38. const uint8_t *data)
  39. {
  40. return (CmdGetPropertyCount *)
  41. protobuf_c_message_unpack (&cmd_get_property_count__descriptor,
  42. allocator, len, data);
  43. }
  44. void cmd_get_property_count__free_unpacked
  45. (CmdGetPropertyCount *message,
  46. ProtobufCAllocator *allocator)
  47. {
  48. if(!message)
  49. return;
  50. assert(message->base.descriptor == &cmd_get_property_count__descriptor);
  51. protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
  52. }
  53. void resp_get_property_count__init
  54. (RespGetPropertyCount *message)
  55. {
  56. static const RespGetPropertyCount init_value = RESP_GET_PROPERTY_COUNT__INIT;
  57. *message = init_value;
  58. }
  59. size_t resp_get_property_count__get_packed_size
  60. (const RespGetPropertyCount *message)
  61. {
  62. assert(message->base.descriptor == &resp_get_property_count__descriptor);
  63. return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
  64. }
  65. size_t resp_get_property_count__pack
  66. (const RespGetPropertyCount *message,
  67. uint8_t *out)
  68. {
  69. assert(message->base.descriptor == &resp_get_property_count__descriptor);
  70. return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
  71. }
  72. size_t resp_get_property_count__pack_to_buffer
  73. (const RespGetPropertyCount *message,
  74. ProtobufCBuffer *buffer)
  75. {
  76. assert(message->base.descriptor == &resp_get_property_count__descriptor);
  77. return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
  78. }
  79. RespGetPropertyCount *
  80. resp_get_property_count__unpack
  81. (ProtobufCAllocator *allocator,
  82. size_t len,
  83. const uint8_t *data)
  84. {
  85. return (RespGetPropertyCount *)
  86. protobuf_c_message_unpack (&resp_get_property_count__descriptor,
  87. allocator, len, data);
  88. }
  89. void resp_get_property_count__free_unpacked
  90. (RespGetPropertyCount *message,
  91. ProtobufCAllocator *allocator)
  92. {
  93. if(!message)
  94. return;
  95. assert(message->base.descriptor == &resp_get_property_count__descriptor);
  96. protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
  97. }
  98. void property_info__init
  99. (PropertyInfo *message)
  100. {
  101. static const PropertyInfo init_value = PROPERTY_INFO__INIT;
  102. *message = init_value;
  103. }
  104. size_t property_info__get_packed_size
  105. (const PropertyInfo *message)
  106. {
  107. assert(message->base.descriptor == &property_info__descriptor);
  108. return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
  109. }
  110. size_t property_info__pack
  111. (const PropertyInfo *message,
  112. uint8_t *out)
  113. {
  114. assert(message->base.descriptor == &property_info__descriptor);
  115. return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
  116. }
  117. size_t property_info__pack_to_buffer
  118. (const PropertyInfo *message,
  119. ProtobufCBuffer *buffer)
  120. {
  121. assert(message->base.descriptor == &property_info__descriptor);
  122. return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
  123. }
  124. PropertyInfo *
  125. property_info__unpack
  126. (ProtobufCAllocator *allocator,
  127. size_t len,
  128. const uint8_t *data)
  129. {
  130. return (PropertyInfo *)
  131. protobuf_c_message_unpack (&property_info__descriptor,
  132. allocator, len, data);
  133. }
  134. void property_info__free_unpacked
  135. (PropertyInfo *message,
  136. ProtobufCAllocator *allocator)
  137. {
  138. if(!message)
  139. return;
  140. assert(message->base.descriptor == &property_info__descriptor);
  141. protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
  142. }
  143. void cmd_get_property_values__init
  144. (CmdGetPropertyValues *message)
  145. {
  146. static const CmdGetPropertyValues init_value = CMD_GET_PROPERTY_VALUES__INIT;
  147. *message = init_value;
  148. }
  149. size_t cmd_get_property_values__get_packed_size
  150. (const CmdGetPropertyValues *message)
  151. {
  152. assert(message->base.descriptor == &cmd_get_property_values__descriptor);
  153. return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
  154. }
  155. size_t cmd_get_property_values__pack
  156. (const CmdGetPropertyValues *message,
  157. uint8_t *out)
  158. {
  159. assert(message->base.descriptor == &cmd_get_property_values__descriptor);
  160. return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
  161. }
  162. size_t cmd_get_property_values__pack_to_buffer
  163. (const CmdGetPropertyValues *message,
  164. ProtobufCBuffer *buffer)
  165. {
  166. assert(message->base.descriptor == &cmd_get_property_values__descriptor);
  167. return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
  168. }
  169. CmdGetPropertyValues *
  170. cmd_get_property_values__unpack
  171. (ProtobufCAllocator *allocator,
  172. size_t len,
  173. const uint8_t *data)
  174. {
  175. return (CmdGetPropertyValues *)
  176. protobuf_c_message_unpack (&cmd_get_property_values__descriptor,
  177. allocator, len, data);
  178. }
  179. void cmd_get_property_values__free_unpacked
  180. (CmdGetPropertyValues *message,
  181. ProtobufCAllocator *allocator)
  182. {
  183. if(!message)
  184. return;
  185. assert(message->base.descriptor == &cmd_get_property_values__descriptor);
  186. protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
  187. }
  188. void resp_get_property_values__init
  189. (RespGetPropertyValues *message)
  190. {
  191. static const RespGetPropertyValues init_value = RESP_GET_PROPERTY_VALUES__INIT;
  192. *message = init_value;
  193. }
  194. size_t resp_get_property_values__get_packed_size
  195. (const RespGetPropertyValues *message)
  196. {
  197. assert(message->base.descriptor == &resp_get_property_values__descriptor);
  198. return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
  199. }
  200. size_t resp_get_property_values__pack
  201. (const RespGetPropertyValues *message,
  202. uint8_t *out)
  203. {
  204. assert(message->base.descriptor == &resp_get_property_values__descriptor);
  205. return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
  206. }
  207. size_t resp_get_property_values__pack_to_buffer
  208. (const RespGetPropertyValues *message,
  209. ProtobufCBuffer *buffer)
  210. {
  211. assert(message->base.descriptor == &resp_get_property_values__descriptor);
  212. return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
  213. }
  214. RespGetPropertyValues *
  215. resp_get_property_values__unpack
  216. (ProtobufCAllocator *allocator,
  217. size_t len,
  218. const uint8_t *data)
  219. {
  220. return (RespGetPropertyValues *)
  221. protobuf_c_message_unpack (&resp_get_property_values__descriptor,
  222. allocator, len, data);
  223. }
  224. void resp_get_property_values__free_unpacked
  225. (RespGetPropertyValues *message,
  226. ProtobufCAllocator *allocator)
  227. {
  228. if(!message)
  229. return;
  230. assert(message->base.descriptor == &resp_get_property_values__descriptor);
  231. protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
  232. }
  233. void property_value__init
  234. (PropertyValue *message)
  235. {
  236. static const PropertyValue init_value = PROPERTY_VALUE__INIT;
  237. *message = init_value;
  238. }
  239. size_t property_value__get_packed_size
  240. (const PropertyValue *message)
  241. {
  242. assert(message->base.descriptor == &property_value__descriptor);
  243. return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
  244. }
  245. size_t property_value__pack
  246. (const PropertyValue *message,
  247. uint8_t *out)
  248. {
  249. assert(message->base.descriptor == &property_value__descriptor);
  250. return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
  251. }
  252. size_t property_value__pack_to_buffer
  253. (const PropertyValue *message,
  254. ProtobufCBuffer *buffer)
  255. {
  256. assert(message->base.descriptor == &property_value__descriptor);
  257. return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
  258. }
  259. PropertyValue *
  260. property_value__unpack
  261. (ProtobufCAllocator *allocator,
  262. size_t len,
  263. const uint8_t *data)
  264. {
  265. return (PropertyValue *)
  266. protobuf_c_message_unpack (&property_value__descriptor,
  267. allocator, len, data);
  268. }
  269. void property_value__free_unpacked
  270. (PropertyValue *message,
  271. ProtobufCAllocator *allocator)
  272. {
  273. if(!message)
  274. return;
  275. assert(message->base.descriptor == &property_value__descriptor);
  276. protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
  277. }
  278. void cmd_set_property_values__init
  279. (CmdSetPropertyValues *message)
  280. {
  281. static const CmdSetPropertyValues init_value = CMD_SET_PROPERTY_VALUES__INIT;
  282. *message = init_value;
  283. }
  284. size_t cmd_set_property_values__get_packed_size
  285. (const CmdSetPropertyValues *message)
  286. {
  287. assert(message->base.descriptor == &cmd_set_property_values__descriptor);
  288. return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
  289. }
  290. size_t cmd_set_property_values__pack
  291. (const CmdSetPropertyValues *message,
  292. uint8_t *out)
  293. {
  294. assert(message->base.descriptor == &cmd_set_property_values__descriptor);
  295. return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
  296. }
  297. size_t cmd_set_property_values__pack_to_buffer
  298. (const CmdSetPropertyValues *message,
  299. ProtobufCBuffer *buffer)
  300. {
  301. assert(message->base.descriptor == &cmd_set_property_values__descriptor);
  302. return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
  303. }
  304. CmdSetPropertyValues *
  305. cmd_set_property_values__unpack
  306. (ProtobufCAllocator *allocator,
  307. size_t len,
  308. const uint8_t *data)
  309. {
  310. return (CmdSetPropertyValues *)
  311. protobuf_c_message_unpack (&cmd_set_property_values__descriptor,
  312. allocator, len, data);
  313. }
  314. void cmd_set_property_values__free_unpacked
  315. (CmdSetPropertyValues *message,
  316. ProtobufCAllocator *allocator)
  317. {
  318. if(!message)
  319. return;
  320. assert(message->base.descriptor == &cmd_set_property_values__descriptor);
  321. protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
  322. }
  323. void resp_set_property_values__init
  324. (RespSetPropertyValues *message)
  325. {
  326. static const RespSetPropertyValues init_value = RESP_SET_PROPERTY_VALUES__INIT;
  327. *message = init_value;
  328. }
  329. size_t resp_set_property_values__get_packed_size
  330. (const RespSetPropertyValues *message)
  331. {
  332. assert(message->base.descriptor == &resp_set_property_values__descriptor);
  333. return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
  334. }
  335. size_t resp_set_property_values__pack
  336. (const RespSetPropertyValues *message,
  337. uint8_t *out)
  338. {
  339. assert(message->base.descriptor == &resp_set_property_values__descriptor);
  340. return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
  341. }
  342. size_t resp_set_property_values__pack_to_buffer
  343. (const RespSetPropertyValues *message,
  344. ProtobufCBuffer *buffer)
  345. {
  346. assert(message->base.descriptor == &resp_set_property_values__descriptor);
  347. return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
  348. }
  349. RespSetPropertyValues *
  350. resp_set_property_values__unpack
  351. (ProtobufCAllocator *allocator,
  352. size_t len,
  353. const uint8_t *data)
  354. {
  355. return (RespSetPropertyValues *)
  356. protobuf_c_message_unpack (&resp_set_property_values__descriptor,
  357. allocator, len, data);
  358. }
  359. void resp_set_property_values__free_unpacked
  360. (RespSetPropertyValues *message,
  361. ProtobufCAllocator *allocator)
  362. {
  363. if(!message)
  364. return;
  365. assert(message->base.descriptor == &resp_set_property_values__descriptor);
  366. protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
  367. }
  368. void local_ctrl_message__init
  369. (LocalCtrlMessage *message)
  370. {
  371. static const LocalCtrlMessage init_value = LOCAL_CTRL_MESSAGE__INIT;
  372. *message = init_value;
  373. }
  374. size_t local_ctrl_message__get_packed_size
  375. (const LocalCtrlMessage *message)
  376. {
  377. assert(message->base.descriptor == &local_ctrl_message__descriptor);
  378. return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
  379. }
  380. size_t local_ctrl_message__pack
  381. (const LocalCtrlMessage *message,
  382. uint8_t *out)
  383. {
  384. assert(message->base.descriptor == &local_ctrl_message__descriptor);
  385. return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
  386. }
  387. size_t local_ctrl_message__pack_to_buffer
  388. (const LocalCtrlMessage *message,
  389. ProtobufCBuffer *buffer)
  390. {
  391. assert(message->base.descriptor == &local_ctrl_message__descriptor);
  392. return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
  393. }
  394. LocalCtrlMessage *
  395. local_ctrl_message__unpack
  396. (ProtobufCAllocator *allocator,
  397. size_t len,
  398. const uint8_t *data)
  399. {
  400. return (LocalCtrlMessage *)
  401. protobuf_c_message_unpack (&local_ctrl_message__descriptor,
  402. allocator, len, data);
  403. }
  404. void local_ctrl_message__free_unpacked
  405. (LocalCtrlMessage *message,
  406. ProtobufCAllocator *allocator)
  407. {
  408. if(!message)
  409. return;
  410. assert(message->base.descriptor == &local_ctrl_message__descriptor);
  411. protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
  412. }
  413. #define cmd_get_property_count__field_descriptors NULL
  414. #define cmd_get_property_count__field_indices_by_name NULL
  415. #define cmd_get_property_count__number_ranges NULL
  416. const ProtobufCMessageDescriptor cmd_get_property_count__descriptor =
  417. {
  418. PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  419. "CmdGetPropertyCount",
  420. "CmdGetPropertyCount",
  421. "CmdGetPropertyCount",
  422. "",
  423. sizeof(CmdGetPropertyCount),
  424. 0,
  425. cmd_get_property_count__field_descriptors,
  426. cmd_get_property_count__field_indices_by_name,
  427. 0, cmd_get_property_count__number_ranges,
  428. (ProtobufCMessageInit) cmd_get_property_count__init,
  429. NULL,NULL,NULL /* reserved[123] */
  430. };
  431. static const ProtobufCFieldDescriptor resp_get_property_count__field_descriptors[2] =
  432. {
  433. {
  434. "status",
  435. 1,
  436. PROTOBUF_C_LABEL_NONE,
  437. PROTOBUF_C_TYPE_ENUM,
  438. 0, /* quantifier_offset */
  439. offsetof(RespGetPropertyCount, status),
  440. &status__descriptor,
  441. NULL,
  442. 0, /* flags */
  443. 0,NULL,NULL /* reserved1,reserved2, etc */
  444. },
  445. {
  446. "count",
  447. 2,
  448. PROTOBUF_C_LABEL_NONE,
  449. PROTOBUF_C_TYPE_UINT32,
  450. 0, /* quantifier_offset */
  451. offsetof(RespGetPropertyCount, count),
  452. NULL,
  453. NULL,
  454. 0, /* flags */
  455. 0,NULL,NULL /* reserved1,reserved2, etc */
  456. },
  457. };
  458. static const unsigned resp_get_property_count__field_indices_by_name[] = {
  459. 1, /* field[1] = count */
  460. 0, /* field[0] = status */
  461. };
  462. static const ProtobufCIntRange resp_get_property_count__number_ranges[1 + 1] =
  463. {
  464. { 1, 0 },
  465. { 0, 2 }
  466. };
  467. const ProtobufCMessageDescriptor resp_get_property_count__descriptor =
  468. {
  469. PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  470. "RespGetPropertyCount",
  471. "RespGetPropertyCount",
  472. "RespGetPropertyCount",
  473. "",
  474. sizeof(RespGetPropertyCount),
  475. 2,
  476. resp_get_property_count__field_descriptors,
  477. resp_get_property_count__field_indices_by_name,
  478. 1, resp_get_property_count__number_ranges,
  479. (ProtobufCMessageInit) resp_get_property_count__init,
  480. NULL,NULL,NULL /* reserved[123] */
  481. };
  482. static const ProtobufCFieldDescriptor property_info__field_descriptors[5] =
  483. {
  484. {
  485. "status",
  486. 1,
  487. PROTOBUF_C_LABEL_NONE,
  488. PROTOBUF_C_TYPE_ENUM,
  489. 0, /* quantifier_offset */
  490. offsetof(PropertyInfo, status),
  491. &status__descriptor,
  492. NULL,
  493. 0, /* flags */
  494. 0,NULL,NULL /* reserved1,reserved2, etc */
  495. },
  496. {
  497. "name",
  498. 2,
  499. PROTOBUF_C_LABEL_NONE,
  500. PROTOBUF_C_TYPE_STRING,
  501. 0, /* quantifier_offset */
  502. offsetof(PropertyInfo, name),
  503. NULL,
  504. &protobuf_c_empty_string,
  505. 0, /* flags */
  506. 0,NULL,NULL /* reserved1,reserved2, etc */
  507. },
  508. {
  509. "type",
  510. 3,
  511. PROTOBUF_C_LABEL_NONE,
  512. PROTOBUF_C_TYPE_UINT32,
  513. 0, /* quantifier_offset */
  514. offsetof(PropertyInfo, type),
  515. NULL,
  516. NULL,
  517. 0, /* flags */
  518. 0,NULL,NULL /* reserved1,reserved2, etc */
  519. },
  520. {
  521. "flags",
  522. 4,
  523. PROTOBUF_C_LABEL_NONE,
  524. PROTOBUF_C_TYPE_UINT32,
  525. 0, /* quantifier_offset */
  526. offsetof(PropertyInfo, flags),
  527. NULL,
  528. NULL,
  529. 0, /* flags */
  530. 0,NULL,NULL /* reserved1,reserved2, etc */
  531. },
  532. {
  533. "value",
  534. 5,
  535. PROTOBUF_C_LABEL_NONE,
  536. PROTOBUF_C_TYPE_BYTES,
  537. 0, /* quantifier_offset */
  538. offsetof(PropertyInfo, value),
  539. NULL,
  540. NULL,
  541. 0, /* flags */
  542. 0,NULL,NULL /* reserved1,reserved2, etc */
  543. },
  544. };
  545. static const unsigned property_info__field_indices_by_name[] = {
  546. 3, /* field[3] = flags */
  547. 1, /* field[1] = name */
  548. 0, /* field[0] = status */
  549. 2, /* field[2] = type */
  550. 4, /* field[4] = value */
  551. };
  552. static const ProtobufCIntRange property_info__number_ranges[1 + 1] =
  553. {
  554. { 1, 0 },
  555. { 0, 5 }
  556. };
  557. const ProtobufCMessageDescriptor property_info__descriptor =
  558. {
  559. PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  560. "PropertyInfo",
  561. "PropertyInfo",
  562. "PropertyInfo",
  563. "",
  564. sizeof(PropertyInfo),
  565. 5,
  566. property_info__field_descriptors,
  567. property_info__field_indices_by_name,
  568. 1, property_info__number_ranges,
  569. (ProtobufCMessageInit) property_info__init,
  570. NULL,NULL,NULL /* reserved[123] */
  571. };
  572. static const ProtobufCFieldDescriptor cmd_get_property_values__field_descriptors[1] =
  573. {
  574. {
  575. "indices",
  576. 1,
  577. PROTOBUF_C_LABEL_REPEATED,
  578. PROTOBUF_C_TYPE_UINT32,
  579. offsetof(CmdGetPropertyValues, n_indices),
  580. offsetof(CmdGetPropertyValues, indices),
  581. NULL,
  582. NULL,
  583. 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */
  584. 0,NULL,NULL /* reserved1,reserved2, etc */
  585. },
  586. };
  587. static const unsigned cmd_get_property_values__field_indices_by_name[] = {
  588. 0, /* field[0] = indices */
  589. };
  590. static const ProtobufCIntRange cmd_get_property_values__number_ranges[1 + 1] =
  591. {
  592. { 1, 0 },
  593. { 0, 1 }
  594. };
  595. const ProtobufCMessageDescriptor cmd_get_property_values__descriptor =
  596. {
  597. PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  598. "CmdGetPropertyValues",
  599. "CmdGetPropertyValues",
  600. "CmdGetPropertyValues",
  601. "",
  602. sizeof(CmdGetPropertyValues),
  603. 1,
  604. cmd_get_property_values__field_descriptors,
  605. cmd_get_property_values__field_indices_by_name,
  606. 1, cmd_get_property_values__number_ranges,
  607. (ProtobufCMessageInit) cmd_get_property_values__init,
  608. NULL,NULL,NULL /* reserved[123] */
  609. };
  610. static const ProtobufCFieldDescriptor resp_get_property_values__field_descriptors[2] =
  611. {
  612. {
  613. "status",
  614. 1,
  615. PROTOBUF_C_LABEL_NONE,
  616. PROTOBUF_C_TYPE_ENUM,
  617. 0, /* quantifier_offset */
  618. offsetof(RespGetPropertyValues, status),
  619. &status__descriptor,
  620. NULL,
  621. 0, /* flags */
  622. 0,NULL,NULL /* reserved1,reserved2, etc */
  623. },
  624. {
  625. "props",
  626. 2,
  627. PROTOBUF_C_LABEL_REPEATED,
  628. PROTOBUF_C_TYPE_MESSAGE,
  629. offsetof(RespGetPropertyValues, n_props),
  630. offsetof(RespGetPropertyValues, props),
  631. &property_info__descriptor,
  632. NULL,
  633. 0, /* flags */
  634. 0,NULL,NULL /* reserved1,reserved2, etc */
  635. },
  636. };
  637. static const unsigned resp_get_property_values__field_indices_by_name[] = {
  638. 1, /* field[1] = props */
  639. 0, /* field[0] = status */
  640. };
  641. static const ProtobufCIntRange resp_get_property_values__number_ranges[1 + 1] =
  642. {
  643. { 1, 0 },
  644. { 0, 2 }
  645. };
  646. const ProtobufCMessageDescriptor resp_get_property_values__descriptor =
  647. {
  648. PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  649. "RespGetPropertyValues",
  650. "RespGetPropertyValues",
  651. "RespGetPropertyValues",
  652. "",
  653. sizeof(RespGetPropertyValues),
  654. 2,
  655. resp_get_property_values__field_descriptors,
  656. resp_get_property_values__field_indices_by_name,
  657. 1, resp_get_property_values__number_ranges,
  658. (ProtobufCMessageInit) resp_get_property_values__init,
  659. NULL,NULL,NULL /* reserved[123] */
  660. };
  661. static const ProtobufCFieldDescriptor property_value__field_descriptors[2] =
  662. {
  663. {
  664. "index",
  665. 1,
  666. PROTOBUF_C_LABEL_NONE,
  667. PROTOBUF_C_TYPE_UINT32,
  668. 0, /* quantifier_offset */
  669. offsetof(PropertyValue, index),
  670. NULL,
  671. NULL,
  672. 0, /* flags */
  673. 0,NULL,NULL /* reserved1,reserved2, etc */
  674. },
  675. {
  676. "value",
  677. 2,
  678. PROTOBUF_C_LABEL_NONE,
  679. PROTOBUF_C_TYPE_BYTES,
  680. 0, /* quantifier_offset */
  681. offsetof(PropertyValue, value),
  682. NULL,
  683. NULL,
  684. 0, /* flags */
  685. 0,NULL,NULL /* reserved1,reserved2, etc */
  686. },
  687. };
  688. static const unsigned property_value__field_indices_by_name[] = {
  689. 0, /* field[0] = index */
  690. 1, /* field[1] = value */
  691. };
  692. static const ProtobufCIntRange property_value__number_ranges[1 + 1] =
  693. {
  694. { 1, 0 },
  695. { 0, 2 }
  696. };
  697. const ProtobufCMessageDescriptor property_value__descriptor =
  698. {
  699. PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  700. "PropertyValue",
  701. "PropertyValue",
  702. "PropertyValue",
  703. "",
  704. sizeof(PropertyValue),
  705. 2,
  706. property_value__field_descriptors,
  707. property_value__field_indices_by_name,
  708. 1, property_value__number_ranges,
  709. (ProtobufCMessageInit) property_value__init,
  710. NULL,NULL,NULL /* reserved[123] */
  711. };
  712. static const ProtobufCFieldDescriptor cmd_set_property_values__field_descriptors[1] =
  713. {
  714. {
  715. "props",
  716. 1,
  717. PROTOBUF_C_LABEL_REPEATED,
  718. PROTOBUF_C_TYPE_MESSAGE,
  719. offsetof(CmdSetPropertyValues, n_props),
  720. offsetof(CmdSetPropertyValues, props),
  721. &property_value__descriptor,
  722. NULL,
  723. 0, /* flags */
  724. 0,NULL,NULL /* reserved1,reserved2, etc */
  725. },
  726. };
  727. static const unsigned cmd_set_property_values__field_indices_by_name[] = {
  728. 0, /* field[0] = props */
  729. };
  730. static const ProtobufCIntRange cmd_set_property_values__number_ranges[1 + 1] =
  731. {
  732. { 1, 0 },
  733. { 0, 1 }
  734. };
  735. const ProtobufCMessageDescriptor cmd_set_property_values__descriptor =
  736. {
  737. PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  738. "CmdSetPropertyValues",
  739. "CmdSetPropertyValues",
  740. "CmdSetPropertyValues",
  741. "",
  742. sizeof(CmdSetPropertyValues),
  743. 1,
  744. cmd_set_property_values__field_descriptors,
  745. cmd_set_property_values__field_indices_by_name,
  746. 1, cmd_set_property_values__number_ranges,
  747. (ProtobufCMessageInit) cmd_set_property_values__init,
  748. NULL,NULL,NULL /* reserved[123] */
  749. };
  750. static const ProtobufCFieldDescriptor resp_set_property_values__field_descriptors[1] =
  751. {
  752. {
  753. "status",
  754. 1,
  755. PROTOBUF_C_LABEL_NONE,
  756. PROTOBUF_C_TYPE_ENUM,
  757. 0, /* quantifier_offset */
  758. offsetof(RespSetPropertyValues, status),
  759. &status__descriptor,
  760. NULL,
  761. 0, /* flags */
  762. 0,NULL,NULL /* reserved1,reserved2, etc */
  763. },
  764. };
  765. static const unsigned resp_set_property_values__field_indices_by_name[] = {
  766. 0, /* field[0] = status */
  767. };
  768. static const ProtobufCIntRange resp_set_property_values__number_ranges[1 + 1] =
  769. {
  770. { 1, 0 },
  771. { 0, 1 }
  772. };
  773. const ProtobufCMessageDescriptor resp_set_property_values__descriptor =
  774. {
  775. PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  776. "RespSetPropertyValues",
  777. "RespSetPropertyValues",
  778. "RespSetPropertyValues",
  779. "",
  780. sizeof(RespSetPropertyValues),
  781. 1,
  782. resp_set_property_values__field_descriptors,
  783. resp_set_property_values__field_indices_by_name,
  784. 1, resp_set_property_values__number_ranges,
  785. (ProtobufCMessageInit) resp_set_property_values__init,
  786. NULL,NULL,NULL /* reserved[123] */
  787. };
  788. static const ProtobufCFieldDescriptor local_ctrl_message__field_descriptors[7] =
  789. {
  790. {
  791. "msg",
  792. 1,
  793. PROTOBUF_C_LABEL_NONE,
  794. PROTOBUF_C_TYPE_ENUM,
  795. 0, /* quantifier_offset */
  796. offsetof(LocalCtrlMessage, msg),
  797. &local_ctrl_msg_type__descriptor,
  798. NULL,
  799. 0, /* flags */
  800. 0,NULL,NULL /* reserved1,reserved2, etc */
  801. },
  802. {
  803. "cmd_get_prop_count",
  804. 10,
  805. PROTOBUF_C_LABEL_NONE,
  806. PROTOBUF_C_TYPE_MESSAGE,
  807. offsetof(LocalCtrlMessage, payload_case),
  808. offsetof(LocalCtrlMessage, cmd_get_prop_count),
  809. &cmd_get_property_count__descriptor,
  810. NULL,
  811. 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
  812. 0,NULL,NULL /* reserved1,reserved2, etc */
  813. },
  814. {
  815. "resp_get_prop_count",
  816. 11,
  817. PROTOBUF_C_LABEL_NONE,
  818. PROTOBUF_C_TYPE_MESSAGE,
  819. offsetof(LocalCtrlMessage, payload_case),
  820. offsetof(LocalCtrlMessage, resp_get_prop_count),
  821. &resp_get_property_count__descriptor,
  822. NULL,
  823. 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
  824. 0,NULL,NULL /* reserved1,reserved2, etc */
  825. },
  826. {
  827. "cmd_get_prop_vals",
  828. 12,
  829. PROTOBUF_C_LABEL_NONE,
  830. PROTOBUF_C_TYPE_MESSAGE,
  831. offsetof(LocalCtrlMessage, payload_case),
  832. offsetof(LocalCtrlMessage, cmd_get_prop_vals),
  833. &cmd_get_property_values__descriptor,
  834. NULL,
  835. 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
  836. 0,NULL,NULL /* reserved1,reserved2, etc */
  837. },
  838. {
  839. "resp_get_prop_vals",
  840. 13,
  841. PROTOBUF_C_LABEL_NONE,
  842. PROTOBUF_C_TYPE_MESSAGE,
  843. offsetof(LocalCtrlMessage, payload_case),
  844. offsetof(LocalCtrlMessage, resp_get_prop_vals),
  845. &resp_get_property_values__descriptor,
  846. NULL,
  847. 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
  848. 0,NULL,NULL /* reserved1,reserved2, etc */
  849. },
  850. {
  851. "cmd_set_prop_vals",
  852. 14,
  853. PROTOBUF_C_LABEL_NONE,
  854. PROTOBUF_C_TYPE_MESSAGE,
  855. offsetof(LocalCtrlMessage, payload_case),
  856. offsetof(LocalCtrlMessage, cmd_set_prop_vals),
  857. &cmd_set_property_values__descriptor,
  858. NULL,
  859. 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
  860. 0,NULL,NULL /* reserved1,reserved2, etc */
  861. },
  862. {
  863. "resp_set_prop_vals",
  864. 15,
  865. PROTOBUF_C_LABEL_NONE,
  866. PROTOBUF_C_TYPE_MESSAGE,
  867. offsetof(LocalCtrlMessage, payload_case),
  868. offsetof(LocalCtrlMessage, resp_set_prop_vals),
  869. &resp_set_property_values__descriptor,
  870. NULL,
  871. 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
  872. 0,NULL,NULL /* reserved1,reserved2, etc */
  873. },
  874. };
  875. static const unsigned local_ctrl_message__field_indices_by_name[] = {
  876. 1, /* field[1] = cmd_get_prop_count */
  877. 3, /* field[3] = cmd_get_prop_vals */
  878. 5, /* field[5] = cmd_set_prop_vals */
  879. 0, /* field[0] = msg */
  880. 2, /* field[2] = resp_get_prop_count */
  881. 4, /* field[4] = resp_get_prop_vals */
  882. 6, /* field[6] = resp_set_prop_vals */
  883. };
  884. static const ProtobufCIntRange local_ctrl_message__number_ranges[2 + 1] =
  885. {
  886. { 1, 0 },
  887. { 10, 1 },
  888. { 0, 7 }
  889. };
  890. const ProtobufCMessageDescriptor local_ctrl_message__descriptor =
  891. {
  892. PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  893. "LocalCtrlMessage",
  894. "LocalCtrlMessage",
  895. "LocalCtrlMessage",
  896. "",
  897. sizeof(LocalCtrlMessage),
  898. 7,
  899. local_ctrl_message__field_descriptors,
  900. local_ctrl_message__field_indices_by_name,
  901. 2, local_ctrl_message__number_ranges,
  902. (ProtobufCMessageInit) local_ctrl_message__init,
  903. NULL,NULL,NULL /* reserved[123] */
  904. };
  905. static const ProtobufCEnumValue local_ctrl_msg_type__enum_values_by_number[6] =
  906. {
  907. { "TypeCmdGetPropertyCount", "LOCAL_CTRL_MSG_TYPE__TypeCmdGetPropertyCount", 0 },
  908. { "TypeRespGetPropertyCount", "LOCAL_CTRL_MSG_TYPE__TypeRespGetPropertyCount", 1 },
  909. { "TypeCmdGetPropertyValues", "LOCAL_CTRL_MSG_TYPE__TypeCmdGetPropertyValues", 4 },
  910. { "TypeRespGetPropertyValues", "LOCAL_CTRL_MSG_TYPE__TypeRespGetPropertyValues", 5 },
  911. { "TypeCmdSetPropertyValues", "LOCAL_CTRL_MSG_TYPE__TypeCmdSetPropertyValues", 6 },
  912. { "TypeRespSetPropertyValues", "LOCAL_CTRL_MSG_TYPE__TypeRespSetPropertyValues", 7 },
  913. };
  914. static const ProtobufCIntRange local_ctrl_msg_type__value_ranges[] = {
  915. {0, 0},{4, 2},{0, 6}
  916. };
  917. static const ProtobufCEnumValueIndex local_ctrl_msg_type__enum_values_by_name[6] =
  918. {
  919. { "TypeCmdGetPropertyCount", 0 },
  920. { "TypeCmdGetPropertyValues", 2 },
  921. { "TypeCmdSetPropertyValues", 4 },
  922. { "TypeRespGetPropertyCount", 1 },
  923. { "TypeRespGetPropertyValues", 3 },
  924. { "TypeRespSetPropertyValues", 5 },
  925. };
  926. const ProtobufCEnumDescriptor local_ctrl_msg_type__descriptor =
  927. {
  928. PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC,
  929. "LocalCtrlMsgType",
  930. "LocalCtrlMsgType",
  931. "LocalCtrlMsgType",
  932. "",
  933. 6,
  934. local_ctrl_msg_type__enum_values_by_number,
  935. 6,
  936. local_ctrl_msg_type__enum_values_by_name,
  937. 2,
  938. local_ctrl_msg_type__value_ranges,
  939. NULL,NULL,NULL,NULL /* reserved[1234] */
  940. };