Class: Google::Cloud::Spanner::V1::Type

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/spanner/v1/type.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 Attribute Details

#array_element_type::Google::Cloud::Spanner::V1::Type

Returns If code == ARRAY, then array_element_type is the type of the array elements.

Returns:



52
53
54
55
# File 'proto_docs/google/spanner/v1/type.rb', line 52

class Type
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#code::Google::Cloud::Spanner::V1::TypeCode

Returns Required. The TypeCode for this type.

Returns:



52
53
54
55
# File 'proto_docs/google/spanner/v1/type.rb', line 52

class Type
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#proto_type_fqn::String

Returns If code == PROTO or code == ENUM, then proto_type_fqn is the fully qualified name of the proto type representing the proto/enum definition.

Returns:

  • (::String)

    If code == PROTO or code == ENUM, then proto_type_fqn is the fully qualified name of the proto type representing the proto/enum definition.



52
53
54
55
# File 'proto_docs/google/spanner/v1/type.rb', line 52

class Type
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#struct_type::Google::Cloud::Spanner::V1::StructType

Returns If code == STRUCT, then struct_type provides type information for the struct's fields.

Returns:



52
53
54
55
# File 'proto_docs/google/spanner/v1/type.rb', line 52

class Type
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#type_annotation::Google::Cloud::Spanner::V1::TypeAnnotationCode

Returns The TypeAnnotationCode that disambiguates SQL type that Spanner will use to represent values of this type during query processing. This is necessary for some type codes because a single TypeCode can be mapped to different SQL types depending on the SQL dialect. type_annotation typically is not needed to process the content of a value (it doesn't affect serialization) and clients can ignore it on the read path.

Returns:

  • (::Google::Cloud::Spanner::V1::TypeAnnotationCode)

    The TypeAnnotationCode that disambiguates SQL type that Spanner will use to represent values of this type during query processing. This is necessary for some type codes because a single TypeCode can be mapped to different SQL types depending on the SQL dialect. type_annotation typically is not needed to process the content of a value (it doesn't affect serialization) and clients can ignore it on the read path.



52
53
54
55
# File 'proto_docs/google/spanner/v1/type.rb', line 52

class Type
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end