isSet method
Check if a field is currently set or unset, using the fieldId
.
Implementation
bool isSet(int fieldID) {
switch (fieldID) {
case SPACE_BACKUPS:
return isSetSpace_backups();
case META_FILES:
return isSetMeta_files();
case BACKUP_NAME:
return isSetBackup_name();
case FULL:
return isSetFull();
case ALL_SPACES:
return isSetAll_spaces();
case CREATE_TIME:
return isSetCreate_time();
case BASE_BACKUP_NAME:
return isSetBase_backup_name();
case STORAGE_HOSTS:
return isSetStorage_hosts();
case CLUSTER_ID:
return isSetCluster_id();
default:
throw new ArgumentError("Field $fieldID doesn't exist!");
}
}