protected void finish(FMChannelCommandIntentJSON result)
 {
     if (fieldGeneratorChannel.have_value)
     {
         result.setChannelText(fieldGeneratorChannel.value);
         fieldGeneratorChannel.have_value = false;
     }
     else if ((!(result.hasChannel())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"Channel\" field was missing.");
     }
     if (fieldGeneratorHDSpecified.have_value)
     {
         result.setHDSpecified(fieldGeneratorHDSpecified.value);
         fieldGeneratorHDSpecified.have_value = false;
     }
     else if ((!(result.hasHDSpecified())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"HDSpecified\" field was missing.");
     }
     base.finish(result);
 }