isSet method
Check if a field is currently set or unset, using the fieldId
.
Implementation
bool isSet(int fieldID) {
switch (fieldID) {
case HOSTS:
return isSetHosts();
case ZONE_NAME:
return isSetZone_name();
case IS_NEW:
return isSetIs_new();
default:
throw new ArgumentError("Field $fieldID doesn't exist!");
}
}