public interface AnnotateTextResponseOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
ClassificationCategory |
getCategories(int index)
Categories identified in the input document.
|
int |
getCategoriesCount()
Categories identified in the input document.
|
java.util.List<ClassificationCategory> |
getCategoriesList()
Categories identified in the input document.
|
ClassificationCategoryOrBuilder |
getCategoriesOrBuilder(int index)
Categories identified in the input document.
|
java.util.List<? extends ClassificationCategoryOrBuilder> |
getCategoriesOrBuilderList()
Categories identified in the input document.
|
Sentiment |
getDocumentSentiment()
The overall sentiment for the document.
|
SentimentOrBuilder |
getDocumentSentimentOrBuilder()
The overall sentiment for the document.
|
Entity |
getEntities(int index)
Entities, along with their semantic information, in the input document.
|
int |
getEntitiesCount()
Entities, along with their semantic information, in the input document.
|
java.util.List<Entity> |
getEntitiesList()
Entities, along with their semantic information, in the input document.
|
EntityOrBuilder |
getEntitiesOrBuilder(int index)
Entities, along with their semantic information, in the input document.
|
java.util.List<? extends EntityOrBuilder> |
getEntitiesOrBuilderList()
Entities, along with their semantic information, in the input document.
|
java.lang.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.
|
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.
|
Sentence |
getSentences(int index)
Sentences in the input document.
|
int |
getSentencesCount()
Sentences in the input document.
|
java.util.List<Sentence> |
getSentencesList()
Sentences in the input document.
|
SentenceOrBuilder |
getSentencesOrBuilder(int index)
Sentences in the input document.
|
java.util.List<? extends SentenceOrBuilder> |
getSentencesOrBuilderList()
Sentences in the input document.
|
Token |
getTokens(int index)
Tokens, along with their syntactic information, in the input document.
|
int |
getTokensCount()
Tokens, along with their syntactic information, in the input document.
|
java.util.List<Token> |
getTokensList()
Tokens, along with their syntactic information, in the input document.
|
TokenOrBuilder |
getTokensOrBuilder(int index)
Tokens, along with their syntactic information, in the input document.
|
java.util.List<? extends TokenOrBuilder> |
getTokensOrBuilderList()
Tokens, along with their syntactic information, in the input document.
|
boolean |
hasDocumentSentiment()
The overall sentiment for the document.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
java.util.List<Sentence> getSentencesList()
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
Sentence getSentences(int index)
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
int getSentencesCount()
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
java.util.List<? extends SentenceOrBuilder> getSentencesOrBuilderList()
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
SentenceOrBuilder getSentencesOrBuilder(int index)
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
java.util.List<Token> getTokensList()
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1beta2.Token tokens = 2;
Token getTokens(int index)
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1beta2.Token tokens = 2;
int getTokensCount()
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1beta2.Token tokens = 2;
java.util.List<? extends TokenOrBuilder> getTokensOrBuilderList()
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1beta2.Token tokens = 2;
TokenOrBuilder getTokensOrBuilder(int index)
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1beta2.Token tokens = 2;
java.util.List<Entity> getEntitiesList()
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1beta2.Entity entities = 3;
Entity getEntities(int index)
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1beta2.Entity entities = 3;
int getEntitiesCount()
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1beta2.Entity entities = 3;
java.util.List<? extends EntityOrBuilder> getEntitiesOrBuilderList()
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1beta2.Entity entities = 3;
EntityOrBuilder getEntitiesOrBuilder(int index)
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1beta2.Entity entities = 3;
boolean hasDocumentSentiment()
The overall sentiment for the document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_document_sentiment].
.google.cloud.language.v1beta2.Sentiment document_sentiment = 4;
Sentiment getDocumentSentiment()
The overall sentiment for the document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_document_sentiment].
.google.cloud.language.v1beta2.Sentiment document_sentiment = 4;
SentimentOrBuilder getDocumentSentimentOrBuilder()
The overall sentiment for the document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_document_sentiment].
.google.cloud.language.v1beta2.Sentiment document_sentiment = 4;
java.lang.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][google.cloud.language.v1beta2.Document.language] field for more details.
string language = 5;
ByteString getLanguageBytes()
The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See [Document.language][google.cloud.language.v1beta2.Document.language] field for more details.
string language = 5;
java.util.List<ClassificationCategory> getCategoriesList()
Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
ClassificationCategory getCategories(int index)
Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
int getCategoriesCount()
Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
java.util.List<? extends ClassificationCategoryOrBuilder> getCategoriesOrBuilderList()
Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
ClassificationCategoryOrBuilder getCategoriesOrBuilder(int index)
Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;