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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static TextAnnotationImpl.RelationProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TextAnnotationImpl.RelationProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TextAnnotationImpl.RelationProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TextAnnotationImpl.RelationProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TextAnnotationImpl.RelationProto parseFrom(InputStream input) throws IOException
IOExceptionpublic static TextAnnotationImpl.RelationProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TextAnnotationImpl.RelationProto parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static TextAnnotationImpl.RelationProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TextAnnotationImpl.RelationProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static TextAnnotationImpl.RelationProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic TextAnnotationImpl.RelationProto.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic 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.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected TextAnnotationImpl.RelationProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public 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.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public TextAnnotationImpl.RelationProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2017. All rights reserved.