esp_local_ctrl.proto 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. syntax = "proto3";
  2. import "constants.proto";
  3. message CmdGetPropertyCount {
  4. }
  5. message RespGetPropertyCount {
  6. Status status = 1;
  7. uint32 count = 2;
  8. }
  9. message PropertyInfo {
  10. Status status = 1;
  11. string name = 2;
  12. uint32 type = 3;
  13. uint32 flags = 4;
  14. bytes value = 5;
  15. }
  16. message CmdGetPropertyValues {
  17. repeated uint32 indices = 1;
  18. }
  19. message RespGetPropertyValues {
  20. Status status = 1;
  21. repeated PropertyInfo props = 2;
  22. }
  23. message PropertyValue {
  24. uint32 index = 1;
  25. bytes value = 2;
  26. }
  27. message CmdSetPropertyValues {
  28. repeated PropertyValue props = 1;
  29. }
  30. message RespSetPropertyValues {
  31. Status status = 1;
  32. }
  33. enum LocalCtrlMsgType {
  34. TypeCmdGetPropertyCount = 0;
  35. TypeRespGetPropertyCount = 1;
  36. TypeCmdGetPropertyValues = 4;
  37. TypeRespGetPropertyValues = 5;
  38. TypeCmdSetPropertyValues = 6;
  39. TypeRespSetPropertyValues = 7;
  40. }
  41. message LocalCtrlMessage {
  42. LocalCtrlMsgType msg = 1;
  43. oneof payload {
  44. CmdGetPropertyCount cmd_get_prop_count = 10;
  45. RespGetPropertyCount resp_get_prop_count = 11;
  46. CmdGetPropertyValues cmd_get_prop_vals = 12;
  47. RespGetPropertyValues resp_get_prop_vals = 13;
  48. CmdSetPropertyValues cmd_set_prop_vals = 14;
  49. RespSetPropertyValues resp_set_prop_vals = 15;
  50. }
  51. }