# Google Cloud Dialogflow Cx V3 Client - Class SessionEntityType (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 SessionEntityType.

Session entity types are referred to as **User** entity types and are
entities that are built for an individual user such as favorites,
preferences, playlists, and so on.

You can redefine a session entity type at the session level to extend or
replace a [custom entity type](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.EntityType) at
the user session level (we refer to the entity types defined at the agent
level as "custom entity types").
Note: session entity types apply to all queries, regardless of the language.
For more information about entity types, see the [Dialogflow
documentation](https://cloud.google.com/dialogflow/docs/entities-overview).

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The unique identifier of the session entity type. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/sessions/<SessionID>/entityTypes/<EntityTypeID>` or `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/sessions/<SessionID>/entityTypes/<EntityTypeID>`. If `Environment ID` is not specified, we assume default 'draft' environment. |
| `↳ entity_override_mode` | `int` Required. Indicates whether the additional data should override or supplement the custom entity type definition. |
| `↳ entities` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.EntityType.Entity>` Required. The collection of entities to override or supplement the custom entity type. |

### getName

Required. The unique identifier of the session entity type.

Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/sessions/<SessionID>/entityTypes/<EntityTypeID>`
or
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/sessions/<SessionID>/entityTypes/<EntityTypeID>`.
If `Environment ID` is not specified, we assume default 'draft'
environment.

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

### setName

Required. The unique identifier of the session entity type.

Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/sessions/<SessionID>/entityTypes/<EntityTypeID>`
or
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/sessions/<SessionID>/entityTypes/<EntityTypeID>`.
If `Environment ID` is not specified, we assume default 'draft'
environment.

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

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

### getEntityOverrideMode

Required. Indicates whether the additional data should override or
supplement the custom entity type definition.

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

### setEntityOverrideMode

Required. Indicates whether the additional data should override or
supplement the custom entity type definition.

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

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

### getEntities

Required. The collection of entities to override or supplement the custom
entity type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.EntityType.Entity>` |   |

### setEntities

Required. The collection of entities to override or supplement the custom
entity type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.EntityType.Entity>` |

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