Class AnnotateTextResponse.Builder (2.8.0)
Stay organized with collections
Save and categorize content based on your preferences.
- 2.79.0 (latest)
- 2.77.0
- 2.76.0
- 2.75.0
- 2.74.0
- 2.73.0
- 2.71.0
- 2.69.0
- 2.68.0
- 2.65.0
- 2.64.0
- 2.63.0
- 2.61.0
- 2.60.0
- 2.59.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.1
- 2.3.4
- 2.2.0
- 2.1.10
publicstaticfinalclass AnnotateTextResponse.BuilderextendsGeneratedMessageV3.Builder<AnnotateTextResponse.Builder>implementsAnnotateTextResponseOrBuilderThe text annotations response message.
Protobuf type google.cloud.language.v1beta2.AnnotateTextResponse
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AnnotateTextResponse.BuilderImplements
AnnotateTextResponseOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()Methods
addAllCategories(Iterable<? extends ClassificationCategory> values)
publicAnnotateTextResponse.BuilderaddAllCategories(Iterable<?extendsClassificationCategory>values)Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
addAllEntities(Iterable<? extends Entity> values)
publicAnnotateTextResponse.BuilderaddAllEntities(Iterable<?extendsEntity>values)Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
repeated .google.cloud.language.v1beta2.Entity entities = 3;
addAllSentences(Iterable<? extends Sentence> values)
publicAnnotateTextResponse.BuilderaddAllSentences(Iterable<?extendsSentence>values)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
addAllTokens(Iterable<? extends Token> values)
publicAnnotateTextResponse.BuilderaddAllTokens(Iterable<?extendsToken>values)Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
addCategories(ClassificationCategory value)
publicAnnotateTextResponse.BuilderaddCategories(ClassificationCategoryvalue)Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
addCategories(ClassificationCategory.Builder builderForValue)
publicAnnotateTextResponse.BuilderaddCategories(ClassificationCategory.BuilderbuilderForValue)Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
addCategories(int index, ClassificationCategory value)
publicAnnotateTextResponse.BuilderaddCategories(intindex,ClassificationCategoryvalue)Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
addCategories(int index, ClassificationCategory.Builder builderForValue)
publicAnnotateTextResponse.BuilderaddCategories(intindex,ClassificationCategory.BuilderbuilderForValue)Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
addCategoriesBuilder()
publicClassificationCategory.BuilderaddCategoriesBuilder()Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
addCategoriesBuilder(int index)
publicClassificationCategory.BuilderaddCategoriesBuilder(intindex)Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
addEntities(Entity value)
publicAnnotateTextResponse.BuilderaddEntities(Entityvalue)Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
repeated .google.cloud.language.v1beta2.Entity entities = 3;
addEntities(Entity.Builder builderForValue)
publicAnnotateTextResponse.BuilderaddEntities(Entity.BuilderbuilderForValue)Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
repeated .google.cloud.language.v1beta2.Entity entities = 3;
addEntities(int index, Entity value)
publicAnnotateTextResponse.BuilderaddEntities(intindex,Entityvalue)Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
repeated .google.cloud.language.v1beta2.Entity entities = 3;
addEntities(int index, Entity.Builder builderForValue)
publicAnnotateTextResponse.BuilderaddEntities(intindex,Entity.BuilderbuilderForValue)Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
repeated .google.cloud.language.v1beta2.Entity entities = 3;
addEntitiesBuilder()
publicEntity.BuilderaddEntitiesBuilder()Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
repeated .google.cloud.language.v1beta2.Entity entities = 3;
addEntitiesBuilder(int index)
publicEntity.BuilderaddEntitiesBuilder(intindex)Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
repeated .google.cloud.language.v1beta2.Entity entities = 3;
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicAnnotateTextResponse.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)addSentences(Sentence value)
publicAnnotateTextResponse.BuilderaddSentences(Sentencevalue)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
addSentences(Sentence.Builder builderForValue)
publicAnnotateTextResponse.BuilderaddSentences(Sentence.BuilderbuilderForValue)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
addSentences(int index, Sentence value)
publicAnnotateTextResponse.BuilderaddSentences(intindex,Sentencevalue)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
addSentences(int index, Sentence.Builder builderForValue)
publicAnnotateTextResponse.BuilderaddSentences(intindex,Sentence.BuilderbuilderForValue)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
addSentencesBuilder()
publicSentence.BuilderaddSentencesBuilder()Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
addSentencesBuilder(int index)
publicSentence.BuilderaddSentencesBuilder(intindex)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
addTokens(Token value)
publicAnnotateTextResponse.BuilderaddTokens(Tokenvalue)Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
addTokens(Token.Builder builderForValue)
publicAnnotateTextResponse.BuilderaddTokens(Token.BuilderbuilderForValue)Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
addTokens(int index, Token value)
publicAnnotateTextResponse.BuilderaddTokens(intindex,Tokenvalue)Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
addTokens(int index, Token.Builder builderForValue)
publicAnnotateTextResponse.BuilderaddTokens(intindex,Token.BuilderbuilderForValue)Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
addTokensBuilder()
publicToken.BuilderaddTokensBuilder()Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
addTokensBuilder(int index)
publicToken.BuilderaddTokensBuilder(intindex)Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
build()
publicAnnotateTextResponsebuild()buildPartial()
publicAnnotateTextResponsebuildPartial()clear()
publicAnnotateTextResponse.Builderclear()clearCategories()
publicAnnotateTextResponse.BuilderclearCategories()Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
clearDocumentSentiment()
publicAnnotateTextResponse.BuilderclearDocumentSentiment()The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
.google.cloud.language.v1beta2.Sentiment document_sentiment = 4;
clearEntities()
publicAnnotateTextResponse.BuilderclearEntities()Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
repeated .google.cloud.language.v1beta2.Entity entities = 3;
clearField(Descriptors.FieldDescriptor field)
publicAnnotateTextResponse.BuilderclearField(Descriptors.FieldDescriptorfield)clearLanguage()
publicAnnotateTextResponse.BuilderclearLanguage()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 field for more details.
string language = 5;
This builder for chaining.
clearOneof(Descriptors.OneofDescriptor oneof)
publicAnnotateTextResponse.BuilderclearOneof(Descriptors.OneofDescriptoroneof)clearSentences()
publicAnnotateTextResponse.BuilderclearSentences()Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
clearTokens()
publicAnnotateTextResponse.BuilderclearTokens()Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
clone()
publicAnnotateTextResponse.Builderclone()getCategories(int index)
publicClassificationCategorygetCategories(intindex)Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
getCategoriesBuilder(int index)
publicClassificationCategory.BuildergetCategoriesBuilder(intindex)Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
getCategoriesBuilderList()
publicList<ClassificationCategory.Builder>getCategoriesBuilderList()Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
getCategoriesCount()
publicintgetCategoriesCount()Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
getCategoriesList()
publicList<ClassificationCategory>getCategoriesList()Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
getCategoriesOrBuilder(int index)
publicClassificationCategoryOrBuildergetCategoriesOrBuilder(intindex)Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
getCategoriesOrBuilderList()
publicList<?extendsClassificationCategoryOrBuilder>getCategoriesOrBuilderList()Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
getDefaultInstanceForType()
publicAnnotateTextResponsegetDefaultInstanceForType()getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()getDocumentSentiment()
publicSentimentgetDocumentSentiment()The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
.google.cloud.language.v1beta2.Sentiment document_sentiment = 4;
The documentSentiment.
getDocumentSentimentBuilder()
publicSentiment.BuildergetDocumentSentimentBuilder()The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
.google.cloud.language.v1beta2.Sentiment document_sentiment = 4;
getDocumentSentimentOrBuilder()
publicSentimentOrBuildergetDocumentSentimentOrBuilder()The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
.google.cloud.language.v1beta2.Sentiment document_sentiment = 4;
getEntities(int index)
publicEntitygetEntities(intindex)Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
repeated .google.cloud.language.v1beta2.Entity entities = 3;
getEntitiesBuilder(int index)
publicEntity.BuildergetEntitiesBuilder(intindex)Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
repeated .google.cloud.language.v1beta2.Entity entities = 3;
getEntitiesBuilderList()
publicList<Entity.Builder>getEntitiesBuilderList()Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
repeated .google.cloud.language.v1beta2.Entity entities = 3;
getEntitiesCount()
publicintgetEntitiesCount()Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
repeated .google.cloud.language.v1beta2.Entity entities = 3;
getEntitiesList()
publicList<Entity>getEntitiesList()Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
repeated .google.cloud.language.v1beta2.Entity entities = 3;
getEntitiesOrBuilder(int index)
publicEntityOrBuildergetEntitiesOrBuilder(intindex)Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
repeated .google.cloud.language.v1beta2.Entity entities = 3;
getEntitiesOrBuilderList()
publicList<?extendsEntityOrBuilder>getEntitiesOrBuilderList()Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
repeated .google.cloud.language.v1beta2.Entity entities = 3;
getLanguage()
publicStringgetLanguage()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 field for more details.
string language = 5;
The language.
getLanguageBytes()
publicByteStringgetLanguageBytes()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 field for more details.
string language = 5;
The bytes for language.
getSentences(int index)
publicSentencegetSentences(intindex)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
getSentencesBuilder(int index)
publicSentence.BuildergetSentencesBuilder(intindex)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
getSentencesBuilderList()
publicList<Sentence.Builder>getSentencesBuilderList()Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
getSentencesCount()
publicintgetSentencesCount()Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
getSentencesList()
publicList<Sentence>getSentencesList()Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
getSentencesOrBuilder(int index)
publicSentenceOrBuildergetSentencesOrBuilder(intindex)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
getSentencesOrBuilderList()
publicList<?extendsSentenceOrBuilder>getSentencesOrBuilderList()Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
getTokens(int index)
publicTokengetTokens(intindex)Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
getTokensBuilder(int index)
publicToken.BuildergetTokensBuilder(intindex)Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
getTokensBuilderList()
publicList<Token.Builder>getTokensBuilderList()Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
getTokensCount()
publicintgetTokensCount()Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
getTokensList()
publicList<Token>getTokensList()Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
getTokensOrBuilder(int index)
publicTokenOrBuildergetTokensOrBuilder(intindex)Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
getTokensOrBuilderList()
publicList<?extendsTokenOrBuilder>getTokensOrBuilderList()Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
hasDocumentSentiment()
publicbooleanhasDocumentSentiment()The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
.google.cloud.language.v1beta2.Sentiment document_sentiment = 4;
Whether the documentSentiment field is set.
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()isInitialized()
publicfinalbooleanisInitialized()mergeDocumentSentiment(Sentiment value)
publicAnnotateTextResponse.BuildermergeDocumentSentiment(Sentimentvalue)The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
.google.cloud.language.v1beta2.Sentiment document_sentiment = 4;
mergeFrom(AnnotateTextResponse other)
publicAnnotateTextResponse.BuildermergeFrom(AnnotateTextResponseother)mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicAnnotateTextResponse.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)mergeFrom(Message other)
publicAnnotateTextResponse.BuildermergeFrom(Messageother)mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalAnnotateTextResponse.BuildermergeUnknownFields(UnknownFieldSetunknownFields)removeCategories(int index)
publicAnnotateTextResponse.BuilderremoveCategories(intindex)Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
removeEntities(int index)
publicAnnotateTextResponse.BuilderremoveEntities(intindex)Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
repeated .google.cloud.language.v1beta2.Entity entities = 3;
removeSentences(int index)
publicAnnotateTextResponse.BuilderremoveSentences(intindex)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
removeTokens(int index)
publicAnnotateTextResponse.BuilderremoveTokens(intindex)Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
setCategories(int index, ClassificationCategory value)
publicAnnotateTextResponse.BuildersetCategories(intindex,ClassificationCategoryvalue)Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
setCategories(int index, ClassificationCategory.Builder builderForValue)
publicAnnotateTextResponse.BuildersetCategories(intindex,ClassificationCategory.BuilderbuilderForValue)Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
setDocumentSentiment(Sentiment value)
publicAnnotateTextResponse.BuildersetDocumentSentiment(Sentimentvalue)The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
.google.cloud.language.v1beta2.Sentiment document_sentiment = 4;
setDocumentSentiment(Sentiment.Builder builderForValue)
publicAnnotateTextResponse.BuildersetDocumentSentiment(Sentiment.BuilderbuilderForValue)The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
.google.cloud.language.v1beta2.Sentiment document_sentiment = 4;
setEntities(int index, Entity value)
publicAnnotateTextResponse.BuildersetEntities(intindex,Entityvalue)Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
repeated .google.cloud.language.v1beta2.Entity entities = 3;
setEntities(int index, Entity.Builder builderForValue)
publicAnnotateTextResponse.BuildersetEntities(intindex,Entity.BuilderbuilderForValue)Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
repeated .google.cloud.language.v1beta2.Entity entities = 3;
setField(Descriptors.FieldDescriptor field, Object value)
publicAnnotateTextResponse.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)setLanguage(String value)
publicAnnotateTextResponse.BuildersetLanguage(Stringvalue)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 field for more details.
string language = 5;
This builder for chaining.
setLanguageBytes(ByteString value)
publicAnnotateTextResponse.BuildersetLanguageBytes(ByteStringvalue)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 field for more details.
string language = 5;
This builder for chaining.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicAnnotateTextResponse.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)setSentences(int index, Sentence value)
publicAnnotateTextResponse.BuildersetSentences(intindex,Sentencevalue)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
setSentences(int index, Sentence.Builder builderForValue)
publicAnnotateTextResponse.BuildersetSentences(intindex,Sentence.BuilderbuilderForValue)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
setTokens(int index, Token value)
publicAnnotateTextResponse.BuildersetTokens(intindex,Tokenvalue)Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
setTokens(int index, Token.Builder builderForValue)
publicAnnotateTextResponse.BuildersetTokens(intindex,Token.BuilderbuilderForValue)Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalAnnotateTextResponse.BuildersetUnknownFields(UnknownFieldSetunknownFields)