# Google Cloud Datastream V1 Client - Class SpecificStartPosition (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.1 2.2.0 2.1.1 2.0.1 1.5.5 1.4.2 1.3.0 1.2.1 1.1.0 1.0.5 Reference documentation and code samples for the Google Cloud Datastream V1 Client class SpecificStartPosition.

CDC strategy to start replicating from a specific position in the source.

Generated from protobuf message `google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition`

## Namespace

Google \\ Cloud \\ Datastream \\ V1 \\ CdcStrategy

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ mysql_log_position` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.MysqlLogPosition` MySQL specific log position to start replicating from. |
| `↳ oracle_scn_position` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.OracleScnPosition` Oracle SCN to start replicating from. |
| `↳ sql_server_lsn_position` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.SqlServerLsnPosition` SqlServer LSN to start replicating from. |
| `↳ mysql_gtid_position` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.MysqlGtidPosition` MySQL GTID set to start replicating from. |

### getMysqlLogPosition

MySQL specific log position to start replicating from.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.MysqlLogPosition|null` |   |

### hasMysqlLogPosition

### setMysqlLogPosition

MySQL specific log position to start replicating from.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.MysqlLogPosition` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getOracleScnPosition

Oracle SCN to start replicating from.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.OracleScnPosition|null` |   |

### hasOracleScnPosition

### setOracleScnPosition

Oracle SCN to start replicating from.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.OracleScnPosition` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSqlServerLsnPosition

SqlServer LSN to start replicating from.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.SqlServerLsnPosition|null` |   |

### hasSqlServerLsnPosition

### setSqlServerLsnPosition

SqlServer LSN to start replicating from.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.SqlServerLsnPosition` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMysqlGtidPosition

MySQL GTID set to start replicating from.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.MysqlGtidPosition|null` |   |

### hasMysqlGtidPosition

### setMysqlGtidPosition

MySQL GTID set to start replicating from.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.MysqlGtidPosition` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPosition

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |