Class: Google::Apis::BigqueryV2::StandardSqlDataType
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::StandardSqlDataType
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/bigquery_v2/classes.rb,
generated/google/apis/bigquery_v2/representations.rb,
generated/google/apis/bigquery_v2/representations.rb
Overview
The type of a variable, e.g., a function argument.
Examples:
INT64: type_kind="INT64"
ARRAYtype_kind="ARRAY", array_element_type="STRING"
STRUCTtype_kind="STRUCT",
struct_type=
fields=[
name="x", type=
type_kind="STRING",
`name="y", type=`type_kind="ARRAY", array_element_type="DATE"
]``
Instance Attribute Summary collapse
-
#array_element_type ⇒ Google::Apis::BigqueryV2::StandardSqlDataType
The type of a variable, e.g., a function argument.
-
#struct_type ⇒ Google::Apis::BigqueryV2::StandardSqlStructType
The fields of this struct, in order, if type_kind = "STRUCT".
-
#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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ StandardSqlDataType
Returns a new instance of StandardSqlDataType.
4773 4774 4775 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4773 def initialize(**args) update!(**args) end |
Instance Attribute Details
#array_element_type ⇒ Google::Apis::BigqueryV2::StandardSqlDataType
The type of a variable, e.g., a function argument.
Examples:
INT64: type_kind="INT64"
ARRAYtype_kind="ARRAY", array_element_type="STRING"
STRUCTtype_kind="STRUCT",
struct_type=
fields=[
name="x", type=
type_kind="STRING",
`name="y", type=`type_kind="ARRAY", array_element_type="DATE"
]`
Corresponds to the JSON property
arrayElementType`
4760 4761 4762 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4760 def array_element_type @array_element_type end |
#struct_type ⇒ Google::Apis::BigqueryV2::StandardSqlStructType
The fields of this struct, in order, if type_kind = "STRUCT".
Corresponds to the JSON property structType
4765 4766 4767 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4765 def struct_type @struct_type end |
#type_kind ⇒ String
Required. The top level type of this field.
Can be any standard SQL data type (e.g., "INT64", "DATE", "ARRAY").
Corresponds to the JSON property typeKind
4771 4772 4773 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4771 def type_kind @type_kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4778 4779 4780 4781 4782 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4778 def update!(**args) @array_element_type = args[:array_element_type] if args.key?(:array_element_type) @struct_type = args[:struct_type] if args.key?(:struct_type) @type_kind = args[:type_kind] if args.key?(:type_kind) end |