protected void finish(RingerCommandJSON result) { if (fieldGeneratorCommandType.have_value) { result.setCommandType(fieldGeneratorCommandType.value); fieldGeneratorCommandType.have_value = false; } else if ((!(result.hasCommandType())) && !allow_incomplete) { error("When parsing the object for %what%, the \"CommandType\" field was missing."); } base.finish(result); }