Interface AnalyzeSentimentResponseOrBuilder

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

@Generated public interface AnalyzeSentimentResponseOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    The overall sentiment of the input document.
    The overall sentiment of the input document.
    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.
    com.google.protobuf.ByteString
    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.
    getSentences(int index)
    The sentiment for all the sentences in the document.
    int
    The sentiment for all the sentences in the document.
    The sentiment for all the sentences in the document.
    The sentiment for all the sentences in the document.
    The sentiment for all the sentences in the document.
    boolean
    The overall sentiment of the input document.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasDocumentSentiment

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

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

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

      String getLanguage()
       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][google.cloud.language.v1.Document.language] field
       for more details.
       
      string language = 2;
      Returns:
      The language.
    • getLanguageBytes

      com.google.protobuf.ByteString getLanguageBytes()
       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][google.cloud.language.v1.Document.language] field
       for more details.
       
      string language = 2;
      Returns:
      The bytes for language.
    • getSentencesList

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

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

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

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

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