public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetType()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'type' is unset! Struct:" + toString()); } if (!isSetPathElement()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'pathElement' is unset! Struct:" + toString()); } if (!isSetChildren()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'children' is unset! Struct:" + toString()); } // check for sub-struct validity }