public static List<TableDescriptor> toTableDescriptorList(GetTableDescriptorsResponse proto) {
    if (proto == null) {
      return new ArrayList<>();
    }
    return proto.getTableSchemaList().stream().map(ProtobufUtil::toTableDescriptor)
      .collect(Collectors.toList());
  }
Get a list of TableDescriptor from GetTableDescriptorsResponse protobuf
@param proto the GetTableDescriptorsResponse
@return a list of TableDescriptor
hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java