public static final class EntityMention.Builder extends GeneratedMessageV3.Builder<EntityMention.Builder> implements EntityMentionOrBuilder
Represents a mention for an entity in the text. Currently, proper noun mentions are supported.Protobuf type
google.cloud.language.v1beta2.EntityMention| Modifier and Type | Method and Description | 
|---|---|
| EntityMention.Builder | addRepeatedField(Descriptors.FieldDescriptor field,
                java.lang.Object value) | 
| EntityMention | build() | 
| EntityMention | buildPartial() | 
| EntityMention.Builder | clear() | 
| EntityMention.Builder | clearField(Descriptors.FieldDescriptor field) | 
| EntityMention.Builder | clearOneof(Descriptors.OneofDescriptor oneof) | 
| EntityMention.Builder | clearSentiment()
 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. | 
| EntityMention.Builder | clearText()
 The mention text. | 
| EntityMention.Builder | clearType()
 The type of the entity mention. | 
| EntityMention.Builder | clone() | 
| EntityMention | getDefaultInstanceForType() | 
| static Descriptors.Descriptor | getDescriptor() | 
| Descriptors.Descriptor | getDescriptorForType() | 
| 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. | 
| Sentiment.Builder | getSentimentBuilder()
 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. | 
| TextSpan.Builder | getTextBuilder()
 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. | 
| protected GeneratedMessageV3.FieldAccessorTable | internalGetFieldAccessorTable() | 
| boolean | isInitialized() | 
| EntityMention.Builder | mergeFrom(CodedInputStream input,
         ExtensionRegistryLite extensionRegistry) | 
| EntityMention.Builder | mergeFrom(EntityMention other) | 
| EntityMention.Builder | mergeFrom(Message other) | 
| EntityMention.Builder | mergeSentiment(Sentiment value)
 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. | 
| EntityMention.Builder | mergeText(TextSpan value)
 The mention text. | 
| EntityMention.Builder | mergeUnknownFields(UnknownFieldSet unknownFields) | 
| EntityMention.Builder | setField(Descriptors.FieldDescriptor field,
        java.lang.Object value) | 
| EntityMention.Builder | setRepeatedField(Descriptors.FieldDescriptor field,
                int index,
                java.lang.Object value) | 
| EntityMention.Builder | setSentiment(Sentiment.Builder builderForValue)
 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. | 
| EntityMention.Builder | setSentiment(Sentiment value)
 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. | 
| EntityMention.Builder | setText(TextSpan.Builder builderForValue)
 The mention text. | 
| EntityMention.Builder | setText(TextSpan value)
 The mention text. | 
| EntityMention.Builder | setType(EntityMention.Type value)
 The type of the entity mention. | 
| EntityMention.Builder | setTypeValue(int value)
 The type of the entity mention. | 
| EntityMention.Builder | setUnknownFields(UnknownFieldSet unknownFields) | 
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<EntityMention.Builder>public EntityMention.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<EntityMention.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<EntityMention.Builder>public EntityMention getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic EntityMention build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic EntityMention buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic EntityMention.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<EntityMention.Builder>public EntityMention.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<EntityMention.Builder>public EntityMention.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<EntityMention.Builder>public EntityMention.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<EntityMention.Builder>public EntityMention.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<EntityMention.Builder>public EntityMention.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<EntityMention.Builder>public EntityMention.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<EntityMention.Builder>public EntityMention.Builder mergeFrom(EntityMention other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<EntityMention.Builder>public EntityMention.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<EntityMention.Builder>java.io.IOExceptionpublic boolean hasText()
The mention text.
.google.cloud.language.v1beta2.TextSpan text = 1;hasText in interface EntityMentionOrBuilderpublic TextSpan getText()
The mention text.
.google.cloud.language.v1beta2.TextSpan text = 1;getText in interface EntityMentionOrBuilderpublic EntityMention.Builder setText(TextSpan value)
The mention text.
.google.cloud.language.v1beta2.TextSpan text = 1;public EntityMention.Builder setText(TextSpan.Builder builderForValue)
The mention text.
.google.cloud.language.v1beta2.TextSpan text = 1;public EntityMention.Builder mergeText(TextSpan value)
The mention text.
.google.cloud.language.v1beta2.TextSpan text = 1;public EntityMention.Builder clearText()
The mention text.
.google.cloud.language.v1beta2.TextSpan text = 1;public TextSpan.Builder getTextBuilder()
The mention text.
.google.cloud.language.v1beta2.TextSpan text = 1;public TextSpanOrBuilder getTextOrBuilder()
The mention text.
.google.cloud.language.v1beta2.TextSpan text = 1;getTextOrBuilder in interface EntityMentionOrBuilderpublic int getTypeValue()
The type of the entity mention.
.google.cloud.language.v1beta2.EntityMention.Type type = 2;getTypeValue in interface EntityMentionOrBuilderpublic EntityMention.Builder setTypeValue(int value)
The type of the entity mention.
.google.cloud.language.v1beta2.EntityMention.Type type = 2;public EntityMention.Type getType()
The type of the entity mention.
.google.cloud.language.v1beta2.EntityMention.Type type = 2;getType in interface EntityMentionOrBuilderpublic EntityMention.Builder setType(EntityMention.Type value)
The type of the entity mention.
.google.cloud.language.v1beta2.EntityMention.Type type = 2;public EntityMention.Builder clearType()
The type of the entity mention.
.google.cloud.language.v1beta2.EntityMention.Type type = 2;public 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;hasSentiment in interface EntityMentionOrBuilderpublic 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;getSentiment in interface EntityMentionOrBuilderpublic EntityMention.Builder setSentiment(Sentiment value)
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;public EntityMention.Builder setSentiment(Sentiment.Builder builderForValue)
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;public EntityMention.Builder mergeSentiment(Sentiment value)
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;public EntityMention.Builder clearSentiment()
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;public Sentiment.Builder getSentimentBuilder()
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;public 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;getSentimentOrBuilder in interface EntityMentionOrBuilderpublic final EntityMention.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<EntityMention.Builder>public final EntityMention.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<EntityMention.Builder>