public sealed class Entity : IMessage<Entity>, IEquatable<Entity>, IDeepCloneable<Entity>, IBufferMessage, IMessage
Represents a phrase in the text that is a known entity, such as
a person, an organization, or location. The API associates information, such
as salience and mentions, with entities.
For most entity types, the metadata is a Wikipedia URL (wikipedia_url)
and Knowledge Graph MID (mid), if they are available. For the metadata
associated with other entity types, see the Type table below.
The salience score associated with the entity in the [0, 1.0] range.
The salience score for an entity provides information about the
importance or centrality of that entity to the entire document text.
Scores closer to 0 are less salient, while scores closer to 1.0 are highly
salient.
Property Value
Type
Description
System.Single
Sentiment
public Sentiment Sentiment { get; set; }
For calls to [AnalyzeEntitySentiment][] or if
[AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entity_sentiment] is set to
true, this field will contain the aggregate sentiment expressed for this
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."],[[["\u003cp\u003eThe \u003ccode\u003eEntity\u003c/code\u003e class represents a recognized entity within a text, such as a person, organization, or location, and includes associated information like salience and mentions.\u003c/p\u003e\n"],["\u003cp\u003eThis class is part of the \u003ccode\u003eGoogle.Cloud.Language.V1\u003c/code\u003e namespace and is found within the \u003ccode\u003eGoogle.Cloud.Language.V1.dll\u003c/code\u003e assembly, with version 3.7.0 as the latest available version.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEntity\u003c/code\u003e class offers properties such as \u003ccode\u003eMentions\u003c/code\u003e, \u003ccode\u003eMetadata\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eSalience\u003c/code\u003e, \u003ccode\u003eSentiment\u003c/code\u003e, and \u003ccode\u003eType\u003c/code\u003e, providing detailed information about the recognized entity.\u003c/p\u003e\n"],["\u003cp\u003eIt implements several interfaces, including \u003ccode\u003eIMessage<Entity>\u003c/code\u003e, \u003ccode\u003eIEquatable<Entity>\u003c/code\u003e, \u003ccode\u003eIDeepCloneable<Entity>\u003c/code\u003e, \u003ccode\u003eIBufferMessage\u003c/code\u003e, and \u003ccode\u003eIMessage\u003c/code\u003e, indicating its role and capabilities within the Google Cloud Language API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSalience\u003c/code\u003e property provides a score indicating the entity's importance within the document, ranging from 0 to 1.0, with higher scores indicating greater importance.\u003c/p\u003e\n"]]],[],null,[]]