- 2.77.0 (latest)
- 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
public static final class AnnotateTextResponse.Builder extends GeneratedMessageV3.Builder<AnnotateTextResponse.Builder> implements AnnotateTextResponseOrBuilderThe text annotations response message.
 Protobuf type google.cloud.language.v1beta2.AnnotateTextResponse
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AnnotateTextResponse.BuilderImplements
AnnotateTextResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
Methods
addAllCategories(Iterable<? extends ClassificationCategory> values)
public AnnotateTextResponse.Builder addAllCategories(Iterable<? extends ClassificationCategory> values)Categories identified in the input document.
 repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
| Parameter | |
|---|---|
| Name | Description | 
| values | Iterable<? extends com.google.cloud.language.v1beta2.ClassificationCategory> | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
addAllEntities(Iterable<? extends Entity> values)
public AnnotateTextResponse.Builder addAllEntities(Iterable<? extends Entity> values)Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
 repeated .google.cloud.language.v1beta2.Entity entities = 3;
| Parameter | |
|---|---|
| Name | Description | 
| values | Iterable<? extends com.google.cloud.language.v1beta2.Entity> | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
addAllSentences(Iterable<? extends Sentence> values)
public AnnotateTextResponse.Builder addAllSentences(Iterable<? extends Sentence> values)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
| Parameter | |
|---|---|
| Name | Description | 
| values | Iterable<? extends com.google.cloud.language.v1beta2.Sentence> | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
addAllTokens(Iterable<? extends Token> values)
public AnnotateTextResponse.Builder addAllTokens(Iterable<? extends Token> values)Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Token tokens = 2;
| Parameter | |
|---|---|
| Name | Description | 
| values | Iterable<? extends com.google.cloud.language.v1beta2.Token> | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
addCategories(ClassificationCategory value)
public AnnotateTextResponse.Builder addCategories(ClassificationCategory value)Categories identified in the input document.
 repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
| Parameter | |
|---|---|
| Name | Description | 
| value | ClassificationCategory | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
addCategories(ClassificationCategory.Builder builderForValue)
public AnnotateTextResponse.Builder addCategories(ClassificationCategory.Builder builderForValue)Categories identified in the input document.
 repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
| Parameter | |
|---|---|
| Name | Description | 
| builderForValue | ClassificationCategory.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
addCategories(int index, ClassificationCategory value)
public AnnotateTextResponse.Builder addCategories(int index, ClassificationCategory value)Categories identified in the input document.
 repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
| Parameters | |
|---|---|
| Name | Description | 
| index | int | 
| value | ClassificationCategory | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
addCategories(int index, ClassificationCategory.Builder builderForValue)
public AnnotateTextResponse.Builder addCategories(int index, ClassificationCategory.Builder builderForValue)Categories identified in the input document.
 repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
| Parameters | |
|---|---|
| Name | Description | 
| index | int | 
| builderForValue | ClassificationCategory.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
addCategoriesBuilder()
public ClassificationCategory.Builder addCategoriesBuilder()Categories identified in the input document.
 repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
| Returns | |
|---|---|
| Type | Description | 
| ClassificationCategory.Builder | |
addCategoriesBuilder(int index)
public ClassificationCategory.Builder addCategoriesBuilder(int index)Categories identified in the input document.
 repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| ClassificationCategory.Builder | |
addEntities(Entity value)
public AnnotateTextResponse.Builder addEntities(Entity value)Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
 repeated .google.cloud.language.v1beta2.Entity entities = 3;
| Parameter | |
|---|---|
| Name | Description | 
| value | Entity | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
addEntities(Entity.Builder builderForValue)
public AnnotateTextResponse.Builder addEntities(Entity.Builder builderForValue)Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
 repeated .google.cloud.language.v1beta2.Entity entities = 3;
| Parameter | |
|---|---|
| Name | Description | 
| builderForValue | Entity.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
addEntities(int index, Entity value)
public AnnotateTextResponse.Builder addEntities(int index, Entity value)Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
 repeated .google.cloud.language.v1beta2.Entity entities = 3;
| Parameters | |
|---|---|
| Name | Description | 
| index | int | 
| value | Entity | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
addEntities(int index, Entity.Builder builderForValue)
public AnnotateTextResponse.Builder addEntities(int index, Entity.Builder builderForValue)Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
 repeated .google.cloud.language.v1beta2.Entity entities = 3;
| Parameters | |
|---|---|
| Name | Description | 
| index | int | 
| builderForValue | Entity.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
addEntitiesBuilder()
public Entity.Builder addEntitiesBuilder()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;
| Returns | |
|---|---|
| Type | Description | 
| Entity.Builder | |
addEntitiesBuilder(int index)
public Entity.Builder addEntitiesBuilder(int index)Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
 repeated .google.cloud.language.v1beta2.Entity entities = 3;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| Entity.Builder | |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AnnotateTextResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
