Class: Google::Apis::BigqueryV2::AvroOptions

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AvroOptions

Returns a new instance of AvroOptions.



554
555
556
# File 'lib/google/apis/bigquery_v2/classes.rb', line 554

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

Instance Attribute Details

#use_avro_logical_typesBoolean Also known as: use_avro_logical_types?

[Optional] If sourceFormat is set to "AVRO", indicates whether to interpret logical types as the corresponding BigQuery data type (for example, TIMESTAMP), instead of using the raw type (for example, INTEGER). Corresponds to the JSON property useAvroLogicalTypes

Returns:

  • (Boolean)


551
552
553
# File 'lib/google/apis/bigquery_v2/classes.rb', line 551

def use_avro_logical_types
  @use_avro_logical_types
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



559
560
561
# File 'lib/google/apis/bigquery_v2/classes.rb', line 559

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