Package com.google.cloud.bigquery
Class QueryParameterValue.Builder
- java.lang.Object
-
- com.google.cloud.bigquery.QueryParameterValue.Builder
-
- Enclosing class:
- QueryParameterValue
public abstract static class QueryParameterValue.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract QueryParameterValue
build()
Creates aQueryParameterValue
object.abstract QueryParameterValue.Builder
setArrayType(StandardSQLTypeName arrayType)
Sets the data type of the array elements.QueryParameterValue.Builder
setArrayValues(List<QueryParameterValue> arrayValues)
Sets array values.QueryParameterValue.Builder
setStructTypes(Map<String,QueryParameterValue> structTypes)
Sets the data type of the struct elements.QueryParameterValue.Builder
setStructValues(Map<String,QueryParameterValue> structValues)
Sets struct values.abstract QueryParameterValue.Builder
setType(StandardSQLTypeName type)
Sets the parameter data type.abstract QueryParameterValue.Builder
setValue(String value)
Sets the value to the given scalar value.
-
-
-
Method Detail
-
setValue
public abstract QueryParameterValue.Builder setValue(String value)
Sets the value to the given scalar value.
-
setArrayValues
public QueryParameterValue.Builder setArrayValues(List<QueryParameterValue> arrayValues)
Sets array values. The type must set to ARRAY.
-
setStructValues
public QueryParameterValue.Builder setStructValues(Map<String,QueryParameterValue> structValues)
Sets struct values. The type must set to STRUCT.
-
setType
public abstract QueryParameterValue.Builder setType(StandardSQLTypeName type)
Sets the parameter data type.
-
setArrayType
public abstract QueryParameterValue.Builder setArrayType(StandardSQLTypeName arrayType)
Sets the data type of the array elements. The type must set to ARRAY.
-
setStructTypes
public QueryParameterValue.Builder setStructTypes(Map<String,QueryParameterValue> structTypes)
Sets the data type of the struct elements. The type must set to STRUCT.
-
build
public abstract QueryParameterValue build()
Creates aQueryParameterValue
object.
-
-