code: public static alluxio.grpc.FileInfo toProto(FileInfo fileInfo) {
      List<alluxio.grpc.FileBlockInfo> fileBlockInfos = new ArrayList<>();
      for (FileBlockInfo fileBlockInfo : fileInfo.getFileBlockInfos()) {
        fileBlockInfos.add(toProto(fileBlockInfo));
      }
      alluxio.grpc.FileInfo.Builder builder = alluxio.grpc.FileInfo.newBuilder()
          .setFileId(fileInfo.getFileId()).setName(fileInfo.getName()).setPath(fileInfo.getPath())
          .setUfsPath(fileInfo.getUfsPath()).setLength(fileInfo.getLength())
          .setBlockSizeBytes(fileInfo.getBlockSizeBytes())
          .setCreationTimeMs(fileInfo.getCreationTimeMs()).setCompleted(fileInfo.isCompleted())
          .setFolder(fileInfo.isFolder()).setPinned(fileInfo.isPinned())
          .setCacheable(fileInfo.isCacheable()).setPersisted(fileInfo.isPersisted())
          .addAllBlockIds(fileInfo.getBlockIds())
          .setLastModificationTimeMs(fileInfo.getLastModificationTimeMs()).setTtl(fileInfo.getTtl())
          .setOwner(fileInfo.getOwner()).setGroup(fileInfo.getGroup()).setMode(fileInfo.getMode())
          .setPersistenceState(fileInfo.getPersistenceState()).setMountPoint(fileInfo.isMountPoint())
          .addAllFileBlockInfos(fileBlockInfos)
          .setTtlAction(fileInfo.getTtlAction()).setMountId(fileInfo.getMountId())
          .setInAlluxioPercentage(fileInfo.getInAlluxioPercentage())
          .setInMemoryPercentage(fileInfo.getInMemoryPercentage())
          .setUfsFingerprint(fileInfo.getUfsFingerprint())
          .setReplicationMax(fileInfo.getReplicationMax())
          .setReplicationMin(fileInfo.getReplicationMin());
  
      if (!fileInfo.getAcl().equals(AccessControlList.EMPTY_ACL)) {
        builder.setAcl(toProto(fileInfo.getAcl()));
      }
      if (!fileInfo.getDefaultAcl().equals(DefaultAccessControlList.EMPTY_DEFAULT_ACL)) {
        builder.setDefaultAcl(toProto(fileInfo.getDefaultAcl()));
      }
      return builder.build();
    }
docs: Converts a wire type to a proto type.
  
  @param fileInfo the wire representation of a file information
  @return proto representation of the file information