Class StandardSQLDataType.Builder (2.38.2)

public abstract static class StandardSQLDataType.Builder

Inheritance

java.lang.Object > StandardSQLDataType.Builder

Constructors

Builder()

public Builder()

Methods

build()

public abstract StandardSQLDataType build()

Creates a StandardSQLDataType object.

Returns
TypeDescription
StandardSQLDataType

setArrayElementType(StandardSQLDataType arrayElementType)

public abstract StandardSQLDataType.Builder setArrayElementType(StandardSQLDataType arrayElementType)

Sets the type of an array's elements, when the TypeKind is ARRAY.

Parameter
NameDescription
arrayElementTypeStandardSQLDataType
Returns
TypeDescription
StandardSQLDataType.Builder

setStructType(StandardSQLStructType structType)

public abstract StandardSQLDataType.Builder setStructType(StandardSQLStructType structType)

Sets the struct type definition (list of fields) when the TypeKind is STRUCT.

Parameter
NameDescription
structTypeStandardSQLStructType
Returns
TypeDescription
StandardSQLDataType.Builder

setTypeKind(String typeKind)

public abstract StandardSQLDataType.Builder setTypeKind(String typeKind)

Sets the top-level type of this data type. Can be any standard SQL data type. For more information, see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types

Parameter
NameDescription
typeKindString
Returns
TypeDescription
StandardSQLDataType.Builder