@@ -137,7 +137,7 @@ static QueryStep fromPb(com.google.api.services.bigquery.model.ExplainQueryStep
137
137
138
138
private final double computeRatioAvg ;
139
139
private final double computeRatioMax ;
140
- private final long id ;
140
+ private final long generatedId ;
141
141
private final String name ;
142
142
private final double readRatioAvg ;
143
143
private final double readRatioMax ;
@@ -153,7 +153,7 @@ static final class Builder {
153
153
154
154
private double computeRatioAvg ;
155
155
private double computeRatioMax ;
156
- private long id ;
156
+ private long generatedId ;
157
157
private String name ;
158
158
private double readRatioAvg ;
159
159
private double readRatioMax ;
@@ -177,8 +177,8 @@ Builder computeRatioMax(double computeRatioMax) {
177
177
return this ;
178
178
}
179
179
180
- Builder id (long id ) {
181
- this .id = id ;
180
+ Builder generatedId (long generatedId ) {
181
+ this .generatedId = generatedId ;
182
182
return this ;
183
183
}
184
184
@@ -240,7 +240,7 @@ QueryStage build() {
240
240
QueryStage (Builder builder ) {
241
241
computeRatioAvg = builder .computeRatioAvg ;
242
242
computeRatioMax = builder .computeRatioMax ;
243
- id = builder .id ;
243
+ generatedId = builder .generatedId ;
244
244
name = builder .name ;
245
245
readRatioAvg = builder .readRatioAvg ;
246
246
readRatioMax = builder .readRatioMax ;
@@ -270,10 +270,10 @@ public double computeRatioMax() {
270
270
}
271
271
272
272
/**
273
- * Returns a unique ID for the stage within its plan.
273
+ * Returns a unique, server-generated ID for the stage within its plan.
274
274
*/
275
- public long id () {
276
- return id ;
275
+ public long generatedId () {
276
+ return generatedId ;
277
277
}
278
278
279
279
/**
@@ -357,7 +357,7 @@ public String toString() {
357
357
return MoreObjects .toStringHelper (this )
358
358
.add ("computeRatioAvg" , computeRatioAvg )
359
359
.add ("computeRatioMax" , computeRatioMax )
360
- .add ("id " , id )
360
+ .add ("generatedId " , generatedId )
361
361
.add ("name" , name )
362
362
.add ("readRatioAvg" , readRatioAvg )
363
363
.add ("readRatioMax" , readRatioMax )
@@ -373,7 +373,7 @@ public String toString() {
373
373
374
374
@ Override
375
375
public int hashCode () {
376
- return Objects .hash (computeRatioAvg , computeRatioMax , id , name , readRatioAvg , readRatioMax ,
376
+ return Objects .hash (computeRatioAvg , computeRatioMax , generatedId , name , readRatioAvg , readRatioMax ,
377
377
recordsRead , recordsWritten , steps , waitRatioAvg , waitRatioMax , writeRatioAvg );
378
378
}
379
379
@@ -383,7 +383,7 @@ public boolean equals(Object obj) {
383
383
return false ;
384
384
}
385
385
QueryStage other = (QueryStage ) obj ;
386
- return id == other .id
386
+ return generatedId == other .generatedId
387
387
&& computeRatioAvg == other .computeRatioAvg
388
388
&& computeRatioMax == other .computeRatioMax
389
389
&& readRatioAvg == other .readRatioAvg
@@ -406,7 +406,7 @@ ExplainQueryStage toPb() {
406
406
ExplainQueryStage stagePb = new ExplainQueryStage ()
407
407
.setComputeRatioAvg (computeRatioAvg )
408
408
.setComputeRatioMax (computeRatioMax )
409
- .setId (id )
409
+ .setId (generatedId )
410
410
.setName (name )
411
411
.setReadRatioAvg (readRatioAvg )
412
412
.setReadRatioMax (readRatioMax )
@@ -426,7 +426,7 @@ static QueryStage fromPb(com.google.api.services.bigquery.model.ExplainQueryStag
426
426
Builder builder = new QueryStage .Builder ();
427
427
builder .computeRatioAvg (stagePb .getComputeRatioAvg ());
428
428
builder .computeRatioMax (stagePb .getComputeRatioMax ());
429
- builder .id (stagePb .getId ());
429
+ builder .generatedId (stagePb .getId ());
430
430
builder .name (stagePb .getName ());
431
431
builder .readRatioAvg (stagePb .getReadRatioAvg ());
432
432
builder .readRatioMax (stagePb .getReadRatioMax ());
0 commit comments