@@ -120,6 +120,7 @@ public Dataset getDataset(String projectId, String datasetId, Map<Option, ?> opt
120
120
.datasets ()
121
121
.get (projectId , datasetId )
122
122
.setFields (Option .FIELDS .getString (options ))
123
+ .setPrettyPrint (false )
123
124
.execute ();
124
125
} catch (IOException ex ) {
125
126
BigQueryException serviceException = translate (ex );
@@ -137,6 +138,7 @@ public Tuple<String, Iterable<Dataset>> listDatasets(String projectId, Map<Optio
137
138
bigquery
138
139
.datasets ()
139
140
.list (projectId )
141
+ .setPrettyPrint (false )
140
142
.setAll (Option .ALL_DATASETS .getBoolean (options ))
141
143
.setFilter (Option .LABEL_FILTER .getString (options ))
142
144
.setMaxResults (Option .MAX_RESULTS .getLong (options ))
@@ -160,6 +162,7 @@ public Dataset create(Dataset dataset, Map<Option, ?> options) {
160
162
return bigquery
161
163
.datasets ()
162
164
.insert (dataset .getDatasetReference ().getProjectId (), dataset )
165
+ .setPrettyPrint (false )
163
166
.setFields (Option .FIELDS .getString (options ))
164
167
.execute ();
165
168
} catch (IOException ex ) {
@@ -176,6 +179,7 @@ public Table create(Table table, Map<Option, ?> options) {
176
179
return bigquery
177
180
.tables ()
178
181
.insert (reference .getProjectId (), reference .getDatasetId (), table )
182
+ .setPrettyPrint (false )
179
183
.setFields (Option .FIELDS .getString (options ))
180
184
.execute ();
181
185
} catch (IOException ex ) {
@@ -190,6 +194,7 @@ public Routine create(Routine routine, Map<Option, ?> options) {
190
194
return bigquery
191
195
.routines ()
192
196
.insert (reference .getProjectId (), reference .getDatasetId (), routine )
197
+ .setPrettyPrint (false )
193
198
.setFields (Option .FIELDS .getString (options ))
194
199
.execute ();
195
200
} catch (IOException ex ) {
@@ -207,6 +212,7 @@ public Job create(Job job, Map<Option, ?> options) {
207
212
return bigquery
208
213
.jobs ()
209
214
.insert (projectId , job )
215
+ .setPrettyPrint (false )
210
216
.setFields (Option .FIELDS .getString (options ))
211
217
.execute ();
212
218
} catch (IOException ex ) {
@@ -220,6 +226,7 @@ public boolean deleteDataset(String projectId, String datasetId, Map<Option, ?>
220
226
bigquery
221
227
.datasets ()
222
228
.delete (projectId , datasetId )
229
+ .setPrettyPrint (false )
223
230
.setDeleteContents (Option .DELETE_CONTENTS .getBoolean (options ))
224
231
.execute ();
225
232
return true ;
@@ -239,6 +246,7 @@ public Dataset patch(Dataset dataset, Map<Option, ?> options) {
239
246
return bigquery
240
247
.datasets ()
241
248
.patch (reference .getProjectId (), reference .getDatasetId (), dataset )
249
+ .setPrettyPrint (false )
242
250
.setFields (Option .FIELDS .getString (options ))
243
251
.execute ();
244
252
} catch (IOException ex ) {
@@ -255,6 +263,7 @@ public Table patch(Table table, Map<Option, ?> options) {
255
263
return bigquery
256
264
.tables ()
257
265
.patch (reference .getProjectId (), reference .getDatasetId (), reference .getTableId (), table )
266
+ .setPrettyPrint (false )
258
267
.setFields (Option .FIELDS .getString (options ))
259
268
.execute ();
260
269
} catch (IOException ex ) {
@@ -269,6 +278,7 @@ public Table getTable(
269
278
return bigquery
270
279
.tables ()
271
280
.get (projectId , datasetId , tableId )
281
+ .setPrettyPrint (false )
272
282
.setFields (Option .FIELDS .getString (options ))
273
283
.execute ();
274
284
} catch (IOException ex ) {
@@ -288,6 +298,7 @@ public Tuple<String, Iterable<Table>> listTables(
288
298
bigquery
289
299
.tables ()
290
300
.list (projectId , datasetId )
301
+ .setPrettyPrint (false )
291
302
.setMaxResults (Option .MAX_RESULTS .getLong (options ))
292
303
.setPageToken (Option .PAGE_TOKEN .getString (options ))
293
304
.execute ();
@@ -337,6 +348,7 @@ public Model patch(Model model, Map<Option, ?> options) {
337
348
return bigquery
338
349
.models ()
339
350
.patch (reference .getProjectId (), reference .getDatasetId (), reference .getModelId (), model )
351
+ .setPrettyPrint (false )
340
352
.setFields (Option .FIELDS .getString (options ))
341
353
.execute ();
342
354
} catch (IOException ex ) {
@@ -351,6 +363,7 @@ public Model getModel(
351
363
return bigquery
352
364
.models ()
353
365
.get (projectId , datasetId , modelId )
366
+ .setPrettyPrint (false )
354
367
.setFields (Option .FIELDS .getString (options ))
355
368
.execute ();
356
369
} catch (IOException ex ) {
@@ -370,6 +383,7 @@ public Tuple<String, Iterable<Model>> listModels(
370
383
bigquery
371
384
.models ()
372
385
.list (projectId , datasetId )
386
+ .setPrettyPrint (false )
373
387
.setMaxResults (Option .MAX_RESULTS .getLong (options ))
374
388
.setPageToken (Option .PAGE_TOKEN .getString (options ))
375
389
.execute ();
@@ -402,6 +416,7 @@ public Routine update(Routine routine, Map<Option, ?> options) {
402
416
.routines ()
403
417
.update (
404
418
reference .getProjectId (), reference .getDatasetId (), reference .getRoutineId (), routine )
419
+ .setPrettyPrint (false )
405
420
.setFields (Option .FIELDS .getString (options ))
406
421
.execute ();
407
422
} catch (IOException ex ) {
@@ -416,6 +431,7 @@ public Routine getRoutine(
416
431
return bigquery
417
432
.routines ()
418
433
.get (projectId , datasetId , routineId )
434
+ .setPrettyPrint (false )
419
435
.setFields (Option .FIELDS .getString (options ))
420
436
.execute ();
421
437
} catch (IOException ex ) {
@@ -435,6 +451,7 @@ public Tuple<String, Iterable<Routine>> listRoutines(
435
451
bigquery
436
452
.routines ()
437
453
.list (projectId , datasetId )
454
+ .setPrettyPrint (false )
438
455
.setMaxResults (Option .MAX_RESULTS .getLong (options ))
439
456
.setPageToken (Option .PAGE_TOKEN .getString (options ))
440
457
.execute ();
@@ -463,7 +480,11 @@ public boolean deleteRoutine(String projectId, String datasetId, String routineI
463
480
public TableDataInsertAllResponse insertAll (
464
481
String projectId , String datasetId , String tableId , TableDataInsertAllRequest request ) {
465
482
try {
466
- return bigquery .tabledata ().insertAll (projectId , datasetId , tableId , request ).execute ();
483
+ return bigquery
484
+ .tabledata ()
485
+ .insertAll (projectId , datasetId , tableId , request )
486
+ .setPrettyPrint (false )
487
+ .execute ();
467
488
} catch (IOException ex ) {
468
489
throw translate (ex );
469
490
}
@@ -476,6 +497,7 @@ public TableDataList listTableData(
476
497
return bigquery
477
498
.tabledata ()
478
499
.list (projectId , datasetId , tableId )
500
+ .setPrettyPrint (false )
479
501
.setMaxResults (Option .MAX_RESULTS .getLong (options ))
480
502
.setPageToken (Option .PAGE_TOKEN .getString (options ))
481
503
.setStartIndex (
@@ -494,6 +516,7 @@ public Job getJob(String projectId, String jobId, String location, Map<Option, ?
494
516
return bigquery
495
517
.jobs ()
496
518
.get (projectId , jobId )
519
+ .setPrettyPrint (false )
497
520
.setLocation (location )
498
521
.setFields (Option .FIELDS .getString (options ))
499
522
.execute ();
@@ -513,6 +536,7 @@ public Tuple<String, Iterable<Job>> listJobs(String projectId, Map<Option, ?> op
513
536
bigquery
514
537
.jobs ()
515
538
.list (projectId )
539
+ .setPrettyPrint (false )
516
540
.setAllUsers (Option .ALL_USERS .getBoolean (options ))
517
541
.setFields (Option .FIELDS .getString (options ))
518
542
.setStateFilter (Option .STATE_FILTER .<List <String >>get (options ))
@@ -562,7 +586,12 @@ public Job apply(JobList.Jobs jobPb) {
562
586
@ Override
563
587
public boolean cancel (String projectId , String jobId , String location ) {
564
588
try {
565
- bigquery .jobs ().cancel (projectId , jobId ).setLocation (location ).execute ();
589
+ bigquery
590
+ .jobs ()
591
+ .cancel (projectId , jobId )
592
+ .setLocation (location )
593
+ .setPrettyPrint (false )
594
+ .execute ();
566
595
return true ;
567
596
} catch (IOException ex ) {
568
597
BigQueryException serviceException = translate (ex );
@@ -580,6 +609,7 @@ public GetQueryResultsResponse getQueryResults(
580
609
return bigquery
581
610
.jobs ()
582
611
.getQueryResults (projectId , jobId )
612
+ .setPrettyPrint (false )
583
613
.setLocation (location )
584
614
.setMaxResults (Option .MAX_RESULTS .getLong (options ))
585
615
.setPageToken (Option .PAGE_TOKEN .getString (options ))
@@ -676,7 +706,11 @@ public Policy getIamPolicy(String resourceId, Map<Option, ?> options) {
676
706
.setRequestedPolicyVersion (
677
707
Option .REQUESTED_POLICY_VERSION .getLong (options ).intValue ()));
678
708
}
679
- return bigquery .tables ().getIamPolicy (resourceId , policyRequest ).execute ();
709
+ return bigquery
710
+ .tables ()
711
+ .getIamPolicy (resourceId , policyRequest )
712
+ .setPrettyPrint (false )
713
+ .execute ();
680
714
} catch (IOException ex ) {
681
715
throw translate (ex );
682
716
}
@@ -686,7 +720,11 @@ public Policy getIamPolicy(String resourceId, Map<Option, ?> options) {
686
720
public Policy setIamPolicy (String resourceId , Policy policy , Map <Option , ?> options ) {
687
721
try {
688
722
SetIamPolicyRequest policyRequest = new SetIamPolicyRequest ().setPolicy (policy );
689
- return bigquery .tables ().setIamPolicy (resourceId , policyRequest ).execute ();
723
+ return bigquery
724
+ .tables ()
725
+ .setIamPolicy (resourceId , policyRequest )
726
+ .setPrettyPrint (false )
727
+ .execute ();
690
728
} catch (IOException ex ) {
691
729
throw translate (ex );
692
730
}
@@ -698,7 +736,11 @@ public TestIamPermissionsResponse testIamPermissions(
698
736
try {
699
737
TestIamPermissionsRequest permissionsRequest =
700
738
new TestIamPermissionsRequest ().setPermissions (permissions );
701
- return bigquery .tables ().testIamPermissions (resourceId , permissionsRequest ).execute ();
739
+ return bigquery
740
+ .tables ()
741
+ .testIamPermissions (resourceId , permissionsRequest )
742
+ .setPrettyPrint (false )
743
+ .execute ();
702
744
} catch (IOException ex ) {
703
745
throw translate (ex );
704
746
}
0 commit comments