protected void finish(TypeNativeDataJSON result) { if (fieldGeneratorGames.have_value) { result.initGames(); int count = fieldGeneratorGames.value.Count; for (int num = 0; num < count; ++num) { result.appendGames(fieldGeneratorGames.value[num]); } fieldGeneratorGames.value.Clear(); fieldGeneratorGames.have_value = false; } else if ((!(result.hasGames())) && !allow_incomplete) { error("When parsing the object for %what%, the \"Games\" field was missing."); } }