isSet method
Check if a field is currently set or unset, using the fieldId
.
Implementation
bool isSet(int fieldID) {
switch (fieldID) {
case CODE:
return isSetCode();
case LEADER:
return isSetLeader();
case CLUSTER_ID:
return isSetCluster_id();
case LAST_UPDATE_TIME_IN_MS:
return isSetLast_update_time_in_ms();
case META_VERSION:
return isSetMeta_version();
default:
throw new ArgumentError("Field $fieldID doesn't exist!");
}
}