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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ StructType

Returns a new instance of StructType.


4601
4602
4603
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4601

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

Instance Attribute Details

#descriptionString

[Optional] Human-oriented description of the field. Corresponds to the JSON property description

Returns:

  • (String)

4589
4590
4591
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4589

def description
  @description
end

#nameString

[Optional] The name of this field. Corresponds to the JSON property name

Returns:

  • (String)

4594
4595
4596
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4594

def name
  @name
end

#typeGoogle::Apis::BigqueryV2::QueryParameterType

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


4599
4600
4601
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4599

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


4606
4607
4608
4609
4610
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4606

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