msgid_example.proto 354 B

12345678910111213141516171819202122232425
  1. syntax = "proto3";
  2. import "nanopb.proto";
  3. message MyMessage1
  4. {
  5. option (nanopb_msgopt).msgid = 1;
  6. int32 intvalue = 1;
  7. }
  8. message MyMessage2
  9. {
  10. option (nanopb_msgopt).msgid = 2;
  11. int32 intvalue = 1;
  12. string strvalue = 2 [(nanopb).max_size = 16];
  13. }
  14. message MyMessage3
  15. {
  16. option (nanopb_msgopt).msgid = 3;
  17. bool boolvalue = 1;
  18. }