enum.proto 305 B

12345678910111213141516171819
  1. /* Test enum to string function generation */
  2. syntax = "proto2";
  3. import "nanopb.proto";
  4. option (nanopb_fileopt).enum_to_string = true;
  5. enum MyEnum {
  6. VALUE1 = 1;
  7. VALUE2 = 2;
  8. VALUE15 = 15;
  9. }
  10. enum MyShortNameEnum {
  11. option (nanopb_enumopt).long_names = false;
  12. MSNE_VALUE256 = 256;
  13. }