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