Package com.google.cloud.language.v2
Interface AnnotateTextResponseOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AnnotateTextResponse
,AnnotateTextResponse.Builder
public interface AnnotateTextResponseOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClassificationCategory
getCategories(int index)
Categories identified in the input document.int
getCategoriesCount()
Categories identified in the input document.List<ClassificationCategory>
getCategoriesList()
Categories identified in the input document.ClassificationCategoryOrBuilder
getCategoriesOrBuilder(int index)
Categories identified in the input document.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.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.List<? extends EntityOrBuilder>
getEntitiesOrBuilderList()
Entities, along with their semantic information, in the input document.String
getLanguageCode()
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.ByteString
getLanguageCodeBytes()
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.boolean
getLanguageSupported()
Whether the language is officially supported by all requested features.ClassificationCategory
getModerationCategories(int index)
Harmful and sensitive categories identified in the input document.int
getModerationCategoriesCount()
Harmful and sensitive categories identified in the input document.List<ClassificationCategory>
getModerationCategoriesList()
Harmful and sensitive categories identified in the input document.ClassificationCategoryOrBuilder
getModerationCategoriesOrBuilder(int index)
Harmful and sensitive categories identified in the input document.List<? extends ClassificationCategoryOrBuilder>
getModerationCategoriesOrBuilderList()
Harmful and sensitive categories identified in the input document.Sentence
getSentences(int index)
Sentences in the input document.int
getSentencesCount()
Sentences in the input document.List<Sentence>
getSentencesList()
Sentences in the input document.SentenceOrBuilder
getSentencesOrBuilder(int index)
Sentences in the input document.List<? extends SentenceOrBuilder>
getSentencesOrBuilderList()
Sentences in the input document.boolean
hasDocumentSentiment()
The overall sentiment for the document.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getSentencesList
List<Sentence> getSentencesList()
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v2.AnnotateTextRequest.Features.extract_document_sentiment].
repeated .google.cloud.language.v2.Sentence sentences = 1;
-
getSentences
Sentence getSentences(int index)
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v2.AnnotateTextRequest.Features.extract_document_sentiment].
repeated .google.cloud.language.v2.Sentence sentences = 1;
-
getSentencesCount
int getSentencesCount()
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v2.AnnotateTextRequest.Features.extract_document_sentiment].
repeated .google.cloud.language.v2.Sentence sentences = 1;
-
getSentencesOrBuilderList
List<? extends SentenceOrBuilder> getSentencesOrBuilderList()
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v2.AnnotateTextRequest.Features.extract_document_sentiment].
repeated .google.cloud.language.v2.Sentence sentences = 1;
-
getSentencesOrBuilder
SentenceOrBuilder getSentencesOrBuilder(int index)
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v2.AnnotateTextRequest.Features.extract_document_sentiment].
repeated .google.cloud.language.v2.Sentence sentences = 1;
-
getEntitiesList
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.v2.AnnotateTextRequest.Features.extract_entities] or [AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v2.AnnotateTextRequest.Features.extract_entity_sentiment].
repeated .google.cloud.language.v2.Entity entities = 2;
-
getEntities
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.v2.AnnotateTextRequest.Features.extract_entities] or [AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v2.AnnotateTextRequest.Features.extract_entity_sentiment].
repeated .google.cloud.language.v2.Entity entities = 2;
-
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.v2.AnnotateTextRequest.Features.extract_entities] or [AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v2.AnnotateTextRequest.Features.extract_entity_sentiment].
repeated .google.cloud.language.v2.Entity entities = 2;
-
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.v2.AnnotateTextRequest.Features.extract_entities] or [AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v2.AnnotateTextRequest.Features.extract_entity_sentiment].
repeated .google.cloud.language.v2.Entity entities = 2;
-
getEntitiesOrBuilder
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.v2.AnnotateTextRequest.Features.extract_entities] or [AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v2.AnnotateTextRequest.Features.extract_entity_sentiment].
repeated .google.cloud.language.v2.Entity entities = 2;
-
hasDocumentSentiment
boolean hasDocumentSentiment()
The overall sentiment for the document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v2.AnnotateTextRequest.Features.extract_document_sentiment].
.google.cloud.language.v2.Sentiment document_sentiment = 3;
- 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.v2.AnnotateTextRequest.Features.extract_document_sentiment].
.google.cloud.language.v2.Sentiment document_sentiment = 3;
- 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.v2.AnnotateTextRequest.Features.extract_document_sentiment].
.google.cloud.language.v2.Sentiment document_sentiment = 3;
-
getLanguageCode
String getLanguageCode()
The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See [Document.language][] field for more details.
string language_code = 4;
- Returns:
- The languageCode.
-
getLanguageCodeBytes
com.google.protobuf.ByteString getLanguageCodeBytes()
The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See [Document.language][] field for more details.
string language_code = 4;
- Returns:
- The bytes for languageCode.
-
getCategoriesList
List<ClassificationCategory> getCategoriesList()
Categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 5;
-
getCategories
ClassificationCategory getCategories(int index)
Categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 5;
-
getCategoriesCount
int getCategoriesCount()
Categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 5;
-
getCategoriesOrBuilderList
List<? extends ClassificationCategoryOrBuilder> getCategoriesOrBuilderList()
Categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 5;
-
getCategoriesOrBuilder
ClassificationCategoryOrBuilder getCategoriesOrBuilder(int index)
Categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 5;
-
getModerationCategoriesList
List<ClassificationCategory> getModerationCategoriesList()
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 6;
-
getModerationCategories
ClassificationCategory getModerationCategories(int index)
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 6;
-
getModerationCategoriesCount
int getModerationCategoriesCount()
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 6;
-
getModerationCategoriesOrBuilderList
List<? extends ClassificationCategoryOrBuilder> getModerationCategoriesOrBuilderList()
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 6;
-
getModerationCategoriesOrBuilder
ClassificationCategoryOrBuilder getModerationCategoriesOrBuilder(int index)
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 6;
-
getLanguageSupported
boolean getLanguageSupported()
Whether the language is officially supported by all requested features. The API may still return a response when the language is not supported, but it is on a best effort basis.
bool language_supported = 7;
- Returns:
- The languageSupported.
-
-