addSentences(Sentence value)
public AnnotateTextResponse.Builder addSentences(Sentence value)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
| Parameter | |
|---|---|
| Name | Description | 
| value | Sentence | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
addSentences(Sentence.Builder builderForValue)
public AnnotateTextResponse.Builder addSentences(Sentence.Builder builderForValue)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
| Parameter | |
|---|---|
| Name | Description | 
| builderForValue | Sentence.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
addSentences(int index, Sentence value)
public AnnotateTextResponse.Builder addSentences(int index, Sentence value)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
| Parameters | |
|---|---|
| Name | Description | 
| index | int | 
| value | Sentence | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
addSentences(int index, Sentence.Builder builderForValue)
public AnnotateTextResponse.Builder addSentences(int index, Sentence.Builder builderForValue)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
| Parameters | |
|---|---|
| Name | Description | 
| index | int | 
| builderForValue | Sentence.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
addSentencesBuilder()
public Sentence.Builder addSentencesBuilder()Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
| Returns | |
|---|---|
| Type | Description | 
| Sentence.Builder | |
addSentencesBuilder(int index)
public Sentence.Builder addSentencesBuilder(int index)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| Sentence.Builder | |
addTokens(Token value)
public AnnotateTextResponse.Builder addTokens(Token value)Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Token tokens = 2;
| Parameter | |
|---|---|
| Name | Description | 
| value | Token | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
addTokens(Token.Builder builderForValue)
public AnnotateTextResponse.Builder addTokens(Token.Builder builderForValue)Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Token tokens = 2;
| Parameter | |
|---|---|
| Name | Description | 
| builderForValue | Token.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
addTokens(int index, Token value)
public AnnotateTextResponse.Builder addTokens(int index, Token value)Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Token tokens = 2;
| Parameters | |
|---|---|
| Name | Description | 
| index | int | 
| value | Token | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
addTokens(int index, Token.Builder builderForValue)
public AnnotateTextResponse.Builder addTokens(int index, Token.Builder builderForValue)Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Token tokens = 2;
| Parameters | |
|---|---|
| Name | Description | 
| index | int | 
| builderForValue | Token.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
addTokensBuilder()
public Token.Builder addTokensBuilder()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;
| Returns | |
|---|---|
| Type | Description | 
| Token.Builder | |
addTokensBuilder(int index)
public Token.Builder addTokensBuilder(int index)Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Token tokens = 2;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| Token.Builder | |
build()
public AnnotateTextResponse build()| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse | |
buildPartial()
public AnnotateTextResponse buildPartial()| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse | |
clear()
public AnnotateTextResponse.Builder clear()| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
clearCategories()
public AnnotateTextResponse.Builder clearCategories()Categories identified in the input document.
 repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
clearDocumentSentiment()
public AnnotateTextResponse.Builder clearDocumentSentiment()The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
 .google.cloud.language.v1beta2.Sentiment document_sentiment = 4;
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
clearEntities()
public AnnotateTextResponse.Builder clearEntities()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;
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
clearField(Descriptors.FieldDescriptor field)
public AnnotateTextResponse.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
clearLanguage()
public AnnotateTextResponse.Builder clearLanguage()The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details.
 string language = 5;
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | This builder for chaining. | 
clearOneof(Descriptors.OneofDescriptor oneof)
public AnnotateTextResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
| oneof | OneofDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
clearSentences()
public AnnotateTextResponse.Builder clearSentences()Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
clearTokens()
public AnnotateTextResponse.Builder clearTokens()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;
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
clone()
public AnnotateTextResponse.Builder clone()| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
getCategories(int index)
public ClassificationCategory getCategories(int index)Categories identified in the input document.
 repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| ClassificationCategory | |
getCategoriesBuilder(int index)
public ClassificationCategory.Builder getCategoriesBuilder(int index)Categories identified in the input document.
 repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| ClassificationCategory.Builder | |
getCategoriesBuilderList()
public List<ClassificationCategory.Builder> getCategoriesBuilderList()Categories identified in the input document.
 repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
| Returns | |
|---|---|
| Type | Description | 
| List<Builder> | |
getCategoriesCount()
public int getCategoriesCount()Categories identified in the input document.
 repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
| Returns | |
|---|---|
| Type | Description | 
| int | |
getCategoriesList()
public List<ClassificationCategory> getCategoriesList()Categories identified in the input document.
 repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
| Returns | |
|---|---|
| Type | Description | 
| List<ClassificationCategory> | |
getCategoriesOrBuilder(int index)
public ClassificationCategoryOrBuilder getCategoriesOrBuilder(int index)Categories identified in the input document.
 repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| ClassificationCategoryOrBuilder | |
getCategoriesOrBuilderList()
public List<? extends ClassificationCategoryOrBuilder> getCategoriesOrBuilderList()Categories identified in the input document.
 repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
