isSet method
Check if a field is currently set or unset, using the fieldId
.
Implementation
bool isSet(int fieldID) {
switch (fieldID) {
case HOSTADDR:
return isSetHostAddr();
case STATUS:
return isSetStatus();
case LEADER_PARTS:
return isSetLeader_parts();
case ALL_PARTS:
return isSetAll_parts();
case ROLE:
return isSetRole();
case GIT_INFO_SHA:
return isSetGit_info_sha();
case ZONE_NAME:
return isSetZone_name();
case VERSION:
return isSetVersion();
default:
throw new ArgumentError("Field $fieldID doesn't exist!");
}
}