1syntax = "proto3"; 2 3enum TestEnum1 4{ 5 A = 0; 6 B = 2; 7 C = -3; 8} 9 10enum TestEnum2 11{ 12 X = 0; 13 Y = 5; 14} 15 16message TestMsg 17{ 18 TestEnum1 test1 = 1; 19 20 oneof oneof1 21 { 22 TestEnum2 test2 = 2; 23 } 24} 25 26 27