validate method

dynamic validate()

Implementation

validate() {
  // check for required fields
  // check that fields of type enum have valid values
  if (isSetIsolation_level() &&
      !IsolationLevel.VALID_VALUES.contains(isolation_level)) {
    throw new TProtocolError(TProtocolErrorType.UNKNOWN,
        "The field 'isolation_level' has been assigned the invalid value $isolation_level");
  }
}