public static final class Entity.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder> implements EntityOrBuilder
Represents a phrase in the text that is a known entity, such as a person, an organization, or location. The API associates information, such as salience and mentions, with entities.Protobuf type
google.cloud.language.v1.Entity| Modifier and Type | Method and Description |
|---|---|
Entity.Builder |
addAllMentions(Iterable<? extends EntityMention> values)
The mentions of this entity in the input document.
|
Entity.Builder |
addMentions(EntityMention.Builder builderForValue)
The mentions of this entity in the input document.
|
Entity.Builder |
addMentions(EntityMention value)
The mentions of this entity in the input document.
|
Entity.Builder |
addMentions(int index,
EntityMention.Builder builderForValue)
The mentions of this entity in the input document.
|
Entity.Builder |
addMentions(int index,
EntityMention value)
The mentions of this entity in the input document.
|
EntityMention.Builder |
addMentionsBuilder()
The mentions of this entity in the input document.
|
EntityMention.Builder |
addMentionsBuilder(int index)
The mentions of this entity in the input document.
|
Entity.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Entity |
build() |
Entity |
buildPartial() |
Entity.Builder |
clear() |
Entity.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Entity.Builder |
clearMentions()
The mentions of this entity in the input document.
|
Entity.Builder |
clearMetadata() |
Entity.Builder |
clearName()
The representative name for the entity.
|
Entity.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Entity.Builder |
clearSalience()
The salience score associated with the entity in the [0, 1.0] range.
|
Entity.Builder |
clearSentiment()
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 aggregate sentiment expressed
for this entity in the provided document.
|
Entity.Builder |
clearType()
The entity type.
|
Entity.Builder |
clone() |
boolean |
containsMetadata(String key)
Metadata associated with the entity.
|
Entity |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
EntityMention |
getMentions(int index)
The mentions of this entity in the input document.
|
EntityMention.Builder |
getMentionsBuilder(int index)
The mentions of this entity in the input document.
|
List<EntityMention.Builder> |
getMentionsBuilderList()
The mentions of this entity in the input document.
|
int |
getMentionsCount()
The mentions of this entity in the input document.
|
List<EntityMention> |
getMentionsList()
The mentions of this entity in the input document.
|
EntityMentionOrBuilder |
getMentionsOrBuilder(int index)
The mentions of this entity in the input document.
|
List<? extends EntityMentionOrBuilder> |
getMentionsOrBuilderList()
The mentions of this entity in the input document.
|
Map<String,String> |
getMetadata()
Deprecated.
|
int |
getMetadataCount()
Metadata associated with the entity.
|
Map<String,String> |
getMetadataMap()
Metadata associated with the entity.
|
String |
getMetadataOrDefault(String key,
String defaultValue)
Metadata associated with the entity.
|
String |
getMetadataOrThrow(String key)
Metadata associated with the entity.
|
Map<String,String> |
getMutableMetadata()
Deprecated.
|
String |
getName()
The representative name for the entity.
|
com.google.protobuf.ByteString |
getNameBytes()
The representative name for the entity.
|
float |
getSalience()
The salience score associated with the entity in the [0, 1.0] range.
|
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 aggregate sentiment expressed
for this entity in the provided document.
|
Sentiment.Builder |
getSentimentBuilder()
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 aggregate sentiment expressed
for this entity in the provided document.
|
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 aggregate sentiment expressed
for this entity in the provided document.
|
Entity.Type |
getType()
The entity type.
|
int |
getTypeValue()
The entity type.
|
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 aggregate sentiment expressed
for this entity in the provided document.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
Entity.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Entity.Builder |
mergeFrom(Entity other) |
Entity.Builder |
mergeFrom(com.google.protobuf.Message other) |
Entity.Builder |
mergeSentiment(Sentiment value)
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 aggregate sentiment expressed
for this entity in the provided document.
|
Entity.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Entity.Builder |
putAllMetadata(Map<String,String> values)
Metadata associated with the entity.
|
Entity.Builder |
putMetadata(String key,
String value)
Metadata associated with the entity.
|
Entity.Builder |
removeMentions(int index)
The mentions of this entity in the input document.
|
Entity.Builder |
removeMetadata(String key)
Metadata associated with the entity.
|
Entity.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Entity.Builder |
setMentions(int index,
EntityMention.Builder builderForValue)
The mentions of this entity in the input document.
|
Entity.Builder |
setMentions(int index,
EntityMention value)
The mentions of this entity in the input document.
|
Entity.Builder |
setName(String value)
The representative name for the entity.
|
Entity.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The representative name for the entity.
|
Entity.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Entity.Builder |
setSalience(float value)
The salience score associated with the entity in the [0, 1.0] range.
|
Entity.Builder |
setSentiment(Sentiment.Builder builderForValue)
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 aggregate sentiment expressed
for this entity in the provided document.
|
Entity.Builder |
setSentiment(Sentiment value)
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 aggregate sentiment expressed
for this entity in the provided document.
|
Entity.Builder |
setType(Entity.Type value)
The entity type.
|
Entity.Builder |
setTypeValue(int value)
The entity type.
|
Entity.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>public Entity.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>public Entity getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Entity build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Entity buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Entity.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>public Entity.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>public Entity.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>public Entity.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>public Entity.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>public Entity.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>public Entity.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Entity.Builder>public Entity.Builder mergeFrom(Entity other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>public Entity.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Entity.Builder>IOExceptionpublic String getName()
The representative name for the entity.
string name = 1;getName in interface EntityOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The representative name for the entity.
string name = 1;getNameBytes in interface EntityOrBuilderpublic Entity.Builder setName(String value)
The representative name for the entity.
string name = 1;value - The name to set.public Entity.Builder clearName()
The representative name for the entity.
string name = 1;public Entity.Builder setNameBytes(com.google.protobuf.ByteString value)
The representative name for the entity.
string name = 1;value - The bytes for name to set.public int getTypeValue()
The entity type.
.google.cloud.language.v1.Entity.Type type = 2;getTypeValue in interface EntityOrBuilderpublic Entity.Builder setTypeValue(int value)
The entity type.
.google.cloud.language.v1.Entity.Type type = 2;value - The enum numeric value on the wire for type to set.public Entity.Type getType()
The entity type.
.google.cloud.language.v1.Entity.Type type = 2;getType in interface EntityOrBuilderpublic Entity.Builder setType(Entity.Type value)
The entity type.
.google.cloud.language.v1.Entity.Type type = 2;value - The type to set.public Entity.Builder clearType()
The entity type.
.google.cloud.language.v1.Entity.Type type = 2;public int getMetadataCount()
EntityOrBuilderMetadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below.
map<string, string> metadata = 3;getMetadataCount in interface EntityOrBuilderpublic boolean containsMetadata(String key)
Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below.
map<string, string> metadata = 3;containsMetadata in interface EntityOrBuilder@Deprecated public Map<String,String> getMetadata()
getMetadataMap() instead.getMetadata in interface EntityOrBuilderpublic Map<String,String> getMetadataMap()
Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below.
map<string, string> metadata = 3;getMetadataMap in interface EntityOrBuilderpublic String getMetadataOrDefault(String key, String defaultValue)
Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below.
map<string, string> metadata = 3;getMetadataOrDefault in interface EntityOrBuilderpublic String getMetadataOrThrow(String key)
Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below.
map<string, string> metadata = 3;getMetadataOrThrow in interface EntityOrBuilderpublic Entity.Builder clearMetadata()
public Entity.Builder removeMetadata(String key)
Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below.
map<string, string> metadata = 3;@Deprecated public Map<String,String> getMutableMetadata()
public Entity.Builder putMetadata(String key, String value)
Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below.
map<string, string> metadata = 3;public Entity.Builder putAllMetadata(Map<String,String> values)
Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below.
map<string, string> metadata = 3;public float getSalience()
The salience score associated with the entity in the [0, 1.0] range. The salience score for an entity provides information about the importance or centrality of that entity to the entire document text. Scores closer to 0 are less salient, while scores closer to 1.0 are highly salient.
float salience = 4;getSalience in interface EntityOrBuilderpublic Entity.Builder setSalience(float value)
The salience score associated with the entity in the [0, 1.0] range. The salience score for an entity provides information about the importance or centrality of that entity to the entire document text. Scores closer to 0 are less salient, while scores closer to 1.0 are highly salient.
float salience = 4;value - The salience to set.public Entity.Builder clearSalience()
The salience score associated with the entity in the [0, 1.0] range. The salience score for an entity provides information about the importance or centrality of that entity to the entire document text. Scores closer to 0 are less salient, while scores closer to 1.0 are highly salient.
float salience = 4;public List<EntityMention> getMentionsList()
The mentions of this entity in the input document. The API currently supports proper noun mentions.
repeated .google.cloud.language.v1.EntityMention mentions = 5;getMentionsList in interface EntityOrBuilderpublic int getMentionsCount()
The mentions of this entity in the input document. The API currently supports proper noun mentions.
repeated .google.cloud.language.v1.EntityMention mentions = 5;getMentionsCount in interface EntityOrBuilderpublic EntityMention getMentions(int index)
The mentions of this entity in the input document. The API currently supports proper noun mentions.
repeated .google.cloud.language.v1.EntityMention mentions = 5;getMentions in interface EntityOrBuilderpublic Entity.Builder setMentions(int index, EntityMention value)
The mentions of this entity in the input document. The API currently supports proper noun mentions.
repeated .google.cloud.language.v1.EntityMention mentions = 5;public Entity.Builder setMentions(int index, EntityMention.Builder builderForValue)
The mentions of this entity in the input document. The API currently supports proper noun mentions.
repeated .google.cloud.language.v1.EntityMention mentions = 5;public Entity.Builder addMentions(EntityMention value)
The mentions of this entity in the input document. The API currently supports proper noun mentions.
repeated .google.cloud.language.v1.EntityMention mentions = 5;public Entity.Builder addMentions(int index, EntityMention value)
The mentions of this entity in the input document. The API currently supports proper noun mentions.
repeated .google.cloud.language.v1.EntityMention mentions = 5;public Entity.Builder addMentions(EntityMention.Builder builderForValue)
The mentions of this entity in the input document. The API currently supports proper noun mentions.
repeated .google.cloud.language.v1.EntityMention mentions = 5;public Entity.Builder addMentions(int index, EntityMention.Builder builderForValue)
The mentions of this entity in the input document. The API currently supports proper noun mentions.
repeated .google.cloud.language.v1.EntityMention mentions = 5;public Entity.Builder addAllMentions(Iterable<? extends EntityMention> values)
The mentions of this entity in the input document. The API currently supports proper noun mentions.
repeated .google.cloud.language.v1.EntityMention mentions = 5;public Entity.Builder clearMentions()
The mentions of this entity in the input document. The API currently supports proper noun mentions.
repeated .google.cloud.language.v1.EntityMention mentions = 5;public Entity.Builder removeMentions(int index)
The mentions of this entity in the input document. The API currently supports proper noun mentions.
repeated .google.cloud.language.v1.EntityMention mentions = 5;public EntityMention.Builder getMentionsBuilder(int index)
The mentions of this entity in the input document. The API currently supports proper noun mentions.
repeated .google.cloud.language.v1.EntityMention mentions = 5;public EntityMentionOrBuilder getMentionsOrBuilder(int index)
The mentions of this entity in the input document. The API currently supports proper noun mentions.
repeated .google.cloud.language.v1.EntityMention mentions = 5;getMentionsOrBuilder in interface EntityOrBuilderpublic List<? extends EntityMentionOrBuilder> getMentionsOrBuilderList()
The mentions of this entity in the input document. The API currently supports proper noun mentions.
repeated .google.cloud.language.v1.EntityMention mentions = 5;getMentionsOrBuilderList in interface EntityOrBuilderpublic EntityMention.Builder addMentionsBuilder()
The mentions of this entity in the input document. The API currently supports proper noun mentions.
repeated .google.cloud.language.v1.EntityMention mentions = 5;public EntityMention.Builder addMentionsBuilder(int index)
The mentions of this entity in the input document. The API currently supports proper noun mentions.
repeated .google.cloud.language.v1.EntityMention mentions = 5;public List<EntityMention.Builder> getMentionsBuilderList()
The mentions of this entity in the input document. The API currently supports proper noun mentions.
repeated .google.cloud.language.v1.EntityMention mentions = 5;public 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 aggregate sentiment expressed for this entity in the provided document.
.google.cloud.language.v1.Sentiment sentiment = 6;hasSentiment in interface EntityOrBuilderpublic 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 aggregate sentiment expressed for this entity in the provided document.
.google.cloud.language.v1.Sentiment sentiment = 6;getSentiment in interface EntityOrBuilderpublic Entity.Builder setSentiment(Sentiment value)
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 aggregate sentiment expressed for this entity in the provided document.
.google.cloud.language.v1.Sentiment sentiment = 6;public Entity.Builder setSentiment(Sentiment.Builder builderForValue)
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 aggregate sentiment expressed for this entity in the provided document.
.google.cloud.language.v1.Sentiment sentiment = 6;public Entity.Builder mergeSentiment(Sentiment value)
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 aggregate sentiment expressed for this entity in the provided document.
.google.cloud.language.v1.Sentiment sentiment = 6;public Entity.Builder clearSentiment()
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 aggregate sentiment expressed for this entity in the provided document.
.google.cloud.language.v1.Sentiment sentiment = 6;public Sentiment.Builder getSentimentBuilder()
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 aggregate sentiment expressed for this entity in the provided document.
.google.cloud.language.v1.Sentiment sentiment = 6;public 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 aggregate sentiment expressed for this entity in the provided document.
.google.cloud.language.v1.Sentiment sentiment = 6;getSentimentOrBuilder in interface EntityOrBuilderpublic final Entity.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>public final Entity.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Entity.Builder>Copyright © 2024 Google LLC. All rights reserved.