public static interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
boolean |
containsProperties(String key)
Attribute information
|
String |
getCorpusId()
Corpus Identifier
|
com.google.protobuf.ByteString |
getCorpusIdBytes()
Corpus Identifier
|
String |
getId()
Document Identifier
|
com.google.protobuf.ByteString |
getIdBytes()
Document Identifier
|
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
|
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
|
List<String> |
getTokensList()
List of tokens
|
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
|
boolean |
hasId()
Document Identifier
|
boolean |
hasSentences()
List of Sentences
|
boolean |
hasText()
Raw text corresponding to this annotation
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
boolean hasCorpusId()
Corpus Identifier
required string corpusId = 1;
String getCorpusId()
Corpus Identifier
required string corpusId = 1;
com.google.protobuf.ByteString getCorpusIdBytes()
Corpus Identifier
required string corpusId = 1;
boolean hasId()
Document Identifier
required string id = 2;
String getId()
Document Identifier
required string id = 2;
com.google.protobuf.ByteString getIdBytes()
Document Identifier
required string id = 2;
boolean hasText()
Raw text corresponding to this annotation
required string text = 3;
String getText()
Raw text corresponding to this annotation
required string text = 3;
com.google.protobuf.ByteString getTextBytes()
Raw text corresponding to this annotation
required string text = 3;
int getTokensCount()
List of tokens
repeated string tokens = 4;
String getTokens(int index)
List of tokens
repeated string tokens = 4;
com.google.protobuf.ByteString getTokensBytes(int index)
List of tokens
repeated string tokens = 4;
List<TextAnnotationImpl.TokenOffsetsProto> getTokenOffsetsList()
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
TextAnnotationImpl.TokenOffsetsProto getTokenOffsets(int index)
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
int getTokenOffsetsCount()
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
List<? extends TextAnnotationImpl.TokenOffsetsProtoOrBuilder> getTokenOffsetsOrBuilderList()
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
TextAnnotationImpl.TokenOffsetsProtoOrBuilder getTokenOffsetsOrBuilder(int index)
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
boolean hasSentences()
List of Sentences
required .textannotation.SentenceProto sentences = 6;
TextAnnotationImpl.SentenceProto getSentences()
List of Sentences
required .textannotation.SentenceProto sentences = 6;
TextAnnotationImpl.SentenceProtoOrBuilder getSentencesOrBuilder()
List of Sentences
required .textannotation.SentenceProto sentences = 6;
List<TextAnnotationImpl.ViewProto> getViewsList()
List of Views
repeated .textannotation.ViewProto views = 7;
TextAnnotationImpl.ViewProto getViews(int index)
List of Views
repeated .textannotation.ViewProto views = 7;
int getViewsCount()
List of Views
repeated .textannotation.ViewProto views = 7;
List<? extends TextAnnotationImpl.ViewProtoOrBuilder> getViewsOrBuilderList()
List of Views
repeated .textannotation.ViewProto views = 7;
TextAnnotationImpl.ViewProtoOrBuilder getViewsOrBuilder(int index)
List of Views
repeated .textannotation.ViewProto views = 7;
int getPropertiesCount()
Attribute information
map<string, string> properties = 8;
boolean containsProperties(String key)
Attribute information
map<string, string> properties = 8;
@Deprecated Map<String,String> getProperties()
getPropertiesMap()
instead.Map<String,String> getPropertiesMap()
Attribute information
map<string, string> properties = 8;
String getPropertiesOrDefault(String key, String defaultValue)
Attribute information
map<string, string> properties = 8;
Copyright © 2017. All rights reserved.