Interface AnnotateTextRequest.FeaturesOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AnnotateTextRequest.Features
,AnnotateTextRequest.Features.Builder
- Enclosing class:
- AnnotateTextRequest
public static interface AnnotateTextRequest.FeaturesOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClassificationModelOptions
getClassificationModelOptions()
The model options to use for classification.ClassificationModelOptionsOrBuilder
getClassificationModelOptionsOrBuilder()
The model options to use for classification.boolean
getClassifyText()
Classify the full document into categories.boolean
getExtractDocumentSentiment()
Extract document-level sentiment.boolean
getExtractEntities()
Extract entities.boolean
getExtractEntitySentiment()
Extract entities and their associated sentiment.boolean
getExtractSyntax()
Extract syntax information.boolean
getModerateText()
Moderate the document for harmful and sensitive categories.boolean
hasClassificationModelOptions()
The model options to use for classification.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getExtractSyntax
boolean getExtractSyntax()
Extract syntax information.
bool extract_syntax = 1;
- Returns:
- The extractSyntax.
-
getExtractEntities
boolean getExtractEntities()
Extract entities.
bool extract_entities = 2;
- Returns:
- The extractEntities.
-
getExtractDocumentSentiment
boolean getExtractDocumentSentiment()
Extract document-level sentiment.
bool extract_document_sentiment = 3;
- Returns:
- The extractDocumentSentiment.
-
getExtractEntitySentiment
boolean getExtractEntitySentiment()
Extract entities and their associated sentiment.
bool extract_entity_sentiment = 4;
- Returns:
- The extractEntitySentiment.
-
getClassifyText
boolean getClassifyText()
Classify the full document into categories. If this is true, the API will use the default model which classifies into a [predefined taxonomy](https://cloud.google.com/natural-language/docs/categories).
bool classify_text = 6;
- Returns:
- The classifyText.
-
getModerateText
boolean getModerateText()
Moderate the document for harmful and sensitive categories.
bool moderate_text = 11;
- Returns:
- The moderateText.
-
hasClassificationModelOptions
boolean hasClassificationModelOptions()
The model options to use for classification. Defaults to v1 options if not specified. Only used if `classify_text` is set to true.
.google.cloud.language.v1beta2.ClassificationModelOptions classification_model_options = 10;
- Returns:
- Whether the classificationModelOptions field is set.
-
getClassificationModelOptions
ClassificationModelOptions getClassificationModelOptions()
The model options to use for classification. Defaults to v1 options if not specified. Only used if `classify_text` is set to true.
.google.cloud.language.v1beta2.ClassificationModelOptions classification_model_options = 10;
- Returns:
- The classificationModelOptions.
-
getClassificationModelOptionsOrBuilder
ClassificationModelOptionsOrBuilder getClassificationModelOptionsOrBuilder()
The model options to use for classification. Defaults to v1 options if not specified. Only used if `classify_text` is set to true.
.google.cloud.language.v1beta2.ClassificationModelOptions classification_model_options = 10;
-
-