@@ -36,13 +36,29 @@ public final class QueryResponse extends com.google.api.client.json.GenericJson
3636 @ com .google .api .client .util .Key
3737 private java .lang .Boolean cacheHit ;
3838
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+
3947 /**
4048 * Output only. Detailed statistics for DML statements INSERT, UPDATE, DELETE, MERGE or TRUNCATE.
4149 * The value may be {@code null}.
4250 */
4351 @ com .google .api .client .util .Key
4452 private DmlStatistics dmlStats ;
4553
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+
4662 /**
4763 * Output only. The first errors or warnings encountered during the running of the job. The final
4864 * 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
95111 @ com .google .api .client .util .Key
96112 private java .lang .String kind ;
97113
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+
98122 /**
99123 * Output only. The number of rows affected by a DML statement. Present only for DML statements
100124 * INSERT, UPDATE or DELETE.
@@ -144,6 +168,23 @@ public final class QueryResponse extends com.google.api.client.json.GenericJson
144168 @ com .google .api .client .util .Key
145169 private SessionInfo sessionInfo ;
146170
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+
147188 /**
148189 * The total number of bytes processed for this query. If this query was a dry run, this is the
149190 * 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
160201 @ com .google .api .client .util .Key @ com .google .api .client .json .JsonString
161202 private java .math .BigInteger totalRows ;
162203
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+
163211 /**
164212 * Whether the query result was fetched from the query cache.
165213 * @return value or {@code null} for none
@@ -177,6 +225,25 @@ public QueryResponse setCacheHit(java.lang.Boolean cacheHit) {
177225 return this ;
178226 }
179227
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+
180247 /**
181248 * Output only. Detailed statistics for DML statements INSERT, UPDATE, DELETE, MERGE or TRUNCATE.
182249 * @return value or {@code null} for none
@@ -194,6 +261,25 @@ public QueryResponse setDmlStats(DmlStatistics dmlStats) {
194261 return this ;
195262 }
196263
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+
197283 /**
198284 * Output only. The first errors or warnings encountered during the running of the job. The final
199285 * 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) {
301387 return this ;
302388 }
303389
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+
304409 /**
305410 * Output only. The number of rows affected by a DML statement. Present only for DML statements
306411 * INSERT, UPDATE or DELETE.
@@ -417,6 +522,46 @@ public QueryResponse setSessionInfo(SessionInfo sessionInfo) {
417522 return this ;
418523 }
419524
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+
420565 /**
421566 * The total number of bytes processed for this query. If this query was a dry run, this is the
422567 * number of bytes that would be processed if the query were run.
@@ -455,6 +600,23 @@ public QueryResponse setTotalRows(java.math.BigInteger totalRows) {
455600 return this ;
456601 }
457602
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+
458620 @ Override
459621 public QueryResponse set (String fieldName , Object value ) {
460622 return (QueryResponse ) super .set (fieldName , value );
0 commit comments