Package com.google.cloud.bigquery
Class StandardSQLDataType.Builder
- java.lang.Object
-
- com.google.cloud.bigquery.StandardSQLDataType.Builder
-
- Enclosing class:
- StandardSQLDataType
public abstract static class StandardSQLDataType.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract StandardSQLDataTypebuild()Creates aStandardSQLDataTypeobject.abstract StandardSQLDataType.BuildersetArrayElementType(StandardSQLDataType arrayElementType)Sets the type of an array's elements, when the TypeKind is ARRAY.abstract StandardSQLDataType.BuildersetStructType(StandardSQLStructType structType)Sets the struct type definition (list of fields) when the TypeKind is STRUCT.abstract StandardSQLDataType.BuildersetTypeKind(String typeKind)Sets the top-level type of this data type.
-
-
-
Method Detail
-
setArrayElementType
public abstract StandardSQLDataType.Builder setArrayElementType(StandardSQLDataType arrayElementType)
Sets the type of an array's elements, when the TypeKind is ARRAY.
-
setStructType
public abstract StandardSQLDataType.Builder setStructType(StandardSQLStructType structType)
Sets the struct type definition (list of fields) when the TypeKind is STRUCT.
-
setTypeKind
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
-
build
public abstract StandardSQLDataType build()
Creates aStandardSQLDataTypeobject.
-
-