Cloud Spanner V1 Client - Class StructType (1.93.1)

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< 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

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< StructType\Field >
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: