1syntax = "proto2"; 2 3message MessageOne 4{ 5 required uint32 one = 1; 6 required uint32 two = 2; 7 required uint32 three = 3; 8 required int32 four = 4; 9} 10 11enum EnumTwo 12{ 13 SOME_ENUM_1 = 1; 14 SOME_ENUM_2 = 5; 15 SOME_ENUM_3 = 6; 16 SOME_ENUM_4 = 9; 17 SOME_ENUM_5 = 10; 18 SOME_ENUM_6 = 12; 19 SOME_ENUM_7 = 39; 20 SOME_ENUM_8 = 401; 21} 22 23message OneofMessage 24{ 25 oneof payload { 26 MessageOne message = 1; 27 EnumTwo enum = 2; 28 } 29} 30