credentials = GoogleCredentials.get_application_default()
// Construct the service object for interacting with the BigQuery API.
bigquery = discovery.build("bigquery", "v2", credentials=credentials)
// [END build_service]
// Submit the job and wait for it to complete.
query_job = async_query(
bigquery,
project_id,
query_string,
batch,
num_retries)
poll_job(bigquery, query_job)
// Page through the result set and print all results.
page_token = None
while True: