The language of the following fields in entity_type: * * EntityType.entities.value * * EntityType.entities.synonyms * * EntityType.excluded_phrases.value If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.
The language of the following fields in entity_type:
EntityType.entities.value
EntityType.entities.synonyms
EntityType.excluded_phrases.value
If not specified, the agent's default language is used.
Many
languages
are supported.
Note: languages must be enabled in the agent before they can be used.
Returns
Type
Description
string
setLanguageCode
The language of the following fields in entity_type:
EntityType.entities.value
EntityType.entities.synonyms
EntityType.excluded_phrases.value
If not specified, the agent's default language is used.
Many
languages
are supported.
Note: languages must be enabled in the agent before they can be used.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameters
Name
Description
parent
string
Required. The agent to create a entity type for.
Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>. Please see
EntityTypesClient::agentName() for help formatting this field.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Google Cloud Dialogflow Cx V3 Client - Class CreateEntityTypeRequest (0.8.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.8.1 (latest)](/php/docs/reference/cloud-dialogflow-cx/latest/V3.CreateEntityTypeRequest)\n- [0.8.0](/php/docs/reference/cloud-dialogflow-cx/0.8.0/V3.CreateEntityTypeRequest)\n- [0.7.2](/php/docs/reference/cloud-dialogflow-cx/0.7.2/V3.CreateEntityTypeRequest)\n- [0.6.0](/php/docs/reference/cloud-dialogflow-cx/0.6.0/V3.CreateEntityTypeRequest)\n- [0.5.2](/php/docs/reference/cloud-dialogflow-cx/0.5.2/V3.CreateEntityTypeRequest)\n- [0.4.1](/php/docs/reference/cloud-dialogflow-cx/0.4.1/V3.CreateEntityTypeRequest)\n- [0.3.4](/php/docs/reference/cloud-dialogflow-cx/0.3.4/V3.CreateEntityTypeRequest)\n- [0.2.1](/php/docs/reference/cloud-dialogflow-cx/0.2.1/V3.CreateEntityTypeRequest)\n- [0.1.1](/php/docs/reference/cloud-dialogflow-cx/0.1.1/V3.CreateEntityTypeRequest) \nReference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class CreateEntityTypeRequest.\n\nThe request message for\n[EntityTypes.CreateEntityType](/php/docs/reference/cloud-dialogflow-cx/latest/V3.Client.EntityTypesClient#_Google_Cloud_Dialogflow_Cx_V3_Client_EntityTypesClient__createEntityType__).\n\nGenerated from protobuf message `google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ Cx \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The agent to create a entity type for.\n\nFormat: `projects/\u003cProjectID\u003e/locations/\u003cLocationID\u003e/agents/\u003cAgentID\u003e`.\n\n### setParent\n\nRequired. The agent to create a entity type for.\n\nFormat: `projects/\u003cProjectID\u003e/locations/\u003cLocationID\u003e/agents/\u003cAgentID\u003e`.\n\n### getEntityType\n\nRequired. The entity type to create.\n\n### hasEntityType\n\n### clearEntityType\n\n### setEntityType\n\nRequired. The entity type to create.\n\n### getLanguageCode\n\nThe language of the following fields in `entity_type`:\n\n- `EntityType.entities.value`\n- `EntityType.entities.synonyms`\n- `EntityType.excluded_phrases.value` If not specified, the agent's default language is used.\n\n[Many\nlanguages](https://cloud.google.com/dialogflow/cx/docs/reference/language)\nare supported.\nNote: languages must be enabled in the agent before they can be used.\n\n### setLanguageCode\n\nThe language of the following fields in `entity_type`:\n\n- `EntityType.entities.value`\n- `EntityType.entities.synonyms`\n- `EntityType.excluded_phrases.value` If not specified, the agent's default language is used.\n\n[Many\nlanguages](https://cloud.google.com/dialogflow/cx/docs/reference/language)\nare supported.\nNote: languages must be enabled in the agent before they can be used.\n\n### static::build"]]