19
19
import static com .google .common .base .Preconditions .checkArgument ;
20
20
import static com .google .common .base .Preconditions .checkNotNull ;
21
21
22
+ import com .google .api .services .bigquery .model .QueryParameterType ;
22
23
import com .google .common .base .Function ;
23
24
import com .google .common .base .MoreObjects ;
24
25
import com .google .common .collect .ImmutableList ;
@@ -408,13 +409,11 @@ com.google.api.services.bigquery.model.QueryParameterValue toValuePb() {
408
409
return valuePb ;
409
410
}
410
411
411
- com .google .api .services .bigquery .model .QueryParameterType toTypePb () {
412
- com .google .api .services .bigquery .model .QueryParameterType typePb =
413
- new com .google .api .services .bigquery .model .QueryParameterType ();
412
+ QueryParameterType toTypePb () {
413
+ QueryParameterType typePb = new QueryParameterType ();
414
414
typePb .setType (type .toString ());
415
415
if (arrayType != null ) {
416
- com .google .api .services .bigquery .model .QueryParameterType arrayTypePb =
417
- new com .google .api .services .bigquery .model .QueryParameterType ();
416
+ QueryParameterType arrayTypePb = new QueryParameterType ();
418
417
arrayTypePb .setType (arrayType .toString ());
419
418
typePb .setArrayType (arrayTypePb );
420
419
}
@@ -423,7 +422,7 @@ com.google.api.services.bigquery.model.QueryParameterType toTypePb() {
423
422
424
423
static QueryParameterValue fromPb (
425
424
com .google .api .services .bigquery .model .QueryParameterValue valuePb ,
426
- com . google . api . services . bigquery . model . QueryParameterType typePb ) {
425
+ QueryParameterType typePb ) {
427
426
Builder valueBuilder = new Builder ();
428
427
valueBuilder .setValue (valuePb .getValue ());
429
428
if (valuePb .getArrayValues () != null && valuePb .getArrayValues ().size () > 0 ) {
0 commit comments