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