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.
Constructor Details
#initialize(**args) ⇒ StandardSqlField
Returns a new instance of StandardSqlField.
5711 5712 5713 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5711 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
5701 5702 5703 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5701 def name @name end |
#type ⇒ Google::Apis::BigqueryV2::StandardSqlDataType
The type of a variable, e.g., a function argument. Examples: INT64: type_kind=
"INT64"
ARRAY: type_kind="ARRAY", array_element_type="STRING"
STRUCT>:
type_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`
5709 5710 5711 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5709 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5716 5717 5718 5719 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5716 def update!(**args) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) end |