public interface EntityMentionOrBuilder extends MessageOrBuilder
| Modifier and Type | Method and Description | 
|---|---|
| Sentiment | getSentiment()
 For calls to [AnalyzeEntitySentiment][] or if
 [AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v1beta2.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. | 
| SentimentOrBuilder | getSentimentOrBuilder()
 For calls to [AnalyzeEntitySentiment][] or if
 [AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v1beta2.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. | 
| TextSpan | getText()
 The mention text. | 
| TextSpanOrBuilder | getTextOrBuilder()
 The mention text. | 
| EntityMention.Type | getType()
 The type of the entity mention. | 
| int | getTypeValue()
 The type of the entity mention. | 
| boolean | hasSentiment()
 For calls to [AnalyzeEntitySentiment][] or if
 [AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v1beta2.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 | hasText()
 The mention text. | 
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofisInitializedboolean hasText()
The mention text.
.google.cloud.language.v1beta2.TextSpan text = 1;TextSpan getText()
The mention text.
.google.cloud.language.v1beta2.TextSpan text = 1;TextSpanOrBuilder getTextOrBuilder()
The mention text.
.google.cloud.language.v1beta2.TextSpan text = 1;int getTypeValue()
The type of the entity mention.
.google.cloud.language.v1beta2.EntityMention.Type type = 2;EntityMention.Type getType()
The type of the entity mention.
.google.cloud.language.v1beta2.EntityMention.Type type = 2;boolean hasSentiment()
For calls to [AnalyzeEntitySentiment][] or if [AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v1beta2.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.v1beta2.Sentiment sentiment = 3;Sentiment getSentiment()
For calls to [AnalyzeEntitySentiment][] or if [AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v1beta2.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.v1beta2.Sentiment sentiment = 3;SentimentOrBuilder getSentimentOrBuilder()
For calls to [AnalyzeEntitySentiment][] or if [AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v1beta2.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.v1beta2.Sentiment sentiment = 3;