RegionSpaceUse convertRegionSize(RegionInfo regionInfo, Long sizeInBytes) {
    return RegionSpaceUse.newBuilder()
      .setRegionInfo(ProtobufUtil.toRegionInfo(Objects.requireNonNull(regionInfo)))
      .setRegionSize(Objects.requireNonNull(sizeInBytes)).build();
  }
Converts a pair of {@link RegionInfo} and {@code long} into a {@link RegionSpaceUse} protobuf
message.
@param regionInfo  The RegionInfo
@param sizeInBytes The size in bytes of the Region
@return The protocol buffer
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java