Class: Google::Apis::SpannerV1::Type
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::SpannerV1::Type
 
- 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
- 
  
    
      #array_element_type  ⇒ Google::Apis::SpannerV1::Type 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Typeindicates the type of a Cloud Spanner value, as might be stored in a table cell or returned from an SQL query.
- 
  
    
      #code  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Required. 
- 
  
    
      #struct_type  ⇒ Google::Apis::SpannerV1::StructType 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    StructTypedefines the fields of a STRUCT type.
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Type 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Type. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Type
Returns a new instance of Type
| 3095 3096 3097 | # File 'generated/google/apis/spanner_v1/classes.rb', line 3095 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#array_element_type ⇒ 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.
Corresponds to the JSON property arrayElementType
| 3083 3084 3085 | # File 'generated/google/apis/spanner_v1/classes.rb', line 3083 def array_element_type @array_element_type end | 
#code ⇒ String
Required. The TypeCode for this type.
Corresponds to the JSON property code
| 3088 3089 3090 | # File 'generated/google/apis/spanner_v1/classes.rb', line 3088 def code @code end | 
#struct_type ⇒ Google::Apis::SpannerV1::StructType
StructType defines the fields of a STRUCT type.
Corresponds to the JSON property structType
| 3093 3094 3095 | # File 'generated/google/apis/spanner_v1/classes.rb', line 3093 def struct_type @struct_type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 3100 3101 3102 3103 3104 | # File 'generated/google/apis/spanner_v1/classes.rb', line 3100 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 |