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