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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/bigquery_v2/classes.rb,
generated/google/apis/bigquery_v2/representations.rb,
generated/google/apis/bigquery_v2/representations.rb

Defined Under Namespace

Classes: StructType

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QueryParameterType

Returns a new instance of QueryParameterType.



4714
4715
4716
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4714

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

Instance Attribute Details

#array_typeGoogle::Apis::BigqueryV2::QueryParameterType

[Optional] The type of the array's elements, if this is an array. Corresponds to the JSON property arrayType



4701
4702
4703
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4701

def array_type
  @array_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



4707
4708
4709
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4707

def struct_types
  @struct_types
end

#typeString

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

Returns:

  • (String)


4712
4713
4714
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4712

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4719
4720
4721
4722
4723
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4719

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