class Google::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.

Attributes

array_element_type[RW]

`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` @return [Google::Apis::SpannerV1::Type]

code[RW]

Required. The TypeCode for this type. Corresponds to the JSON property `code` @return [String]

struct_type[RW]

`StructType` defines the fields of a STRUCT type. Corresponds to the JSON property `structType` @return [Google::Apis::SpannerV1::StructType]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/spanner_v1/classes.rb, line 4573
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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