isSet method
Check if a field is currently set or unset, using the fieldId
.
Implementation
bool isSet(int fieldID) {
switch (fieldID) {
case PLAN_NODE_DESCS:
return isSetPlan_node_descs();
case NODE_INDEX_MAP:
return isSetNode_index_map();
case FORMAT:
return isSetFormat();
case OPTIMIZE_TIME_IN_US:
return isSetOptimize_time_in_us();
default:
throw new ArgumentError("Field $fieldID doesn't exist!");
}
}