Class: Google::Apis::BigqueryV2::QueryParameterType

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 type of a query parameter.

Defined Under Namespace

Classes: StructType

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QueryParameterType

Returns a new instance of QueryParameterType.



7932
7933
7934
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7932

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

Instance Attribute Details

#array_typeGoogle::Apis::BigqueryV2::QueryParameterType

The type of a query parameter. Corresponds to the JSON property arrayType



7907
7908
7909
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7907

def array_type
  @array_type
end

#range_element_typeGoogle::Apis::BigqueryV2::QueryParameterType

The type of a query parameter. Corresponds to the JSON property rangeElementType



7912
7913
7914
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7912

def range_element_type
  @range_element_type
end

#struct_typesArray<Google::Apis::BigqueryV2::QueryParameterType::StructType>

Optional. The types of the fields of this struct, in order, if this is a struct. Corresponds to the JSON property structTypes



7918
7919
7920
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7918

def struct_types
  @struct_types
end

#timestamp_precisionFixnum

Optional. Precision (maximum number of total digits in base 10) for seconds of TIMESTAMP type. Possible values include: * 6 (Default, for TIMESTAMP type with microsecond precision) * 12 (For TIMESTAMP type with picosecond precision) Corresponds to the JSON property timestampPrecision

Returns:

  • (Fixnum)


7925
7926
7927
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7925

def timestamp_precision
  @timestamp_precision
end

#typeString

Required. The top level type of this field. Corresponds to the JSON property type

Returns:

  • (String)


7930
7931
7932
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7930

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7937
7938
7939
7940
7941
7942
7943
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7937

def update!(**args)
  @array_type = args[:array_type] if args.key?(:array_type)
  @range_element_type = args[:range_element_type] if args.key?(:range_element_type)
  @struct_types = args[:struct_types] if args.key?(:struct_types)
  @timestamp_precision = args[:timestamp_precision] if args.key?(:timestamp_precision)
  @type = args[:type] if args.key?(:type)
end