isSet method

bool isSet(
  1. int fieldID
)
override

Check if a field is currently set or unset, using the fieldId.

Implementation

bool isSet(int fieldID) {
  switch (fieldID) {
    case ERROR_CODE:
      return isSetError_code();
    case LATENCY_IN_US:
      return isSetLatency_in_us();
    case DATA:
      return isSetData();
    case SPACE_NAME:
      return isSetSpace_name();
    case ERROR_MSG:
      return isSetError_msg();
    case PLAN_DESC:
      return isSetPlan_desc();
    case COMMENT:
      return isSetComment();
    default:
      throw new ArgumentError("Field $fieldID doesn't exist!");
  }
}