Class QueryParameterValue.Builder (2.37.2)

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
TypeDescription
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
NameDescription
arrayTypeStandardSQLTypeName
Returns
TypeDescription
QueryParameterValue.Builder

setArrayValues(List<QueryParameterValue> arrayValues)

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

Sets array values. The type must set to ARRAY.

Parameter
NameDescription
arrayValuesList<QueryParameterValue>
Returns
TypeDescription
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
NameDescription
structTypesMap<String,QueryParameterValue>
Returns
TypeDescription
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
NameDescription
structValuesMap<String,QueryParameterValue>
Returns
TypeDescription
QueryParameterValue.Builder

setType(StandardSQLTypeName type)

public abstract QueryParameterValue.Builder setType(StandardSQLTypeName type)

Sets the parameter data type.

Parameter
NameDescription
typeStandardSQLTypeName
Returns
TypeDescription
QueryParameterValue.Builder

setValue(String value)

public abstract QueryParameterValue.Builder setValue(String value)

Sets the value to the given scalar value.

Parameter
NameDescription
valueString
Returns
TypeDescription
QueryParameterValue.Builder