- 2.56.0 (latest)
- 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 AnnotateTextResponseOrBuilder
The text annotations response message.
Protobuf type google.cloud.language.v1.AnnotateTextResponse
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AnnotateTextResponse.BuilderImplements
AnnotateTextResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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.v1.ClassificationCategory categories = 6;
Name | Description |
values | Iterable<? extends com.google.cloud.language.v1.ClassificationCategory> |
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.v1.Entity entities = 3;
Name | Description |
values | Iterable<? extends com.google.cloud.language.v1.Entity> |
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.v1.Sentence sentences = 1;
Name | Description |
values | Iterable<? extends com.google.cloud.language.v1.Sentence> |
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.v1.Token tokens = 2;
Name | Description |
values | Iterable<? extends com.google.cloud.language.v1.Token> |
Type | Description |
AnnotateTextResponse.Builder |
addCategories(ClassificationCategory value)
public AnnotateTextResponse.Builder addCategories(ClassificationCategory value)
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
Name | Description |
value | ClassificationCategory |
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.v1.ClassificationCategory categories = 6;
Name | Description |
builderForValue | ClassificationCategory.Builder |
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.v1.ClassificationCategory categories = 6;
Name | Description |
index | int |
value | ClassificationCategory |
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.v1.ClassificationCategory categories = 6;
Name | Description |
index | int |
builderForValue | ClassificationCategory.Builder |
Type | Description |
AnnotateTextResponse.Builder |
addCategoriesBuilder()
public ClassificationCategory.Builder addCategoriesBuilder()
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
Type | Description |
ClassificationCategory.Builder |
addCategoriesBuilder(int index)
public ClassificationCategory.Builder addCategoriesBuilder(int index)
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
Name | Description |
index | int |
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.v1.Entity entities = 3;
Name | Description |
value | Entity |
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.v1.Entity entities = 3;
Name | Description |
builderForValue | Entity.Builder |
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.v1.Entity entities = 3;
Name | Description |
index | int |
value | Entity |
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.v1.Entity entities = 3;
Name | Description |
index | int |
builderForValue | Entity.Builder |
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.v1.Entity entities = 3;
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.v1.Entity entities = 3;
Name | Description |
index | int |
Type | Description |
Entity.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AnnotateTextResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
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.v1.Sentence sentences = 1;
Name | Description |
value | Sentence |
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.v1.Sentence sentences = 1;
Name | Description |
builderForValue | Sentence.Builder |
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.v1.Sentence sentences = 1;
Name | Description |
index | int |
value | Sentence |
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.v1.Sentence sentences = 1;
Name | Description |
index | int |
builderForValue | Sentence.Builder |
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.v1.Sentence sentences = 1;
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.v1.Sentence sentences = 1;
Name | Description |
index | int |
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.v1.Token tokens = 2;
Name | Description |
value | Token |
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.v1.Token tokens = 2;
Name | Description |
builderForValue | Token.Builder |
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.v1.Token tokens = 2;
Name | Description |
index | int |
value | Token |
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.v1.Token tokens = 2;
Name | Description |
index | int |
builderForValue | Token.Builder |
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.v1.Token tokens = 2;
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.v1.Token tokens = 2;
Name | Description |
index | int |
Type | Description |
Token.Builder |
build()
public AnnotateTextResponse build()
Type | Description |
AnnotateTextResponse |
buildPartial()
public AnnotateTextResponse buildPartial()
Type | Description |
AnnotateTextResponse |
clear()
public AnnotateTextResponse.Builder clear()
Type | Description |
AnnotateTextResponse.Builder |
clearCategories()
public AnnotateTextResponse.Builder clearCategories()
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
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.v1.Sentiment document_sentiment = 4;
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.v1.Entity entities = 3;
Type | Description |
AnnotateTextResponse.Builder |
clearField(Descriptors.FieldDescriptor field)
public AnnotateTextResponse.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
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;
Type | Description |
AnnotateTextResponse.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public AnnotateTextResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
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.v1.Sentence sentences = 1;
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.v1.Token tokens = 2;
Type | Description |
AnnotateTextResponse.Builder |
clone()
public AnnotateTextResponse.Builder clone()
Type | Description |
AnnotateTextResponse.Builder |
getCategories(int index)
public ClassificationCategory getCategories(int index)
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
Name | Description |
index | int |
Type | Description |
ClassificationCategory |
getCategoriesBuilder(int index)
public ClassificationCategory.Builder getCategoriesBuilder(int index)
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
Name | Description |
index | int |
Type | Description |
ClassificationCategory.Builder |
getCategoriesBuilderList()
public List<ClassificationCategory.Builder> getCategoriesBuilderList()
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
Type | Description |
List<Builder> |
getCategoriesCount()
public int getCategoriesCount()
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
Type | Description |
int |
getCategoriesList()
public List<ClassificationCategory> getCategoriesList()
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
Type | Description |
List<ClassificationCategory> |
getCategoriesOrBuilder(int index)
public ClassificationCategoryOrBuilder getCategoriesOrBuilder(int index)
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
Name | Description |
index | int |
Type | Description |
ClassificationCategoryOrBuilder |
getCategoriesOrBuilderList()
public List<? extends ClassificationCategoryOrBuilder> getCategoriesOrBuilderList()
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
Type | Description |
List<? extends com.google.cloud.language.v1.ClassificationCategoryOrBuilder> |
getDefaultInstanceForType()
public AnnotateTextResponse getDefaultInstanceForType()
Type | Description |
AnnotateTextResponse |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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.v1.Sentiment document_sentiment = 4;
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.v1.Sentiment document_sentiment = 4;
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.v1.Sentiment document_sentiment = 4;
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.v1.Entity entities = 3;
Name | Description |
index | int |
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.v1.Entity entities = 3;
Name | Description |
index | int |
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.v1.Entity entities = 3;
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.v1.Entity entities = 3;
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.v1.Entity entities = 3;
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.v1.Entity entities = 3;
Name | Description |
index | int |
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.v1.Entity entities = 3;
Type | Description |
List<? extends com.google.cloud.language.v1.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;
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;
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.v1.Sentence sentences = 1;
Name | Description |
index | int |
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.v1.Sentence sentences = 1;
Name | Description |
index | int |
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.v1.Sentence sentences = 1;
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.v1.Sentence sentences = 1;
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.v1.Sentence sentences = 1;
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.v1.Sentence sentences = 1;
Name | Description |
index | int |
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.v1.Sentence sentences = 1;
Type | Description |
List<? extends com.google.cloud.language.v1.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.v1.Token tokens = 2;
Name | Description |
index | int |
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.v1.Token tokens = 2;
Name | Description |
index | int |
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.v1.Token tokens = 2;
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.v1.Token tokens = 2;
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.v1.Token tokens = 2;
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.v1.Token tokens = 2;
Name | Description |
index | int |
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.v1.Token tokens = 2;
Type | Description |
List<? extends com.google.cloud.language.v1.TokenOrBuilder> |
hasDocumentSentiment()
public boolean hasDocumentSentiment()
The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
.google.cloud.language.v1.Sentiment document_sentiment = 4;
Type | Description |
boolean | Whether the documentSentiment field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
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.v1.Sentiment document_sentiment = 4;
Name | Description |
value | Sentiment |
Type | Description |
AnnotateTextResponse.Builder |
mergeFrom(AnnotateTextResponse other)
public AnnotateTextResponse.Builder mergeFrom(AnnotateTextResponse other)
Name | Description |
other | AnnotateTextResponse |
Type | Description |
AnnotateTextResponse.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AnnotateTextResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AnnotateTextResponse.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public AnnotateTextResponse.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
AnnotateTextResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AnnotateTextResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
AnnotateTextResponse.Builder |
removeCategories(int index)
public AnnotateTextResponse.Builder removeCategories(int index)
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
Name | Description |
index | int |
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.v1.Entity entities = 3;
Name | Description |
index | int |
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.v1.Sentence sentences = 1;
Name | Description |
index | int |
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.v1.Token tokens = 2;
Name | Description |
index | int |
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.v1.ClassificationCategory categories = 6;
Name | Description |
index | int |
value | ClassificationCategory |
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.v1.ClassificationCategory categories = 6;
Name | Description |
index | int |
builderForValue | ClassificationCategory.Builder |
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.v1.Sentiment document_sentiment = 4;
Name | Description |
value | Sentiment |
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.v1.Sentiment document_sentiment = 4;
Name | Description |
builderForValue | Sentiment.Builder |
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.v1.Entity entities = 3;
Name | Description |
index | int |
value | Entity |
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.v1.Entity entities = 3;
Name | Description |
index | int |
builderForValue | Entity.Builder |
Type | Description |
AnnotateTextResponse.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public AnnotateTextResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
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;
Name | Description |
value | String The language to set. |
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;
Name | Description |
value | ByteString The bytes for language to set. |
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)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
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.v1.Sentence sentences = 1;
Name | Description |
index | int |
value | Sentence |
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.v1.Sentence sentences = 1;
Name | Description |
index | int |
builderForValue | Sentence.Builder |
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.v1.Token tokens = 2;
Name | Description |
index | int |
value | Token |
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.v1.Token tokens = 2;
Name | Description |
index | int |
builderForValue | Token.Builder |
Type | Description |
AnnotateTextResponse.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final AnnotateTextResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
AnnotateTextResponse.Builder |