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 CREATE_TIME:
return isSetCreate_time();
case UPDATE_TIME:
return isSetUpdate_time();
case USER_NAME:
return isSetUser_name();
case SPACE_NAME:
return isSetSpace_name();
case GRAPH_ADDR:
return isSetGraph_addr();
case TIMEZONE:
return isSetTimezone();
case CLIENT_IP:
return isSetClient_ip();
case CONFIGS:
return isSetConfigs();
case QUERIES:
return isSetQueries();
default:
throw new ArgumentError("Field $fieldID doesn't exist!");
}
}