Interface SentenceOrBuilder

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

    public interface SentenceOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Sentiment getSentiment()
      For calls to [AnalyzeSentiment][] or if [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment] is set to true, this field will contain the sentiment for the sentence.
      SentimentOrBuilder getSentimentOrBuilder()
      For calls to [AnalyzeSentiment][] or if [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment] is set to true, this field will contain the sentiment for the sentence.
      TextSpan getText()
      The sentence text.
      TextSpanOrBuilder getTextOrBuilder()
      The sentence text.
      boolean hasSentiment()
      For calls to [AnalyzeSentiment][] or if [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment] is set to true, this field will contain the sentiment for the sentence.
      boolean hasText()
      The sentence text.
      • 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 Detail

      • hasText

        boolean hasText()
         The sentence text.
         
        .google.cloud.language.v1.TextSpan text = 1;
        Returns:
        Whether the text field is set.
      • getText

        TextSpan getText()
         The sentence text.
         
        .google.cloud.language.v1.TextSpan text = 1;
        Returns:
        The text.
      • getTextOrBuilder

        TextSpanOrBuilder getTextOrBuilder()
         The sentence text.
         
        .google.cloud.language.v1.TextSpan text = 1;
      • hasSentiment

        boolean hasSentiment()
         For calls to [AnalyzeSentiment][] or if
         [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment]
         is set to true, this field will contain the sentiment for the sentence.
         
        .google.cloud.language.v1.Sentiment sentiment = 2;
        Returns:
        Whether the sentiment field is set.
      • getSentiment

        Sentiment getSentiment()
         For calls to [AnalyzeSentiment][] or if
         [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment]
         is set to true, this field will contain the sentiment for the sentence.
         
        .google.cloud.language.v1.Sentiment sentiment = 2;
        Returns:
        The sentiment.
      • getSentimentOrBuilder

        SentimentOrBuilder getSentimentOrBuilder()
         For calls to [AnalyzeSentiment][] or if
         [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment]
         is set to true, this field will contain the sentiment for the sentence.
         
        .google.cloud.language.v1.Sentiment sentiment = 2;