Cloud Spanner V1 Client - Class StructType (1.81.0)

Reference documentation and code samples for the Cloud Spanner V1 Client class StructType.

StructType defines the fields of a STRUCT type.

Generated from protobuf message google.spanner.v1.StructType

Namespace

Google \ Cloud \ Spanner \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ fields 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.

getFields

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
Type Description
Google\Protobuf\Internal\RepeatedField

setFields

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.

Parameter
Name Description
var array<Google\Cloud\Spanner\V1\StructType\Field>
Returns
Type Description
$this