# Google Cloud Dialogflow Cx V3 Client - Class ImportEntityTypesRequest (0.11.1)

0.11.1 (latest) 0.11.0 0.10.2 0.9.2 0.8.1 0.7.2 0.6.0 0.5.2 0.4.1 0.3.4 0.2.1 0.1.1 Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class ImportEntityTypesRequest.

The request message for
[EntityTypes.ImportEntityTypes](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Client.EntityTypesClient#_Google_Cloud_Dialogflow_Cx_V3_Client_EntityTypesClient__importEntityTypes__).

Generated from protobuf message `google.cloud.dialogflow.cx.v3.ImportEntityTypesRequest`

## Namespace

Google \\ Cloud \\ Dialogflow \\ Cx \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The agent to import the entity types into. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. |
| `↳ entity_types_uri` | `string` The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to import entity types from. The format of this URI must be `gs://<bucket-name>/<object-name>`. Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see [Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). |
| `↳ entity_types_content` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.InlineSource` Uncompressed byte content of entity types. |
| `↳ merge_option` | `int` Required. Merge option for importing entity types. |
| `↳ target_entity_type` | `string` Optional. The target entity type to import into. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`. If set, there should be only one entity type included in [entity_types](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.ImportEntityTypesRequest#_Google_Cloud_Dialogflow_Cx_V3_ImportEntityTypesRequest__getEntityTypes__), of which the type should match the type of the target entity type. All [entities](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.EntityType#_Google_Cloud_Dialogflow_Cx_V3_EntityType__getEntities__) in the imported entity type will be added to the target entity type. |

### getParent

Required. The agent to import the entity types into.

Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.

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

### setParent

Required. The agent to import the entity types into.

Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.

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

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

### getEntityTypesUri

The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
to import entity types from. The format of this URI must be
`gs://<bucket-name>/<object-name>`.

Dialogflow performs a read operation for the Cloud Storage object
on the caller's behalf, so your request authentication must
have read permissions for the object. For more information, see
[Dialogflow access
control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).

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

### hasEntityTypesUri

### setEntityTypesUri

The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
to import entity types from. The format of this URI must be
`gs://<bucket-name>/<object-name>`.

Dialogflow performs a read operation for the Cloud Storage object
on the caller's behalf, so your request authentication must
have read permissions for the object. For more information, see
[Dialogflow access
control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).

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

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

### getEntityTypesContent

Uncompressed byte content of entity types.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.InlineSource|null` |   |

### hasEntityTypesContent

### setEntityTypesContent

Uncompressed byte content of entity types.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.InlineSource` |

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

### getMergeOption

Required. Merge option for importing entity types.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [MergeOption](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.ImportEntityTypesRequest.MergeOption). |

### setMergeOption

Required. Merge option for importing entity types.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [MergeOption](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.ImportEntityTypesRequest.MergeOption). |

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

### getTargetEntityType

Optional. The target entity type to import into.

Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`.
If set, there should be only one entity type included in
[entity_types](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.ImportEntityTypesRequest#_Google_Cloud_Dialogflow_Cx_V3_ImportEntityTypesRequest__getEntityTypes__),
of which the type should match the type of the target entity type. All
[entities](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.EntityType#_Google_Cloud_Dialogflow_Cx_V3_EntityType__getEntities__) in the
imported entity type will be added to the target entity type.

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

### setTargetEntityType

Optional. The target entity type to import into.

Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`.
If set, there should be only one entity type included in
[entity_types](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.ImportEntityTypesRequest#_Google_Cloud_Dialogflow_Cx_V3_ImportEntityTypesRequest__getEntityTypes__),
of which the type should match the type of the target entity type. All
[entities](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.EntityType#_Google_Cloud_Dialogflow_Cx_V3_EntityType__getEntities__) in the
imported entity type will be added to the target entity type.

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

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

### getEntityTypes

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