public static final class TextAnnotationImpl.RelationProto.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.RelationProto.Builder> implements TextAnnotationImpl.RelationProtoOrBuilder
Relation message structureProtobuf type
textannotation.RelationProtogetAllFields, 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.RelationProto.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.RelationProto.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.RelationProto.Builder>public TextAnnotationImpl.RelationProto.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.RelationProto.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.RelationProto.Builder>public TextAnnotationImpl.RelationProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TextAnnotationImpl.RelationProto build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TextAnnotationImpl.RelationProto buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TextAnnotationImpl.RelationProto.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.RelationProto.Builder>public TextAnnotationImpl.RelationProto.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.RelationProto.Builder>public TextAnnotationImpl.RelationProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.RelationProto.Builder>public TextAnnotationImpl.RelationProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.RelationProto.Builder>public TextAnnotationImpl.RelationProto.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.RelationProto.Builder>public TextAnnotationImpl.RelationProto.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.RelationProto.Builder>public TextAnnotationImpl.RelationProto.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TextAnnotationImpl.RelationProto.Builder>public TextAnnotationImpl.RelationProto.Builder mergeFrom(TextAnnotationImpl.RelationProto other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.RelationProto.Builder>public TextAnnotationImpl.RelationProto.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.RelationProto.Builder>IOExceptionpublic boolean hasRelationName()
Name of the relation
required string relationName = 1;hasRelationName in interface TextAnnotationImpl.RelationProtoOrBuilderpublic String getRelationName()
Name of the relation
required string relationName = 1;getRelationName in interface TextAnnotationImpl.RelationProtoOrBuilderpublic com.google.protobuf.ByteString getRelationNameBytes()
Name of the relation
required string relationName = 1;getRelationNameBytes in interface TextAnnotationImpl.RelationProtoOrBuilderpublic TextAnnotationImpl.RelationProto.Builder setRelationName(String value)
Name of the relation
required string relationName = 1;public TextAnnotationImpl.RelationProto.Builder clearRelationName()
Name of the relation
required string relationName = 1;public TextAnnotationImpl.RelationProto.Builder setRelationNameBytes(com.google.protobuf.ByteString value)
Name of the relation
required string relationName = 1;public boolean hasScore()
Score of the relation
optional double score = 2 [default = 0];hasScore in interface TextAnnotationImpl.RelationProtoOrBuilderpublic double getScore()
Score of the relation
optional double score = 2 [default = 0];getScore in interface TextAnnotationImpl.RelationProtoOrBuilderpublic TextAnnotationImpl.RelationProto.Builder setScore(double value)
Score of the relation
optional double score = 2 [default = 0];public TextAnnotationImpl.RelationProto.Builder clearScore()
Score of the relation
optional double score = 2 [default = 0];public boolean hasSrcConstituent()
Identifier for the source constituent
required int32 srcConstituent = 3;hasSrcConstituent in interface TextAnnotationImpl.RelationProtoOrBuilderpublic int getSrcConstituent()
Identifier for the source constituent
required int32 srcConstituent = 3;getSrcConstituent in interface TextAnnotationImpl.RelationProtoOrBuilderpublic TextAnnotationImpl.RelationProto.Builder setSrcConstituent(int value)
Identifier for the source constituent
required int32 srcConstituent = 3;public TextAnnotationImpl.RelationProto.Builder clearSrcConstituent()
Identifier for the source constituent
required int32 srcConstituent = 3;public boolean hasTargetConstituent()
Identifier for the target constituent
required int32 targetConstituent = 4;hasTargetConstituent in interface TextAnnotationImpl.RelationProtoOrBuilderpublic int getTargetConstituent()
Identifier for the target constituent
required int32 targetConstituent = 4;getTargetConstituent in interface TextAnnotationImpl.RelationProtoOrBuilderpublic TextAnnotationImpl.RelationProto.Builder setTargetConstituent(int value)
Identifier for the target constituent
required int32 targetConstituent = 4;public TextAnnotationImpl.RelationProto.Builder clearTargetConstituent()
Identifier for the target constituent
required int32 targetConstituent = 4;public int getPropertiesCount()
TextAnnotationImpl.RelationProtoOrBuilderAttribute information
map<string, string> properties = 5;getPropertiesCount in interface TextAnnotationImpl.RelationProtoOrBuilderpublic boolean containsProperties(String key)
Attribute information
map<string, string> properties = 5;containsProperties in interface TextAnnotationImpl.RelationProtoOrBuilder@Deprecated public Map<String,String> getProperties()
getPropertiesMap() instead.getProperties in interface TextAnnotationImpl.RelationProtoOrBuilderpublic Map<String,String> getPropertiesMap()
Attribute information
map<string, string> properties = 5;getPropertiesMap in interface TextAnnotationImpl.RelationProtoOrBuilderpublic String getPropertiesOrDefault(String key, String defaultValue)
Attribute information
map<string, string> properties = 5;getPropertiesOrDefault in interface TextAnnotationImpl.RelationProtoOrBuilderpublic String getPropertiesOrThrow(String key)
Attribute information
map<string, string> properties = 5;getPropertiesOrThrow in interface TextAnnotationImpl.RelationProtoOrBuilderpublic TextAnnotationImpl.RelationProto.Builder clearProperties()
public TextAnnotationImpl.RelationProto.Builder removeProperties(String key)
Attribute information
map<string, string> properties = 5;@Deprecated public Map<String,String> getMutableProperties()
public TextAnnotationImpl.RelationProto.Builder putProperties(String key, String value)
Attribute information
map<string, string> properties = 5;public TextAnnotationImpl.RelationProto.Builder putAllProperties(Map<String,String> values)
Attribute information
map<string, string> properties = 5;public int getLabelScoreMapCount()
TextAnnotationImpl.RelationProtoOrBuilderMap containing scores to each label
map<string, double> labelScoreMap = 6;getLabelScoreMapCount in interface TextAnnotationImpl.RelationProtoOrBuilderpublic boolean containsLabelScoreMap(String key)
Map containing scores to each label
map<string, double> labelScoreMap = 6;containsLabelScoreMap in interface TextAnnotationImpl.RelationProtoOrBuilder@Deprecated public Map<String,Double> getLabelScoreMap()
getLabelScoreMapMap() instead.getLabelScoreMap in interface TextAnnotationImpl.RelationProtoOrBuilderpublic Map<String,Double> getLabelScoreMapMap()
Map containing scores to each label
map<string, double> labelScoreMap = 6;getLabelScoreMapMap in interface TextAnnotationImpl.RelationProtoOrBuilderpublic double getLabelScoreMapOrDefault(String key, double defaultValue)
Map containing scores to each label
map<string, double> labelScoreMap = 6;getLabelScoreMapOrDefault in interface TextAnnotationImpl.RelationProtoOrBuilderpublic double getLabelScoreMapOrThrow(String key)
Map containing scores to each label
map<string, double> labelScoreMap = 6;getLabelScoreMapOrThrow in interface TextAnnotationImpl.RelationProtoOrBuilderpublic TextAnnotationImpl.RelationProto.Builder clearLabelScoreMap()
public TextAnnotationImpl.RelationProto.Builder removeLabelScoreMap(String key)
Map containing scores to each label
map<string, double> labelScoreMap = 6;@Deprecated public Map<String,Double> getMutableLabelScoreMap()
public TextAnnotationImpl.RelationProto.Builder putLabelScoreMap(String key, double value)
Map containing scores to each label
map<string, double> labelScoreMap = 6;public TextAnnotationImpl.RelationProto.Builder putAllLabelScoreMap(Map<String,Double> values)
Map containing scores to each label
map<string, double> labelScoreMap = 6;public final TextAnnotationImpl.RelationProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.RelationProto.Builder>public final TextAnnotationImpl.RelationProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.RelationProto.Builder>Copyright © 2017. All rights reserved.