isSet method
Check if a field is currently set or unset, using the fieldId
.
Implementation
bool isSet(int fieldID) {
switch (fieldID) {
case ACCOUNT:
return isSetAccount();
case IS_LOCK:
return isSetIs_lock();
case MAX_QUERIES_PER_HOUR:
return isSetMax_queries_per_hour();
case MAX_UPDATES_PER_HOUR:
return isSetMax_updates_per_hour();
case MAX_CONNECTIONS_PER_HOUR:
return isSetMax_connections_per_hour();
case MAX_USER_CONNECTIONS:
return isSetMax_user_connections();
default:
throw new ArgumentError("Field $fieldID doesn't exist!");
}
}