Class: Google::Apis::BigqueryV2::StandardSqlDataType
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::StandardSqlDataType
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigquery_v2/classes.rb,
lib/google/apis/bigquery_v2/representations.rb,
lib/google/apis/bigquery_v2/representations.rb
Overview
The data type of a variable such as a function argument. Examples include: *
INT64: "typeKind": "INT64"
* ARRAY: "typeKind": "ARRAY", "
arrayElementType":
"typeKind": "STRING" * STRUCT>:
"typeKind": "STRUCT",
"structType":
"fields": [ "name": "x", "type":
"typeKind": "STRING",
"name": "y", "type":
"typeKind": "ARRAY", "arrayElementType": "typeKind": "
DATE"
]
* RANGE:
"typeKind": "RANGE", "rangeElementType":
"
typeKind": "DATE"
Instance Attribute Summary collapse
-
#array_element_type ⇒ Google::Apis::BigqueryV2::StandardSqlDataType
The data type of a variable such as a function argument.
-
#range_element_type ⇒ Google::Apis::BigqueryV2::StandardSqlDataType
The data type of a variable such as a function argument.
-
#struct_type ⇒ Google::Apis::BigqueryV2::StandardSqlStructType
The representation of a SQL STRUCT type.
-
#type_kind ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StandardSqlDataType
constructor
A new instance of StandardSqlDataType.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StandardSqlDataType
Returns a new instance of StandardSqlDataType.
9072 9073 9074 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9072 def initialize(**args) update!(**args) end |
Instance Attribute Details
#array_element_type ⇒ Google::Apis::BigqueryV2::StandardSqlDataType
The data type of a variable such as a function argument. Examples include: *
INT64: "typeKind": "INT64"
* ARRAY: "typeKind": "ARRAY", "
arrayElementType":
"typeKind": "STRING" * STRUCT>:
"typeKind": "STRUCT",
"structType":
"fields": [ "name": "x", "type":
"typeKind": "STRING",
"name": "y", "type":
"typeKind": "ARRAY", "arrayElementType": "typeKind": "
DATE"
]
* RANGE:
"typeKind": "RANGE", "rangeElementType":
"
typeKind": "DATE"
Corresponds to the JSON property
arrayElementType
9048 9049 9050 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9048 def array_element_type @array_element_type end |
#range_element_type ⇒ Google::Apis::BigqueryV2::StandardSqlDataType
The data type of a variable such as a function argument. Examples include: *
INT64: "typeKind": "INT64"
* ARRAY: "typeKind": "ARRAY", "
arrayElementType":
"typeKind": "STRING" * STRUCT>:
"typeKind": "STRUCT",
"structType":
"fields": [ "name": "x", "type":
"typeKind": "STRING",
"name": "y", "type":
"typeKind": "ARRAY", "arrayElementType": "typeKind": "
DATE"
]
* RANGE:
"typeKind": "RANGE", "rangeElementType":
"
typeKind": "DATE"
Corresponds to the JSON property
rangeElementType
9059 9060 9061 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9059 def range_element_type @range_element_type end |
#struct_type ⇒ Google::Apis::BigqueryV2::StandardSqlStructType
The representation of a SQL STRUCT type.
Corresponds to the JSON property structType
9064 9065 9066 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9064 def struct_type @struct_type end |
#type_kind ⇒ String
Required. The top level type of this field. Can be any GoogleSQL data type (e.
g., "INT64", "DATE", "ARRAY").
Corresponds to the JSON property typeKind
9070 9071 9072 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9070 def type_kind @type_kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9077 9078 9079 9080 9081 9082 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9077 def update!(**args) @array_element_type = args[:array_element_type] if args.key?(:array_element_type) @range_element_type = args[:range_element_type] if args.key?(:range_element_type) @struct_type = args[:struct_type] if args.key?(:struct_type) @type_kind = args[:type_kind] if args.key?(:type_kind) end |