Reference documentation and code samples for the Cloud Spanner V1 Client class ModValue.
Returns the value and associated metadata for a particular field of the Mod.
Generated from protobuf message google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ModValue
Namespace
Google \ Cloud \ Spanner \ V1 \ ChangeStreamRecord \ DataChangeRecordMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ column_metadata_index |
int
Index within the repeated column_metadata field, to obtain the column metadata for the column that was modified. |
↳ value |
Google\Protobuf\Value
The value of the column. |
getColumnMetadataIndex
Index within the repeated column_metadata field, to obtain the column metadata for the column that was modified.
Returns | |
---|---|
Type | Description |
int |
setColumnMetadataIndex
Index within the repeated column_metadata field, to obtain the column metadata for the column that was modified.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getValue
The value of the column.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Value|null |
hasValue
clearValue
setValue
The value of the column.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Value
|
Returns | |
---|---|
Type | Description |
$this |