protected void finish(SportsOlympicsEventSchedulesAndResultsArgumentHostJSON result) { if (fieldGeneratorHosts.have_value) { result.initHosts(); int count = fieldGeneratorHosts.value.Count; for (int num = 0; num < count; ++num) { result.appendHosts(fieldGeneratorHosts.value[num]); } fieldGeneratorHosts.value.Clear(); fieldGeneratorHosts.have_value = false; } base.finish(result); }