public final class AnnotateTextResponse extends com.google.protobuf.GeneratedMessageV3 implements AnnotateTextResponseOrBuilder
The text annotations response message.Protobuf type
google.cloud.language.v1.AnnotateTextResponse| Modifier and Type | Class and Description |
|---|---|
static class |
AnnotateTextResponse.Builder
The text annotations response message.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
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 |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static AnnotateTextResponse |
getDefaultInstance() |
AnnotateTextResponse |
getDefaultInstanceForType() |
static com.google.protobuf.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.
|
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.
|
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.
|
com.google.protobuf.Parser<AnnotateTextResponse> |
getParserForType() |
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.
|
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.
|
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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasDocumentSentiment()
The overall sentiment for the document.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AnnotateTextResponse.Builder |
newBuilder() |
static AnnotateTextResponse.Builder |
newBuilder(AnnotateTextResponse prototype) |
AnnotateTextResponse.Builder |
newBuilderForType() |
protected AnnotateTextResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static AnnotateTextResponse |
parseDelimitedFrom(java.io.InputStream input) |
static AnnotateTextResponse |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnnotateTextResponse |
parseFrom(byte[] data) |
static AnnotateTextResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnnotateTextResponse |
parseFrom(java.nio.ByteBuffer data) |
static AnnotateTextResponse |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnnotateTextResponse |
parseFrom(com.google.protobuf.ByteString data) |
static AnnotateTextResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnnotateTextResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AnnotateTextResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnnotateTextResponse |
parseFrom(java.io.InputStream input) |
static AnnotateTextResponse |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AnnotateTextResponse> |
parser() |
AnnotateTextResponse.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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 final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public java.util.List<Sentence> 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;getSentencesList in interface AnnotateTextResponseOrBuilderpublic java.util.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;getSentencesOrBuilderList in interface AnnotateTextResponseOrBuilderpublic 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;getSentencesCount in interface AnnotateTextResponseOrBuilderpublic Sentence getSentences(int index)
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 in interface AnnotateTextResponseOrBuilderpublic SentenceOrBuilder getSentencesOrBuilder(int index)
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 in interface AnnotateTextResponseOrBuilderpublic 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.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2;getTokensList in interface AnnotateTextResponseOrBuilderpublic 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.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2;getTokensOrBuilderList in interface AnnotateTextResponseOrBuilderpublic 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;getTokensCount in interface AnnotateTextResponseOrBuilderpublic 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.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2;getTokens in interface AnnotateTextResponseOrBuilderpublic 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.v1.AnnotateTextRequest.Features.extract_syntax].
repeated .google.cloud.language.v1.Token tokens = 2;getTokensOrBuilder in interface AnnotateTextResponseOrBuilderpublic 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.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3;getEntitiesList in interface AnnotateTextResponseOrBuilderpublic 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.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3;getEntitiesOrBuilderList in interface AnnotateTextResponseOrBuilderpublic 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;getEntitiesCount in interface AnnotateTextResponseOrBuilderpublic 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.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3;getEntities in interface AnnotateTextResponseOrBuilderpublic 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.v1.AnnotateTextRequest.Features.extract_entities].
repeated .google.cloud.language.v1.Entity entities = 3;getEntitiesOrBuilder in interface AnnotateTextResponseOrBuilderpublic 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;hasDocumentSentiment in interface AnnotateTextResponseOrBuilderpublic 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;getDocumentSentiment in interface AnnotateTextResponseOrBuilderpublic 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;getDocumentSentimentOrBuilder in interface AnnotateTextResponseOrBuilderpublic 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.v1.Document.language] field for more details.
string language = 5;getLanguage in interface AnnotateTextResponseOrBuilderpublic 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;getLanguageBytes in interface AnnotateTextResponseOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AnnotateTextResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnnotateTextResponse parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnnotateTextResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnnotateTextResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnnotateTextResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnnotateTextResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnnotateTextResponse parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AnnotateTextResponse parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static AnnotateTextResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AnnotateTextResponse parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static AnnotateTextResponse parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AnnotateTextResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic AnnotateTextResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AnnotateTextResponse.Builder newBuilder()
public static AnnotateTextResponse.Builder newBuilder(AnnotateTextResponse prototype)
public AnnotateTextResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AnnotateTextResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AnnotateTextResponse getDefaultInstance()
public static com.google.protobuf.Parser<AnnotateTextResponse> parser()
public com.google.protobuf.Parser<AnnotateTextResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AnnotateTextResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder