protected void finish(MusicAlbumJSON result) { if (fieldGeneratorArtists.have_value) { result.initArtists(); int count = fieldGeneratorArtists.value.Count; for (int num = 0; num < count; ++num) { result.appendArtists(fieldGeneratorArtists.value[num]); } fieldGeneratorArtists.value.Clear(); fieldGeneratorArtists.have_value = false; } if (fieldGeneratorTracks.have_value) { result.initTracks(); int count = fieldGeneratorTracks.value.Count; for (int num = 0; num < count; ++num) { result.appendTracks(fieldGeneratorTracks.value[num]); } fieldGeneratorTracks.value.Clear(); fieldGeneratorTracks.have_value = false; } base.finish(result); }