Google Cloud Datastream V1 Client - Class SpannerColumn (2.7.0)

Reference documentation and code samples for the Google Cloud Datastream V1 Client class SpannerColumn.

Spanner column.

Generated from protobuf message google.cloud.datastream.v1.SpannerColumn

Namespace

Google \ Cloud \ Datastream \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ column string

Required. The column name.

↳ data_type string

Optional. Spanner data type.

↳ is_primary_key bool

Optional. Whether or not the column is a primary key.

↳ ordinal_position int|string

Optional. The ordinal position of the column in the table.

getColumn

Required. The column name.

Returns
Type Description
string

setColumn

Required. The column name.

Parameter
Name Description
var string
Returns
Type Description
$this

getDataType

Optional. Spanner data type.

Returns
Type Description
string

setDataType

Optional. Spanner data type.

Parameter
Name Description
var string
Returns
Type Description
$this

getIsPrimaryKey

Optional. Whether or not the column is a primary key.

Returns
Type Description
bool

setIsPrimaryKey

Optional. Whether or not the column is a primary key.

Parameter
Name Description
var bool
Returns
Type Description
$this

getOrdinalPosition

Optional. The ordinal position of the column in the table.

Returns
Type Description
int|string

setOrdinalPosition

Optional. The ordinal position of the column in the table.

Parameter
Name Description
var int|string
Returns
Type Description
$this