# Google Cloud Natural Language v1 API - Class AnalyzeSentimentResponse (3.8.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [3.8.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V1/latest/Google.Cloud.Language.V1.AnalyzeSentimentResponse)
- [3.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V1/3.7.0/Google.Cloud.Language.V1.AnalyzeSentimentResponse)
- [3.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V1/3.6.0/Google.Cloud.Language.V1.AnalyzeSentimentResponse)
- [3.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V1/3.5.0/Google.Cloud.Language.V1.AnalyzeSentimentResponse)
- [3.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V1/3.4.0/Google.Cloud.Language.V1.AnalyzeSentimentResponse)
- [3.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V1/3.3.0/Google.Cloud.Language.V1.AnalyzeSentimentResponse)
- [3.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V1/3.2.0/Google.Cloud.Language.V1.AnalyzeSentimentResponse)
- [3.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V1/3.1.0/Google.Cloud.Language.V1.AnalyzeSentimentResponse)
- [3.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V1/3.0.0/Google.Cloud.Language.V1.AnalyzeSentimentResponse)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V1/2.3.0/Google.Cloud.Language.V1.AnalyzeSentimentResponse)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V1/2.2.0/Google.Cloud.Language.V1.AnalyzeSentimentResponse)

    public sealed class AnalyzeSentimentResponse : IMessage<AnalyzeSentimentResponse>, IEquatable<AnalyzeSentimentResponse>, IDeepCloneable<AnalyzeSentimentResponse>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Natural Language v1 API class AnalyzeSentimentResponse.

The sentiment analysis response message.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AnalyzeSentimentResponse

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AnalyzeSentimentResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V1/latest/Google.Cloud.Language.V1.AnalyzeSentimentResponse), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AnalyzeSentimentResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V1/latest/Google.Cloud.Language.V1.AnalyzeSentimentResponse), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AnalyzeSentimentResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V1/latest/Google.Cloud.Language.V1.AnalyzeSentimentResponse), [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)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Language.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V1/latest/Google.Cloud.Language.V1)

## Assembly

Google.Cloud.Language.V1.dll

## Constructors

### AnalyzeSentimentResponse()

    public AnalyzeSentimentResponse()

### AnalyzeSentimentResponse(AnalyzeSentimentResponse)

    public AnalyzeSentimentResponse(AnalyzeSentimentResponse other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V1/latest/Google.Cloud.Language.V1.AnalyzeSentimentResponse` |

## Properties

### DocumentSentiment

    public Sentiment DocumentSentiment { get; set; }

The overall sentiment of the input document.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V1/latest/Google.Cloud.Language.V1.Sentiment` |   |

### Language

    public string Language { get; set; }

The language of the text, which will be the same as the language specified
in the request or, if not specified, the automatically-detected language.
See \[Document.language\]\[google.cloud.language.v1.Document.language\] field
for more details.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Sentences

    public RepeatedField<Sentence> Sentences { get; }

The sentiment for all the sentences in the document.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Language.V1/latest/Google.Cloud.Language.V1.Sentence` |   |