1.0.0-beta87 (latest) 1.0.0-beta86

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

Reference documentation and code samples for the Vertex AI v1beta1 API class TextSentimentPredictionResult.

Prediction output format for Text Sentiment

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

## Constructors

### TextSentimentPredictionResult()

    public TextSentimentPredictionResult()

### TextSentimentPredictionResult(TextSentimentPredictionResult)

    public TextSentimentPredictionResult(TextSentimentPredictionResult other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction.TextSentimentPredictionResult` |

## Properties

### Sentiment

    public int Sentiment { get; set; }

The integer sentiment labels between 0 (inclusive) and sentimentMax label
(inclusive), while 0 maps to the least positive sentiment and
sentimentMax maps to the most positive one. The higher the score is, the
more positive the sentiment in the text snippet is. Note: sentimentMax is
an integer value between 1 (inclusive) and 10 (inclusive).

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