code: public static ClassHierarchy deserialize(final File file) throws IOException {
      try (final InputStream stream = new FileInputStream(file)) {
        final ClassHierarchyProto.Node root = ClassHierarchyProto.Node.parseFrom(stream);
        return new ProtocolBufferClassHierarchy(root);
      }
    }
docs: Deserialize a class hierarchy from a file. The file can be generated from either Java or C#
  
  @param file
  @return
  @throws IOException
  @deprecated in 0.12. Use AvroClassHierarchySerializer instead