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

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
NameDescription
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 Google\Cloud\ContactCenterInsights\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
TypeDescription
string

setEntityUniqueId

The key of this entity in conversation entities.

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getType

The type of the entity mention.

Returns
TypeDescription
int

setType

The type of the entity mention.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getSentiment

Sentiment expressed for this mention of the entity.

Returns
TypeDescription
Google\Cloud\ContactCenterInsights\V1\SentimentData|null

hasSentiment

clearSentiment

setSentiment

Sentiment expressed for this mention of the entity.

Parameter
NameDescription
var Google\Cloud\ContactCenterInsights\V1\SentimentData
Returns
TypeDescription
$this