Type
indicates the type of a Cloud Spanner value, as might be stored in a
table cell or returned from an SQL query.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#array_element_type
def array_element_type() -> ::Google::Cloud::Spanner::V1::Type
Returns
-
(::Google::Cloud::Spanner::V1::Type) — If code == ARRAY, then
array_element_type
is the type of the array elements.
#array_element_type=
def array_element_type=(value) -> ::Google::Cloud::Spanner::V1::Type
Parameter
-
value (::Google::Cloud::Spanner::V1::Type) — If code == ARRAY, then
array_element_type
is the type of the array elements.
Returns
-
(::Google::Cloud::Spanner::V1::Type) — If code == ARRAY, then
array_element_type
is the type of the array elements.
#code
def code() -> ::Google::Cloud::Spanner::V1::TypeCode
Returns
- (::Google::Cloud::Spanner::V1::TypeCode) — Required. The TypeCode for this type.
#code=
def code=(value) -> ::Google::Cloud::Spanner::V1::TypeCode
Parameter
- value (::Google::Cloud::Spanner::V1::TypeCode) — Required. The TypeCode for this type.
Returns
- (::Google::Cloud::Spanner::V1::TypeCode) — Required. The TypeCode for this type.
#struct_type
def struct_type() -> ::Google::Cloud::Spanner::V1::StructType
Returns
-
(::Google::Cloud::Spanner::V1::StructType) — If code == STRUCT, then
struct_type
provides type information for the struct's fields.
#struct_type=
def struct_type=(value) -> ::Google::Cloud::Spanner::V1::StructType
Parameter
-
value (::Google::Cloud::Spanner::V1::StructType) — If code == STRUCT, then
struct_type
provides type information for the struct's fields.
Returns
-
(::Google::Cloud::Spanner::V1::StructType) — If code == STRUCT, then
struct_type
provides type information for the struct's fields.