Class: Google::Apis::BigqueryV2::StandardSqlField
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::StandardSqlField
- 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
A field or a column.
Instance Attribute Summary collapse
-
#name ⇒ String
Optional.
-
#type ⇒ Google::Apis::BigqueryV2::StandardSqlDataType
The type of a variable, e.g., a function argument.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StandardSqlField
constructor
A new instance of StandardSqlField.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ StandardSqlField
Returns a new instance of StandardSqlField.
4808 4809 4810 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4808 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Optional. The name of this field. Can be absent for struct fields.
Corresponds to the JSON property name
4792 4793 4794 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4792 def name @name end |
#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
type`
4806 4807 4808 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4806 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4813 4814 4815 4816 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4813 def update!(**args) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) end |