isSet method
Check if a field is currently set or unset, using the fieldId
.
Implementation
bool isSet(int fieldID) {
switch (fieldID) {
case JOB_ID:
return isSetJob_id();
case JOB_DESC:
return isSetJob_desc();
case TASK_DESC:
return isSetTask_desc();
case RECOVERED_JOB_NUM:
return isSetRecovered_job_num();
default:
throw new ArgumentError("Field $fieldID doesn't exist!");
}
}