public static List<org.apache.hadoop.hbase.client.RegionInfo>
    getRegionInfos(final GetOnlineRegionResponse proto) {
    if (proto == null) return Collections.EMPTY_LIST;
    List<org.apache.hadoop.hbase.client.RegionInfo> regionInfos =
      new ArrayList<>(proto.getRegionInfoList().size());
    for (RegionInfo regionInfo : proto.getRegionInfoList()) {
      regionInfos.add(toRegionInfo(regionInfo));
    }
    return regionInfos;
  }
Get the list of region info from a GetOnlineRegionResponse
@param proto the GetOnlineRegionResponse
@return the list of region info or empty if <code>proto</code> is null
hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java