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 Details

    • 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.
       
      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.v1.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.v1.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.v1.ClassificationModelOptions classification_model_options = 10;