public final class AnnotateTextResponse extends GeneratedMessageV3 implements AnnotateTextResponseOrBuilder
The text annotations response message.Protobuf type
google.cloud.language.v1beta2.AnnotateTextResponse
Modifier and Type | Class and Description |
---|---|
static class |
AnnotateTextResponse.Builder
The text annotations response message.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
CATEGORIES_FIELD_NUMBER |
static int |
DOCUMENT_SENTIMENT_FIELD_NUMBER |
static int |
ENTITIES_FIELD_NUMBER |
static int |
LANGUAGE_FIELD_NUMBER |
static int |
SENTENCES_FIELD_NUMBER |
static int |
TOKENS_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
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.
|
static AnnotateTextResponse |
getDefaultInstance() |
AnnotateTextResponse |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
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 |
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.
|
Parser<AnnotateTextResponse> |
getParserForType() |
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.
|
int |
getSerializedSize() |
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.
|
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.
|
List<? extends TokenOrBuilder> |
getTokensOrBuilderList()
Tokens, along with their syntactic information, in the input document.
|
UnknownFieldSet |
getUnknownFields() |
boolean |
hasDocumentSentiment()
The overall sentiment for the document.
|
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AnnotateTextResponse.Builder |
newBuilder() |
static AnnotateTextResponse.Builder |
newBuilder(AnnotateTextResponse prototype) |
AnnotateTextResponse.Builder |
newBuilderForType() |
protected AnnotateTextResponse.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) |
static AnnotateTextResponse |
parseDelimitedFrom(InputStream input) |
static AnnotateTextResponse |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static AnnotateTextResponse |
parseFrom(byte[] data) |
static AnnotateTextResponse |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static AnnotateTextResponse |
parseFrom(ByteBuffer data) |
static AnnotateTextResponse |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static AnnotateTextResponse |
parseFrom(ByteString data) |
static AnnotateTextResponse |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static AnnotateTextResponse |
parseFrom(CodedInputStream input) |
static AnnotateTextResponse |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static AnnotateTextResponse |
parseFrom(InputStream input) |
static AnnotateTextResponse |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<AnnotateTextResponse> |
parser() |
AnnotateTextResponse.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int SENTENCES_FIELD_NUMBER
public static final int TOKENS_FIELD_NUMBER
public static final int ENTITIES_FIELD_NUMBER
public static final int DOCUMENT_SENTIMENT_FIELD_NUMBER
public static final int LANGUAGE_FIELD_NUMBER
public static final int CATEGORIES_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public 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;
getSentencesList
in interface AnnotateTextResponseOrBuilder
public 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;
getSentencesOrBuilderList
in interface AnnotateTextResponseOrBuilder
public 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;
getSentencesCount
in interface AnnotateTextResponseOrBuilder
public 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;
getSentences
in interface AnnotateTextResponseOrBuilder
public 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;
getSentencesOrBuilder
in interface AnnotateTextResponseOrBuilder
public 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;
getTokensList
in interface AnnotateTextResponseOrBuilder
public 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;
getTokensOrBuilderList
in interface AnnotateTextResponseOrBuilder
public 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;
getTokensCount
in interface AnnotateTextResponseOrBuilder
public 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;
getTokens
in interface AnnotateTextResponseOrBuilder
public 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;
getTokensOrBuilder
in interface AnnotateTextResponseOrBuilder
public 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;
getEntitiesList
in interface AnnotateTextResponseOrBuilder
public 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;
getEntitiesOrBuilderList
in interface AnnotateTextResponseOrBuilder
public 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;
getEntitiesCount
in interface AnnotateTextResponseOrBuilder
public 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;
getEntities
in interface AnnotateTextResponseOrBuilder
public 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;
getEntitiesOrBuilder
in interface AnnotateTextResponseOrBuilder
public 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;
hasDocumentSentiment
in interface AnnotateTextResponseOrBuilder
public 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;
getDocumentSentiment
in interface AnnotateTextResponseOrBuilder
public 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;
getDocumentSentimentOrBuilder
in interface AnnotateTextResponseOrBuilder
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][google.cloud.language.v1beta2.Document.language] field for more details.
string language = 5;
getLanguage
in interface AnnotateTextResponseOrBuilder
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][google.cloud.language.v1beta2.Document.language] field for more details.
string language = 5;
getLanguageBytes
in interface AnnotateTextResponseOrBuilder
public List<ClassificationCategory> getCategoriesList()
Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
getCategoriesList
in interface AnnotateTextResponseOrBuilder
public List<? extends ClassificationCategoryOrBuilder> getCategoriesOrBuilderList()
Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
getCategoriesOrBuilderList
in interface AnnotateTextResponseOrBuilder
public int getCategoriesCount()
Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
getCategoriesCount
in interface AnnotateTextResponseOrBuilder
public ClassificationCategory getCategories(int index)
Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
getCategories
in interface AnnotateTextResponseOrBuilder
public ClassificationCategoryOrBuilder getCategoriesOrBuilder(int index)
Categories identified in the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 6;
getCategoriesOrBuilder
in interface AnnotateTextResponseOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static AnnotateTextResponse parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnnotateTextResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnnotateTextResponse parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnnotateTextResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnnotateTextResponse parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnnotateTextResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnnotateTextResponse parseFrom(InputStream input) throws IOException
IOException
public static AnnotateTextResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static AnnotateTextResponse parseDelimitedFrom(InputStream input) throws IOException
IOException
public static AnnotateTextResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static AnnotateTextResponse parseFrom(CodedInputStream input) throws IOException
IOException
public static AnnotateTextResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public AnnotateTextResponse.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static AnnotateTextResponse.Builder newBuilder()
public static AnnotateTextResponse.Builder newBuilder(AnnotateTextResponse prototype)
public AnnotateTextResponse.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected AnnotateTextResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static AnnotateTextResponse getDefaultInstance()
public static Parser<AnnotateTextResponse> parser()
public Parser<AnnotateTextResponse> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public AnnotateTextResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.