Esempio n. 1
0
 protected void finish(TypeNativeDataJSON result)
 {
     if (fieldGeneratorUberEstimatesSpec.have_value)
     {
         result.setUberEstimatesSpec(fieldGeneratorUberEstimatesSpec.value);
         fieldGeneratorUberEstimatesSpec.have_value = false;
     }
     else if ((!(result.hasUberEstimatesSpec())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"UberEstimatesSpec\" field was missing.");
     }
     if (fieldGeneratorUberProducts.have_value)
     {
         result.setUberProducts(fieldGeneratorUberProducts.value);
         fieldGeneratorUberProducts.have_value = false;
     }
     else if ((!(result.hasUberProducts())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"UberProducts\" field was missing.");
     }
 }