Interface EntityMentionOrBuilder

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

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

    Modifier and Type
    Method
    Description
    For calls to [AnalyzeEntitySentiment][] or if [AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entity_sentiment] is set to true, this field will contain the sentiment expressed for this mention of the entity in the provided document.
    For calls to [AnalyzeEntitySentiment][] or if [AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entity_sentiment] is set to true, this field will contain the sentiment expressed for this mention of the entity in the provided document.
    The mention text.
    The mention text.
    The type of the entity mention.
    int
    The type of the entity mention.
    boolean
    For calls to [AnalyzeEntitySentiment][] or if [AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entity_sentiment] is set to true, this field will contain the sentiment expressed for this mention of the entity in the provided document.
    boolean
    The mention 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 mention text.
       
      .google.cloud.language.v1.TextSpan text = 1;
      Returns:
      Whether the text field is set.
    • getText

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

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

      int getTypeValue()
       The type of the entity mention.
       
      .google.cloud.language.v1.EntityMention.Type type = 2;
      Returns:
      The enum numeric value on the wire for type.
    • getType

       The type of the entity mention.
       
      .google.cloud.language.v1.EntityMention.Type type = 2;
      Returns:
      The type.
    • hasSentiment

      boolean hasSentiment()
       For calls to [AnalyzeEntitySentiment][] or if
       [AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entity_sentiment]
       is set to true, this field will contain the sentiment expressed for this
       mention of the entity in the provided document.
       
      .google.cloud.language.v1.Sentiment sentiment = 3;
      Returns:
      Whether the sentiment field is set.
    • getSentiment

      Sentiment getSentiment()
       For calls to [AnalyzeEntitySentiment][] or if
       [AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entity_sentiment]
       is set to true, this field will contain the sentiment expressed for this
       mention of the entity in the provided document.
       
      .google.cloud.language.v1.Sentiment sentiment = 3;
      Returns:
      The sentiment.
    • getSentimentOrBuilder

      SentimentOrBuilder getSentimentOrBuilder()
       For calls to [AnalyzeEntitySentiment][] or if
       [AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entity_sentiment]
       is set to true, this field will contain the sentiment expressed for this
       mention of the entity in the provided document.
       
      .google.cloud.language.v1.Sentiment sentiment = 3;