public static final class TextAnnotationImpl.TextAnnotationProto.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.TextAnnotationProto.Builder> implements TextAnnotationImpl.TextAnnotationProtoOrBuilder
Root TextAnnotation messageProtobuf type
textannotation.TextAnnotationProto
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownField
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField
in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.TextAnnotationProto.Builder>
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.TextAnnotationProto.Builder>
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.TextAnnotationProto.Builder>
public TextAnnotationImpl.TextAnnotationProto.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.TextAnnotationProto.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.TextAnnotationProto.Builder>
public TextAnnotationImpl.TextAnnotationProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public TextAnnotationImpl.TextAnnotationProto build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public TextAnnotationImpl.TextAnnotationProto buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public TextAnnotationImpl.TextAnnotationProto.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.TextAnnotationProto.Builder>
public TextAnnotationImpl.TextAnnotationProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.TextAnnotationProto.Builder>
public TextAnnotationImpl.TextAnnotationProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.TextAnnotationProto.Builder>
public TextAnnotationImpl.TextAnnotationProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.TextAnnotationProto.Builder>
public TextAnnotationImpl.TextAnnotationProto.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.TextAnnotationProto.Builder>
public TextAnnotationImpl.TextAnnotationProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.TextAnnotationProto.Builder>
public TextAnnotationImpl.TextAnnotationProto.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TextAnnotationImpl.TextAnnotationProto.Builder>
public TextAnnotationImpl.TextAnnotationProto.Builder mergeFrom(TextAnnotationImpl.TextAnnotationProto other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.TextAnnotationProto.Builder>
public TextAnnotationImpl.TextAnnotationProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TextAnnotationImpl.TextAnnotationProto.Builder>
IOException
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 TextAnnotationImpl.TextAnnotationProto.Builder setCorpusId(String value)
Corpus Identifier
required string corpusId = 1;
public TextAnnotationImpl.TextAnnotationProto.Builder clearCorpusId()
Corpus Identifier
required string corpusId = 1;
public TextAnnotationImpl.TextAnnotationProto.Builder setCorpusIdBytes(com.google.protobuf.ByteString value)
Corpus Identifier
required string corpusId = 1;
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 TextAnnotationImpl.TextAnnotationProto.Builder setId(String value)
Document Identifier
required string id = 2;
public TextAnnotationImpl.TextAnnotationProto.Builder clearId()
Document Identifier
required string id = 2;
public TextAnnotationImpl.TextAnnotationProto.Builder setIdBytes(com.google.protobuf.ByteString value)
Document Identifier
required string id = 2;
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 TextAnnotationImpl.TextAnnotationProto.Builder setText(String value)
Raw text corresponding to this annotation
required string text = 3;
public TextAnnotationImpl.TextAnnotationProto.Builder clearText()
Raw text corresponding to this annotation
required string text = 3;
public TextAnnotationImpl.TextAnnotationProto.Builder setTextBytes(com.google.protobuf.ByteString value)
Raw text corresponding to this annotation
required string text = 3;
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 TextAnnotationImpl.TextAnnotationProto.Builder setTokens(int index, String value)
List of tokens
repeated string tokens = 4;
public TextAnnotationImpl.TextAnnotationProto.Builder addTokens(String value)
List of tokens
repeated string tokens = 4;
public TextAnnotationImpl.TextAnnotationProto.Builder addAllTokens(Iterable<String> values)
List of tokens
repeated string tokens = 4;
public TextAnnotationImpl.TextAnnotationProto.Builder clearTokens()
List of tokens
repeated string tokens = 4;
public TextAnnotationImpl.TextAnnotationProto.Builder addTokensBytes(com.google.protobuf.ByteString value)
List of tokens
repeated string tokens = 4;
public List<TextAnnotationImpl.TokenOffsetsProto> getTokenOffsetsList()
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
getTokenOffsetsList
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.TextAnnotationProto.Builder setTokenOffsets(int index, TextAnnotationImpl.TokenOffsetsProto value)
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
public TextAnnotationImpl.TextAnnotationProto.Builder setTokenOffsets(int index, TextAnnotationImpl.TokenOffsetsProto.Builder builderForValue)
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
public TextAnnotationImpl.TextAnnotationProto.Builder addTokenOffsets(TextAnnotationImpl.TokenOffsetsProto value)
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
public TextAnnotationImpl.TextAnnotationProto.Builder addTokenOffsets(int index, TextAnnotationImpl.TokenOffsetsProto value)
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
public TextAnnotationImpl.TextAnnotationProto.Builder addTokenOffsets(TextAnnotationImpl.TokenOffsetsProto.Builder builderForValue)
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
public TextAnnotationImpl.TextAnnotationProto.Builder addTokenOffsets(int index, TextAnnotationImpl.TokenOffsetsProto.Builder builderForValue)
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
public TextAnnotationImpl.TextAnnotationProto.Builder addAllTokenOffsets(Iterable<? extends TextAnnotationImpl.TokenOffsetsProto> values)
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
public TextAnnotationImpl.TextAnnotationProto.Builder clearTokenOffsets()
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
public TextAnnotationImpl.TextAnnotationProto.Builder removeTokenOffsets(int index)
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
public TextAnnotationImpl.TokenOffsetsProto.Builder getTokenOffsetsBuilder(int index)
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
public TextAnnotationImpl.TokenOffsetsProtoOrBuilder getTokenOffsetsOrBuilder(int index)
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
getTokenOffsetsOrBuilder
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public List<? extends TextAnnotationImpl.TokenOffsetsProtoOrBuilder> getTokenOffsetsOrBuilderList()
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
getTokenOffsetsOrBuilderList
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public TextAnnotationImpl.TokenOffsetsProto.Builder addTokenOffsetsBuilder()
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
public TextAnnotationImpl.TokenOffsetsProto.Builder addTokenOffsetsBuilder(int index)
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
public List<TextAnnotationImpl.TokenOffsetsProto.Builder> getTokenOffsetsBuilderList()
Token Offset information
repeated .textannotation.TokenOffsetsProto tokenOffsets = 5;
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.TextAnnotationProto.Builder setSentences(TextAnnotationImpl.SentenceProto value)
List of Sentences
required .textannotation.SentenceProto sentences = 6;
public TextAnnotationImpl.TextAnnotationProto.Builder setSentences(TextAnnotationImpl.SentenceProto.Builder builderForValue)
List of Sentences
required .textannotation.SentenceProto sentences = 6;
public TextAnnotationImpl.TextAnnotationProto.Builder mergeSentences(TextAnnotationImpl.SentenceProto value)
List of Sentences
required .textannotation.SentenceProto sentences = 6;
public TextAnnotationImpl.TextAnnotationProto.Builder clearSentences()
List of Sentences
required .textannotation.SentenceProto sentences = 6;
public TextAnnotationImpl.SentenceProto.Builder getSentencesBuilder()
List of Sentences
required .textannotation.SentenceProto sentences = 6;
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 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.TextAnnotationProto.Builder setViews(int index, TextAnnotationImpl.ViewProto value)
List of Views
repeated .textannotation.ViewProto views = 7;
public TextAnnotationImpl.TextAnnotationProto.Builder setViews(int index, TextAnnotationImpl.ViewProto.Builder builderForValue)
List of Views
repeated .textannotation.ViewProto views = 7;
public TextAnnotationImpl.TextAnnotationProto.Builder addViews(TextAnnotationImpl.ViewProto value)
List of Views
repeated .textannotation.ViewProto views = 7;
public TextAnnotationImpl.TextAnnotationProto.Builder addViews(int index, TextAnnotationImpl.ViewProto value)
List of Views
repeated .textannotation.ViewProto views = 7;
public TextAnnotationImpl.TextAnnotationProto.Builder addViews(TextAnnotationImpl.ViewProto.Builder builderForValue)
List of Views
repeated .textannotation.ViewProto views = 7;
public TextAnnotationImpl.TextAnnotationProto.Builder addViews(int index, TextAnnotationImpl.ViewProto.Builder builderForValue)
List of Views
repeated .textannotation.ViewProto views = 7;
public TextAnnotationImpl.TextAnnotationProto.Builder addAllViews(Iterable<? extends TextAnnotationImpl.ViewProto> values)
List of Views
repeated .textannotation.ViewProto views = 7;
public TextAnnotationImpl.TextAnnotationProto.Builder clearViews()
List of Views
repeated .textannotation.ViewProto views = 7;
public TextAnnotationImpl.TextAnnotationProto.Builder removeViews(int index)
List of Views
repeated .textannotation.ViewProto views = 7;
public TextAnnotationImpl.ViewProto.Builder getViewsBuilder(int index)
List of Views
repeated .textannotation.ViewProto views = 7;
public TextAnnotationImpl.ViewProtoOrBuilder getViewsOrBuilder(int index)
List of Views
repeated .textannotation.ViewProto views = 7;
getViewsOrBuilder
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public List<? extends TextAnnotationImpl.ViewProtoOrBuilder> getViewsOrBuilderList()
List of Views
repeated .textannotation.ViewProto views = 7;
getViewsOrBuilderList
in interface TextAnnotationImpl.TextAnnotationProtoOrBuilder
public TextAnnotationImpl.ViewProto.Builder addViewsBuilder()
List of Views
repeated .textannotation.ViewProto views = 7;
public TextAnnotationImpl.ViewProto.Builder addViewsBuilder(int index)
List of Views
repeated .textannotation.ViewProto views = 7;
public List<TextAnnotationImpl.ViewProto.Builder> getViewsBuilderList()
List of Views
repeated .textannotation.ViewProto views = 7;
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 TextAnnotationImpl.TextAnnotationProto.Builder clearProperties()
public TextAnnotationImpl.TextAnnotationProto.Builder removeProperties(String key)
Attribute information
map<string, string> properties = 8;
@Deprecated public Map<String,String> getMutableProperties()
public TextAnnotationImpl.TextAnnotationProto.Builder putProperties(String key, String value)
Attribute information
map<string, string> properties = 8;
public TextAnnotationImpl.TextAnnotationProto.Builder putAllProperties(Map<String,String> values)
Attribute information
map<string, string> properties = 8;
public final TextAnnotationImpl.TextAnnotationProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.TextAnnotationProto.Builder>
public final TextAnnotationImpl.TextAnnotationProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotationImpl.TextAnnotationProto.Builder>
Copyright © 2017. All rights reserved.