code: public static alluxio.grpc.BlockInfo toProto(BlockInfo blockInfo) {
      List<alluxio.grpc.BlockLocation> locations = new ArrayList<>();
      for (BlockLocation location : blockInfo.getLocations()) {
        locations.add(toProto(location));
      }
      return alluxio.grpc.BlockInfo.newBuilder().setBlockId(blockInfo.getBlockId())
          .setLength(blockInfo.getLength()).addAllLocations(locations).build();
    }
docs: Converts wire type to proto type.
  
  @param blockInfo the wire type to convert
  @return the converted proto type