Package com.google.cloud.language.v1
Class AnnotateTextResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnnotateTextResponse.Builder>
com.google.cloud.language.v1.AnnotateTextResponse.Builder
- All Implemented Interfaces:
AnnotateTextResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AnnotateTextResponse
public static final class AnnotateTextResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AnnotateTextResponse.Builder>
implements AnnotateTextResponseOrBuilder
The text annotations response message.Protobuf type
google.cloud.language.v1.AnnotateTextResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllCategories(Iterable<? extends ClassificationCategory> values) Categories identified in the input document.addAllEntities(Iterable<? extends Entity> values) Entities, along with their semantic information, in the input document.addAllModerationCategories(Iterable<? extends ClassificationCategory> values) Harmful and sensitive categories identified in the input document.addAllSentences(Iterable<? extends Sentence> values) Sentences in the input document.addAllTokens(Iterable<? extends Token> values) Tokens, along with their syntactic information, in the input document.addCategories(int index, ClassificationCategory value) Categories identified in the input document.addCategories(int index, ClassificationCategory.Builder builderForValue) Categories identified in the input document.Categories identified in the input document.addCategories(ClassificationCategory.Builder builderForValue) Categories identified in the input document.Categories identified in the input document.addCategoriesBuilder(int index) Categories identified in the input document.addEntities(int index, Entity value) Entities, along with their semantic information, in the input document.addEntities(int index, Entity.Builder builderForValue) Entities, along with their semantic information, in the input document.addEntities(Entity value) Entities, along with their semantic information, in the input document.addEntities(Entity.Builder builderForValue) Entities, along with their semantic information, in the input document.Entities, along with their semantic information, in the input document.addEntitiesBuilder(int index) Entities, along with their semantic information, in the input document.addModerationCategories(int index, ClassificationCategory value) Harmful and sensitive categories identified in the input document.addModerationCategories(int index, ClassificationCategory.Builder builderForValue) Harmful and sensitive categories identified in the input document.Harmful and sensitive categories identified in the input document.addModerationCategories(ClassificationCategory.Builder builderForValue) Harmful and sensitive categories identified in the input document.Harmful and sensitive categories identified in the input document.addModerationCategoriesBuilder(int index) Harmful and sensitive categories identified in the input document.addSentences(int index, Sentence value) Sentences in the input document.addSentences(int index, Sentence.Builder builderForValue) Sentences in the input document.addSentences(Sentence value) Sentences in the input document.addSentences(Sentence.Builder builderForValue) Sentences in the input document.Sentences in the input document.addSentencesBuilder(int index) Sentences in the input document.Tokens, along with their syntactic information, in the input document.addTokens(int index, Token.Builder builderForValue) Tokens, along with their syntactic information, in the input document.Tokens, along with their syntactic information, in the input document.addTokens(Token.Builder builderForValue) Tokens, along with their syntactic information, in the input document.Tokens, along with their syntactic information, in the input document.addTokensBuilder(int index) Tokens, along with their syntactic information, in the input document.build()clear()Categories identified in the input document.The overall sentiment for the document.Entities, along with their semantic information, in the input document.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.Harmful and sensitive categories identified in the input document.Sentences in the input document.Tokens, along with their syntactic information, in the input document.getCategories(int index) Categories identified in the input document.getCategoriesBuilder(int index) Categories identified in the input document.Categories identified in the input document.intCategories identified in the input document.Categories identified in the input document.getCategoriesOrBuilder(int index) Categories identified in the input document.List<? extends ClassificationCategoryOrBuilder>Categories identified in the input document.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe overall sentiment for the document.The overall sentiment for the document.The overall sentiment for the document.getEntities(int index) Entities, along with their semantic information, in the input document.getEntitiesBuilder(int index) Entities, along with their semantic information, in the input document.Entities, along with their semantic information, in the input document.intEntities, along with their semantic information, in the input document.Entities, along with their semantic information, in the input document.getEntitiesOrBuilder(int index) Entities, along with their semantic information, in the input document.List<? extends EntityOrBuilder>Entities, along with their semantic information, in the input document.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.ByteStringThe language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language.getModerationCategories(int index) Harmful and sensitive categories identified in the input document.getModerationCategoriesBuilder(int index) Harmful and sensitive categories identified in the input document.Harmful and sensitive categories identified in the input document.intHarmful and sensitive categories identified in the input document.Harmful and sensitive categories identified in the input document.getModerationCategoriesOrBuilder(int index) Harmful and sensitive categories identified in the input document.List<? extends ClassificationCategoryOrBuilder>Harmful and sensitive categories identified in the input document.getSentences(int index) Sentences in the input document.getSentencesBuilder(int index) Sentences in the input document.Sentences in the input document.intSentences in the input document.Sentences in the input document.getSentencesOrBuilder(int index) Sentences in the input document.List<? extends SentenceOrBuilder>Sentences in the input document.getTokens(int index) Tokens, along with their syntactic information, in the input document.getTokensBuilder(int index) Tokens, along with their syntactic information, in the input document.Tokens, along with their syntactic information, in the input document.intTokens, along with their syntactic information, in the input document.Tokens, along with their syntactic information, in the input document.getTokensOrBuilder(int index) Tokens, along with their syntactic information, in the input document.List<? extends TokenOrBuilder>Tokens, along with their syntactic information, in the input document.booleanThe overall sentiment for the document.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeDocumentSentiment(Sentiment value) The overall sentiment for the document.mergeFrom(AnnotateTextResponse other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeCategories(int index) Categories identified in the input document.removeEntities(int index) Entities, along with their semantic information, in the input document.removeModerationCategories(int index) Harmful and sensitive categories identified in the input document.removeSentences(int index) Sentences in the input document.removeTokens(int index) Tokens, along with their syntactic information, in the input document.setCategories(int index, ClassificationCategory value) Categories identified in the input document.setCategories(int index, ClassificationCategory.Builder builderForValue) Categories identified in the input document.setDocumentSentiment(Sentiment value) The overall sentiment for the document.setDocumentSentiment(Sentiment.Builder builderForValue) The overall sentiment for the document.setEntities(int index, Entity value) Entities, along with their semantic information, in the input document.setEntities(int index, Entity.Builder builderForValue) Entities, along with their semantic information, in the input document.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.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.setModerationCategories(int index, ClassificationCategory value) Harmful and sensitive categories identified in the input document.setModerationCategories(int index, ClassificationCategory.Builder builderForValue) Harmful and sensitive categories identified in the input document.setSentences(int index, Sentence value) Sentences in the input document.setSentences(int index, Sentence.Builder builderForValue) Sentences in the input document.Tokens, along with their syntactic information, in the input document.setTokens(int index, Token.Builder builderForValue) Tokens, along with their syntactic information, in the input document.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AnnotateTextResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AnnotateTextResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AnnotateTextResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnnotateTextResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AnnotateTextResponse.Builder>
-
mergeFrom
public AnnotateTextResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnnotateTextResponse.Builder>- Throws:
IOException
-
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;- Specified by:
getSentencesListin interfaceAnnotateTextResponseOrBuilder
-
getSentencesCount
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;- Specified by:
getSentencesCountin interfaceAnnotateTextResponseOrBuilder
-
getSentences
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;- Specified by:
getSentencesin interfaceAnnotateTextResponseOrBuilder
-
setSentences
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; -
setSentences
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; -
addSentences
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; -
addSentences
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; -
addSentences
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; -
addSentences
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; -
addAllSentences
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; -
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; -
removeSentences
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; -
getSentencesBuilder
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
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;- Specified by:
getSentencesOrBuilderin interfaceAnnotateTextResponseOrBuilder
-
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;- Specified by:
getSentencesOrBuilderListin interfaceAnnotateTextResponseOrBuilder
-
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; -
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; -
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; -
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;- Specified by:
getTokensListin interfaceAnnotateTextResponseOrBuilder
-
getTokensCount
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;- Specified by:
getTokensCountin interfaceAnnotateTextResponseOrBuilder
-
getTokens
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;- Specified by:
getTokensin interfaceAnnotateTextResponseOrBuilder
-
setTokens
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; -
setTokens
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; -
addTokens
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; -
addTokens
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; -
addTokens
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; -
addTokens
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; -
addAllTokens
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; -
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; -
removeTokens
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; -
getTokensBuilder
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
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;- Specified by:
getTokensOrBuilderin interfaceAnnotateTextResponseOrBuilder
-
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;- Specified by:
getTokensOrBuilderListin interfaceAnnotateTextResponseOrBuilder
-
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; -
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; -
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; -
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;- Specified by:
getEntitiesListin interfaceAnnotateTextResponseOrBuilder
-
getEntitiesCount
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;- Specified by:
getEntitiesCountin interfaceAnnotateTextResponseOrBuilder
-
getEntities
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;- Specified by:
getEntitiesin interfaceAnnotateTextResponseOrBuilder
-
setEntities
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; -
setEntities
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; -
addEntities
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; -
addEntities
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; -
addEntities
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; -
addEntities
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; -
addAllEntities
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; -
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; -
removeEntities
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; -
getEntitiesBuilder
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
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;- Specified by:
getEntitiesOrBuilderin interfaceAnnotateTextResponseOrBuilder
-
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;- Specified by:
getEntitiesOrBuilderListin interfaceAnnotateTextResponseOrBuilder
-
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; -
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; -
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; -
hasDocumentSentiment
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;- Specified by:
hasDocumentSentimentin interfaceAnnotateTextResponseOrBuilder- Returns:
- Whether the documentSentiment field is set.
-
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;- Specified by:
getDocumentSentimentin interfaceAnnotateTextResponseOrBuilder- Returns:
- The documentSentiment.
-
setDocumentSentiment
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; -
setDocumentSentiment
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; -
mergeDocumentSentiment
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; -
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; -
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; -
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;- Specified by:
getDocumentSentimentOrBuilderin interfaceAnnotateTextResponseOrBuilder
-
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;- Specified by:
getLanguagein interfaceAnnotateTextResponseOrBuilder- Returns:
- The language.
-
getLanguageBytes
public 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;- Specified by:
getLanguageBytesin interfaceAnnotateTextResponseOrBuilder- Returns:
- The bytes for language.
-
setLanguage
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;- Parameters:
value- The language to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setLanguageBytes
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;- Parameters:
value- The bytes for language to set.- Returns:
- This builder for chaining.
-
getCategoriesList
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;- Specified by:
getCategoriesListin interfaceAnnotateTextResponseOrBuilder
-
getCategoriesCount
public int getCategoriesCount()Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;- Specified by:
getCategoriesCountin interfaceAnnotateTextResponseOrBuilder
-
getCategories
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;- Specified by:
getCategoriesin interfaceAnnotateTextResponseOrBuilder
-
setCategories
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6; -
setCategories
public AnnotateTextResponse.Builder setCategories(int index, ClassificationCategory.Builder builderForValue) Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6; -
addCategories
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6; -
addCategories
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6; -
addCategories
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6; -
addCategories
public AnnotateTextResponse.Builder addCategories(int index, ClassificationCategory.Builder builderForValue) Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6; -
addAllCategories
public AnnotateTextResponse.Builder addAllCategories(Iterable<? extends ClassificationCategory> values) Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6; -
clearCategories
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6; -
removeCategories
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6; -
getCategoriesBuilder
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6; -
getCategoriesOrBuilder
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;- Specified by:
getCategoriesOrBuilderin interfaceAnnotateTextResponseOrBuilder
-
getCategoriesOrBuilderList
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;- Specified by:
getCategoriesOrBuilderListin interfaceAnnotateTextResponseOrBuilder
-
addCategoriesBuilder
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6; -
addCategoriesBuilder
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6; -
getCategoriesBuilderList
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6; -
getModerationCategoriesList
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;- Specified by:
getModerationCategoriesListin interfaceAnnotateTextResponseOrBuilder
-
getModerationCategoriesCount
public int getModerationCategoriesCount()Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;- Specified by:
getModerationCategoriesCountin interfaceAnnotateTextResponseOrBuilder
-
getModerationCategories
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;- Specified by:
getModerationCategoriesin interfaceAnnotateTextResponseOrBuilder
-
setModerationCategories
public 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; -
setModerationCategories
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; -
addModerationCategories
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7; -
addModerationCategories
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; -
addModerationCategories
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; -
addModerationCategories
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; -
addAllModerationCategories
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; -
clearModerationCategories
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7; -
removeModerationCategories
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7; -
getModerationCategoriesBuilder
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7; -
getModerationCategoriesOrBuilder
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;- Specified by:
getModerationCategoriesOrBuilderin interfaceAnnotateTextResponseOrBuilder
-
getModerationCategoriesOrBuilderList
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;- Specified by:
getModerationCategoriesOrBuilderListin interfaceAnnotateTextResponseOrBuilder
-
addModerationCategoriesBuilder
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7; -
addModerationCategoriesBuilder
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7; -
getModerationCategoriesBuilderList
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
-