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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/spanner_v1/classes.rb,
lib/google/apis/spanner_v1/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ Type

Returns a new instance of Type.



4573
4574
4575
# File 'lib/google/apis/spanner_v1/classes.rb', line 4573

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



4561
4562
4563
# File 'lib/google/apis/spanner_v1/classes.rb', line 4561

def array_element_type
  @array_element_type
end

#codeString

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

Returns:

  • (String)


4566
4567
4568
# File 'lib/google/apis/spanner_v1/classes.rb', line 4566

def code
  @code
end

#struct_typeGoogle::Apis::SpannerV1::StructType

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



4571
4572
4573
# File 'lib/google/apis/spanner_v1/classes.rb', line 4571

def struct_type
  @struct_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4578
4579
4580
4581
4582
# File 'lib/google/apis/spanner_v1/classes.rb', line 4578

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