public static final class TextAnnotationImpl.ConstituentProto extends com.google.protobuf.GeneratedMessageV3 implements TextAnnotationImpl.ConstituentProtoOrBuilder
Constituent message structureProtobuf type
textannotation.ConstituentProto| Modifier and Type | Class and Description |
|---|---|
static class |
TextAnnotationImpl.ConstituentProto.Builder
Constituent 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 |
END_FIELD_NUMBER |
static int |
LABEL_FIELD_NUMBER |
static int |
LABELSCOREMAP_FIELD_NUMBER |
static com.google.protobuf.Parser<TextAnnotationImpl.ConstituentProto> |
PARSER
Deprecated.
|
static int |
PROPERTIES_FIELD_NUMBER |
static int |
SCORE_FIELD_NUMBER |
static int |
START_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.ConstituentProto |
getDefaultInstance() |
TextAnnotationImpl.ConstituentProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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
|
com.google.protobuf.Parser<TextAnnotationImpl.ConstituentProto> |
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
|
double |
getScore()
Score of the constituent
|
int |
getSerializedSize() |
int |
getStart()
Start index of the span
Span indices correspond to indices in the tokens list.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasEnd()
End index of the span + 1
Span indices correspond to indices in the tokens list.
|
int |
hashCode() |
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) |
boolean |
isInitialized() |
static TextAnnotationImpl.ConstituentProto.Builder |
newBuilder() |
static TextAnnotationImpl.ConstituentProto.Builder |
newBuilder(TextAnnotationImpl.ConstituentProto prototype) |
TextAnnotationImpl.ConstituentProto.Builder |
newBuilderForType() |
protected TextAnnotationImpl.ConstituentProto.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static TextAnnotationImpl.ConstituentProto |
parseDelimitedFrom(InputStream input) |
static TextAnnotationImpl.ConstituentProto |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TextAnnotationImpl.ConstituentProto |
parseFrom(byte[] data) |
static TextAnnotationImpl.ConstituentProto |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TextAnnotationImpl.ConstituentProto |
parseFrom(com.google.protobuf.ByteString data) |
static TextAnnotationImpl.ConstituentProto |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TextAnnotationImpl.ConstituentProto |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TextAnnotationImpl.ConstituentProto |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TextAnnotationImpl.ConstituentProto |
parseFrom(InputStream input) |
static TextAnnotationImpl.ConstituentProto |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<TextAnnotationImpl.ConstituentProto> |
parser() |
TextAnnotationImpl.ConstituentProto.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 LABEL_FIELD_NUMBER
public static final int SCORE_FIELD_NUMBER
public static final int START_FIELD_NUMBER
public static final int END_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.ConstituentProto> 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 hasLabel()
Label of the constituent
required string label = 1;hasLabel in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic String getLabel()
Label of the constituent
required string label = 1;getLabel in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic com.google.protobuf.ByteString getLabelBytes()
Label of the constituent
required string label = 1;getLabelBytes in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic boolean hasScore()
Score of the constituent
optional double score = 2 [default = 0];hasScore in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic double getScore()
Score of the constituent
optional double score = 2 [default = 0];getScore in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic boolean hasStart()
Start index of the span Span indices correspond to indices in the tokens list.
required int32 start = 3;hasStart in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic int getStart()
Start index of the span Span indices correspond to indices in the tokens list.
required int32 start = 3;getStart in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic 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.ConstituentProtoOrBuilderpublic 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.ConstituentProtoOrBuilderpublic int getPropertiesCount()
TextAnnotationImpl.ConstituentProtoOrBuilderAttribute information
map<string, string> properties = 5;getPropertiesCount in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic 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.ConstituentProtoOrBuilderpublic Map<String,String> getPropertiesMap()
Attribute information
map<string, string> properties = 5;getPropertiesMap in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic String getPropertiesOrDefault(String key, String defaultValue)
Attribute information
map<string, string> properties = 5;getPropertiesOrDefault in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic String getPropertiesOrThrow(String key)
Attribute information
map<string, string> properties = 5;getPropertiesOrThrow in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic int getLabelScoreMapCount()
TextAnnotationImpl.ConstituentProtoOrBuilderMap containing scores to each label
map<string, double> labelScoreMap = 6;getLabelScoreMapCount in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic 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.ConstituentProtoOrBuilderpublic Map<String,Double> getLabelScoreMapMap()
Map containing scores to each label
map<string, double> labelScoreMap = 6;getLabelScoreMapMap in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic double getLabelScoreMapOrDefault(String key, double defaultValue)
Map containing scores to each label
map<string, double> labelScoreMap = 6;getLabelScoreMapOrDefault in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic double getLabelScoreMapOrThrow(String key)
Map containing scores to each label
map<string, double> labelScoreMap = 6;getLabelScoreMapOrThrow in interface TextAnnotationImpl.ConstituentProtoOrBuilderpublic 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.ConstituentProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TextAnnotationImpl.ConstituentProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TextAnnotationImpl.ConstituentProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TextAnnotationImpl.ConstituentProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TextAnnotationImpl.ConstituentProto parseFrom(InputStream input) throws IOException
IOExceptionpublic static TextAnnotationImpl.ConstituentProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TextAnnotationImpl.ConstituentProto parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static TextAnnotationImpl.ConstituentProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TextAnnotationImpl.ConstituentProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static TextAnnotationImpl.ConstituentProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic TextAnnotationImpl.ConstituentProto.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static TextAnnotationImpl.ConstituentProto.Builder newBuilder()
public static TextAnnotationImpl.ConstituentProto.Builder newBuilder(TextAnnotationImpl.ConstituentProto prototype)
public TextAnnotationImpl.ConstituentProto.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected TextAnnotationImpl.ConstituentProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static TextAnnotationImpl.ConstituentProto getDefaultInstance()
public static com.google.protobuf.Parser<TextAnnotationImpl.ConstituentProto> parser()
public com.google.protobuf.Parser<TextAnnotationImpl.ConstituentProto> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public TextAnnotationImpl.ConstituentProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2017. All rights reserved.