Class: Google::Apis::SpannerV1::Type

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

Overview

Type indicates the type of a Cloud Spanner value, as might be stored in a table cell or returned from an SQL query.

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) ⇒ Type

Returns a new instance of Type.



3744
3745
3746
# File 'generated/google/apis/spanner_v1/classes.rb', line 3744

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

Instance Attribute Details

#array_element_typeGoogle::Apis::SpannerV1::Type

Type indicates the type of a Cloud Spanner value, as might be stored in a table cell or returned from an SQL query. Corresponds to the JSON property arrayElementType



3732
3733
3734
# File 'generated/google/apis/spanner_v1/classes.rb', line 3732

def array_element_type
  @array_element_type
end

#codeString

Required. The TypeCode for this type. Corresponds to the JSON property code

Returns:

  • (String)


3737
3738
3739
# File 'generated/google/apis/spanner_v1/classes.rb', line 3737

def code
  @code
end

#struct_typeGoogle::Apis::SpannerV1::StructType

StructType defines the fields of a STRUCT type. Corresponds to the JSON property structType



3742
3743
3744
# File 'generated/google/apis/spanner_v1/classes.rb', line 3742

def struct_type
  @struct_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3749
3750
3751
3752
3753
# File 'generated/google/apis/spanner_v1/classes.rb', line 3749

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