validate method

dynamic validate()

Implementation

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