public final class AnalyzeSentimentResponse extends GeneratedMessageV3 implements AnalyzeSentimentResponseOrBuilder
The sentiment analysis response message.Protobuf type
google.cloud.language.v1beta2.AnalyzeSentimentResponse| Modifier and Type | Class and Description | 
|---|---|
| static class  | AnalyzeSentimentResponse.Builder
 The sentiment analysis 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| Modifier and Type | Field and Description | 
|---|---|
| static int | DOCUMENT_SENTIMENT_FIELD_NUMBER | 
| static int | LANGUAGE_FIELD_NUMBER | 
| static int | SENTENCES_FIELD_NUMBER | 
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int DOCUMENT_SENTIMENT_FIELD_NUMBER
public static final int LANGUAGE_FIELD_NUMBER
public static final int SENTENCES_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public boolean hasDocumentSentiment()
The overall sentiment of the input document.
.google.cloud.language.v1beta2.Sentiment document_sentiment = 1;hasDocumentSentiment in interface AnalyzeSentimentResponseOrBuilderpublic Sentiment getDocumentSentiment()
The overall sentiment of the input document.
.google.cloud.language.v1beta2.Sentiment document_sentiment = 1;getDocumentSentiment in interface AnalyzeSentimentResponseOrBuilderpublic SentimentOrBuilder getDocumentSentimentOrBuilder()
The overall sentiment of the input document.
.google.cloud.language.v1beta2.Sentiment document_sentiment = 1;getDocumentSentimentOrBuilder in interface AnalyzeSentimentResponseOrBuilderpublic 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.v1beta2.Document.language] field for more details.
string language = 2;getLanguage in interface AnalyzeSentimentResponseOrBuilderpublic 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 = 2;getLanguageBytes in interface AnalyzeSentimentResponseOrBuilderpublic java.util.List<Sentence> getSentencesList()
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 3;getSentencesList in interface AnalyzeSentimentResponseOrBuilderpublic java.util.List<? extends SentenceOrBuilder> getSentencesOrBuilderList()
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 3;getSentencesOrBuilderList in interface AnalyzeSentimentResponseOrBuilderpublic int getSentencesCount()
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 3;getSentencesCount in interface AnalyzeSentimentResponseOrBuilderpublic Sentence getSentences(int index)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 3;getSentences in interface AnalyzeSentimentResponseOrBuilderpublic SentenceOrBuilder getSentencesOrBuilder(int index)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 3;getSentencesOrBuilder in interface AnalyzeSentimentResponseOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static AnalyzeSentimentResponse parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static AnalyzeSentimentResponse parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static AnalyzeSentimentResponse parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static AnalyzeSentimentResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static AnalyzeSentimentResponse parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static AnalyzeSentimentResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static AnalyzeSentimentResponse parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AnalyzeSentimentResponse parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static AnalyzeSentimentResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AnalyzeSentimentResponse parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static AnalyzeSentimentResponse parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AnalyzeSentimentResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic AnalyzeSentimentResponse.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static AnalyzeSentimentResponse.Builder newBuilder()
public static AnalyzeSentimentResponse.Builder newBuilder(AnalyzeSentimentResponse prototype)
public AnalyzeSentimentResponse.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected AnalyzeSentimentResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static AnalyzeSentimentResponse getDefaultInstance()
public static Parser<AnalyzeSentimentResponse> parser()
public Parser<AnalyzeSentimentResponse> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public AnalyzeSentimentResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder