protected void finish(TypeNativeDataJSON result) { if (fieldGeneratorIndexedUserAppsCount.have_value) { result.setIndexedUserAppsCount(fieldGeneratorIndexedUserAppsCount.value); fieldGeneratorIndexedUserAppsCount.have_value = false; } else if ((!(result.hasIndexedUserAppsCount())) && !allow_incomplete) { error("When parsing the object for %what%, the \"IndexedUserAppsCount\" field was missing."); } }