Class: Google::Apis::BigqueryV2::StandardSqlField

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StandardSqlField

Returns a new instance of StandardSqlField.



9062
9063
9064
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9062

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

Optional. The name of this field. Can be absent for struct fields. Corresponds to the JSON property name

Returns:

  • (String)


9049
9050
9051
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9049

def name
  @name
end

#typeGoogle::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



9060
9061
9062
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9060

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9067
9068
9069
9070
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9067

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @type = args[:type] if args.key?(:type)
end