12345678910111213141516171819 |
- /* Test enum to string function generation */
- syntax = "proto2";
- import "nanopb.proto";
- option (nanopb_fileopt).enum_to_string = true;
- enum MyEnum {
- VALUE1 = 1;
- VALUE2 = 2;
- VALUE15 = 15;
- }
- enum MyShortNameEnum {
- option (nanopb_enumopt).long_names = false;
- MSNE_VALUE256 = 256;
- }
|