# Google Cloud Dms V1 Client - Class SynonymEntity (2.1.3)

2.1.3 (latest) 2.1.2 2.0.6 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 Dms V1 Client class SynonymEntity.

Synonym's parent is a schema.

Generated from protobuf message `google.cloud.clouddms.v1.SynonymEntity`

## Namespace

Google \\ Cloud \\ CloudDms \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ source_entity` | `string` The name of the entity for which the synonym is being created (the source). |
| `↳ source_type` | `int` The type of the entity for which the synonym is being created (usually a table or a sequence). |
| `↳ custom_features` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` Custom engine specific features. |

### getSourceEntity

The name of the entity for which the synonym is being created (the source).

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

### setSourceEntity

The name of the entity for which the synonym is being created (the source).

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

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

### getSourceType

The type of the entity for which the synonym is being created
(usually a table or a sequence).

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

### setSourceType

The type of the entity for which the synonym is being created
(usually a table or a sequence).

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

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

### getCustomFeatures

Custom engine specific features.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct|null` |   |

### hasCustomFeatures

### clearCustomFeatures

### setCustomFeatures

Custom engine specific features.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` |

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