syntax = "proto2"; package test_enum_alias; enum EnumWithAlias { option allow_alias = true; UNKNOWN = 0; A = 10; B = 20; A_AGAIN = 10; } message TestEnumWithAlias { optional EnumWithAlias en = 1; }