# Google Cloud Contact Center Insights V1 Client - Class EntityMentionData (2.4.2)

2.4.2 (latest) 2.4.1 2.3.3 2.2.1 2.1.1 2.0.1 1.9.5 1.8.0 1.7.1 1.6.2 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.3 Reference documentation and code samples for the Google Cloud Contact Center Insights V1 Client class EntityMentionData.

The data for an entity mention annotation.

This represents a mention of an `Entity` in the conversation.

Generated from protobuf message `google.cloud.contactcenterinsights.v1.EntityMentionData`

## Namespace

Google \\ Cloud \\ ContactCenterInsights \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ entity_unique_id` | `string` The key of this entity in conversation entities. Can be used to retrieve the exact `Entity` this mention is attached to. |
| `↳ type` | `int` The type of the entity mention. |
| `↳ sentiment` | `https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.SentimentData` Sentiment expressed for this mention of the entity. |

### getEntityUniqueId

The key of this entity in conversation entities.

Can be used to retrieve the exact `Entity` this mention is attached to.

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

### setEntityUniqueId

The key of this entity in conversation entities.

Can be used to retrieve the exact `Entity` this mention is attached to.

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

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

### getType

The type of the entity mention.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [MentionType](https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.EntityMentionData.MentionType). |

### setType

The type of the entity mention.

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

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

### getSentiment

Sentiment expressed for this mention of the entity.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.SentimentData|null` |   |

### hasSentiment

### clearSentiment

### setSentiment

Sentiment expressed for this mention of the entity.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.SentimentData` |

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