| Returns | |
|---|---|
| Type | Description | 
| List<? extends com.google.cloud.language.v1beta2.ClassificationCategoryOrBuilder> | |
getDefaultInstanceForType()
public AnnotateTextResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse | |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
getDocumentSentiment()
public Sentiment getDocumentSentiment()The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
 .google.cloud.language.v1beta2.Sentiment document_sentiment = 4;
| Returns | |
|---|---|
| Type | Description | 
| Sentiment | The documentSentiment. | 
getDocumentSentimentBuilder()
public Sentiment.Builder getDocumentSentimentBuilder()The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
 .google.cloud.language.v1beta2.Sentiment document_sentiment = 4;
| Returns | |
|---|---|
| Type | Description | 
| Sentiment.Builder | |
getDocumentSentimentOrBuilder()
public SentimentOrBuilder getDocumentSentimentOrBuilder()The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
 .google.cloud.language.v1beta2.Sentiment document_sentiment = 4;
| Returns | |
|---|---|
| Type | Description | 
| SentimentOrBuilder | |
getEntities(int index)
public Entity getEntities(int index)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;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| Entity | |
getEntitiesBuilder(int index)
public Entity.Builder getEntitiesBuilder(int index)Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
 repeated .google.cloud.language.v1beta2.Entity entities = 3;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| Entity.Builder | |
getEntitiesBuilderList()
public List<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;
| Returns | |
|---|---|
| Type | Description | 
| List<Builder> | |
getEntitiesCount()
public int getEntitiesCount()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;
| Returns | |
|---|---|
| Type | Description | 
| int | |
getEntitiesList()
public List<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;
| Returns | |
|---|---|
| Type | Description | 
| List<Entity> | |
getEntitiesOrBuilder(int index)
public EntityOrBuilder getEntitiesOrBuilder(int index)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;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| EntityOrBuilder | |
getEntitiesOrBuilderList()
public List<? extends EntityOrBuilder> 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;
| Returns | |
|---|---|
| Type | Description | 
| List<? extends com.google.cloud.language.v1beta2.EntityOrBuilder> | |
getLanguage()
public String getLanguage()The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details.
 string language = 5;
| Returns | |
|---|---|
| Type | Description | 
| String | The language. | 
getLanguageBytes()
public ByteString getLanguageBytes()The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details.
 string language = 5;
| Returns | |
|---|---|
| Type | Description | 
| ByteString | The bytes for language. | 
getSentences(int index)
public Sentence getSentences(int index)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| Sentence | |
getSentencesBuilder(int index)
public Sentence.Builder getSentencesBuilder(int index)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| Sentence.Builder | |
getSentencesBuilderList()
public List<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;
| Returns | |
|---|---|
| Type | Description | 
| List<Builder> | |
getSentencesCount()
public int getSentencesCount()Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
| Returns | |
|---|---|
| Type | Description | 
| int | |
getSentencesList()
public List<Sentence> getSentencesList()Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
| Returns | |
|---|---|
| Type | Description | 
| List<Sentence> | |
getSentencesOrBuilder(int index)
public SentenceOrBuilder getSentencesOrBuilder(int index)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| SentenceOrBuilder | |
getSentencesOrBuilderList()
public List<? extends SentenceOrBuilder> getSentencesOrBuilderList()Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
| Returns | |
|---|---|
| Type | Description | 
| List<? extends com.google.cloud.language.v1beta2.SentenceOrBuilder> | |
getTokens(int index)
public Token getTokens(int index)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;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| Token | |
getTokensBuilder(int index)
public Token.Builder getTokensBuilder(int index)Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Token tokens = 2;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| Token.Builder | |
getTokensBuilderList()
public List<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;
| Returns | |
|---|---|
| Type | Description | 
| List<Builder> | |
getTokensCount()
public int getTokensCount()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;
| Returns | |
|---|---|
| Type | Description | 
| int | |
getTokensList()
public List<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;
| Returns | |
|---|---|
| Type | Description | 
| List<Token> | |
getTokensOrBuilder(int index)
public TokenOrBuilder getTokensOrBuilder(int index)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;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| TokenOrBuilder | |
getTokensOrBuilderList()
public List<? extends TokenOrBuilder> 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;
| Returns | |
|---|---|
| Type | Description | 
| List<? extends com.google.cloud.language.v1beta2.TokenOrBuilder> | |
hasDocumentSentiment()
public boolean hasDocumentSentiment()The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
 .google.cloud.language.v1beta2.Sentiment document_sentiment = 4;
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the documentSentiment field is set. | 
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
| FieldAccessorTable | |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
| boolean | |
mergeDocumentSentiment(Sentiment value)
public AnnotateTextResponse.Builder mergeDocumentSentiment(Sentiment value)The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
 .google.cloud.language.v1beta2.Sentiment document_sentiment = 4;
