[[["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\u003eSentiment\u003c/code\u003e class in the Google Cloud Natural Language v1 API represents the feeling associated with text or entities.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers access to various versions, with the latest being version 3.7.0 and others ranging back to 2.2.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSentiment\u003c/code\u003e class inherits from the base \u003ccode\u003eobject\u003c/code\u003e class and implements several interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties \u003ccode\u003eMagnitude\u003c/code\u003e and \u003ccode\u003eScore\u003c/code\u003e, representing the strength of sentiment and its polarity, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSentiment\u003c/code\u003e class has two constructors, one default and one that takes another \u003ccode\u003eSentiment\u003c/code\u003e object as an argument.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Natural Language v1 API - Class Sentiment (3.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.Language.V1/latest/Google.Cloud.Language.V1.Sentiment)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Language.V1/3.6.0/Google.Cloud.Language.V1.Sentiment)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Language.V1/3.5.0/Google.Cloud.Language.V1.Sentiment)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Language.V1/3.4.0/Google.Cloud.Language.V1.Sentiment)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Language.V1/3.3.0/Google.Cloud.Language.V1.Sentiment)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Language.V1/3.2.0/Google.Cloud.Language.V1.Sentiment)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Language.V1/3.1.0/Google.Cloud.Language.V1.Sentiment)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Language.V1/3.0.0/Google.Cloud.Language.V1.Sentiment)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Language.V1/2.3.0/Google.Cloud.Language.V1.Sentiment)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Language.V1/2.2.0/Google.Cloud.Language.V1.Sentiment) \n\n public sealed class Sentiment : IMessage\u003cSentiment\u003e, IEquatable\u003cSentiment\u003e, IDeepCloneable\u003cSentiment\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Natural Language v1 API class Sentiment.\n\nRepresents the feeling associated with the entire text or entities in\nthe text. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Sentiment \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Sentiment](/dotnet/docs/reference/Google.Cloud.Language.V1/latest/Google.Cloud.Language.V1.Sentiment), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Sentiment](/dotnet/docs/reference/Google.Cloud.Language.V1/latest/Google.Cloud.Language.V1.Sentiment), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Sentiment](/dotnet/docs/reference/Google.Cloud.Language.V1/latest/Google.Cloud.Language.V1.Sentiment), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Language.V1](/dotnet/docs/reference/Google.Cloud.Language.V1/latest/Google.Cloud.Language.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Language.V1.dll\n\nConstructors\n------------\n\n### Sentiment()\n\n public Sentiment()\n\n### Sentiment(Sentiment)\n\n public Sentiment(Sentiment other)\n\nProperties\n----------\n\n### Magnitude\n\n public float Magnitude { get; set; }\n\nA non-negative number in the \\[0, +inf) range, which represents\nthe absolute magnitude of sentiment regardless of score (positive or\nnegative).\n\n### Score\n\n public float Score { get; set; }\n\nSentiment score between -1.0 (negative sentiment) and 1.0\n(positive sentiment)."]]