# Google Cloud Sql Admin V1 Client - Class SqlInstancesVerifyExternalSyncSettingsRequest (1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.1 1.2.6 1.1.0 1.0.0 0.19.0 0.18.0 0.17.1 0.16.1 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.1 0.3.1 0.2.12 Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class SqlInstancesVerifyExternalSyncSettingsRequest.

Instance verify external sync settings request.

Generated from protobuf message `google.cloud.sql.v1.SqlInstancesVerifyExternalSyncSettingsRequest`

## Namespace

Google \\ Cloud \\ Sql \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ instance` | `string` Cloud SQL instance ID. This does not include the project ID. |
| `↳ project` | `string` Project ID of the project that contains the instance. |
| `↳ verify_connection_only` | `bool` Flag to enable verifying connection only |
| `↳ sync_mode` | `int` External sync mode |
| `↳ verify_replication_only` | `bool` Optional. Flag to verify settings required by replication setup only |
| `↳ mysql_sync_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.MySqlSyncConfig` Optional. MySQL-specific settings for start external sync. |
| `↳ migration_type` | `int` Optional. MigrationType configures the migration to use physical files or logical dump files. If not set, then the logical dump file configuration is used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL. |
| `↳ sync_parallel_level` | `int` Optional. Parallel level for initial data sync. Only applicable for PostgreSQL. |
| `↳ selected_objects` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.ExternalSyncSelectedObject>` Optional. Migrate only the specified objects from the source instance. If this field is empty, then migrate all objects. |

### getInstance

Cloud SQL instance ID. This does not include the project ID.

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

### setInstance

Cloud SQL instance ID. This does not include the project ID.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getProject

Project ID of the project that contains the instance.

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

### setProject

Project ID of the project that contains the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getVerifyConnectionOnly

Flag to enable verifying connection only

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setVerifyConnectionOnly

Flag to enable verifying connection only

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

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

### getSyncMode

External sync mode

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ExternalSyncMode](https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.SqlInstancesVerifyExternalSyncSettingsRequest.ExternalSyncMode). |

### setSyncMode

External sync mode

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ExternalSyncMode](https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.SqlInstancesVerifyExternalSyncSettingsRequest.ExternalSyncMode). |

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

### getVerifyReplicationOnly

Optional. Flag to verify settings required by replication setup only

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setVerifyReplicationOnly

Optional. Flag to verify settings required by replication setup only

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

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

### getMysqlSyncConfig

Optional. MySQL-specific settings for start external sync.

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

### hasMysqlSyncConfig

### setMysqlSyncConfig

Optional. MySQL-specific settings for start external sync.

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

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

### getMigrationType

Optional. MigrationType configures the migration to use physical files or
logical dump files. If not set, then the logical dump file configuration is
used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [MigrationType](https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.SqlInstancesVerifyExternalSyncSettingsRequest.MigrationType). |

### setMigrationType

Optional. MigrationType configures the migration to use physical files or
logical dump files. If not set, then the logical dump file configuration is
used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [MigrationType](https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.SqlInstancesVerifyExternalSyncSettingsRequest.MigrationType). |

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

### getSyncParallelLevel

Optional. Parallel level for initial data sync. Only applicable for
PostgreSQL.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ExternalSyncParallelLevel](https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.ExternalSyncParallelLevel). |

### setSyncParallelLevel

Optional. Parallel level for initial data sync. Only applicable for
PostgreSQL.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ExternalSyncParallelLevel](https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.ExternalSyncParallelLevel). |

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

### getSelectedObjects

Optional. Migrate only the specified objects from the source instance. If
this field is empty, then migrate all objects.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.ExternalSyncSelectedObject>` |   |

### setSelectedObjects

Optional. Migrate only the specified objects from the source instance. If
this field is empty, then migrate all objects.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.ExternalSyncSelectedObject>` |

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

### getSyncConfig

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