# Google Cloud Dms V1 Client - Class PackageEntity (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 PackageEntity.

Package's parent is a schema.

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

## Namespace

Google \\ Cloud \\ CloudDms \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ package_sql_code` | `string` The SQL code which creates the package. |
| `↳ package_body` | `string` The SQL code which creates the package body. If the package specification has cursors or subprograms, then the package body is mandatory. |
| `↳ custom_features` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` Custom engine specific features. |

### getPackageSqlCode

The SQL code which creates the package.

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

### setPackageSqlCode

The SQL code which creates the package.

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

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

### getPackageBody

The SQL code which creates the package body. If the package specification
has cursors or subprograms, then the package body is mandatory.

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

### setPackageBody

The SQL code which creates the package body. If the package specification
has cursors or subprograms, then the package body is mandatory.

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

| **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` |   |