Writing nested records from Java dataflow to BigQuery
<p>I have some objects with nested fields that I want to write from my dataflow job into a BigQuery table. I understand how to create the table schema, but I don't see how to create a <a href="https://developers.google.com/resources/api-libraries/documentation/bigquery/v2/java/latest/com/google/api/services/bigquery/model/TableRow.html" rel="nofollow noreferrer">TableRow</a> with nested fields.</p>

<p>The TableRow object is just a list of <a href="https://developers.google.com/resources/api-libraries/documentation/bigquery/v2/java/latest/com/google/api/services/bigquery/model/TableCell.html" rel="nofollow noreferrer">TableCell</a> objects, which appear to be String,Object key-value pairs. How can I build a nested object this way? Can the value of a TableCell be a TableRow?</p>