public static final class TextAnnotationImpl.RelationProto.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.RelationProto.Builder> implements TextAnnotationImpl.RelationProtoOrBuilder
Relation message structureProtobuf type
textannotation.RelationProto
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.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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.RelationProto.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.RelationProto.Builder>
public TextAnnotationImpl.RelationProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public TextAnnotationImpl.RelationProto build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public TextAnnotationImpl.RelationProto buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public TextAnnotationImpl.RelationProto.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.RelationProto.Builder>
public TextAnnotationImpl.RelationProto.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.RelationProto.Builder>
public TextAnnotationImpl.RelationProto.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.RelationProto.Builder>
public TextAnnotationImpl.RelationProto.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.RelationProto.Builder>
public TextAnnotationImpl.RelationProto.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.RelationProto.Builder>
public TextAnnotationImpl.RelationProto.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.RelationProto.Builder>
public TextAnnotationImpl.RelationProto.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TextAnnotationImpl.RelationProto.Builder>
IOException
public boolean hasRelationName()
Name of the relation
required string relationName = 1;
hasRelationName
in interface TextAnnotationImpl.RelationProtoOrBuilder
public String getRelationName()
Name of the relation
required string relationName = 1;
getRelationName
in interface TextAnnotationImpl.RelationProtoOrBuilder
public com.google.protobuf.ByteString getRelationNameBytes()
Name of the relation
required string relationName = 1;
getRelationNameBytes
in interface TextAnnotationImpl.RelationProtoOrBuilder
public 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.RelationProtoOrBuilder
public double getScore()
Score of the relation
optional double score = 2 [default = 0];
getScore
in interface TextAnnotationImpl.RelationProtoOrBuilder
public 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.RelationProtoOrBuilder
public int getSrcConstituent()
Identifier for the source constituent
required int32 srcConstituent = 3;
getSrcConstituent
in interface TextAnnotationImpl.RelationProtoOrBuilder
public 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.RelationProtoOrBuilder
public int getTargetConstituent()
Identifier for the target constituent
required int32 targetConstituent = 4;
getTargetConstituent
in interface TextAnnotationImpl.RelationProtoOrBuilder
public 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.RelationProtoOrBuilder
Attribute information
map<string, string> properties = 5;
getPropertiesCount
in interface TextAnnotationImpl.RelationProtoOrBuilder
public 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.RelationProtoOrBuilder
public Map<String,String> getPropertiesMap()
Attribute information
map<string, string> properties = 5;
getPropertiesMap
in interface TextAnnotationImpl.RelationProtoOrBuilder
public String getPropertiesOrDefault(String key, String defaultValue)
Attribute information
map<string, string> properties = 5;
getPropertiesOrDefault
in interface TextAnnotationImpl.RelationProtoOrBuilder
public String getPropertiesOrThrow(String key)
Attribute information
map<string, string> properties = 5;
getPropertiesOrThrow
in interface TextAnnotationImpl.RelationProtoOrBuilder
public 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.RelationProtoOrBuilder
Map containing scores to each label
map<string, double> labelScoreMap = 6;
getLabelScoreMapCount
in interface TextAnnotationImpl.RelationProtoOrBuilder
public 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.RelationProtoOrBuilder
public Map<String,Double> getLabelScoreMapMap()
Map containing scores to each label
map<string, double> labelScoreMap = 6;
getLabelScoreMapMap
in interface TextAnnotationImpl.RelationProtoOrBuilder
public double getLabelScoreMapOrDefault(String key, double defaultValue)
Map containing scores to each label
map<string, double> labelScoreMap = 6;
getLabelScoreMapOrDefault
in interface TextAnnotationImpl.RelationProtoOrBuilder
public double getLabelScoreMapOrThrow(String key)
Map containing scores to each label
map<string, double> labelScoreMap = 6;
getLabelScoreMapOrThrow
in interface TextAnnotationImpl.RelationProtoOrBuilder
public 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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.RelationProto.Builder>
Copyright © 2017. All rights reserved.