validate method

dynamic validate()

Implementation

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