public static final class TextAnnotationImpl.ConstituentProto.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.ConstituentProto.Builder> implements TextAnnotationImpl.ConstituentProtoOrBuilder
Constituent message structureProtobuf type
textannotation.ConstituentProto| Modifier and Type | Method and Description |
|---|---|
TextAnnotationImpl.ConstituentProto.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TextAnnotationImpl.ConstituentProto |
build() |
TextAnnotationImpl.ConstituentProto |
buildPartial() |
TextAnnotationImpl.ConstituentProto.Builder |
clear() |
TextAnnotationImpl.ConstituentProto.Builder |
clearEnd()
End index of the span + 1
Span indices correspond to indices in the tokens list.
|
TextAnnotationImpl.ConstituentProto.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TextAnnotationImpl.ConstituentProto.Builder |
clearLabel()
Label of the constituent
|
TextAnnotationImpl.ConstituentProto.Builder |
clearLabelScoreMap() |
TextAnnotationImpl.ConstituentProto.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TextAnnotationImpl.ConstituentProto.Builder |
clearProperties() |
TextAnnotationImpl.ConstituentProto.Builder |
clearScore()
Score of the constituent
|
TextAnnotationImpl.ConstituentProto.Builder |
clearStart()
Start index of the span
Span indices correspond to indices in the tokens list.
|
TextAnnotationImpl.ConstituentProto.Builder |
clone() |
boolean |
containsLabelScoreMap(String key)
Map containing scores to each label
|
boolean |
containsProperties(String key)
Attribute information
|
TextAnnotationImpl.ConstituentProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getEnd()
End index of the span + 1
Span indices correspond to indices in the tokens list.
|
String |
getLabel()
Label of the constituent
|
com.google.protobuf.ByteString |
getLabelBytes()
Label of the constituent
|
Map<String,Double> |
getLabelScoreMap()
Deprecated.
|
int |
getLabelScoreMapCount()
Map containing scores to each label
|
Map<String,Double> |
getLabelScoreMapMap()
Map containing scores to each label
|
double |
getLabelScoreMapOrDefault(String key,
double defaultValue)
Map containing scores to each label
|
double |
getLabelScoreMapOrThrow(String key)
Map containing scores to each label
|
Map<String,Double> |
getMutableLabelScoreMap()
Deprecated.
|
Map<String,String> |
getMutableProperties()
Deprecated.
|
Map<String,String> |
getProperties()
Deprecated.
|
int |
getPropertiesCount()
Attribute information
|
Map<String,String> |
getPropertiesMap()
Attribute information
|
String |
getPropertiesOrDefault(String key,
String defaultValue)
Attribute information
|
String |
getPropertiesOrThrow(String key)
Attribute information
|
double |
getScore()
Score of the constituent
|
int |
getStart()
Start index of the span
Span indices correspond to indices in the tokens list.
|
boolean |
hasEnd()
End index of the span + 1
Span indices correspond to indices in the tokens list.
|
boolean |
hasLabel()
Label of the constituent
|
boolean |
hasScore()
Score of the constituent
|
boolean |
hasStart()
Start index of the span
Span indices correspond to indices in the tokens list.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
TextAnnotationImpl.ConstituentProto.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TextAnnotationImpl.ConstituentProto.Builder |
mergeFrom(com.google.protobuf.Message other) |
TextAnnotationImpl.ConstituentProto.Builder |
mergeFrom(TextAnnotationImpl.ConstituentProto other) |
TextAnnotationImpl.ConstituentProto.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TextAnnotationImpl.ConstituentProto.Builder |
putAllLabelScoreMap(Map<String,Double> values)
Map containing scores to each label
|
TextAnnotationImpl.ConstituentProto.Builder |
putAllProperties(Map<String,String> values)
Attribute information
|
TextAnnotationImpl.ConstituentProto.Builder |
putLabelScoreMap(String key,
double value)
Map containing scores to each label
|
TextAnnotationImpl.ConstituentProto.Builder |
putProperties(String key,
String value)
Attribute information
|
TextAnnotationImpl.ConstituentProto.Builder |
removeLabelScoreMap(String key)
Map containing scores to each label
|
TextAnnotationImpl.ConstituentProto.Builder |
removeProperties(String key)
Attribute information
|
TextAnnotationImpl.ConstituentProto.Builder |
setEnd(int value)
End index of the span + 1
Span indices correspond to indices in the tokens list.
|
TextAnnotationImpl.ConstituentProto.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TextAnnotationImpl.ConstituentProto.Builder |
setLabel(String value)
Label of the constituent
|
TextAnnotationImpl.ConstituentProto.Builder |
setLabelBytes(com.google.protobuf.ByteString value)
Label of the constituent
|
TextAnnotationImpl.ConstituentProto.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TextAnnotationImpl.ConstituentProto.Builder |
setScore(double value)
Score of the constituent
|
TextAnnotationImpl.ConstituentProto.Builder |
setStart(int value)
Start index of the span
Span indices correspond to indices in the tokens list.
|
TextAnnotationImpl.ConstituentProto.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, 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.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.ConstituentProto.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.ConstituentProto.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.ConstituentProto.Builder>public TextAnnotationImpl.ConstituentProto.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.ConstituentProto.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<TextAnnotationImpl.ConstituentProto.Builder>public TextAnnotationImpl.ConstituentProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TextAnnotationImpl.ConstituentProto build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TextAnnotationImpl.ConstituentProto buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TextAnnotationImpl.ConstituentProto.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.ConstituentProto.Builder>public TextAnnotationImpl.ConstituentProto.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<TextAnnotationImpl.ConstituentProto.Builder>public TextAnnotationImpl.ConstituentProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.ConstituentProto.Builder>public TextAnnotationImpl.ConstituentProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.ConstituentProto.Builder>public TextAnnotationImpl.ConstituentProto.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<TextAnnotationImpl.ConstituentProto.Builder>public TextAnnotationImpl.ConstituentProto.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<TextAnnotationImpl.ConstituentProto.Builder>public TextAnnotationImpl.ConstituentProto.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TextAnnotationImpl.ConstituentProto.Builder>public TextAnnotationImpl.ConstituentProto.Builder mergeFrom(TextAnnotationImpl.ConstituentProto other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.ConstituentProto.Builder>public TextAnnotationImpl.ConstituentProto.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<TextAnnotationImpl.ConstituentProto.Builder>IOExceptionpublic boolean hasLabel()
Label of the constituent
required string label = 1;hasLabel in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic String getLabel()
Label of the constituent
required string label = 1;getLabel in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic com.google.protobuf.ByteString getLabelBytes()
Label of the constituent
required string label = 1;getLabelBytes in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic TextAnnotationImpl.ConstituentProto.Builder setLabel(String value)
Label of the constituent
required string label = 1;public TextAnnotationImpl.ConstituentProto.Builder clearLabel()
Label of the constituent
required string label = 1;public TextAnnotationImpl.ConstituentProto.Builder setLabelBytes(com.google.protobuf.ByteString value)
Label of the constituent
required string label = 1;public boolean hasScore()
Score of the constituent
optional double score = 2 [default = 0];hasScore in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic double getScore()
Score of the constituent
optional double score = 2 [default = 0];getScore in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic TextAnnotationImpl.ConstituentProto.Builder setScore(double value)
Score of the constituent
optional double score = 2 [default = 0];public TextAnnotationImpl.ConstituentProto.Builder clearScore()
Score of the constituent
optional double score = 2 [default = 0];public boolean hasStart()
Start index of the span Span indices correspond to indices in the tokens list.
required int32 start = 3;hasStart in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic int getStart()
Start index of the span Span indices correspond to indices in the tokens list.
required int32 start = 3;getStart in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic TextAnnotationImpl.ConstituentProto.Builder setStart(int value)
Start index of the span Span indices correspond to indices in the tokens list.
required int32 start = 3;public TextAnnotationImpl.ConstituentProto.Builder clearStart()
Start index of the span Span indices correspond to indices in the tokens list.
required int32 start = 3;public boolean hasEnd()
End index of the span + 1 Span indices correspond to indices in the tokens list. Usage: a span corresponds to [start, end) - end is not inclusive.
required int32 end = 4;hasEnd in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic int getEnd()
End index of the span + 1 Span indices correspond to indices in the tokens list. Usage: a span corresponds to [start, end) - end is not inclusive.
required int32 end = 4;getEnd in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic TextAnnotationImpl.ConstituentProto.Builder setEnd(int value)
End index of the span + 1 Span indices correspond to indices in the tokens list. Usage: a span corresponds to [start, end) - end is not inclusive.
required int32 end = 4;public TextAnnotationImpl.ConstituentProto.Builder clearEnd()
End index of the span + 1 Span indices correspond to indices in the tokens list. Usage: a span corresponds to [start, end) - end is not inclusive.
required int32 end = 4;public int getPropertiesCount()
TextAnnotationImpl.ConstituentProtoOrBuilderAttribute information
map<string, string> properties = 5;getPropertiesCount in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic boolean containsProperties(String key)
Attribute information
map<string, string> properties = 5;containsProperties in interface TextAnnotationImpl.ConstituentProtoOrBuilder@Deprecated public Map<String,String> getProperties()
getPropertiesMap() instead.getProperties in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic Map<String,String> getPropertiesMap()
Attribute information
map<string, string> properties = 5;getPropertiesMap in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic String getPropertiesOrDefault(String key, String defaultValue)
Attribute information
map<string, string> properties = 5;getPropertiesOrDefault in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic String getPropertiesOrThrow(String key)
Attribute information
map<string, string> properties = 5;getPropertiesOrThrow in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic TextAnnotationImpl.ConstituentProto.Builder clearProperties()
public TextAnnotationImpl.ConstituentProto.Builder removeProperties(String key)
Attribute information
map<string, string> properties = 5;@Deprecated public Map<String,String> getMutableProperties()
public TextAnnotationImpl.ConstituentProto.Builder putProperties(String key, String value)
Attribute information
map<string, string> properties = 5;public TextAnnotationImpl.ConstituentProto.Builder putAllProperties(Map<String,String> values)
Attribute information
map<string, string> properties = 5;public int getLabelScoreMapCount()
TextAnnotationImpl.ConstituentProtoOrBuilderMap containing scores to each label
map<string, double> labelScoreMap = 6;getLabelScoreMapCount in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic boolean containsLabelScoreMap(String key)
Map containing scores to each label
map<string, double> labelScoreMap = 6;containsLabelScoreMap in interface TextAnnotationImpl.ConstituentProtoOrBuilder@Deprecated public Map<String,Double> getLabelScoreMap()
getLabelScoreMapMap() instead.getLabelScoreMap in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic Map<String,Double> getLabelScoreMapMap()
Map containing scores to each label
map<string, double> labelScoreMap = 6;getLabelScoreMapMap in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic double getLabelScoreMapOrDefault(String key, double defaultValue)
Map containing scores to each label
map<string, double> labelScoreMap = 6;getLabelScoreMapOrDefault in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic double getLabelScoreMapOrThrow(String key)
Map containing scores to each label
map<string, double> labelScoreMap = 6;getLabelScoreMapOrThrow in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic TextAnnotationImpl.ConstituentProto.Builder clearLabelScoreMap()
public TextAnnotationImpl.ConstituentProto.Builder removeLabelScoreMap(String key)
Map containing scores to each label
map<string, double> labelScoreMap = 6;@Deprecated public Map<String,Double> getMutableLabelScoreMap()
public TextAnnotationImpl.ConstituentProto.Builder putLabelScoreMap(String key, double value)
Map containing scores to each label
map<string, double> labelScoreMap = 6;public TextAnnotationImpl.ConstituentProto.Builder putAllLabelScoreMap(Map<String,Double> values)
Map containing scores to each label
map<string, double> labelScoreMap = 6;public final TextAnnotationImpl.ConstituentProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.ConstituentProto.Builder>public final TextAnnotationImpl.ConstituentProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.ConstituentProto.Builder>Copyright © 2017. All rights reserved.