protected void finish(RobotStopCommandJSON result) { if (fieldGeneratorAlreadyStoppedResult.have_value) { result.setAlreadyStoppedResult(fieldGeneratorAlreadyStoppedResult.value); fieldGeneratorAlreadyStoppedResult.have_value = false; } if (fieldGeneratorScope.have_value) { result.setScope(fieldGeneratorScope.value); fieldGeneratorScope.have_value = false; } else if ((!(result.hasScope())) && !allow_incomplete) { error("When parsing the object for %what%, the \"Scope\" field was missing."); } base.finish(result); }