validate method
dynamic
validate()
Implementation
validate() {
// check for required fields
if (plan_node_descs == null) {
throw new TProtocolError(
TProtocolErrorType.UNKNOWN,
"Required field 'plan_node_descs' was not present! Struct: " +
toString());
}
if (node_index_map == null) {
throw new TProtocolError(
TProtocolErrorType.UNKNOWN,
"Required field 'node_index_map' was not present! Struct: " +
toString());
}
if (format == null) {
throw new TProtocolError(TProtocolErrorType.UNKNOWN,
"Required field 'format' was not present! Struct: " + toString());
}
// alas, we cannot check 'optimize_time_in_us' because it's a primitive and you chose the non-beans generator.
// check that fields of type enum have valid values
}