Interface AnalyzeSentimentResponseOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    AnalyzeSentimentResponse, AnalyzeSentimentResponse.Builder

    public interface AnalyzeSentimentResponseOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • hasDocumentSentiment

        boolean hasDocumentSentiment()
         The overall sentiment of the input document.
         
        .google.cloud.language.v2.Sentiment document_sentiment = 1;
        Returns:
        Whether the documentSentiment field is set.
      • getDocumentSentiment

        Sentiment getDocumentSentiment()
         The overall sentiment of the input document.
         
        .google.cloud.language.v2.Sentiment document_sentiment = 1;
        Returns:
        The documentSentiment.
      • getDocumentSentimentOrBuilder

        SentimentOrBuilder getDocumentSentimentOrBuilder()
         The overall sentiment of the input document.
         
        .google.cloud.language.v2.Sentiment document_sentiment = 1;
      • getLanguageCode

        String getLanguageCode()
         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.
         
        string language_code = 2;
        Returns:
        The languageCode.
      • getLanguageCodeBytes

        com.google.protobuf.ByteString getLanguageCodeBytes()
         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.
         
        string language_code = 2;
        Returns:
        The bytes for languageCode.
      • getSentencesList

        List<Sentence> getSentencesList()
         The sentiment for all the sentences in the document.
         
        repeated .google.cloud.language.v2.Sentence sentences = 3;
      • getSentences

        Sentence getSentences​(int index)
         The sentiment for all the sentences in the document.
         
        repeated .google.cloud.language.v2.Sentence sentences = 3;
      • getSentencesCount

        int getSentencesCount()
         The sentiment for all the sentences in the document.
         
        repeated .google.cloud.language.v2.Sentence sentences = 3;
      • getSentencesOrBuilderList

        List<? extends SentenceOrBuilder> getSentencesOrBuilderList()
         The sentiment for all the sentences in the document.
         
        repeated .google.cloud.language.v2.Sentence sentences = 3;
      • getSentencesOrBuilder

        SentenceOrBuilder getSentencesOrBuilder​(int index)
         The sentiment for all the sentences in the document.
         
        repeated .google.cloud.language.v2.Sentence sentences = 3;
      • getLanguageSupported

        boolean getLanguageSupported()
         Whether the language is officially supported. The API may still return a
         response when the language is not supported, but it is on a best effort
         basis.
         
        bool language_supported = 4;
        Returns:
        The languageSupported.