Example #1
0
 protected void finish(UserContactsFindRequestJSON result)
 {
     if (fieldGeneratorKeyFieldName.have_value)
     {
         result.setKeyFieldName(fieldGeneratorKeyFieldName.value);
         fieldGeneratorKeyFieldName.have_value = false;
     }
     else if ((!(result.hasKeyFieldName())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"KeyFieldName\" field was missing.");
     }
     if (fieldGeneratorMatchValue.have_value)
     {
         result.setMatchValue(fieldGeneratorMatchValue.value);
         fieldGeneratorMatchValue.have_value = false;
     }
     if (fieldGeneratorFindNotMatched.have_value)
     {
         result.setFindNotMatched(fieldGeneratorFindNotMatched.value);
         fieldGeneratorFindNotMatched.have_value = false;
     }
     else if ((!(result.hasFindNotMatched())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"FindNotMatched\" field was missing.");
     }
     base.finish(result);
 }