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