Class: Google::Apis::BigqueryV2::StandardSqlDataType

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

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" ]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StandardSqlDataType

Returns a new instance of StandardSqlDataType.



9001
9002
9003
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9001

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

Instance Attribute Details

#array_element_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" ] Corresponds to the JSON property arrayElementType



8978
8979
8980
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8978

def array_element_type
  @array_element_type
end

#range_element_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" ] Corresponds to the JSON property rangeElementType



8988
8989
8990
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8988

def range_element_type
  @range_element_type
end

#struct_typeGoogle::Apis::BigqueryV2::StandardSqlStructType

The representation of a SQL STRUCT type. Corresponds to the JSON property structType



8993
8994
8995
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8993

def struct_type
  @struct_type
end

#type_kindString

Required. The top level type of this field. Can be any GoogleSQL data type (e. g., "INT64", "DATE", "ARRAY"). Corresponds to the JSON property typeKind

Returns:

  • (String)


8999
9000
9001
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8999

def type_kind
  @type_kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9006
9007
9008
9009
9010
9011
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9006

def update!(**args)
  @array_element_type = args[:array_element_type] if args.key?(:array_element_type)
  @range_element_type = args[:range_element_type] if args.key?(:range_element_type)
  @struct_type = args[:struct_type] if args.key?(:struct_type)
  @type_kind = args[:type_kind] if args.key?(:type_kind)
end