Esempio n. 1
0
 protected void finish(UberTimeEstimateDetailsJSON result)
 {
     if (fieldGeneratorproduct_id.have_value)
     {
         result.setproduct_id(fieldGeneratorproduct_id.value);
         fieldGeneratorproduct_id.have_value = false;
     }
     else if ((!(result.hasproduct_id())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"product_id\" field was missing.");
     }
     if (fieldGeneratordisplay_name.have_value)
     {
         result.setdisplay_name(fieldGeneratordisplay_name.value);
         fieldGeneratordisplay_name.have_value = false;
     }
     else if ((!(result.hasdisplay_name())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"display_name\" field was missing.");
     }
     if (fieldGeneratorestimate.have_value)
     {
         result.setestimateText(fieldGeneratorestimate.value);
         fieldGeneratorestimate.have_value = false;
     }
     else if ((!(result.hasestimate())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"estimate\" field was missing.");
     }
 }