@Override
  public ProtobufMessageHandler getObjectFromMessage(CodedInputStream cis) throws IOException {
    TableInfo.Builder builder = TableInfo.newBuilder();
    RestUtil.mergeFrom(builder, cis);
    setName(builder.getName());
    for (TableInfo.Region region : builder.getRegionsList()) {
      add(
        new TableRegionModel(builder.getName(), region.getId(), region.getStartKey().toByteArray(),
          region.getEndKey().toByteArray(), region.getLocation()));
    }
    return this;
  }
@param regions the regions to set
hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/model/TableInfoModel.java