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