public sealed class Entity : IMessage<Entity>, IEquatable<Entity>, IDeepCloneable<Entity>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Natural Language v2 API class Entity.
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 probability and mentions, with entities.
For calls to [AnalyzeEntitySentiment][] or if
[AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v2.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\u003eThis document provides reference information for the \u003ccode\u003eEntity\u003c/code\u003e class within the Google Cloud Natural Language v2 API, specifically for the .NET environment, version 1.0.0-beta05.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEntity\u003c/code\u003e class represents a recognized phrase in text, such as a person, organization, or location, and associates it with relevant information, like probability and mentions.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eEntity\u003c/code\u003e class include \u003ccode\u003eMentions\u003c/code\u003e (entity mentions), \u003ccode\u003eMetadata\u003c/code\u003e (associated metadata), \u003ccode\u003eName\u003c/code\u003e (representative entity name), \u003ccode\u003eSentiment\u003c/code\u003e (aggregate sentiment), and \u003ccode\u003eType\u003c/code\u003e (the entity type).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEntity\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable<Entity>\u003c/code\u003e, \u003ccode\u003eIDeepCloneable<Entity>\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available for the \u003ccode\u003eEntity\u003c/code\u003e class, one with no parameters, and one that takes an existing \u003ccode\u003eEntity\u003c/code\u003e as a parameter.\u003c/p\u003e\n"]]],[],null,[]]