Class QueryParameterValue.Builder (2.40.3)

public abstract static class QueryParameterValue.Builder

Inheritance

java.lang.Object > QueryParameterValue.Builder

Constructors

Builder()

public Builder()

Methods

build()

public abstract QueryParameterValue build()

Creates a QueryParameterValue object.

Returns
Type Description
QueryParameterValue

setArrayType(StandardSQLTypeName arrayType)

public abstract QueryParameterValue.Builder setArrayType(StandardSQLTypeName arrayType)

Sets the data type of the array elements. The type must set to ARRAY.

Parameter
Name Description
arrayType StandardSQLTypeName
Returns
Type Description
QueryParameterValue.Builder

setArrayValues(List<QueryParameterValue> arrayValues)

public QueryParameterValue.Builder setArrayValues(List<QueryParameterValue> arrayValues)

Sets array values. The type must set to ARRAY.

Parameter
Name Description
arrayValues List<QueryParameterValue>
Returns
Type Description
QueryParameterValue.Builder

setRangeValues(Range range)

public QueryParameterValue.Builder setRangeValues(Range range)

Sets range values. The type must set to RANGE.

Parameter
Name Description
range Range
Returns
Type Description
QueryParameterValue.Builder

setStructTypes(Map<String,QueryParameterValue> structTypes)

public QueryParameterValue.Builder setStructTypes(Map<String,QueryParameterValue> structTypes)

Sets the data type of the struct elements. The type must set to STRUCT.

Parameter
Name Description
structTypes Map<String,QueryParameterValue>
Returns
Type Description
QueryParameterValue.Builder

setStructValues(Map<String,QueryParameterValue> structValues)

public QueryParameterValue.Builder setStructValues(Map<String,QueryParameterValue> structValues)

Sets struct values. The type must set to STRUCT.

Parameter
Name Description
structValues Map<String,QueryParameterValue>
Returns
Type Description
QueryParameterValue.Builder

setType(StandardSQLTypeName type)

public abstract QueryParameterValue.Builder setType(StandardSQLTypeName type)

Sets the parameter data type.

Parameter
Name Description
type StandardSQLTypeName
Returns
Type Description
QueryParameterValue.Builder

setValue(String value)

public abstract QueryParameterValue.Builder setValue(String value)

Sets the value to the given scalar value.

Parameter
Name Description
value String
Returns
Type Description
QueryParameterValue.Builder