Class AnnotateTextResponse.Builder (2.33.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.v2.AnnotateTextResponse
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AnnotateTextResponse.BuilderImplements
AnnotateTextResponseOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllCategories(Iterable<? extends ClassificationCategory> values)
publicAnnotateTextResponse.BuilderaddAllCategories(Iterable<?extendsClassificationCategory>values)Categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 5;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.language.v2.ClassificationCategory> |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
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 or AnnotateTextRequest.Features.extract_entity_sentiment.
repeated .google.cloud.language.v2.Entity entities = 2;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.language.v2.Entity> |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
addAllModerationCategories(Iterable<? extends ClassificationCategory> values)
publicAnnotateTextResponse.BuilderaddAllModerationCategories(Iterable<?extendsClassificationCategory>values)Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 6;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.language.v2.ClassificationCategory> |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
addAllSentences(Iterable<? extends Sentence> values)
publicAnnotateTextResponse.BuilderaddAllSentences(Iterable<?extendsSentence>values)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
repeated .google.cloud.language.v2.Sentence sentences = 1;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.language.v2.Sentence> |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
addCategories(ClassificationCategory value)
publicAnnotateTextResponse.BuilderaddCategories(ClassificationCategoryvalue)Categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
ClassificationCategory |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
addCategories(ClassificationCategory.Builder builderForValue)
publicAnnotateTextResponse.BuilderaddCategories(ClassificationCategory.BuilderbuilderForValue)Categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 5;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ClassificationCategory.Builder |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
addCategories(int index, ClassificationCategory value)
publicAnnotateTextResponse.BuilderaddCategories(intindex,ClassificationCategoryvalue)Categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 5;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ClassificationCategory |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
addCategories(int index, ClassificationCategory.Builder builderForValue)
publicAnnotateTextResponse.BuilderaddCategories(intindex,ClassificationCategory.BuilderbuilderForValue)Categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 5;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ClassificationCategory.Builder |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
addCategoriesBuilder()
publicClassificationCategory.BuilderaddCategoriesBuilder()Categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 5;
| Returns | |
|---|---|
| Type | Description |
ClassificationCategory.Builder |
|
addCategoriesBuilder(int index)
publicClassificationCategory.BuilderaddCategoriesBuilder(intindex)Categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 5;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ClassificationCategory.Builder |
|
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 or AnnotateTextRequest.Features.extract_entity_sentiment.
repeated .google.cloud.language.v2.Entity entities = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Entity |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
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 or AnnotateTextRequest.Features.extract_entity_sentiment.
repeated .google.cloud.language.v2.Entity entities = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Entity.Builder |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
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 or AnnotateTextRequest.Features.extract_entity_sentiment.
repeated .google.cloud.language.v2.Entity entities = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Entity |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
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 or AnnotateTextRequest.Features.extract_entity_sentiment.
repeated .google.cloud.language.v2.Entity entities = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Entity.Builder |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
addEntitiesBuilder()
publicEntity.BuilderaddEntitiesBuilder()Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities or AnnotateTextRequest.Features.extract_entity_sentiment.
repeated .google.cloud.language.v2.Entity entities = 2;
| Returns | |
|---|---|
| Type | Description |
Entity.Builder |
|
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 or AnnotateTextRequest.Features.extract_entity_sentiment.
repeated .google.cloud.language.v2.Entity entities = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Entity.Builder |
|
addModerationCategories(ClassificationCategory value)
publicAnnotateTextResponse.BuilderaddModerationCategories(ClassificationCategoryvalue)Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
ClassificationCategory |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
addModerationCategories(ClassificationCategory.Builder builderForValue)
publicAnnotateTextResponse.BuilderaddModerationCategories(ClassificationCategory.BuilderbuilderForValue)Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 6;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ClassificationCategory.Builder |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
addModerationCategories(int index, ClassificationCategory value)
publicAnnotateTextResponse.BuilderaddModerationCategories(intindex,ClassificationCategoryvalue)Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 6;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ClassificationCategory |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
addModerationCategories(int index, ClassificationCategory.Builder builderForValue)
publicAnnotateTextResponse.BuilderaddModerationCategories(intindex,ClassificationCategory.BuilderbuilderForValue)Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 6;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ClassificationCategory.Builder |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
addModerationCategoriesBuilder()
publicClassificationCategory.BuilderaddModerationCategoriesBuilder()Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 6;
| Returns | |
|---|---|
| Type | Description |
ClassificationCategory.Builder |
|
addModerationCategoriesBuilder(int index)
publicClassificationCategory.BuilderaddModerationCategoriesBuilder(intindex)Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 6;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ClassificationCategory.Builder |
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicAnnotateTextResponse.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
addSentences(Sentence value)
publicAnnotateTextResponse.BuilderaddSentences(Sentencevalue)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
repeated .google.cloud.language.v2.Sentence sentences = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Sentence |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
addSentences(Sentence.Builder builderForValue)
publicAnnotateTextResponse.BuilderaddSentences(Sentence.BuilderbuilderForValue)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
repeated .google.cloud.language.v2.Sentence sentences = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Sentence.Builder |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
addSentences(int index, Sentence value)
publicAnnotateTextResponse.BuilderaddSentences(intindex,Sentencevalue)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
repeated .google.cloud.language.v2.Sentence sentences = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Sentence |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
addSentences(int index, Sentence.Builder builderForValue)
publicAnnotateTextResponse.BuilderaddSentences(intindex,Sentence.BuilderbuilderForValue)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
repeated .google.cloud.language.v2.Sentence sentences = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Sentence.Builder |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
addSentencesBuilder()
publicSentence.BuilderaddSentencesBuilder()Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
repeated .google.cloud.language.v2.Sentence sentences = 1;
| Returns | |
|---|---|
| Type | Description |
Sentence.Builder |
|
addSentencesBuilder(int index)
publicSentence.BuilderaddSentencesBuilder(intindex)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
repeated .google.cloud.language.v2.Sentence sentences = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Sentence.Builder |
|
build()
publicAnnotateTextResponsebuild()| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse |
|
buildPartial()
publicAnnotateTextResponsebuildPartial()| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse |
|
clear()
publicAnnotateTextResponse.Builderclear()| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
clearCategories()
publicAnnotateTextResponse.BuilderclearCategories()Categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 5;
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
clearDocumentSentiment()
publicAnnotateTextResponse.BuilderclearDocumentSentiment()The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
.google.cloud.language.v2.Sentiment document_sentiment = 3;
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
clearEntities()
publicAnnotateTextResponse.BuilderclearEntities()Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities or AnnotateTextRequest.Features.extract_entity_sentiment.
repeated .google.cloud.language.v2.Entity entities = 2;
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
clearField(Descriptors.FieldDescriptor field)
publicAnnotateTextResponse.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
clearLanguageCode()
publicAnnotateTextResponse.BuilderclearLanguageCode()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_code = 4;
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
This builder for chaining. |
clearLanguageSupported()
publicAnnotateTextResponse.BuilderclearLanguageSupported()Whether the language is officially supported by all requested features. The API may still return a response when the language is not supported, but it is on a best effort basis.
bool language_supported = 7;
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
This builder for chaining. |
clearModerationCategories()
publicAnnotateTextResponse.BuilderclearModerationCategories()Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 6;
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
publicAnnotateTextResponse.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
clearSentences()
publicAnnotateTextResponse.BuilderclearSentences()Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
repeated .google.cloud.language.v2.Sentence sentences = 1;
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
clone()
publicAnnotateTextResponse.Builderclone()| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
getCategories(int index)
publicClassificationCategorygetCategories(intindex)Categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 5;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ClassificationCategory |
|
getCategoriesBuilder(int index)
publicClassificationCategory.BuildergetCategoriesBuilder(intindex)Categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 5;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ClassificationCategory.Builder |
|
getCategoriesBuilderList()
publicList<ClassificationCategory.Builder>getCategoriesBuilderList()Categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 5;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getCategoriesCount()
publicintgetCategoriesCount()Categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 5;
| Returns | |
|---|---|
| Type | Description |
int |
|
getCategoriesList()
publicList<ClassificationCategory>getCategoriesList()Categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 5;
| Returns | |
|---|---|
| Type | Description |
List<ClassificationCategory> |
|
getCategoriesOrBuilder(int index)
publicClassificationCategoryOrBuildergetCategoriesOrBuilder(intindex)Categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 5;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ClassificationCategoryOrBuilder |
|
getCategoriesOrBuilderList()
publicList<?extendsClassificationCategoryOrBuilder>getCategoriesOrBuilderList()Categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 5;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.language.v2.ClassificationCategoryOrBuilder> |
|
getDefaultInstanceForType()
publicAnnotateTextResponsegetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDocumentSentiment()
publicSentimentgetDocumentSentiment()The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
.google.cloud.language.v2.Sentiment document_sentiment = 3;
| Returns | |
|---|---|
| Type | Description |
Sentiment |
The documentSentiment. |
getDocumentSentimentBuilder()
publicSentiment.BuildergetDocumentSentimentBuilder()The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
.google.cloud.language.v2.Sentiment document_sentiment = 3;
| Returns | |
|---|---|
| Type | Description |
Sentiment.Builder |
|
getDocumentSentimentOrBuilder()
publicSentimentOrBuildergetDocumentSentimentOrBuilder()The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
.google.cloud.language.v2.Sentiment document_sentiment = 3;
| Returns | |
|---|---|
| Type | Description |
SentimentOrBuilder |
|
getEntities(int index)
publicEntitygetEntities(intindex)Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities or AnnotateTextRequest.Features.extract_entity_sentiment.
repeated .google.cloud.language.v2.Entity entities = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Entity |
|
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 or AnnotateTextRequest.Features.extract_entity_sentiment.
repeated .google.cloud.language.v2.Entity entities = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Entity.Builder |
|
getEntitiesBuilderList()
publicList<Entity.Builder>getEntitiesBuilderList()Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities or AnnotateTextRequest.Features.extract_entity_sentiment.
repeated .google.cloud.language.v2.Entity entities = 2;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getEntitiesCount()
publicintgetEntitiesCount()Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities or AnnotateTextRequest.Features.extract_entity_sentiment.
repeated .google.cloud.language.v2.Entity entities = 2;
| Returns | |
|---|---|
| Type | Description |
int |
|
getEntitiesList()
publicList<Entity>getEntitiesList()Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities or AnnotateTextRequest.Features.extract_entity_sentiment.
repeated .google.cloud.language.v2.Entity entities = 2;
| Returns | |
|---|---|
| Type | Description |
List<Entity> |
|
getEntitiesOrBuilder(int index)
publicEntityOrBuildergetEntitiesOrBuilder(intindex)Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities or AnnotateTextRequest.Features.extract_entity_sentiment.
repeated .google.cloud.language.v2.Entity entities = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
EntityOrBuilder |
|
getEntitiesOrBuilderList()
publicList<?extendsEntityOrBuilder>getEntitiesOrBuilderList()Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities or AnnotateTextRequest.Features.extract_entity_sentiment.
repeated .google.cloud.language.v2.Entity entities = 2;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.language.v2.EntityOrBuilder> |
|
getLanguageCode()
publicStringgetLanguageCode()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_code = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The languageCode. |
getLanguageCodeBytes()
publicByteStringgetLanguageCodeBytes()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_code = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for languageCode. |
getLanguageSupported()
publicbooleangetLanguageSupported()Whether the language is officially supported by all requested features. The API may still return a response when the language is not supported, but it is on a best effort basis.
bool language_supported = 7;
| Returns | |
|---|---|
| Type | Description |
boolean |
The languageSupported. |
getModerationCategories(int index)
publicClassificationCategorygetModerationCategories(intindex)Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 6;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ClassificationCategory |
|
getModerationCategoriesBuilder(int index)
publicClassificationCategory.BuildergetModerationCategoriesBuilder(intindex)Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 6;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ClassificationCategory.Builder |
|
getModerationCategoriesBuilderList()
publicList<ClassificationCategory.Builder>getModerationCategoriesBuilderList()Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 6;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getModerationCategoriesCount()
publicintgetModerationCategoriesCount()Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 6;
| Returns | |
|---|---|
| Type | Description |
int |
|
getModerationCategoriesList()
publicList<ClassificationCategory>getModerationCategoriesList()Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 6;
| Returns | |
|---|---|
| Type | Description |
List<ClassificationCategory> |
|
getModerationCategoriesOrBuilder(int index)
publicClassificationCategoryOrBuildergetModerationCategoriesOrBuilder(intindex)Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 6;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ClassificationCategoryOrBuilder |
|
getModerationCategoriesOrBuilderList()
publicList<?extendsClassificationCategoryOrBuilder>getModerationCategoriesOrBuilderList()Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 6;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.language.v2.ClassificationCategoryOrBuilder> |
|
getSentences(int index)
publicSentencegetSentences(intindex)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
repeated .google.cloud.language.v2.Sentence sentences = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Sentence |
|
getSentencesBuilder(int index)
publicSentence.BuildergetSentencesBuilder(intindex)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
repeated .google.cloud.language.v2.Sentence sentences = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Sentence.Builder |
|
getSentencesBuilderList()
publicList<Sentence.Builder>getSentencesBuilderList()Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
repeated .google.cloud.language.v2.Sentence sentences = 1;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getSentencesCount()
publicintgetSentencesCount()Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
repeated .google.cloud.language.v2.Sentence sentences = 1;
| Returns | |
|---|---|
| Type | Description |
int |
|
getSentencesList()
publicList<Sentence>getSentencesList()Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
repeated .google.cloud.language.v2.Sentence sentences = 1;
| Returns | |
|---|---|
| Type | Description |
List<Sentence> |
|
getSentencesOrBuilder(int index)
publicSentenceOrBuildergetSentencesOrBuilder(intindex)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
repeated .google.cloud.language.v2.Sentence sentences = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SentenceOrBuilder |
|
getSentencesOrBuilderList()
publicList<?extendsSentenceOrBuilder>getSentencesOrBuilderList()Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
repeated .google.cloud.language.v2.Sentence sentences = 1;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.language.v2.SentenceOrBuilder> |
|
hasDocumentSentiment()
publicbooleanhasDocumentSentiment()The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
.google.cloud.language.v2.Sentiment document_sentiment = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the documentSentiment field is set. |
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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.v2.Sentiment document_sentiment = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Sentiment |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
mergeFrom(AnnotateTextResponse other)
publicAnnotateTextResponse.BuildermergeFrom(AnnotateTextResponseother)| Parameter | |
|---|---|
| Name | Description |
other |
AnnotateTextResponse |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicAnnotateTextResponse.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicAnnotateTextResponse.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalAnnotateTextResponse.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
removeCategories(int index)
publicAnnotateTextResponse.BuilderremoveCategories(intindex)Categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 5;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
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 or AnnotateTextRequest.Features.extract_entity_sentiment.
repeated .google.cloud.language.v2.Entity entities = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
removeModerationCategories(int index)
publicAnnotateTextResponse.BuilderremoveModerationCategories(intindex)Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 6;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
removeSentences(int index)
publicAnnotateTextResponse.BuilderremoveSentences(intindex)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
repeated .google.cloud.language.v2.Sentence sentences = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
setCategories(int index, ClassificationCategory value)
publicAnnotateTextResponse.BuildersetCategories(intindex,ClassificationCategoryvalue)Categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 5;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ClassificationCategory |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
setCategories(int index, ClassificationCategory.Builder builderForValue)
publicAnnotateTextResponse.BuildersetCategories(intindex,ClassificationCategory.BuilderbuilderForValue)Categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 5;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ClassificationCategory.Builder |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
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.v2.Sentiment document_sentiment = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Sentiment |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
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.v2.Sentiment document_sentiment = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Sentiment.Builder |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
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 or AnnotateTextRequest.Features.extract_entity_sentiment.
repeated .google.cloud.language.v2.Entity entities = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Entity |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
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 or AnnotateTextRequest.Features.extract_entity_sentiment.
repeated .google.cloud.language.v2.Entity entities = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Entity.Builder |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
publicAnnotateTextResponse.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
setLanguageCode(String value)
publicAnnotateTextResponse.BuildersetLanguageCode(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_code = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
String The languageCode to set. |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
This builder for chaining. |
setLanguageCodeBytes(ByteString value)
publicAnnotateTextResponse.BuildersetLanguageCodeBytes(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_code = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for languageCode to set. |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
This builder for chaining. |
setLanguageSupported(boolean value)
publicAnnotateTextResponse.BuildersetLanguageSupported(booleanvalue)Whether the language is officially supported by all requested features. The API may still return a response when the language is not supported, but it is on a best effort basis.
bool language_supported = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
boolean The languageSupported to set. |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
This builder for chaining. |
setModerationCategories(int index, ClassificationCategory value)
publicAnnotateTextResponse.BuildersetModerationCategories(intindex,ClassificationCategoryvalue)Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 6;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ClassificationCategory |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
setModerationCategories(int index, ClassificationCategory.Builder builderForValue)
publicAnnotateTextResponse.BuildersetModerationCategories(intindex,ClassificationCategory.BuilderbuilderForValue)Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 6;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ClassificationCategory.Builder |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicAnnotateTextResponse.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
setSentences(int index, Sentence value)
publicAnnotateTextResponse.BuildersetSentences(intindex,Sentencevalue)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
repeated .google.cloud.language.v2.Sentence sentences = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Sentence |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
setSentences(int index, Sentence.Builder builderForValue)
publicAnnotateTextResponse.BuildersetSentences(intindex,Sentence.BuilderbuilderForValue)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
repeated .google.cloud.language.v2.Sentence sentences = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Sentence.Builder |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalAnnotateTextResponse.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextResponse.Builder |
|