1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
syntax = "proto3"; package nested2; import "package.proto"; message Game { message Player { enum Race { human = 0; orc = 1; } } } message Test { Game game = 1; Game.Player GamePlayer = 2; Game.Player.Race GamePlayerRace = 3; equipment.Weapon Weapon = 4; }