publicstaticfinalclass EntityMention.BuilderextendsGeneratedMessageV3.Builder<EntityMention.Builder>implementsEntityMentionOrBuilder
Represents a mention for an entity in the text. Currently, proper noun
mentions are supported.
Protobuf type google.cloud.language.v1.EntityMention
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicEntityMention.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Overrides
build()
publicEntityMentionbuild()
buildPartial()
publicEntityMentionbuildPartial()
clear()
publicEntityMention.Builderclear()
Overrides
clearField(Descriptors.FieldDescriptor field)
publicEntityMention.BuilderclearField(Descriptors.FieldDescriptorfield)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
publicEntityMention.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Overrides
clearSentiment()
publicEntityMention.BuilderclearSentiment()
For calls to [AnalyzeEntitySentiment][] or if
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;
clearText()
publicEntityMention.BuilderclearText()
The mention text.
.google.cloud.language.v1.TextSpan text = 1;
clearType()
publicEntityMention.BuilderclearType()
The type of the entity mention.
.google.cloud.language.v1.EntityMention.Type type = 2;
clone()
publicEntityMention.Builderclone()
Overrides
getDefaultInstanceForType()
publicEntityMentiongetDefaultInstanceForType()
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()
Overrides
getSentiment()
publicSentimentgetSentiment()
For calls to [AnalyzeEntitySentiment][] or if
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 |
| Type |
Description |
Sentiment |
The sentiment.
|
getSentimentBuilder()
publicSentiment.BuildergetSentimentBuilder()
For calls to [AnalyzeEntitySentiment][] or if
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;
getSentimentOrBuilder()
publicSentimentOrBuildergetSentimentOrBuilder()
For calls to [AnalyzeEntitySentiment][] or if
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;
getText()
The mention text.
.google.cloud.language.v1.TextSpan text = 1;
| Returns |
| Type |
Description |
TextSpan |
The text.
|
getTextBuilder()
publicTextSpan.BuildergetTextBuilder()
The mention text.
.google.cloud.language.v1.TextSpan text = 1;
getTextOrBuilder()
publicTextSpanOrBuildergetTextOrBuilder()
The mention text.
.google.cloud.language.v1.TextSpan text = 1;
getType()
publicEntityMention.TypegetType()
The type of the entity mention.
.google.cloud.language.v1.EntityMention.Type type = 2;
getTypeValue()
The type of the entity mention.
.google.cloud.language.v1.EntityMention.Type type = 2;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for type.
|
hasSentiment()
publicbooleanhasSentiment()
For calls to [AnalyzeEntitySentiment][] or if
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 |
| Type |
Description |
boolean |
Whether the sentiment field is set.
|
hasText()
The mention text.
.google.cloud.language.v1.TextSpan text = 1;
| Returns |
| Type |
Description |
boolean |
Whether the text field is set.
|
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
mergeFrom(EntityMention other)
publicEntityMention.BuildermergeFrom(EntityMentionother)
publicEntityMention.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Overrides
mergeFrom(Message other)
publicEntityMention.BuildermergeFrom(Messageother)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeSentiment(Sentiment value)
publicEntityMention.BuildermergeSentiment(Sentimentvalue)
For calls to [AnalyzeEntitySentiment][] or if
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;
mergeText(TextSpan value)
publicEntityMention.BuildermergeText(TextSpanvalue)
The mention text.
.google.cloud.language.v1.TextSpan text = 1;
| Parameter |
| Name |
Description |
value |
TextSpan
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalEntityMention.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
publicEntityMention.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicEntityMention.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Overrides
setSentiment(Sentiment value)
publicEntityMention.BuildersetSentiment(Sentimentvalue)
For calls to [AnalyzeEntitySentiment][] or if
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;
setSentiment(Sentiment.Builder builderForValue)
publicEntityMention.BuildersetSentiment(Sentiment.BuilderbuilderForValue)
For calls to [AnalyzeEntitySentiment][] or if
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;
setText(TextSpan value)
publicEntityMention.BuildersetText(TextSpanvalue)
The mention text.
.google.cloud.language.v1.TextSpan text = 1;
| Parameter |
| Name |
Description |
value |
TextSpan
|
setText(TextSpan.Builder builderForValue)
publicEntityMention.BuildersetText(TextSpan.BuilderbuilderForValue)
The mention text.
.google.cloud.language.v1.TextSpan text = 1;
setType(EntityMention.Type value)
publicEntityMention.BuildersetType(EntityMention.Typevalue)
The type of the entity mention.
.google.cloud.language.v1.EntityMention.Type type = 2;
setTypeValue(int value)
publicEntityMention.BuildersetTypeValue(intvalue)
The type of the entity mention.
.google.cloud.language.v1.EntityMention.Type type = 2;
| Parameter |
| Name |
Description |
value |
int
The enum numeric value on the wire for type to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalEntityMention.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Overrides