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
4363 4364 4365 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4363 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
4347 4348 4349 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4347 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`
4361 4362 4363 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4361 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4368 4369 4370 4371 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4368 def update!(**args) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) end |