如何使用 Java API 过滤我从 google-sheets 中读取的行

how to filter the rows I read from google-sheets with Java API

有没有办法使用 Google-sheet API 只读取 X 列中包含空单元格的行?

这就是我今天阅读 google-sheet 的方式 但我没有看到任何 "filter" 方法。

    final ValueRange values = service.spreadsheets()
            .values()
            .get(spreadSheetId, range)
            .execute();

您可以检查 ConditionType 然后使用 BLANK

The cell's value must be empty. Supported by conditional formatting and filters. Requires no ConditionValues.

这是另一个参考:FilterCriteria,您可以将其用于过滤器或过滤器视图中的 showing/hiding 行。使用 hiddenValues[] (应隐藏的值。)condition (显示值必须为真的条件。 ) 个字段。