isSet method
Check if a field is currently set or unset, using the fieldId
.
Implementation
bool isSet(int fieldID) {
switch (fieldID) {
case SESSION_ID:
return isSetSession_id();
case PLAN_ID:
return isSetPlan_id();
case PROFILE_DETAIL:
return isSetProfile_detail();
default:
throw new ArgumentError("Field $fieldID doesn't exist!");
}
}