Interface SentenceOrBuilder

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

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

    Modifier and Type
    Method
    Description
    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.
    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.
    The sentence text.
    The sentence text.
    boolean
    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
    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 Details

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