public static final class TextAnnotationImpl.TextAnnotationProto extends com.google.protobuf.GeneratedMessageV3 implements TextAnnotationImpl.TextAnnotationProtoOrBuilder
Root TextAnnotation messageProtobuf type
textannotation.TextAnnotationProto
Modifier and Type | Class and Description |
---|---|
static class |
TextAnnotationImpl.TextAnnotationProto.Builder
Root TextAnnotation message
|
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 |
CORPUSID_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static com.google.protobuf.Parser<TextAnnotationImpl.TextAnnotationProto> |
PARSER
Deprecated.
|
static int |
PROPERTIES_FIELD_NUMBER |
static int |
SENTENCES_FIELD_NUMBER |
static int |
TEXT_FIELD_NUMBER |
static int |
TOKENOFFSETS_FIELD_NUMBER |
static int |
TOKENS_FIELD_NUMBER |
static int |
VIEWS_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
containsProperties(String key)
Attribute information
|
boolean |
equals(Object obj) |
String |
getCorpusId()
Corpus Identifier
|
com.google.protobuf.ByteString |
getCorpusIdBytes()
Corpus Identifier
|
static TextAnnotationImpl.TextAnnotationProto |
getDefaultInstance() |
TextAnnotationImpl.TextAnnotationProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getId()
Document Identifier
|
com.google.protobuf.ByteString |
getIdBytes()
Document Identifier
|
com.google.protobuf.Parser<TextAnnotationImpl.TextAnnotationProto> |
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
|
TextAnnotationImpl.SentenceProto |
getSentences()
List of Sentences
|
TextAnnotationImpl.SentenceProtoOrBuilder |
getSentencesOrBuilder()
List of Sentences
|
int |
getSerializedSize() |
String |
getText()
Raw text corresponding to this annotation
|
com.google.protobuf.ByteString |
getTextBytes()
Raw text corresponding to this annotation
|
TextAnnotationImpl.TokenOffsetsProto |
getTokenOffsets(int index)
Token Offset information
|
int |
getTokenOffsetsCount()
Token Offset information
|
List<TextAnnotationImpl.TokenOffsetsProto> |
getTokenOffsetsList()
Token Offset information
|
TextAnnotationImpl.TokenOffsetsProtoOrBuilder |
getTokenOffsetsOrBuilder(int index)
Token Offset information
|
List<? extends TextAnnotationImpl.TokenOffsetsProtoOrBuilder> |
getTokenOffsetsOrBuilderList()
Token Offset information
|
String |
getTokens(int index)
List of tokens
|
com.google.protobuf.ByteString |
getTokensBytes(int index)
List of tokens
|
int |
getTokensCount()
List of tokens
|
com.google.protobuf.ProtocolStringList |
getTokensList()
List of tokens
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
TextAnnotationImpl.ViewProto |
getViews(int index)
List of Views
|
int |
getViewsCount()
List of Views
|
List<TextAnnotationImpl.ViewProto> |
getViewsList()
List of Views
|
TextAnnotationImpl.ViewProtoOrBuilder |
getViewsOrBuilder(int index)
List of Views
|
List<? extends TextAnnotationImpl.ViewProtoOrBuilder> |
getViewsOrBuilderList()
List of Views
|
boolean |
hasCorpusId()
Corpus Identifier
|
int |
hashCode() |
boolean |
hasId()
Document Identifier
|
boolean |
hasSentences()
List of Sentences
|
boolean |
hasText()
Raw text corresponding to this annotation
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static TextAnnotationImpl.TextAnnotationProto.Builder |
newBuilder() |
static TextAnnotationImpl.TextAnnotationProto.Builder |
newBuilder(TextAnnotationImpl.TextAnnotationProto prototype) |
TextAnnotationImpl.TextAnnotationProto.Builder |
newBuilderForType() |
protected TextAnnotationImpl.TextAnnotationProto.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static TextAnnotationImpl.TextAnnotationProto |
parseDelimitedFrom(InputStream input) |
static TextAnnotationImpl.TextAnnotationProto |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TextAnnotationImpl.TextAnnotationProto |
parseFrom(byte[] data) |
static TextAnnotationImpl.TextAnnotationProto |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TextAnnotationImpl.TextAnnotationProto |
parseFrom(com.google.protobuf.ByteString data) |
static TextAnnotationImpl.TextAnnotationProto |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TextAnnotationImpl.TextAnnotationProto |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TextAnnotationImpl.TextAnnotationProto |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TextAnnotationImpl.TextAnnotationProto |
parseFrom(InputStream input) |
static TextAnnotationImpl.TextAnnotationProto |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<TextAnnotationImpl.TextAnnotationProto> |
parser() |
TextAnnotationImpl.TextAnnotationProto.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 CORPUSID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER
public static final int TOKENS_FIELD_NUMBER
public static final int TOKENOFFSETS_FIELD_NUMBER
public static final int SENTENCES_FIELD_NUMBER
public static final int VIEWS_FIELD_NUMBER
public static final int PROPERTIES_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<TextAnnotationImpl.TextAnnotationProto> 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 hasCorpusId()
Corpus Identifier
required string corpusId = 1;
hasCorpusId
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public String getCorpusId()
Corpus Identifier
required string corpusId = 1;
getCorpusId
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public com.google.protobuf.ByteString getCorpusIdBytes()
Corpus Identifier
required string corpusId = 1;
getCorpusIdBytes
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public boolean hasId()
Document Identifier
required string id = 2;
hasId
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public String getId()
Document Identifier
required string id = 2;
getId
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public com.google.protobuf.ByteString getIdBytes()
Document Identifier
required string id = 2;
getIdBytes
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public boolean hasText()
Raw text corresponding to this annotation
required string text = 3;
hasText
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public String getText()
Raw text corresponding to this annotation
required string text = 3;
getText
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public com.google.protobuf.ByteString getTextBytes()
Raw text corresponding to this annotation
required string text = 3;
getTextBytes
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public com.google.protobuf.ProtocolStringList getTokensList()
List of tokens
repeated string tokens = 4;
getTokensList
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public int getTokensCount()
List of tokens
repeated string tokens = 4;
getTokensCount
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public String getTokens(int index)
List of tokens
repeated string tokens = 4;
getTokens
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public com.google.protobuf.ByteString getTokensBytes(int index)
List of tokens
repeated string tokens = 4;
getTokensBytes
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public List<TextAnnotationImpl.TokenOffsetsProto> getTokenOffsetsList()
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
getTokenOffsetsList
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public List<? extends TextAnnotationImpl.TokenOffsetsProtoOrBuilder> getTokenOffsetsOrBuilderList()
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
getTokenOffsetsOrBuilderList
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public int getTokenOffsetsCount()
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
getTokenOffsetsCount
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public TextAnnotationImpl.TokenOffsetsProto getTokenOffsets(int index)
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
getTokenOffsets
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public TextAnnotationImpl.TokenOffsetsProtoOrBuilder getTokenOffsetsOrBuilder(int index)
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
getTokenOffsetsOrBuilder
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public boolean hasSentences()
List of Sentences
required .textannotation.SentenceProto sentences = 6;
hasSentences
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public TextAnnotationImpl.SentenceProto getSentences()
List of Sentences
required .textannotation.SentenceProto sentences = 6;
getSentences
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public TextAnnotationImpl.SentenceProtoOrBuilder getSentencesOrBuilder()
List of Sentences
required .textannotation.SentenceProto sentences = 6;
getSentencesOrBuilder
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public List<TextAnnotationImpl.ViewProto> getViewsList()
List of Views
repeated .textannotation.ViewProto views = 7;
getViewsList
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public List<? extends TextAnnotationImpl.ViewProtoOrBuilder> getViewsOrBuilderList()
List of Views
repeated .textannotation.ViewProto views = 7;
getViewsOrBuilderList
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public int getViewsCount()
List of Views
repeated .textannotation.ViewProto views = 7;
getViewsCount
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public TextAnnotationImpl.ViewProto getViews(int index)
List of Views
repeated .textannotation.ViewProto views = 7;
getViews
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public TextAnnotationImpl.ViewProtoOrBuilder getViewsOrBuilder(int index)
List of Views
repeated .textannotation.ViewProto views = 7;
getViewsOrBuilder
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public int getPropertiesCount()
TextAnnotationImpl.TextAnnotationProtoOrBuilder
Attribute information
map<string, string> properties = 8;
getPropertiesCount
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public boolean containsProperties(String key)
Attribute information
map<string, string> properties = 8;
containsProperties
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
@Deprecated public Map<String,String> getProperties()
getPropertiesMap()
instead.getProperties
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public Map<String,String> getPropertiesMap()
Attribute information
map<string, string> properties = 8;
getPropertiesMap
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public String getPropertiesOrDefault(String key, String defaultValue)
Attribute information
map<string, string> properties = 8;
getPropertiesOrDefault
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public String getPropertiesOrThrow(String key)
Attribute information
map<string, string> properties = 8;
getPropertiesOrThrow
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
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.TextAnnotationProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TextAnnotationImpl.TextAnnotationProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TextAnnotationImpl.TextAnnotationProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TextAnnotationImpl.TextAnnotationProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TextAnnotationImpl.TextAnnotationProto parseFrom(InputStream input) throws IOException
IOException
public static TextAnnotationImpl.TextAnnotationProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TextAnnotationImpl.TextAnnotationProto parseDelimitedFrom(InputStream input) throws IOException
IOException
public static TextAnnotationImpl.TextAnnotationProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TextAnnotationImpl.TextAnnotationProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static TextAnnotationImpl.TextAnnotationProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public TextAnnotationImpl.TextAnnotationProto.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static TextAnnotationImpl.TextAnnotationProto.Builder newBuilder()
public static TextAnnotationImpl.TextAnnotationProto.Builder newBuilder(TextAnnotationImpl.TextAnnotationProto prototype)
public TextAnnotationImpl.TextAnnotationProto.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected TextAnnotationImpl.TextAnnotationProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static TextAnnotationImpl.TextAnnotationProto getDefaultInstance()
public static com.google.protobuf.Parser<TextAnnotationImpl.TextAnnotationProto> parser()
public com.google.protobuf.Parser<TextAnnotationImpl.TextAnnotationProto> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public TextAnnotationImpl.TextAnnotationProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2017. All rights reserved.