public sealed class AnalyzeSentimentRequest : IMessage<AnalyzeSentimentRequest>, IEquatable<AnalyzeSentimentRequest>, IDeepCloneable<AnalyzeSentimentRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Natural Language v1 API class AnalyzeSentimentRequest.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eAnalyzeSentimentRequest\u003c/code\u003e class within the Google Cloud Natural Language v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAnalyzeSentimentRequest\u003c/code\u003e class is a message used to request sentiment analysis on a given document and it implements several interfaces, including \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\u003eThe latest version of the \u003ccode\u003eAnalyzeSentimentRequest\u003c/code\u003e class is 3.7.0, with several previous versions available, including versions 3.6.0, 3.5.0, 3.4.0, 3.3.0, 3.2.0, 3.1.0, 3.0.0, 2.3.0, and 2.2.0.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two properties : \u003ccode\u003eDocument\u003c/code\u003e, which represents the input document, and \u003ccode\u003eEncodingType\u003c/code\u003e, which specifies how the API calculates sentence offsets.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Natural Language v1 API - Class AnalyzeSentimentRequest (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.AnalyzeSentimentRequest)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Language.V1/3.6.0/Google.Cloud.Language.V1.AnalyzeSentimentRequest)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Language.V1/3.5.0/Google.Cloud.Language.V1.AnalyzeSentimentRequest)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Language.V1/3.4.0/Google.Cloud.Language.V1.AnalyzeSentimentRequest)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Language.V1/3.3.0/Google.Cloud.Language.V1.AnalyzeSentimentRequest)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Language.V1/3.2.0/Google.Cloud.Language.V1.AnalyzeSentimentRequest)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Language.V1/3.1.0/Google.Cloud.Language.V1.AnalyzeSentimentRequest)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Language.V1/3.0.0/Google.Cloud.Language.V1.AnalyzeSentimentRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Language.V1/2.3.0/Google.Cloud.Language.V1.AnalyzeSentimentRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Language.V1/2.2.0/Google.Cloud.Language.V1.AnalyzeSentimentRequest) \n\n public sealed class AnalyzeSentimentRequest : IMessage\u003cAnalyzeSentimentRequest\u003e, IEquatable\u003cAnalyzeSentimentRequest\u003e, IDeepCloneable\u003cAnalyzeSentimentRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Natural Language v1 API class AnalyzeSentimentRequest.\n\nThe sentiment analysis request message. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AnalyzeSentimentRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AnalyzeSentimentRequest](/dotnet/docs/reference/Google.Cloud.Language.V1/latest/Google.Cloud.Language.V1.AnalyzeSentimentRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AnalyzeSentimentRequest](/dotnet/docs/reference/Google.Cloud.Language.V1/latest/Google.Cloud.Language.V1.AnalyzeSentimentRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AnalyzeSentimentRequest](/dotnet/docs/reference/Google.Cloud.Language.V1/latest/Google.Cloud.Language.V1.AnalyzeSentimentRequest), [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### AnalyzeSentimentRequest()\n\n public AnalyzeSentimentRequest()\n\n### AnalyzeSentimentRequest(AnalyzeSentimentRequest)\n\n public AnalyzeSentimentRequest(AnalyzeSentimentRequest other)\n\nProperties\n----------\n\n### Document\n\n public Document Document { get; set; }\n\nRequired. Input document.\n\n### EncodingType\n\n public EncodingType EncodingType { get; set; }\n\nThe encoding type used by the API to calculate sentence offsets."]]