public static final class AnnotateTextResponse.Builder extends com.google.protobuf.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(Iterable<? extends ClassificationCategory> values)
Categories identified in the input document.
|
AnnotateTextResponse.Builder |
addAllEntities(Iterable<? extends Entity> values)
Entities, along with their semantic information, in the input document.
|
AnnotateTextResponse.Builder |
addAllModerationCategories(Iterable<? extends ClassificationCategory> values)
Harmful and sensitive categories identified in the input document.
|
AnnotateTextResponse.Builder |
addAllSentences(Iterable<? extends Sentence> values)
Sentences in the input document.
|
AnnotateTextResponse.Builder |
addAllTokens(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 |
addModerationCategories(ClassificationCategory.Builder builderForValue)
Harmful and sensitive categories identified in the input document.
|
AnnotateTextResponse.Builder |
addModerationCategories(ClassificationCategory value)
Harmful and sensitive categories identified in the input document.
|
AnnotateTextResponse.Builder |
addModerationCategories(int index,
ClassificationCategory.Builder builderForValue)
Harmful and sensitive categories identified in the input document.
|
AnnotateTextResponse.Builder |
addModerationCategories(int index,
ClassificationCategory value)
Harmful and sensitive categories identified in the input document.
|
ClassificationCategory.Builder |
addModerationCategoriesBuilder()
Harmful and sensitive categories identified in the input document.
|
ClassificationCategory.Builder |
addModerationCategoriesBuilder(int index)
Harmful and sensitive categories identified in the input document.
|
AnnotateTextResponse.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
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(com.google.protobuf.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 |
clearModerationCategories()
Harmful and sensitive categories identified in the input document.
|
AnnotateTextResponse.Builder |
clearOneof(com.google.protobuf.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.
|
List<ClassificationCategory.Builder> |
getCategoriesBuilderList()
Categories identified in the input document.
|
int |
getCategoriesCount()
Categories identified in the input document.
|
List<ClassificationCategory> |
getCategoriesList()
Categories identified in the input document.
|
ClassificationCategoryOrBuilder |
getCategoriesOrBuilder(int index)
Categories identified in the input document.
|
List<? extends ClassificationCategoryOrBuilder> |
getCategoriesOrBuilderList()
Categories identified in the input document.
|
AnnotateTextResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.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.
|
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.
|
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.
|
List<? extends EntityOrBuilder> |
getEntitiesOrBuilderList()
Entities, along with their semantic information, in the input document.
|
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.
|
com.google.protobuf.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.
|
ClassificationCategory |
getModerationCategories(int index)
Harmful and sensitive categories identified in the input document.
|
ClassificationCategory.Builder |
getModerationCategoriesBuilder(int index)
Harmful and sensitive categories identified in the input document.
|
List<ClassificationCategory.Builder> |
getModerationCategoriesBuilderList()
Harmful and sensitive categories identified in the input document.
|
int |
getModerationCategoriesCount()
Harmful and sensitive categories identified in the input document.
|
List<ClassificationCategory> |
getModerationCategoriesList()
Harmful and sensitive categories identified in the input document.
|
ClassificationCategoryOrBuilder |
getModerationCategoriesOrBuilder(int index)
Harmful and sensitive categories identified in the input document.
|
List<? extends ClassificationCategoryOrBuilder> |
getModerationCategoriesOrBuilderList()
Harmful and sensitive categories identified in the input document.
|
Sentence |
getSentences(int index)
Sentences in the input document.
|
Sentence.Builder |
getSentencesBuilder(int index)
Sentences in the input document.
|
List<Sentence.Builder> |
getSentencesBuilderList()
Sentences in the input document.
|
int |
getSentencesCount()
Sentences in the input document.
|
List<Sentence> |
getSentencesList()
Sentences in the input document.
|
SentenceOrBuilder |
getSentencesOrBuilder(int index)
Sentences in the input document.
|
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.
|
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.
|
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.
|
List<? extends TokenOrBuilder> |
getTokensOrBuilderList()
Tokens, along with their syntactic information, in the input document.
|
boolean |
hasDocumentSentiment()
The overall sentiment for the document.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AnnotateTextResponse.Builder |
mergeDocumentSentiment(Sentiment value)
The overall sentiment for the document.
|
AnnotateTextResponse.Builder |
mergeFrom(AnnotateTextResponse other) |
AnnotateTextResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AnnotateTextResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
AnnotateTextResponse.Builder |
mergeUnknownFields(com.google.protobuf.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 |
removeModerationCategories(int index)
Harmful and sensitive categories identified 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(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AnnotateTextResponse.Builder |
setLanguage(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(com.google.protobuf.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 |
setModerationCategories(int index,
ClassificationCategory.Builder builderForValue)
Harmful and sensitive categories identified in the input document.
|
AnnotateTextResponse.Builder |
setModerationCategories(int index,
ClassificationCategory value)
Harmful and sensitive categories identified in the input document.
|
AnnotateTextResponse.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
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(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateTextResponse.Builder>public AnnotateTextResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateTextResponse.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateTextResponse.Builder>public AnnotateTextResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AnnotateTextResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AnnotateTextResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AnnotateTextResponse.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateTextResponse.Builder>public AnnotateTextResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateTextResponse.Builder>public AnnotateTextResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateTextResponse.Builder>public AnnotateTextResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateTextResponse.Builder>public AnnotateTextResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateTextResponse.Builder>public AnnotateTextResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateTextResponse.Builder>public AnnotateTextResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnnotateTextResponse.Builder>public AnnotateTextResponse.Builder mergeFrom(AnnotateTextResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateTextResponse.Builder>public AnnotateTextResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnnotateTextResponse.Builder>IOExceptionpublic 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 AnnotateTextResponseOrBuilderpublic 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 AnnotateTextResponseOrBuilderpublic 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 AnnotateTextResponseOrBuilderpublic 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(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 AnnotateTextResponseOrBuilderpublic 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 AnnotateTextResponseOrBuilderpublic 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 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 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 AnnotateTextResponseOrBuilderpublic 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 AnnotateTextResponseOrBuilderpublic 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 AnnotateTextResponseOrBuilderpublic 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(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 AnnotateTextResponseOrBuilderpublic 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 AnnotateTextResponseOrBuilderpublic 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 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 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 AnnotateTextResponseOrBuilderpublic 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 AnnotateTextResponseOrBuilderpublic 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 AnnotateTextResponseOrBuilderpublic 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(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 AnnotateTextResponseOrBuilderpublic 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 AnnotateTextResponseOrBuilderpublic 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 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 AnnotateTextResponseOrBuilderpublic 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 AnnotateTextResponseOrBuilderpublic 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 AnnotateTextResponseOrBuilderpublic 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 AnnotateTextResponseOrBuilderpublic com.google.protobuf.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 AnnotateTextResponseOrBuilderpublic AnnotateTextResponse.Builder setLanguage(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;value - The language to set.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(com.google.protobuf.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;value - The bytes for language to set.public List<ClassificationCategory> getCategoriesList()
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;getCategoriesList in interface AnnotateTextResponseOrBuilderpublic int getCategoriesCount()
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;getCategoriesCount in interface AnnotateTextResponseOrBuilderpublic ClassificationCategory getCategories(int index)
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;getCategories in interface AnnotateTextResponseOrBuilderpublic 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(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 AnnotateTextResponseOrBuilderpublic List<? extends ClassificationCategoryOrBuilder> getCategoriesOrBuilderList()
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;getCategoriesOrBuilderList in interface AnnotateTextResponseOrBuilderpublic 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 List<ClassificationCategory.Builder> getCategoriesBuilderList()
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;public List<ClassificationCategory> getModerationCategoriesList()
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
getModerationCategoriesList in interface AnnotateTextResponseOrBuilderpublic int getModerationCategoriesCount()
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
getModerationCategoriesCount in interface AnnotateTextResponseOrBuilderpublic ClassificationCategory getModerationCategories(int index)
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
getModerationCategories in interface AnnotateTextResponseOrBuilderpublic AnnotateTextResponse.Builder setModerationCategories(int index, ClassificationCategory value)
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
public AnnotateTextResponse.Builder setModerationCategories(int index, ClassificationCategory.Builder builderForValue)
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
public AnnotateTextResponse.Builder addModerationCategories(ClassificationCategory value)
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
public AnnotateTextResponse.Builder addModerationCategories(int index, ClassificationCategory value)
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
public AnnotateTextResponse.Builder addModerationCategories(ClassificationCategory.Builder builderForValue)
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
public AnnotateTextResponse.Builder addModerationCategories(int index, ClassificationCategory.Builder builderForValue)
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
public AnnotateTextResponse.Builder addAllModerationCategories(Iterable<? extends ClassificationCategory> values)
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
public AnnotateTextResponse.Builder clearModerationCategories()
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
public AnnotateTextResponse.Builder removeModerationCategories(int index)
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
public ClassificationCategory.Builder getModerationCategoriesBuilder(int index)
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
public ClassificationCategoryOrBuilder getModerationCategoriesOrBuilder(int index)
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
getModerationCategoriesOrBuilder in interface AnnotateTextResponseOrBuilderpublic List<? extends ClassificationCategoryOrBuilder> getModerationCategoriesOrBuilderList()
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
getModerationCategoriesOrBuilderList in interface AnnotateTextResponseOrBuilderpublic ClassificationCategory.Builder addModerationCategoriesBuilder()
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
public ClassificationCategory.Builder addModerationCategoriesBuilder(int index)
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
public List<ClassificationCategory.Builder> getModerationCategoriesBuilderList()
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
public final AnnotateTextResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateTextResponse.Builder>public final AnnotateTextResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateTextResponse.Builder>Copyright © 2024 Google LLC. All rights reserved.