# Google Cloud Spanner v1 API - Class ChangeStreamRecord (5.13.0-beta07)

5.13.0-beta07 5.13.0-beta06 5.12.0 (latest) 5.11.0 5.10.0 5.9.0 5.8.0 5.7.0 5.6.0 5.5.0 5.4.0 5.3.0 5.2.0 5.1.0 5.0.0 4.6.0 4.5.0 4.4.0 4.3.0 4.2.0 4.1.0 4.0.0 3.15.1 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0

    public sealed class ChangeStreamRecord : IMessage<ChangeStreamRecord>, IEquatable<ChangeStreamRecord>, IDeepCloneable<ChangeStreamRecord>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Spanner v1 API class ChangeStreamRecord.

Spanner Change Streams enable customers to capture and stream out changes to
their Spanner databases in real-time. A change stream
can be created with option partition_mode='IMMUTABLE_KEY_RANGE' or
partition_mode='MUTABLE_KEY_RANGE'.

This message is only used in Change Streams created with the option
partition_mode='MUTABLE_KEY_RANGE'. Spanner automatically creates a special
Table-Valued Function (TVF) along with each Change Streams. The function
provides access to the change stream's records. The function is named
READ_\<change_stream_name\> (where \<change_stream_name\> is the
name of the change stream), and it returns a table with only one column
called ChangeRecord.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ChangeStreamRecord

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ChangeStreamRecord](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ChangeStreamRecord), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ChangeStreamRecord](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ChangeStreamRecord), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ChangeStreamRecord](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ChangeStreamRecord), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Spanner.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1)

## Assembly

Google.Cloud.Spanner.V1.dll

## Constructors

### ChangeStreamRecord()

    public ChangeStreamRecord()

### ChangeStreamRecord(ChangeStreamRecord)

    public ChangeStreamRecord(ChangeStreamRecord other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ChangeStreamRecord` |

## Properties

### DataChangeRecord

    public ChangeStreamRecord.Types.DataChangeRecord DataChangeRecord { get; set; }

Data change record describing a data change for a change stream
partition.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ChangeStreamRecordhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ChangeStreamRecord.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ChangeStreamRecord.Types.DataChangeRecord` |   |

### HeartbeatRecord

    public ChangeStreamRecord.Types.HeartbeatRecord HeartbeatRecord { get; set; }

Heartbeat record describing a heartbeat for a change stream partition.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ChangeStreamRecordhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ChangeStreamRecord.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ChangeStreamRecord.Types.HeartbeatRecord` |   |

### PartitionEndRecord

    public ChangeStreamRecord.Types.PartitionEndRecord PartitionEndRecord { get; set; }

Partition end record describing a terminated change stream partition.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ChangeStreamRecordhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ChangeStreamRecord.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ChangeStreamRecord.Types.PartitionEndRecord` |   |

### PartitionEventRecord

    public ChangeStreamRecord.Types.PartitionEventRecord PartitionEventRecord { get; set; }

Partition event record describing key range changes for a change stream
partition.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ChangeStreamRecordhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ChangeStreamRecord.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ChangeStreamRecord.Types.PartitionEventRecord` |   |

### PartitionStartRecord

    public ChangeStreamRecord.Types.PartitionStartRecord PartitionStartRecord { get; set; }

Partition start record describing a new change stream partition.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ChangeStreamRecordhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ChangeStreamRecord.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ChangeStreamRecord.Types.PartitionStartRecord` |   |

### RecordCase

    public ChangeStreamRecord.RecordOneofCase RecordCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ChangeStreamRecordhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ChangeStreamRecord.RecordOneofCase` |   |