Cloud Natural Language v2 API - Class AnnotateTextResponse (1.0.0-beta04)

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

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

The text annotations response message.

Inheritance

object > AnnotateTextResponse

Namespace

Google.Cloud.Language.V2

Assembly

Google.Cloud.Language.V2.dll

Constructors

AnnotateTextResponse()

public AnnotateTextResponse()

AnnotateTextResponse(AnnotateTextResponse)

public AnnotateTextResponse(AnnotateTextResponse other)
Parameter
Name Description
other AnnotateTextResponse

Properties

Categories

public RepeatedField<ClassificationCategory> Categories { get; }

Categories identified in the input document.

Property Value
Type Description
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.v2.AnnotateTextRequest.Features.extract_document_sentiment].

Property Value
Type Description
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.v2.AnnotateTextRequest.Features.extract_entities] or [AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v2.AnnotateTextRequest.Features.extract_entity_sentiment].

Property Value
Type Description
RepeatedFieldEntity

LanguageCode

public string LanguageCode { 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][] field for more details.

Property Value
Type Description
string

LanguageSupported

public bool LanguageSupported { get; set; }

Whether the language is officially supported by all requested features. The API may still return a response when the language is not supported, but it is on a best effort basis.

Property Value
Type Description
bool

ModerationCategories

public RepeatedField<ClassificationCategory> ModerationCategories { get; }

Harmful and sensitive categories identified in the input document.

Property Value
Type Description
RepeatedFieldClassificationCategory

Sentences

public RepeatedField<Sentence> Sentences { get; }

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

Property Value
Type Description
RepeatedFieldSentence