| Parameter | |
|---|---|
| Name | Description | 
| value | Sentiment | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
mergeFrom(AnnotateTextResponse other)
public AnnotateTextResponse.Builder mergeFrom(AnnotateTextResponse other)| Parameter | |
|---|---|
| Name | Description | 
| other | AnnotateTextResponse | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AnnotateTextResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
| input | CodedInputStream | 
| extensionRegistry | ExtensionRegistryLite | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
| Exceptions | |
|---|---|
| Type | Description | 
| IOException | |
mergeFrom(Message other)
public AnnotateTextResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
| other | Message | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AnnotateTextResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
removeCategories(int index)
public AnnotateTextResponse.Builder removeCategories(int index)Categories identified in the input document.
 repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
removeEntities(int index)
public AnnotateTextResponse.Builder removeEntities(int index)Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
 repeated .google.cloud.language.v1beta2.Entity entities = 3;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
removeSentences(int index)
public AnnotateTextResponse.Builder removeSentences(int index)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
removeTokens(int index)
public AnnotateTextResponse.Builder removeTokens(int index)Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Token tokens = 2;
| Parameter | |
|---|---|
| Name | Description | 
| index | int | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
setCategories(int index, ClassificationCategory value)
public AnnotateTextResponse.Builder setCategories(int index, ClassificationCategory value)Categories identified in the input document.
 repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
| Parameters | |
|---|---|
| Name | Description | 
| index | int | 
| value | ClassificationCategory | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
setCategories(int index, ClassificationCategory.Builder builderForValue)
public AnnotateTextResponse.Builder setCategories(int index, ClassificationCategory.Builder builderForValue)Categories identified in the input document.
 repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
| Parameters | |
|---|---|
| Name | Description | 
| index | int | 
| builderForValue | ClassificationCategory.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
setDocumentSentiment(Sentiment value)
public AnnotateTextResponse.Builder setDocumentSentiment(Sentiment value)The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
 .google.cloud.language.v1beta2.Sentiment document_sentiment = 4;
| Parameter | |
|---|---|
| Name | Description | 
| value | Sentiment | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
setDocumentSentiment(Sentiment.Builder builderForValue)
public AnnotateTextResponse.Builder setDocumentSentiment(Sentiment.Builder builderForValue)The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
 .google.cloud.language.v1beta2.Sentiment document_sentiment = 4;
| Parameter | |
|---|---|
| Name | Description | 
| builderForValue | Sentiment.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
setEntities(int index, Entity value)
public AnnotateTextResponse.Builder setEntities(int index, Entity value)Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
 repeated .google.cloud.language.v1beta2.Entity entities = 3;
| Parameters | |
|---|---|
| Name | Description | 
| index | int | 
| value | Entity | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
setEntities(int index, Entity.Builder builderForValue)
public AnnotateTextResponse.Builder setEntities(int index, Entity.Builder builderForValue)Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
 repeated .google.cloud.language.v1beta2.Entity entities = 3;
| Parameters | |
|---|---|
| Name | Description | 
| index | int | 
| builderForValue | Entity.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
setField(Descriptors.FieldDescriptor field, Object value)
public AnnotateTextResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
setLanguage(String value)
public AnnotateTextResponse.Builder setLanguage(String value)The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details.
 string language = 5;
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe language to set. | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | This builder for chaining. | 
setLanguageBytes(ByteString value)
public AnnotateTextResponse.Builder setLanguageBytes(ByteString value)The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details.
 string language = 5;
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes for language to set. | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | This builder for chaining. | 
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AnnotateTextResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| index | int | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
setSentences(int index, Sentence value)
public AnnotateTextResponse.Builder setSentences(int index, Sentence value)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
| Parameters | |
|---|---|
| Name | Description | 
| index | int | 
| value | Sentence | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
setSentences(int index, Sentence.Builder builderForValue)
public AnnotateTextResponse.Builder setSentences(int index, Sentence.Builder builderForValue)Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
| Parameters | |
|---|---|
| Name | Description | 
| index | int | 
| builderForValue | Sentence.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
setTokens(int index, Token value)
public AnnotateTextResponse.Builder setTokens(int index, Token value)Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Token tokens = 2;
| Parameters | |
|---|---|
| Name | Description | 
| index | int | 
| value | Token | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
setTokens(int index, Token.Builder builderForValue)
public AnnotateTextResponse.Builder setTokens(int index, Token.Builder builderForValue)Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
 repeated .google.cloud.language.v1beta2.Token tokens = 2;
| Parameters | |
|---|---|
| Name | Description | 
| index | int | 
| builderForValue | Token.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |
setUnknownFields(UnknownFieldSet unknownFields)
public final AnnotateTextResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| AnnotateTextResponse.Builder | |