3131 * <p>Example usage of a query response:
3232 * <pre> {@code
3333 * QueryResponse response = bigquery.query(request);
34- * while (!response.jobCompleted ()) {
34+ * while (!response.jobComplete ()) {
3535 * Thread.sleep(1000);
3636 * response = bigquery.getQueryResults(response.jobId());
3737 * }
@@ -56,15 +56,15 @@ public class QueryResponse implements Serializable {
5656 private final QueryResult result ;
5757 private final String etag ;
5858 private final JobId jobId ;
59- private final boolean jobCompleted ;
59+ private final boolean jobComplete ;
6060 private final List <BigQueryError > executionErrors ;
6161
6262 static final class Builder {
6363
6464 private QueryResult result ;
6565 private String etag ;
6666 private JobId jobId ;
67- private boolean jobCompleted ;
67+ private boolean jobComplete ;
6868 private List <BigQueryError > executionErrors ;
6969
7070 private Builder () {}
@@ -84,8 +84,8 @@ Builder jobId(JobId jobId) {
8484 return this ;
8585 }
8686
87- Builder jobCompleted (boolean jobCompleted ) {
88- this .jobCompleted = jobCompleted ;
87+ Builder jobComplete (boolean jobComplete ) {
88+ this .jobComplete = jobComplete ;
8989 return this ;
9090 }
9191
@@ -103,13 +103,13 @@ private QueryResponse(Builder builder) {
103103 this .result = builder .result ;
104104 this .etag = builder .etag ;
105105 this .jobId = builder .jobId ;
106- this .jobCompleted = builder .jobCompleted ;
106+ this .jobComplete = builder .jobComplete ;
107107 this .executionErrors = builder .executionErrors != null ? builder .executionErrors
108108 : ImmutableList .<BigQueryError >of ();
109109 }
110110
111111 /**
112- * Returns the result of the query. Returns {@code null} if {@link #jobCompleted ()} is {@code
112+ * Returns the result of the query. Returns {@code null} if {@link #jobComplete ()} is {@code
113113 * false}.
114114 */
115115 public QueryResult result () {
@@ -137,8 +137,8 @@ public JobId jobId() {
137137 * {@link #result()} returns {@code null}. This method can be used to check if query execution
138138 * completed and results are available.
139139 */
140- public boolean jobCompleted () {
141- return jobCompleted ;
140+ public boolean jobComplete () {
141+ return jobComplete ;
142142 }
143143
144144 /**
@@ -164,7 +164,7 @@ public String toString() {
164164 .add ("result" , result )
165165 .add ("etag" , etag )
166166 .add ("jobId" , jobId )
167- .add ("jobCompleted " , jobCompleted )
167+ .add ("jobComplete " , jobComplete )
168168 .add ("executionErrors" , executionErrors )
169169 .toString ();
170170 }
@@ -183,7 +183,7 @@ public boolean equals(Object obj) {
183183 return false ;
184184 }
185185 QueryResponse response = (QueryResponse ) obj ;
186- return jobCompleted == response .jobCompleted
186+ return jobComplete == response .jobComplete
187187 && Objects .equals (etag , response .etag )
188188 && Objects .equals (result , response .result )
189189 && Objects .equals (jobId , response .jobId )
0 commit comments