protected void finish(CallNumberCommandJSON result)
 {
     if (fieldGeneratorNumber.have_value)
     {
         result.setNumber(fieldGeneratorNumber.value);
         fieldGeneratorNumber.have_value = false;
     }
     else if ((!(result.hasNumber())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"Number\" field was missing.");
     }
     if (fieldGeneratorNumberDerivation.have_value)
     {
         result.setNumberDerivation(fieldGeneratorNumberDerivation.value);
         fieldGeneratorNumberDerivation.have_value = false;
     }
     else if ((!(result.hasNumberDerivation())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"NumberDerivation\" field was missing.");
     }
     base.finish(result);
 }