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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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.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 hasCorpusId()
Corpus Identifier
required string corpusId = 1;hasCorpusId in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic String getCorpusId()
Corpus Identifier
required string corpusId = 1;getCorpusId in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic com.google.protobuf.ByteString getCorpusIdBytes()
Corpus Identifier
required string corpusId = 1;getCorpusIdBytes in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic boolean hasId()
Document Identifier
required string id = 2;hasId in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic String getId()
Document Identifier
required string id = 2;getId in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
Document Identifier
required string id = 2;getIdBytes in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic boolean hasText()
Raw text corresponding to this annotation
required string text = 3;hasText in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic String getText()
Raw text corresponding to this annotation
required string text = 3;getText in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic com.google.protobuf.ByteString getTextBytes()
Raw text corresponding to this annotation
required string text = 3;getTextBytes in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic com.google.protobuf.ProtocolStringList getTokensList()
List of tokens
repeated string tokens = 4;getTokensList in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic int getTokensCount()
List of tokens
repeated string tokens = 4;getTokensCount in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic String getTokens(int index)
List of tokens
repeated string tokens = 4;getTokens in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic com.google.protobuf.ByteString getTokensBytes(int index)
List of tokens
repeated string tokens = 4;getTokensBytes in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic List<TextAnnotationImpl.TokenOffsetsProto> getTokenOffsetsList()
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;getTokenOffsetsList in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic List<? extends TextAnnotationImpl.TokenOffsetsProtoOrBuilder> getTokenOffsetsOrBuilderList()
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;getTokenOffsetsOrBuilderList in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic int getTokenOffsetsCount()
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;getTokenOffsetsCount in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic TextAnnotationImpl.TokenOffsetsProto getTokenOffsets(int index)
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;getTokenOffsets in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic TextAnnotationImpl.TokenOffsetsProtoOrBuilder getTokenOffsetsOrBuilder(int index)
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;getTokenOffsetsOrBuilder in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic boolean hasSentences()
List of Sentences
required .textannotation.SentenceProto sentences = 6;hasSentences in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic TextAnnotationImpl.SentenceProto getSentences()
List of Sentences
required .textannotation.SentenceProto sentences = 6;getSentences in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic TextAnnotationImpl.SentenceProtoOrBuilder getSentencesOrBuilder()
List of Sentences
required .textannotation.SentenceProto sentences = 6;getSentencesOrBuilder in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic List<TextAnnotationImpl.ViewProto> getViewsList()
List of Views
repeated .textannotation.ViewProto views = 7;getViewsList in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic List<? extends TextAnnotationImpl.ViewProtoOrBuilder> getViewsOrBuilderList()
List of Views
repeated .textannotation.ViewProto views = 7;getViewsOrBuilderList in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic int getViewsCount()
List of Views
repeated .textannotation.ViewProto views = 7;getViewsCount in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic TextAnnotationImpl.ViewProto getViews(int index)
List of Views
repeated .textannotation.ViewProto views = 7;getViews in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic TextAnnotationImpl.ViewProtoOrBuilder getViewsOrBuilder(int index)
List of Views
repeated .textannotation.ViewProto views = 7;getViewsOrBuilder in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic int getPropertiesCount()
TextAnnotationImpl.TextAnnotationProtoOrBuilderAttribute information
map<string, string> properties = 8;getPropertiesCount in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic 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.TextAnnotationProtoOrBuilderpublic Map<String,String> getPropertiesMap()
Attribute information
map<string, string> properties = 8;getPropertiesMap in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic String getPropertiesOrDefault(String key, String defaultValue)
Attribute information
map<string, string> properties = 8;getPropertiesOrDefault in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic String getPropertiesOrThrow(String key)
Attribute information
map<string, string> properties = 8;getPropertiesOrThrow in interface TextAnnotationImpl.TextAnnotationProtoOrBuilderpublic 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.TextAnnotationProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TextAnnotationImpl.TextAnnotationProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TextAnnotationImpl.TextAnnotationProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TextAnnotationImpl.TextAnnotationProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TextAnnotationImpl.TextAnnotationProto parseFrom(InputStream input) throws IOException
IOExceptionpublic static TextAnnotationImpl.TextAnnotationProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TextAnnotationImpl.TextAnnotationProto parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static TextAnnotationImpl.TextAnnotationProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TextAnnotationImpl.TextAnnotationProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static TextAnnotationImpl.TextAnnotationProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic TextAnnotationImpl.TextAnnotationProto.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic 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.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected TextAnnotationImpl.TextAnnotationProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public 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.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public TextAnnotationImpl.TextAnnotationProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2017. All rights reserved.