public static final class AnnotateTextResponse.Builder extends GeneratedMessageV3.Builder<AnnotateTextResponse.Builder> implements AnnotateTextResponseOrBuilder
The text annotations response message.Protobuf type
google.cloud.language.v1.AnnotateTextResponse
Modifier and Type | Method and Description |
---|---|
AnnotateTextResponse.Builder |
addAllCategories(java.lang.Iterable<? extends ClassificationCategory> values)
Categories identified in the input document.
|
AnnotateTextResponse.Builder |
addAllEntities(java.lang.Iterable<? extends Entity> values)
Entities, along with their semantic information, in the input document.
|
AnnotateTextResponse.Builder |
addAllSentences(java.lang.Iterable<? extends Sentence> values)
Sentences in the input document.
|
AnnotateTextResponse.Builder |
addAllTokens(java.lang.Iterable<? extends Token> values)
Tokens, along with their syntactic information, in the input document.
|
AnnotateTextResponse.Builder |
addCategories(ClassificationCategory.Builder builderForValue)
Categories identified in the input document.
|
AnnotateTextResponse.Builder |
addCategories(ClassificationCategory value)
Categories identified in the input document.
|
AnnotateTextResponse.Builder |
addCategories(int index,
ClassificationCategory.Builder builderForValue)
Categories identified in the input document.
|
AnnotateTextResponse.Builder |
addCategories(int index,
ClassificationCategory value)
Categories identified in the input document.
|
ClassificationCategory.Builder |
addCategoriesBuilder()
Categories identified in the input document.
|
ClassificationCategory.Builder |
addCategoriesBuilder(int index)
Categories identified in the input document.
|
AnnotateTextResponse.Builder |
addEntities(Entity.Builder builderForValue)
Entities, along with their semantic information, in the input document.
|
AnnotateTextResponse.Builder |
addEntities(Entity value)
Entities, along with their semantic information, in the input document.
|
AnnotateTextResponse.Builder |
addEntities(int index,
Entity.Builder builderForValue)
Entities, along with their semantic information, in the input document.
|
AnnotateTextResponse.Builder |
addEntities(int index,
Entity value)
Entities, along with their semantic information, in the input document.
|
Entity.Builder |
addEntitiesBuilder()
Entities, along with their semantic information, in the input document.
|
Entity.Builder |
addEntitiesBuilder(int index)
Entities, along with their semantic information, in the input document.
|
AnnotateTextResponse.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
AnnotateTextResponse.Builder |
addSentences(int index,
Sentence.Builder builderForValue)
Sentences in the input document.
|
AnnotateTextResponse.Builder |
addSentences(int index,
Sentence value)
Sentences in the input document.
|
AnnotateTextResponse.Builder |
addSentences(Sentence.Builder builderForValue)
Sentences in the input document.
|
AnnotateTextResponse.Builder |
addSentences(Sentence value)
Sentences in the input document.
|
Sentence.Builder |
addSentencesBuilder()
Sentences in the input document.
|
Sentence.Builder |
addSentencesBuilder(int index)
Sentences in the input document.
|
AnnotateTextResponse.Builder |
addTokens(int index,
Token.Builder builderForValue)
Tokens, along with their syntactic information, in the input document.
|
AnnotateTextResponse.Builder |
addTokens(int index,
Token value)
Tokens, along with their syntactic information, in the input document.
|
AnnotateTextResponse.Builder |
addTokens(Token.Builder builderForValue)
Tokens, along with their syntactic information, in the input document.
|
AnnotateTextResponse.Builder |
addTokens(Token value)
Tokens, along with their syntactic information, in the input document.
|
Token.Builder |
addTokensBuilder()
Tokens, along with their syntactic information, in the input document.
|
Token.Builder |
addTokensBuilder(int index)
Tokens, along with their syntactic information, in the input document.
|
AnnotateTextResponse |
build() |
AnnotateTextResponse |
buildPartial() |
AnnotateTextResponse.Builder |
clear() |
AnnotateTextResponse.Builder |
clearCategories()
Categories identified in the input document.
|
AnnotateTextResponse.Builder |
clearDocumentSentiment()
The overall sentiment for the document.
|
AnnotateTextResponse.Builder |
clearEntities()
Entities, along with their semantic information, in the input document.
|
AnnotateTextResponse.Builder |
clearField(Descriptors.FieldDescriptor field) |
AnnotateTextResponse.Builder |
clearLanguage()
The language of the text, which will be the same as the language specified
in the request or, if not specified, the automatically-detected language.
|
AnnotateTextResponse.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
AnnotateTextResponse.Builder |
clearSentences()
Sentences in the input document.
|
AnnotateTextResponse.Builder |
clearTokens()
Tokens, along with their syntactic information, in the input document.
|
AnnotateTextResponse.Builder |
clone() |
ClassificationCategory |
getCategories(int index)
Categories identified in the input document.
|
ClassificationCategory.Builder |
getCategoriesBuilder(int index)
Categories identified in the input document.
|
java.util.List<ClassificationCategory.Builder> |
getCategoriesBuilderList()
Categories identified in the input document.
|
int |
getCategoriesCount()
Categories identified in the input document.
|
java.util.List<ClassificationCategory> |
getCategoriesList()
Categories identified in the input document.
|
ClassificationCategoryOrBuilder |
getCategoriesOrBuilder(int index)
Categories identified in the input document.
|
java.util.List<? extends ClassificationCategoryOrBuilder> |
getCategoriesOrBuilderList()
Categories identified in the input document.
|
AnnotateTextResponse |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Sentiment |
getDocumentSentiment()
The overall sentiment for the document.
|
Sentiment.Builder |
getDocumentSentimentBuilder()
The overall sentiment for the document.
|
SentimentOrBuilder |
getDocumentSentimentOrBuilder()
The overall sentiment for the document.
|
Entity |
getEntities(int index)
Entities, along with their semantic information, in the input document.
|
Entity.Builder |
getEntitiesBuilder(int index)
Entities, along with their semantic information, in the input document.
|
java.util.List<Entity.Builder> |
getEntitiesBuilderList()
Entities, along with their semantic information, in the input document.
|
int |
getEntitiesCount()
Entities, along with their semantic information, in the input document.
|
java.util.List<Entity> |
getEntitiesList()
Entities, along with their semantic information, in the input document.
|
EntityOrBuilder |
getEntitiesOrBuilder(int index)
Entities, along with their semantic information, in the input document.
|
java.util.List<? extends EntityOrBuilder> |
getEntitiesOrBuilderList()
Entities, along with their semantic information, in the input document.
|
java.lang.String |
getLanguage()
The language of the text, which will be the same as the language specified
in the request or, if not specified, the automatically-detected language.
|
ByteString |
getLanguageBytes()
The language of the text, which will be the same as the language specified
in the request or, if not specified, the automatically-detected language.
|
Sentence |
getSentences(int index)
Sentences in the input document.
|
Sentence.Builder |
getSentencesBuilder(int index)
Sentences in the input document.
|
java.util.List<Sentence.Builder> |
getSentencesBuilderList()
Sentences in the input document.
|
int |
getSentencesCount()
Sentences in the input document.
|
java.util.List<Sentence> |
getSentencesList()
Sentences in the input document.
|
SentenceOrBuilder |
getSentencesOrBuilder(int index)
Sentences in the input document.
|
java.util.List<? extends SentenceOrBuilder> |
getSentencesOrBuilderList()
Sentences in the input document.
|
Token |
getTokens(int index)
Tokens, along with their syntactic information, in the input document.
|
Token.Builder |
getTokensBuilder(int index)
Tokens, along with their syntactic information, in the input document.
|
java.util.List<Token.Builder> |
getTokensBuilderList()
Tokens, along with their syntactic information, in the input document.
|
int |
getTokensCount()
Tokens, along with their syntactic information, in the input document.
|
java.util.List<Token> |
getTokensList()
Tokens, along with their syntactic information, in the input document.
|
TokenOrBuilder |
getTokensOrBuilder(int index)
Tokens, along with their syntactic information, in the input document.
|
java.util.List<? extends TokenOrBuilder> |
getTokensOrBuilderList()
Tokens, along with their syntactic information, in the input document.
|
boolean |
hasDocumentSentiment()
The overall sentiment for the document.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AnnotateTextResponse.Builder |
mergeDocumentSentiment(Sentiment value)
The overall sentiment for the document.
|
AnnotateTextResponse.Builder |
mergeFrom(AnnotateTextResponse other) |
AnnotateTextResponse.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
AnnotateTextResponse.Builder |
mergeFrom(Message other) |
AnnotateTextResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
AnnotateTextResponse.Builder |
removeCategories(int index)
Categories identified in the input document.
|
AnnotateTextResponse.Builder |
removeEntities(int index)
Entities, along with their semantic information, in the input document.
|
AnnotateTextResponse.Builder |
removeSentences(int index)
Sentences in the input document.
|
AnnotateTextResponse.Builder |
removeTokens(int index)
Tokens, along with their syntactic information, in the input document.
|
AnnotateTextResponse.Builder |
setCategories(int index,
ClassificationCategory.Builder builderForValue)
Categories identified in the input document.
|
AnnotateTextResponse.Builder |
setCategories(int index,
ClassificationCategory value)
Categories identified in the input document.
|
AnnotateTextResponse.Builder |
setDocumentSentiment(Sentiment.Builder builderForValue)
The overall sentiment for the document.
|
AnnotateTextResponse.Builder |
setDocumentSentiment(Sentiment value)
The overall sentiment for the document.
|
AnnotateTextResponse.Builder |
setEntities(int index,
Entity.Builder builderForValue)
Entities, along with their semantic information, in the input document.
|
AnnotateTextResponse.Builder |
setEntities(int index,
Entity value)
Entities, along with their semantic information, in the input document.
|
AnnotateTextResponse.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
AnnotateTextResponse.Builder |
setLanguage(java.lang.String value)
The language of the text, which will be the same as the language specified
in the request or, if not specified, the automatically-detected language.
|
AnnotateTextResponse.Builder |
setLanguageBytes(ByteString value)
The language of the text, which will be the same as the language specified
in the request or, if not specified, the automatically-detected language.
|
AnnotateTextResponse.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
AnnotateTextResponse.Builder |
setSentences(int index,
Sentence.Builder builderForValue)
Sentences in the input document.
|
AnnotateTextResponse.Builder |
setSentences(int index,
Sentence value)
Sentences in the input document.
|
AnnotateTextResponse.Builder |
setTokens(int index,
Token.Builder builderForValue)
Tokens, along with their syntactic information, in the input document.
|
AnnotateTextResponse.Builder |
setTokens(int index,
Token value)
Tokens, along with their syntactic information, in the input document.
|
AnnotateTextResponse.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<AnnotateTextResponse.Builder>
public AnnotateTextResponse.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<AnnotateTextResponse.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<AnnotateTextResponse.Builder>
public AnnotateTextResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public AnnotateTextResponse build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public AnnotateTextResponse buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public AnnotateTextResponse.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<AnnotateTextResponse.Builder>
public AnnotateTextResponse.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<AnnotateTextResponse.Builder>
public AnnotateTextResponse.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<AnnotateTextResponse.Builder>
public AnnotateTextResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<AnnotateTextResponse.Builder>
public AnnotateTextResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<AnnotateTextResponse.Builder>
public AnnotateTextResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<AnnotateTextResponse.Builder>
public AnnotateTextResponse.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<AnnotateTextResponse.Builder>
public AnnotateTextResponse.Builder mergeFrom(AnnotateTextResponse other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<AnnotateTextResponse.Builder>
public AnnotateTextResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<AnnotateTextResponse.Builder>
java.io.IOException
public java.util.List<Sentence> getSentencesList()
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Sentence sentences = 1;
getSentencesList
in interface AnnotateTextResponseOrBuilder
public int getSentencesCount()
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Sentence sentences = 1;
getSentencesCount
in interface AnnotateTextResponseOrBuilder
public Sentence getSentences(int index)
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Sentence sentences = 1;
getSentences
in interface AnnotateTextResponseOrBuilder
public AnnotateTextResponse.Builder setSentences(int index, Sentence value)
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Sentence sentences = 1;
public AnnotateTextResponse.Builder setSentences(int index, Sentence.Builder builderForValue)
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Sentence sentences = 1;
public AnnotateTextResponse.Builder addSentences(Sentence value)
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Sentence sentences = 1;
public AnnotateTextResponse.Builder addSentences(int index, Sentence value)
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Sentence sentences = 1;
public AnnotateTextResponse.Builder addSentences(Sentence.Builder builderForValue)
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Sentence sentences = 1;
public AnnotateTextResponse.Builder addSentences(int index, Sentence.Builder builderForValue)
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Sentence sentences = 1;
public AnnotateTextResponse.Builder addAllSentences(java.lang.Iterable<? extends Sentence> values)
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Sentence sentences = 1;
public AnnotateTextResponse.Builder clearSentences()
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Sentence sentences = 1;
public AnnotateTextResponse.Builder removeSentences(int index)
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Sentence sentences = 1;
public Sentence.Builder getSentencesBuilder(int index)
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Sentence sentences = 1;
public SentenceOrBuilder getSentencesOrBuilder(int index)
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Sentence sentences = 1;
getSentencesOrBuilder
in interface AnnotateTextResponseOrBuilder
public java.util.List<? extends SentenceOrBuilder> getSentencesOrBuilderList()
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Sentence sentences = 1;
getSentencesOrBuilderList
in interface AnnotateTextResponseOrBuilder
public Sentence.Builder addSentencesBuilder()
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Sentence sentences = 1;
public Sentence.Builder addSentencesBuilder(int index)
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Sentence sentences = 1;
public java.util.List<Sentence.Builder> getSentencesBuilderList()
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Sentence sentences = 1;
public java.util.List<Token> getTokensList()
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2;
getTokensList
in interface AnnotateTextResponseOrBuilder
public int getTokensCount()
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2;
getTokensCount
in interface AnnotateTextResponseOrBuilder
public Token getTokens(int index)
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2;
getTokens
in interface AnnotateTextResponseOrBuilder
public AnnotateTextResponse.Builder setTokens(int index, Token value)
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2;
public AnnotateTextResponse.Builder setTokens(int index, Token.Builder builderForValue)
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2;
public AnnotateTextResponse.Builder addTokens(Token value)
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2;
public AnnotateTextResponse.Builder addTokens(int index, Token value)
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2;
public AnnotateTextResponse.Builder addTokens(Token.Builder builderForValue)
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2;
public AnnotateTextResponse.Builder addTokens(int index, Token.Builder builderForValue)
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2;
public AnnotateTextResponse.Builder addAllTokens(java.lang.Iterable<? extends Token> values)
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2;
public AnnotateTextResponse.Builder clearTokens()
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2;
public AnnotateTextResponse.Builder removeTokens(int index)
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2;
public Token.Builder getTokensBuilder(int index)
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2;
public TokenOrBuilder getTokensOrBuilder(int index)
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2;
getTokensOrBuilder
in interface AnnotateTextResponseOrBuilder
public java.util.List<? extends TokenOrBuilder> getTokensOrBuilderList()
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2;
getTokensOrBuilderList
in interface AnnotateTextResponseOrBuilder
public Token.Builder addTokensBuilder()
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2;
public Token.Builder addTokensBuilder(int index)
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2;
public java.util.List<Token.Builder> getTokensBuilderList()
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2;
public java.util.List<Entity> getEntitiesList()
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3;
getEntitiesList
in interface AnnotateTextResponseOrBuilder
public int getEntitiesCount()
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3;
getEntitiesCount
in interface AnnotateTextResponseOrBuilder
public Entity getEntities(int index)
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3;
getEntities
in interface AnnotateTextResponseOrBuilder
public AnnotateTextResponse.Builder setEntities(int index, Entity value)
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3;
public AnnotateTextResponse.Builder setEntities(int index, Entity.Builder builderForValue)
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3;
public AnnotateTextResponse.Builder addEntities(Entity value)
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3;
public AnnotateTextResponse.Builder addEntities(int index, Entity value)
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3;
public AnnotateTextResponse.Builder addEntities(Entity.Builder builderForValue)
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3;
public AnnotateTextResponse.Builder addEntities(int index, Entity.Builder builderForValue)
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3;
public AnnotateTextResponse.Builder addAllEntities(java.lang.Iterable<? extends Entity> values)
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3;
public AnnotateTextResponse.Builder clearEntities()
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3;
public AnnotateTextResponse.Builder removeEntities(int index)
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3;
public Entity.Builder getEntitiesBuilder(int index)
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3;
public EntityOrBuilder getEntitiesOrBuilder(int index)
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3;
getEntitiesOrBuilder
in interface AnnotateTextResponseOrBuilder
public java.util.List<? extends EntityOrBuilder> getEntitiesOrBuilderList()
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3;
getEntitiesOrBuilderList
in interface AnnotateTextResponseOrBuilder
public Entity.Builder addEntitiesBuilder()
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3;
public Entity.Builder addEntitiesBuilder(int index)
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3;
public java.util.List<Entity.Builder> getEntitiesBuilderList()
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3;
public boolean hasDocumentSentiment()
The overall sentiment for the document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment].
.google.cloud.language.v1.Sentiment document_sentiment = 4;
hasDocumentSentiment
in interface AnnotateTextResponseOrBuilder
public Sentiment getDocumentSentiment()
The overall sentiment for the document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment].
.google.cloud.language.v1.Sentiment document_sentiment = 4;
getDocumentSentiment
in interface AnnotateTextResponseOrBuilder
public AnnotateTextResponse.Builder setDocumentSentiment(Sentiment value)
The overall sentiment for the document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment].
.google.cloud.language.v1.Sentiment document_sentiment = 4;
public AnnotateTextResponse.Builder setDocumentSentiment(Sentiment.Builder builderForValue)
The overall sentiment for the document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment].
.google.cloud.language.v1.Sentiment document_sentiment = 4;
public AnnotateTextResponse.Builder mergeDocumentSentiment(Sentiment value)
The overall sentiment for the document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment].
.google.cloud.language.v1.Sentiment document_sentiment = 4;
public AnnotateTextResponse.Builder clearDocumentSentiment()
The overall sentiment for the document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment].
.google.cloud.language.v1.Sentiment document_sentiment = 4;
public Sentiment.Builder getDocumentSentimentBuilder()
The overall sentiment for the document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment].
.google.cloud.language.v1.Sentiment document_sentiment = 4;
public SentimentOrBuilder getDocumentSentimentOrBuilder()
The overall sentiment for the document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment].
.google.cloud.language.v1.Sentiment document_sentiment = 4;
getDocumentSentimentOrBuilder
in interface AnnotateTextResponseOrBuilder
public java.lang.String getLanguage()
The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See [Document.language][google.cloud.language.v1.Document.language] field for more details.
string language = 5;
getLanguage
in interface AnnotateTextResponseOrBuilder
public ByteString getLanguageBytes()
The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See [Document.language][google.cloud.language.v1.Document.language] field for more details.
string language = 5;
getLanguageBytes
in interface AnnotateTextResponseOrBuilder
public AnnotateTextResponse.Builder setLanguage(java.lang.String value)
The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See [Document.language][google.cloud.language.v1.Document.language] field for more details.
string language = 5;
public AnnotateTextResponse.Builder clearLanguage()
The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See [Document.language][google.cloud.language.v1.Document.language] field for more details.
string language = 5;
public AnnotateTextResponse.Builder setLanguageBytes(ByteString value)
The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See [Document.language][google.cloud.language.v1.Document.language] field for more details.
string language = 5;
public java.util.List<ClassificationCategory> getCategoriesList()
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
getCategoriesList
in interface AnnotateTextResponseOrBuilder
public int getCategoriesCount()
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
getCategoriesCount
in interface AnnotateTextResponseOrBuilder
public ClassificationCategory getCategories(int index)
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
getCategories
in interface AnnotateTextResponseOrBuilder
public AnnotateTextResponse.Builder setCategories(int index, ClassificationCategory value)
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
public AnnotateTextResponse.Builder setCategories(int index, ClassificationCategory.Builder builderForValue)
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
public AnnotateTextResponse.Builder addCategories(ClassificationCategory value)
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
public AnnotateTextResponse.Builder addCategories(int index, ClassificationCategory value)
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
public AnnotateTextResponse.Builder addCategories(ClassificationCategory.Builder builderForValue)
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
public AnnotateTextResponse.Builder addCategories(int index, ClassificationCategory.Builder builderForValue)
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
public AnnotateTextResponse.Builder addAllCategories(java.lang.Iterable<? extends ClassificationCategory> values)
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
public AnnotateTextResponse.Builder clearCategories()
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
public AnnotateTextResponse.Builder removeCategories(int index)
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
public ClassificationCategory.Builder getCategoriesBuilder(int index)
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
public ClassificationCategoryOrBuilder getCategoriesOrBuilder(int index)
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
getCategoriesOrBuilder
in interface AnnotateTextResponseOrBuilder
public java.util.List<? extends ClassificationCategoryOrBuilder> getCategoriesOrBuilderList()
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
getCategoriesOrBuilderList
in interface AnnotateTextResponseOrBuilder
public ClassificationCategory.Builder addCategoriesBuilder()
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
public ClassificationCategory.Builder addCategoriesBuilder(int index)
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
public java.util.List<ClassificationCategory.Builder> getCategoriesBuilderList()
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
public final AnnotateTextResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<AnnotateTextResponse.Builder>
public final AnnotateTextResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<AnnotateTextResponse.Builder>