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

Request message for 'ImportMappingRules' request.

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

## Namespace

Google \\ Cloud \\ CloudDms \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Name of the conversion workspace resource to import the rules to in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}. |
| `↳ rules_format` | `int` Required. The format of the rules content file. |
| `↳ rules_files` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dms/latest/V1.ImportMappingRulesRequest.RulesFile>` Required. One or more rules files. |
| `↳ auto_commit` | `bool` Required. Should the conversion workspace be committed automatically after the import operation. |

### getParent

Required. Name of the conversion workspace resource to import the rules to
in the form of:
projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.

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

### setParent

Required. Name of the conversion workspace resource to import the rules to
in the form of:
projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.

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

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

### getRulesFormat

Required. The format of the rules content file.

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

### setRulesFormat

Required. The format of the rules content file.

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

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

### getRulesFiles

Required. One or more rules files.

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

### setRulesFiles

Required. One or more rules files.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dms/latest/V1.ImportMappingRulesRequest.RulesFile>` |

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

### getAutoCommit

Required. Should the conversion workspace be committed automatically after
the import operation.

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

### setAutoCommit

Required. Should the conversion workspace be committed automatically after
the import operation.

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

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