Ejemplo n.º 1
0
 protected void finish(TypeNativeDataJSON result)
 {
     if (fieldGeneratorUberRequestsSpec.have_value)
     {
         result.setUberRequestsSpec(fieldGeneratorUberRequestsSpec.value);
         fieldGeneratorUberRequestsSpec.have_value = false;
     }
     else if ((!(result.hasUberRequestsSpec())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"UberRequestsSpec\" 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.");
     }
     if (fieldGeneratorCause.have_value)
     {
         result.setCause(fieldGeneratorCause.value);
         fieldGeneratorCause.have_value = false;
     }
 }