Class: Google::Apis::BigqueryV2::StandardSqlField
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::StandardSqlField
- 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
A field or a column.
Instance Attribute Summary collapse
-
#name ⇒ String
Optional.
-
#type ⇒ Google::Apis::BigqueryV2::StandardSqlDataType
The data type of a variable such as 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.
9085 9086 9087 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9085 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
9072 9073 9074 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9072 def name @name end |
#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
type
9083 9084 9085 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9083 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9090 9091 9092 9093 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9090 def update!(**args) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) end |