dust.proto 908 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "dust-monitor/pb/v1";
  6. message DustData {
  7. double pm10_avg=1;
  8. double pm25_avg=2;
  9. string st=3;
  10. string cn=4;
  11. string mn=5;
  12. string date_time=6;
  13. double tsp_avg=7;
  14. double t01_avg=8;
  15. double h01_avg=9;
  16. double w01_avg=10;
  17. double w02_avg=11;
  18. double r01_avg=12;
  19. double p01_avg=13;
  20. double b03_avg=14;
  21. double lng=15;
  22. double lat=16;
  23. string pm10_flag=17;
  24. string pm25_flag=18;
  25. string tsp_flag=19;
  26. string t01_flag=20;
  27. string h01_flag=21;
  28. string w01_flag=22;
  29. string w02_flag=23;
  30. string r01_flag=24;
  31. string p01_flag=25;
  32. string b03_flag=26;
  33. double w03_avg=27;
  34. string w03_flag=28;
  35. }