For calls to AnalyzeEntitySentiment or if AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this field will contain the sentiment expressed for this mention of the entity in the provided document.
For calls to AnalyzeEntitySentiment or if
AnnotateTextRequest.Features.extract_entity_sentiment
is set to true, this field will contain the sentiment expressed for this
mention of the entity in the provided document.
For calls to AnalyzeEntitySentiment or if
AnnotateTextRequest.Features.extract_entity_sentiment
is set to true, this field will contain the sentiment expressed for this
mention of the entity in the provided document.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Cloud Natural Language V1 Client - Class EntityMention (1.0.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.1 (latest)](/php/docs/reference/cloud-language/latest/V1.EntityMention)\n- [1.0.0](/php/docs/reference/cloud-language/1.0.0/V1.EntityMention)\n- [0.34.3](/php/docs/reference/cloud-language/0.34.3/V1.EntityMention)\n- [0.33.0](/php/docs/reference/cloud-language/0.33.0/V1.EntityMention)\n- [0.32.7](/php/docs/reference/cloud-language/0.32.7/V1.EntityMention)\n- [0.31.3](/php/docs/reference/cloud-language/0.31.3/V1.EntityMention)\n- [0.30.2](/php/docs/reference/cloud-language/0.30.2/V1.EntityMention)\n- [0.29.0](/php/docs/reference/cloud-language/0.29.0/V1.EntityMention)\n- [0.28.5](/php/docs/reference/cloud-language/0.28.5/V1.EntityMention) \nReference documentation and code samples for the Cloud Natural Language V1 Client class EntityMention.\n\nRepresents a mention for an entity in the text. Currently, proper noun\nmentions are supported.\n\nGenerated from protobuf message `google.cloud.language.v1.EntityMention`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Language \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getText\n\nThe mention text.\n\n### hasText\n\n### clearText\n\n### setText\n\nThe mention text.\n\n### getType\n\nThe type of the entity mention.\n\n### setType\n\nThe type of the entity mention.\n\n### getSentiment\n\nFor calls to AnalyzeEntitySentiment or if\n[AnnotateTextRequest.Features.extract_entity_sentiment](/php/docs/reference/cloud-language/latest/V1.AnnotateTextRequest.Features#_Google_Cloud_Language_V1_AnnotateTextRequest_Features__getExtractEntitySentiment__)\nis set to true, this field will contain the sentiment expressed for this\nmention of the entity in the provided document.\n\n### hasSentiment\n\n### clearSentiment\n\n### setSentiment\n\nFor calls to AnalyzeEntitySentiment or if\n[AnnotateTextRequest.Features.extract_entity_sentiment](/php/docs/reference/cloud-language/latest/V1.AnnotateTextRequest.Features#_Google_Cloud_Language_V1_AnnotateTextRequest_Features__getExtractEntitySentiment__)\nis set to true, this field will contain the sentiment expressed for this\nmention of the entity in the provided document."]]