Interface AnnotateTextRequest.FeaturesOrBuilder

    • 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;