Cloud Spanner V1 API - Class Google::Cloud::Spanner::V1::StructType (v1.2.0)

Reference documentation and code samples for the Cloud Spanner V1 API class Google::Cloud::Spanner::V1::StructType.

StructType defines the fields of a STRUCT type.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#fields

def fields() -> ::Array<::Google::Cloud::Spanner::V1::StructType::Field>
Returns
  • (::Array<::Google::Cloud::Spanner::V1::StructType::Field>) — The list of fields that make up this struct. Order is significant, because values of this struct type are represented as lists, where the order of field values matches the order of fields in the StructType. In turn, the order of fields matches the order of columns in a read request, or the order of fields in the SELECT clause of a query.

#fields=

def fields=(value) -> ::Array<::Google::Cloud::Spanner::V1::StructType::Field>
Parameter
  • value (::Array<::Google::Cloud::Spanner::V1::StructType::Field>) — The list of fields that make up this struct. Order is significant, because values of this struct type are represented as lists, where the order of field values matches the order of fields in the StructType. In turn, the order of fields matches the order of columns in a read request, or the order of fields in the SELECT clause of a query.
Returns
  • (::Array<::Google::Cloud::Spanner::V1::StructType::Field>) — The list of fields that make up this struct. Order is significant, because values of this struct type are represented as lists, where the order of field values matches the order of fields in the StructType. In turn, the order of fields matches the order of columns in a read request, or the order of fields in the SELECT clause of a query.