Use the new Protobuf Enum API