Package com.google.cloud.language.v1
Interface AnnotateTextResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AnnotateTextResponse,AnnotateTextResponse.Builder
@Generated
public interface AnnotateTextResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetCategories(int index) Categories identified in the input document.intCategories identified in the input document.Categories identified in the input document.getCategoriesOrBuilder(int index) Categories identified in the input document.List<? extends ClassificationCategoryOrBuilder>Categories identified in the input document.The overall sentiment for the document.The overall sentiment for the document.getEntities(int index) Entities, along with their semantic information, in the input document.intEntities, along with their semantic information, in the input document.Entities, along with their semantic information, in the input document.getEntitiesOrBuilder(int index) Entities, along with their semantic information, in the input document.List<? extends EntityOrBuilder>Entities, along with their semantic information, in the input document.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.com.google.protobuf.ByteStringThe language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language.getModerationCategories(int index) Harmful and sensitive categories identified in the input document.intHarmful and sensitive categories identified in the input document.Harmful and sensitive categories identified in the input document.getModerationCategoriesOrBuilder(int index) Harmful and sensitive categories identified in the input document.List<? extends ClassificationCategoryOrBuilder>Harmful and sensitive categories identified in the input document.getSentences(int index) Sentences in the input document.intSentences in the input document.Sentences in the input document.getSentencesOrBuilder(int index) Sentences in the input document.List<? extends SentenceOrBuilder>Sentences in the input document.getTokens(int index) Tokens, along with their syntactic information, in the input document.intTokens, along with their syntactic information, in the input document.Tokens, along with their syntactic information, in the input document.getTokensOrBuilder(int index) Tokens, along with their syntactic information, in the input document.List<? extends TokenOrBuilder>Tokens, along with their syntactic information, in the input document.booleanThe overall sentiment for the document.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getSentencesList
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Sentence sentences = 1; -
getSentences
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Sentence sentences = 1; -
getSentencesCount
int getSentencesCount()Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Sentence sentences = 1; -
getSentencesOrBuilderList
List<? extends SentenceOrBuilder> getSentencesOrBuilderList()Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Sentence sentences = 1; -
getSentencesOrBuilder
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Sentence sentences = 1; -
getTokensList
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2; -
getTokens
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2; -
getTokensCount
int getTokensCount()Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2; -
getTokensOrBuilderList
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.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2; -
getTokensOrBuilder
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2; -
getEntitiesList
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3; -
getEntities
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3; -
getEntitiesCount
int getEntitiesCount()Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3; -
getEntitiesOrBuilderList
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.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3; -
getEntitiesOrBuilder
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3; -
hasDocumentSentiment
boolean hasDocumentSentiment()The overall sentiment for the document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment].
.google.cloud.language.v1.Sentiment document_sentiment = 4;- Returns:
- Whether the documentSentiment field is set.
-
getDocumentSentiment
Sentiment getDocumentSentiment()The overall sentiment for the document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment].
.google.cloud.language.v1.Sentiment document_sentiment = 4;- Returns:
- The documentSentiment.
-
getDocumentSentimentOrBuilder
SentimentOrBuilder getDocumentSentimentOrBuilder()The overall sentiment for the document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment].
.google.cloud.language.v1.Sentiment document_sentiment = 4; -
getLanguage
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.v1.Document.language] field for more details.
string language = 5;- Returns:
- The language.
-
getLanguageBytes
com.google.protobuf.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.v1.Document.language] field for more details.
string language = 5;- Returns:
- The bytes for language.
-
getCategoriesList
List<ClassificationCategory> getCategoriesList()Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6; -
getCategories
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6; -
getCategoriesCount
int getCategoriesCount()Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6; -
getCategoriesOrBuilderList
List<? extends ClassificationCategoryOrBuilder> getCategoriesOrBuilderList()Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6; -
getCategoriesOrBuilder
Categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 6; -
getModerationCategoriesList
List<ClassificationCategory> getModerationCategoriesList()Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7; -
getModerationCategories
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7; -
getModerationCategoriesCount
int getModerationCategoriesCount()Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7; -
getModerationCategoriesOrBuilderList
List<? extends ClassificationCategoryOrBuilder> getModerationCategoriesOrBuilderList()Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7; -
getModerationCategoriesOrBuilder
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
-