isSet method
Check if a field is currently set or unset, using the fieldId
.
Implementation
bool isSet(int fieldID) {
switch (fieldID) {
case SPACE_ID:
return isSetSpace_id();
case INDEX_NAME:
return isSetIndex_name();
case EDGE_NAME:
return isSetEdge_name();
case FIELDS:
return isSetFields();
case IF_NOT_EXISTS:
return isSetIf_not_exists();
case COMMENT:
return isSetComment();
case INDEX_PARAMS:
return isSetIndex_params();
default:
throw new ArgumentError("Field $fieldID doesn't exist!");
}
}