Ejemplo n.º 1
0
 protected void finish(TerrierUploadReadDataJSON result)
 {
     if (fieldGeneratorReadBlockList.have_value)
     {
         result.setReadBlockList(fieldGeneratorReadBlockList.value);
         fieldGeneratorReadBlockList.have_value = false;
     }
     else if ((!(result.hasReadBlockList())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"ReadBlockList\" field was missing.");
     }
     if (fieldGeneratorBlocksToRead.have_value)
     {
         result.initBlocksToRead();
         int count = fieldGeneratorBlocksToRead.value.Count;
         for (int num = 0; num < count; ++num)
         {
             result.appendBlocksToRead(fieldGeneratorBlocksToRead.value[num]);
         }
         fieldGeneratorBlocksToRead.value.Clear();
         fieldGeneratorBlocksToRead.have_value = false;
     }
     else if ((!(result.hasBlocksToRead())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"BlocksToRead\" field was missing.");
     }
 }