@@ -36,13 +36,29 @@ public final class QueryResponse extends com.google.api.client.json.GenericJson
36
36
@ com .google .api .client .util .Key
37
37
private java .lang .Boolean cacheHit ;
38
38
39
+ /**
40
+ * Output only. Creation time of this query, in milliseconds since the epoch. This field will be
41
+ * present on all queries.
42
+ * The value may be {@code null}.
43
+ */
44
+ @ com .google .api .client .util .Key @ com .google .api .client .json .JsonString
45
+ private java .lang .Long creationTime ;
46
+
39
47
/**
40
48
* Output only. Detailed statistics for DML statements INSERT, UPDATE, DELETE, MERGE or TRUNCATE.
41
49
* The value may be {@code null}.
42
50
*/
43
51
@ com .google .api .client .util .Key
44
52
private DmlStatistics dmlStats ;
45
53
54
+ /**
55
+ * Output only. End time of this query, in milliseconds since the epoch. This field will be
56
+ * present whenever a query job is in the DONE state.
57
+ * The value may be {@code null}.
58
+ */
59
+ @ com .google .api .client .util .Key @ com .google .api .client .json .JsonString
60
+ private java .lang .Long endTime ;
61
+
46
62
/**
47
63
* Output only. The first errors or warnings encountered during the running of the job. The final
48
64
* message includes the number of errors that caused the process to stop. Errors here do not
@@ -95,6 +111,14 @@ public final class QueryResponse extends com.google.api.client.json.GenericJson
95
111
@ com .google .api .client .util .Key
96
112
private java .lang .String kind ;
97
113
114
+ /**
115
+ * Output only. The geographic location of the query. For more information about BigQuery
116
+ * locations, see: https://cloud.google.com/bigquery/docs/locations
117
+ * The value may be {@code null}.
118
+ */
119
+ @ com .google .api .client .util .Key
120
+ private java .lang .String location ;
121
+
98
122
/**
99
123
* Output only. The number of rows affected by a DML statement. Present only for DML statements
100
124
* INSERT, UPDATE or DELETE.
@@ -144,6 +168,23 @@ public final class QueryResponse extends com.google.api.client.json.GenericJson
144
168
@ com .google .api .client .util .Key
145
169
private SessionInfo sessionInfo ;
146
170
171
+ /**
172
+ * Output only. Start time of this query, in milliseconds since the epoch. This field will be
173
+ * present when the query job transitions from the PENDING state to either RUNNING or DONE.
174
+ * The value may be {@code null}.
175
+ */
176
+ @ com .google .api .client .util .Key @ com .google .api .client .json .JsonString
177
+ private java .lang .Long startTime ;
178
+
179
+ /**
180
+ * Output only. If the project is configured to use on-demand pricing, then this field contains
181
+ * the total bytes billed for the job. If the project is configured to use flat-rate pricing, then
182
+ * you are not billed for bytes and this field is informational only.
183
+ * The value may be {@code null}.
184
+ */
185
+ @ com .google .api .client .util .Key @ com .google .api .client .json .JsonString
186
+ private java .lang .Long totalBytesBilled ;
187
+
147
188
/**
148
189
* The total number of bytes processed for this query. If this query was a dry run, this is the
149
190
* number of bytes that would be processed if the query were run.
@@ -160,6 +201,13 @@ public final class QueryResponse extends com.google.api.client.json.GenericJson
160
201
@ com .google .api .client .util .Key @ com .google .api .client .json .JsonString
161
202
private java .math .BigInteger totalRows ;
162
203
204
+ /**
205
+ * Output only. Number of slot ms the user is actually billed for.
206
+ * The value may be {@code null}.
207
+ */
208
+ @ com .google .api .client .util .Key @ com .google .api .client .json .JsonString
209
+ private java .lang .Long totalSlotMs ;
210
+
163
211
/**
164
212
* Whether the query result was fetched from the query cache.
165
213
* @return value or {@code null} for none
@@ -177,6 +225,25 @@ public QueryResponse setCacheHit(java.lang.Boolean cacheHit) {
177
225
return this ;
178
226
}
179
227
228
+ /**
229
+ * Output only. Creation time of this query, in milliseconds since the epoch. This field will be
230
+ * present on all queries.
231
+ * @return value or {@code null} for none
232
+ */
233
+ public java .lang .Long getCreationTime () {
234
+ return creationTime ;
235
+ }
236
+
237
+ /**
238
+ * Output only. Creation time of this query, in milliseconds since the epoch. This field will be
239
+ * present on all queries.
240
+ * @param creationTime creationTime or {@code null} for none
241
+ */
242
+ public QueryResponse setCreationTime (java .lang .Long creationTime ) {
243
+ this .creationTime = creationTime ;
244
+ return this ;
245
+ }
246
+
180
247
/**
181
248
* Output only. Detailed statistics for DML statements INSERT, UPDATE, DELETE, MERGE or TRUNCATE.
182
249
* @return value or {@code null} for none
@@ -194,6 +261,25 @@ public QueryResponse setDmlStats(DmlStatistics dmlStats) {
194
261
return this ;
195
262
}
196
263
264
+ /**
265
+ * Output only. End time of this query, in milliseconds since the epoch. This field will be
266
+ * present whenever a query job is in the DONE state.
267
+ * @return value or {@code null} for none
268
+ */
269
+ public java .lang .Long getEndTime () {
270
+ return endTime ;
271
+ }
272
+
273
+ /**
274
+ * Output only. End time of this query, in milliseconds since the epoch. This field will be
275
+ * present whenever a query job is in the DONE state.
276
+ * @param endTime endTime or {@code null} for none
277
+ */
278
+ public QueryResponse setEndTime (java .lang .Long endTime ) {
279
+ this .endTime = endTime ;
280
+ return this ;
281
+ }
282
+
197
283
/**
198
284
* Output only. The first errors or warnings encountered during the running of the job. The final
199
285
* message includes the number of errors that caused the process to stop. Errors here do not
@@ -301,6 +387,25 @@ public QueryResponse setKind(java.lang.String kind) {
301
387
return this ;
302
388
}
303
389
390
+ /**
391
+ * Output only. The geographic location of the query. For more information about BigQuery
392
+ * locations, see: https://cloud.google.com/bigquery/docs/locations
393
+ * @return value or {@code null} for none
394
+ */
395
+ public java .lang .String getLocation () {
396
+ return location ;
397
+ }
398
+
399
+ /**
400
+ * Output only. The geographic location of the query. For more information about BigQuery
401
+ * locations, see: https://cloud.google.com/bigquery/docs/locations
402
+ * @param location location or {@code null} for none
403
+ */
404
+ public QueryResponse setLocation (java .lang .String location ) {
405
+ this .location = location ;
406
+ return this ;
407
+ }
408
+
304
409
/**
305
410
* Output only. The number of rows affected by a DML statement. Present only for DML statements
306
411
* INSERT, UPDATE or DELETE.
@@ -417,6 +522,46 @@ public QueryResponse setSessionInfo(SessionInfo sessionInfo) {
417
522
return this ;
418
523
}
419
524
525
+ /**
526
+ * Output only. Start time of this query, in milliseconds since the epoch. This field will be
527
+ * present when the query job transitions from the PENDING state to either RUNNING or DONE.
528
+ * @return value or {@code null} for none
529
+ */
530
+ public java .lang .Long getStartTime () {
531
+ return startTime ;
532
+ }
533
+
534
+ /**
535
+ * Output only. Start time of this query, in milliseconds since the epoch. This field will be
536
+ * present when the query job transitions from the PENDING state to either RUNNING or DONE.
537
+ * @param startTime startTime or {@code null} for none
538
+ */
539
+ public QueryResponse setStartTime (java .lang .Long startTime ) {
540
+ this .startTime = startTime ;
541
+ return this ;
542
+ }
543
+
544
+ /**
545
+ * Output only. If the project is configured to use on-demand pricing, then this field contains
546
+ * the total bytes billed for the job. If the project is configured to use flat-rate pricing, then
547
+ * you are not billed for bytes and this field is informational only.
548
+ * @return value or {@code null} for none
549
+ */
550
+ public java .lang .Long getTotalBytesBilled () {
551
+ return totalBytesBilled ;
552
+ }
553
+
554
+ /**
555
+ * Output only. If the project is configured to use on-demand pricing, then this field contains
556
+ * the total bytes billed for the job. If the project is configured to use flat-rate pricing, then
557
+ * you are not billed for bytes and this field is informational only.
558
+ * @param totalBytesBilled totalBytesBilled or {@code null} for none
559
+ */
560
+ public QueryResponse setTotalBytesBilled (java .lang .Long totalBytesBilled ) {
561
+ this .totalBytesBilled = totalBytesBilled ;
562
+ return this ;
563
+ }
564
+
420
565
/**
421
566
* The total number of bytes processed for this query. If this query was a dry run, this is the
422
567
* number of bytes that would be processed if the query were run.
@@ -455,6 +600,23 @@ public QueryResponse setTotalRows(java.math.BigInteger totalRows) {
455
600
return this ;
456
601
}
457
602
603
+ /**
604
+ * Output only. Number of slot ms the user is actually billed for.
605
+ * @return value or {@code null} for none
606
+ */
607
+ public java .lang .Long getTotalSlotMs () {
608
+ return totalSlotMs ;
609
+ }
610
+
611
+ /**
612
+ * Output only. Number of slot ms the user is actually billed for.
613
+ * @param totalSlotMs totalSlotMs or {@code null} for none
614
+ */
615
+ public QueryResponse setTotalSlotMs (java .lang .Long totalSlotMs ) {
616
+ this .totalSlotMs = totalSlotMs ;
617
+ return this ;
618
+ }
619
+
458
620
@ Override
459
621
public QueryResponse set (String fieldName , Object value ) {
460
622
return (QueryResponse ) super .set (fieldName , value );
0 commit comments