protected void finish(TerrierUploadReadCommandJSON result) { if (fieldGeneratorBlockNameList.have_value) { result.initBlockNameList(); int count = fieldGeneratorBlockNameList.value.Count; for (int num = 0; num < count; ++num) { result.appendBlockNameList(fieldGeneratorBlockNameList.value[num]); } fieldGeneratorBlockNameList.value.Clear(); fieldGeneratorBlockNameList.have_value = false; } if (fieldGeneratorBlockDetails.have_value) { result.initBlockDetails(); int count = fieldGeneratorBlockDetails.value.Count; for (int num = 0; num < count; ++num) { result.appendBlockDetails(fieldGeneratorBlockDetails.value[num]); } fieldGeneratorBlockDetails.value.Clear(); fieldGeneratorBlockDetails.have_value = false; } base.finish(result); }