Convenience wrapper for consuming a ReadRows streaming response.
This class will be returned by the read_rows method, and should not
be constructed manually.
Parameters
Name
Description
read_method
client._table_data_client.read_rows
ReadRows method.
generator
:class:Iterable[Row]
The Row iterator from Table.read_rows.
Methods
__iter__
__iter__()
Consume the Row s from the stream.
Convert them to PartialRowData and yield each to the reader.
cancel
cancel()
Cancels the iterator, closing the stream.
consume_all
consume_all(max_loops=None)
Consume the streamed responses until there are no more.
Parameter
Name
Description
max_loops
int
(Deprecated). Maximum number of times to try to consume an additional ReadRowsResponse. This parameter is deprecated and is only kept for backwards compatibility.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-10-04 UTC."],[],[]]