public static final class TextAnnotationImpl.RelationProto extends com.google.protobuf.GeneratedMessageV3 implements TextAnnotationImpl.RelationProtoOrBuilder
Relation message structureProtobuf type
textannotation.RelationProto
Modifier and Type | Class and Description |
---|---|
static class |
TextAnnotationImpl.RelationProto.Builder
Relation message structure
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
LABELSCOREMAP_FIELD_NUMBER |
static com.google.protobuf.Parser<TextAnnotationImpl.RelationProto> |
PARSER
Deprecated.
|
static int |
PROPERTIES_FIELD_NUMBER |
static int |
RELATIONNAME_FIELD_NUMBER |
static int |
SCORE_FIELD_NUMBER |
static int |
SRCCONSTITUENT_FIELD_NUMBER |
static int |
TARGETCONSTITUENT_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
containsLabelScoreMap(String key)
Map containing scores to each label
|
boolean |
containsProperties(String key)
Attribute information
|
boolean |
equals(Object obj) |
static TextAnnotationImpl.RelationProto |
getDefaultInstance() |
TextAnnotationImpl.RelationProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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
|
com.google.protobuf.Parser<TextAnnotationImpl.RelationProto> |
getParserForType() |
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
|
String |
getRelationName()
Name of the relation
|
com.google.protobuf.ByteString |
getRelationNameBytes()
Name of the relation
|
double |
getScore()
Score of the relation
|
int |
getSerializedSize() |
int |
getSrcConstituent()
Identifier for the source constituent
|
int |
getTargetConstituent()
Identifier for the target constituent
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasRelationName()
Name of the relation
|
boolean |
hasScore()
Score of the relation
|
boolean |
hasSrcConstituent()
Identifier for the source constituent
|
boolean |
hasTargetConstituent()
Identifier for the target constituent
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static TextAnnotationImpl.RelationProto.Builder |
newBuilder() |
static TextAnnotationImpl.RelationProto.Builder |
newBuilder(TextAnnotationImpl.RelationProto prototype) |
TextAnnotationImpl.RelationProto.Builder |
newBuilderForType() |
protected TextAnnotationImpl.RelationProto.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static TextAnnotationImpl.RelationProto |
parseDelimitedFrom(InputStream input) |
static TextAnnotationImpl.RelationProto |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TextAnnotationImpl.RelationProto |
parseFrom(byte[] data) |
static TextAnnotationImpl.RelationProto |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TextAnnotationImpl.RelationProto |
parseFrom(com.google.protobuf.ByteString data) |
static TextAnnotationImpl.RelationProto |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TextAnnotationImpl.RelationProto |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TextAnnotationImpl.RelationProto |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TextAnnotationImpl.RelationProto |
parseFrom(InputStream input) |
static TextAnnotationImpl.RelationProto |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<TextAnnotationImpl.RelationProto> |
parser() |
TextAnnotationImpl.RelationProto.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int RELATIONNAME_FIELD_NUMBER
public static final int SCORE_FIELD_NUMBER
public static final int SRCCONSTITUENT_FIELD_NUMBER
public static final int TARGETCONSTITUENT_FIELD_NUMBER
public static final int PROPERTIES_FIELD_NUMBER
public static final int LABELSCOREMAP_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<TextAnnotationImpl.RelationProto> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField
in class com.google.protobuf.GeneratedMessageV3
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
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 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 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 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 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 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 final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static TextAnnotationImpl.RelationProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TextAnnotationImpl.RelationProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TextAnnotationImpl.RelationProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TextAnnotationImpl.RelationProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TextAnnotationImpl.RelationProto parseFrom(InputStream input) throws IOException
IOException
public static TextAnnotationImpl.RelationProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TextAnnotationImpl.RelationProto parseDelimitedFrom(InputStream input) throws IOException
IOException
public static TextAnnotationImpl.RelationProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TextAnnotationImpl.RelationProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static TextAnnotationImpl.RelationProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public TextAnnotationImpl.RelationProto.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static TextAnnotationImpl.RelationProto.Builder newBuilder()
public static TextAnnotationImpl.RelationProto.Builder newBuilder(TextAnnotationImpl.RelationProto prototype)
public TextAnnotationImpl.RelationProto.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected TextAnnotationImpl.RelationProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static TextAnnotationImpl.RelationProto getDefaultInstance()
public static com.google.protobuf.Parser<TextAnnotationImpl.RelationProto> parser()
public com.google.protobuf.Parser<TextAnnotationImpl.RelationProto> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public TextAnnotationImpl.RelationProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2017. All rights reserved.