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, parseUnknownField
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.ConstituentProto.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.ConstituentProto.Builder>
public TextAnnotationImpl.ConstituentProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public TextAnnotationImpl.ConstituentProto build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public TextAnnotationImpl.ConstituentProto buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public TextAnnotationImpl.ConstituentProto.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TextAnnotationImpl.ConstituentProto.Builder>
IOException
public boolean hasLabel()
Label of the constituent
required string label = 1;
hasLabel
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public String getLabel()
Label of the constituent
required string label = 1;
getLabel
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public com.google.protobuf.ByteString getLabelBytes()
Label of the constituent
required string label = 1;
getLabelBytes
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public 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.ConstituentProtoOrBuilder
public double getScore()
Score of the constituent
optional double score = 2 [default = 0];
getScore
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public 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.ConstituentProtoOrBuilder
public int getStart()
Start index of the span Span indices correspond to indices in the tokens list.
required int32 start = 3;
getStart
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public 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.ConstituentProtoOrBuilder
public 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.ConstituentProtoOrBuilder
public 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.ConstituentProtoOrBuilder
Attribute information
map<string, string> properties = 5;
getPropertiesCount
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public 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.ConstituentProtoOrBuilder
public Map<String,String> getPropertiesMap()
Attribute information
map<string, string> properties = 5;
getPropertiesMap
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public String getPropertiesOrDefault(String key, String defaultValue)
Attribute information
map<string, string> properties = 5;
getPropertiesOrDefault
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public String getPropertiesOrThrow(String key)
Attribute information
map<string, string> properties = 5;
getPropertiesOrThrow
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public 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.ConstituentProtoOrBuilder
Map containing scores to each label
map<string, double> labelScoreMap = 6;
getLabelScoreMapCount
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public 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.ConstituentProtoOrBuilder
public Map<String,Double> getLabelScoreMapMap()
Map containing scores to each label
map<string, double> labelScoreMap = 6;
getLabelScoreMapMap
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public double getLabelScoreMapOrDefault(String key, double defaultValue)
Map containing scores to each label
map<string, double> labelScoreMap = 6;
getLabelScoreMapOrDefault
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public double getLabelScoreMapOrThrow(String key)
Map containing scores to each label
map<string, double> labelScoreMap = 6;
getLabelScoreMapOrThrow
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public 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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.ConstituentProto.Builder>
Copyright © 2017. All rights reserved.