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, 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 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.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 hasLabel()
Label of the constituent
required string label = 1;
hasLabel
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public String getLabel()
Label of the constituent
required string label = 1;
getLabel
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public com.google.protobuf.ByteString getLabelBytes()
Label of the constituent
required string label = 1;
getLabelBytes
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public boolean hasScore()
Score of the constituent
optional double score = 2 [default = 0];
hasScore
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public double getScore()
Score of the constituent
optional double score = 2 [default = 0];
getScore
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public boolean hasStart()
Start index of the span Span indices correspond to indices in the tokens list.
required int32 start = 3;
hasStart
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public int getStart()
Start index of the span Span indices correspond to indices in the tokens list.
required int32 start = 3;
getStart
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public 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.ConstituentProtoOrBuilder
public 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.ConstituentProtoOrBuilder
public int getPropertiesCount()
TextAnnotationImpl.ConstituentProtoOrBuilder
Attribute information
map<string, string> properties = 5;
getPropertiesCount
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public 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.ConstituentProtoOrBuilder
public Map<String,String> getPropertiesMap()
Attribute information
map<string, string> properties = 5;
getPropertiesMap
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public String getPropertiesOrDefault(String key, String defaultValue)
Attribute information
map<string, string> properties = 5;
getPropertiesOrDefault
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public String getPropertiesOrThrow(String key)
Attribute information
map<string, string> properties = 5;
getPropertiesOrThrow
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public int getLabelScoreMapCount()
TextAnnotationImpl.ConstituentProtoOrBuilder
Map containing scores to each label
map<string, double> labelScoreMap = 6;
getLabelScoreMapCount
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public 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.ConstituentProtoOrBuilder
public Map<String,Double> getLabelScoreMapMap()
Map containing scores to each label
map<string, double> labelScoreMap = 6;
getLabelScoreMapMap
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public double getLabelScoreMapOrDefault(String key, double defaultValue)
Map containing scores to each label
map<string, double> labelScoreMap = 6;
getLabelScoreMapOrDefault
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
public double getLabelScoreMapOrThrow(String key)
Map containing scores to each label
map<string, double> labelScoreMap = 6;
getLabelScoreMapOrThrow
in interface TextAnnotationImpl.ConstituentProtoOrBuilder
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.ConstituentProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TextAnnotationImpl.ConstituentProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TextAnnotationImpl.ConstituentProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TextAnnotationImpl.ConstituentProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TextAnnotationImpl.ConstituentProto parseFrom(InputStream input) throws IOException
IOException
public static TextAnnotationImpl.ConstituentProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TextAnnotationImpl.ConstituentProto parseDelimitedFrom(InputStream input) throws IOException
IOException
public static TextAnnotationImpl.ConstituentProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TextAnnotationImpl.ConstituentProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static TextAnnotationImpl.ConstituentProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public TextAnnotationImpl.ConstituentProto.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public 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.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected TextAnnotationImpl.ConstituentProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public 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.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public TextAnnotationImpl.ConstituentProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2017. All rights reserved.