publicfinalclass AnnotateTextResponseextendsGeneratedMessageV3implementsAnnotateTextResponseOrBuilder
The text annotations response message.
Protobuf type google.cloud.language.v1beta2.AnnotateTextResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
Static Fields
CATEGORIES_FIELD_NUMBER
publicstaticfinalintCATEGORIES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
DOCUMENT_SENTIMENT_FIELD_NUMBER
publicstaticfinalintDOCUMENT_SENTIMENT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
ENTITIES_FIELD_NUMBER
publicstaticfinalintENTITIES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
LANGUAGE_FIELD_NUMBER
publicstaticfinalintLANGUAGE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
MODERATION_CATEGORIES_FIELD_NUMBER
publicstaticfinalintMODERATION_CATEGORIES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SENTENCES_FIELD_NUMBER
publicstaticfinalintSENTENCES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
TOKENS_FIELD_NUMBER
publicstaticfinalintTOKENS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticAnnotateTextResponsegetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticAnnotateTextResponse.BuildernewBuilder()
newBuilder(AnnotateTextResponse prototype)
publicstaticAnnotateTextResponse.BuildernewBuilder(AnnotateTextResponseprototype)
parseDelimitedFrom(InputStream input)
publicstaticAnnotateTextResponseparseDelimitedFrom(InputStreaminput)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticAnnotateTextResponseparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticAnnotateTextResponseparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticAnnotateTextResponseparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticAnnotateTextResponseparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticAnnotateTextResponseparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
parseFrom(CodedInputStream input)
publicstaticAnnotateTextResponseparseFrom(CodedInputStreaminput)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticAnnotateTextResponseparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(InputStream input)
publicstaticAnnotateTextResponseparseFrom(InputStreaminput)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticAnnotateTextResponseparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticAnnotateTextResponseparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticAnnotateTextResponseparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<AnnotateTextResponse>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getCategories(int index)
publicClassificationCategorygetCategories(intindex)
Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
| Parameter |
| Name |
Description |
index |
int
|
getCategoriesCount()
publicintgetCategoriesCount()
Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
| Returns |
| Type |
Description |
int |
getCategoriesList()
publicList<ClassificationCategory>getCategoriesList()
Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
getCategoriesOrBuilder(int index)
publicClassificationCategoryOrBuildergetCategoriesOrBuilder(intindex)
Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
| Parameter |
| Name |
Description |
index |
int
|
getCategoriesOrBuilderList()
publicList<?extendsClassificationCategoryOrBuilder>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()
publicAnnotateTextResponsegetDefaultInstanceForType()
getDocumentSentiment()
publicSentimentgetDocumentSentiment()
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.
|
getDocumentSentimentOrBuilder()
publicSentimentOrBuildergetDocumentSentimentOrBuilder()
The overall sentiment for the document. Populated if the user enables
AnnotateTextRequest.Features.extract_document_sentiment.
.google.cloud.language.v1beta2.Sentiment document_sentiment = 4;
getEntities(int index)
publicEntitygetEntities(intindex)
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 |
getEntitiesCount()
publicintgetEntitiesCount()
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()
publicList<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;
getEntitiesOrBuilder(int index)
publicEntityOrBuildergetEntitiesOrBuilder(intindex)
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
|
getEntitiesOrBuilderList()
publicList<?extendsEntityOrBuilder>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()
publicStringgetLanguage()
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()
publicByteStringgetLanguageBytes()
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.
|
getModerationCategories(int index)
publicClassificationCategorygetModerationCategories(intindex)
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory moderation_categories = 8;
| Parameter |
| Name |
Description |
index |
int
|
getModerationCategoriesCount()
publicintgetModerationCategoriesCount()
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory moderation_categories = 8;
| Returns |
| Type |
Description |
int |
getModerationCategoriesList()
publicList<ClassificationCategory>getModerationCategoriesList()
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory moderation_categories = 8;
getModerationCategoriesOrBuilder(int index)
publicClassificationCategoryOrBuildergetModerationCategoriesOrBuilder(intindex)
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory moderation_categories = 8;
| Parameter |
| Name |
Description |
index |
int
|
getModerationCategoriesOrBuilderList()
publicList<?extendsClassificationCategoryOrBuilder>getModerationCategoriesOrBuilderList()
Harmful and sensitive categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory moderation_categories = 8;
| Returns |
| Type |
Description |
List<? extends com.google.cloud.language.v1beta2.ClassificationCategoryOrBuilder> |
getParserForType()
publicParser<AnnotateTextResponse>getParserForType()
Overrides
getSentences(int index)
publicSentencegetSentences(intindex)
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
|
getSentencesCount()
publicintgetSentencesCount()
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()
publicList<Sentence>getSentencesList()
Sentences in the input document. Populated if the user enables
AnnotateTextRequest.Features.extract_syntax.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
getSentencesOrBuilder(int index)
publicSentenceOrBuildergetSentencesOrBuilder(intindex)
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
|
getSentencesOrBuilderList()
publicList<?extendsSentenceOrBuilder>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> |
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getTokens(int index)
publicTokengetTokens(intindex)
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 |
getTokensCount()
publicintgetTokensCount()
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()
publicList<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;
getTokensOrBuilder(int index)
publicTokenOrBuildergetTokensOrBuilder(intindex)
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
|
getTokensOrBuilderList()
publicList<?extendsTokenOrBuilder>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()
publicbooleanhasDocumentSentiment()
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.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicAnnotateTextResponse.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedAnnotateTextResponse.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicAnnotateTextResponse.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides