code: public static FileBlockInfo fromProto(alluxio.grpc.FileBlockInfo fileBlockPInfo) {
      return new FileBlockInfo().setBlockInfo(fromProto(fileBlockPInfo.getBlockInfo()))
          .setOffset(fileBlockPInfo.getOffset()).setUfsLocations(
              fileBlockPInfo.getUfsLocationsCount() > 0 ? fileBlockPInfo.getUfsStringLocationsList()
                  : map(addr -> HostAndPort.fromParts(addr.getHost(), addr.getDataPort()).toString(),
                      fileBlockPInfo.getUfsLocationsList()));
    }
docs: Converts a proto type to a wire type.
  
  @param fileBlockPInfo the proto type to convert
  @return the converted wire type