Google Cloud Natural Language v1 API - Class AnnotateTextResponse (3.3.0)

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

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

The text annotations response message.

Inheritance

object > AnnotateTextResponse

Namespace

Google.Cloud.Language.V1

Assembly

Google.Cloud.Language.V1.dll

Constructors

AnnotateTextResponse()

public AnnotateTextResponse()

AnnotateTextResponse(AnnotateTextResponse)

public AnnotateTextResponse(AnnotateTextResponse other)
Parameter
NameDescription
otherAnnotateTextResponse

Properties

Categories

public RepeatedField<ClassificationCategory> Categories { get; }

Categories identified in the input document.

Property Value
TypeDescription
RepeatedFieldClassificationCategory

DocumentSentiment

public Sentiment DocumentSentiment { get; set; }

The overall sentiment for the document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment].

Property Value
TypeDescription
Sentiment

Entities

public RepeatedField<Entity> Entities { get; }

Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].

Property Value
TypeDescription
RepeatedFieldEntity

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
TypeDescription
string

ModerationCategories

public RepeatedField<ClassificationCategory> ModerationCategories { get; }

Harmful and sensitive categories identified in the input document.

Property Value
TypeDescription
RepeatedFieldClassificationCategory

Sentences

public RepeatedField<Sentence> Sentences { get; }

Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].

Property Value
TypeDescription
RepeatedFieldSentence

Tokens

public RepeatedField<Token> Tokens { get; }

Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].

Property Value
TypeDescription
RepeatedFieldToken