isSet method
Check if a field is currently set or unset, using the fieldId
.
Implementation
bool isSet(int fieldID) {
switch (fieldID) {
case ROLE:
return isSetRole();
case HOST:
return isSetHost();
case CLUSTER_ID:
return isSetCluster_id();
case LEADER_PARTIDS:
return isSetLeader_partIds();
case GIT_INFO_SHA:
return isSetGit_info_sha();
case DISK_PARTS:
return isSetDisk_parts();
case DIR:
return isSetDir();
case VERSION:
return isSetVersion();
default:
throw new ArgumentError("Field $fieldID doesn't exist!");
}
}