Interface AnnotateTextRequest.FeaturesOrBuilder (2.64.0)

publicstaticinterface AnnotateTextRequest.FeaturesOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getClassifyText()

publicabstractbooleangetClassifyText()

Optional. Classify the full document into categories.

bool classify_text = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The classifyText.

getExtractDocumentSentiment()

publicabstractbooleangetExtractDocumentSentiment()

Optional. Extract document-level sentiment.

bool extract_document_sentiment = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The extractDocumentSentiment.

getExtractEntities()

publicabstractbooleangetExtractEntities()

Optional. Extract entities.

bool extract_entities = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The extractEntities.

getModerateText()

publicabstractbooleangetModerateText()

Optional. Moderate the document for harmful and sensitive categories.

bool moderate_text = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The moderateText.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.