publicfinalclass AnalyzeSentimentResponseextendsGeneratedMessageV3implementsAnalyzeSentimentResponseOrBuilder
The sentiment analysis response message.
Protobuf type google.cloud.language.v1.AnalyzeSentimentResponse
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>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
DOCUMENT_SENTIMENT_FIELD_NUMBER
publicstaticfinalintDOCUMENT_SENTIMENT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
LANGUAGE_FIELD_NUMBER
publicstaticfinalintLANGUAGE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SENTENCES_FIELD_NUMBER
publicstaticfinalintSENTENCES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticAnalyzeSentimentResponsegetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticAnalyzeSentimentResponse.BuildernewBuilder()
newBuilder(AnalyzeSentimentResponse prototype)
publicstaticAnalyzeSentimentResponse.BuildernewBuilder(AnalyzeSentimentResponseprototype)
publicstaticAnalyzeSentimentResponseparseDelimitedFrom(InputStreaminput)
publicstaticAnalyzeSentimentResponseparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticAnalyzeSentimentResponseparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticAnalyzeSentimentResponseparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticAnalyzeSentimentResponseparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticAnalyzeSentimentResponseparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticAnalyzeSentimentResponseparseFrom(CodedInputStreaminput)
publicstaticAnalyzeSentimentResponseparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticAnalyzeSentimentResponseparseFrom(InputStreaminput)
publicstaticAnalyzeSentimentResponseparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticAnalyzeSentimentResponseparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticAnalyzeSentimentResponseparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<AnalyzeSentimentResponse>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
publicAnalyzeSentimentResponsegetDefaultInstanceForType()
getDocumentSentiment()
publicSentimentgetDocumentSentiment()
The overall sentiment of the input document.
.google.cloud.language.v1.Sentiment document_sentiment = 1;
| Returns |
| Type |
Description |
Sentiment |
The documentSentiment.
|
getDocumentSentimentOrBuilder()
publicSentimentOrBuildergetDocumentSentimentOrBuilder()
The overall sentiment of the input document.
.google.cloud.language.v1.Sentiment document_sentiment = 1;
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 = 2;
| 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 = 2;
| Returns |
| Type |
Description |
ByteString |
The bytes for language.
|
getParserForType()
publicParser<AnalyzeSentimentResponse>getParserForType()
Overrides
getSentences(int index)
publicSentencegetSentences(intindex)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
| Parameter |
| Name |
Description |
index |
int
|
getSentencesCount()
publicintgetSentencesCount()
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
| Returns |
| Type |
Description |
int |
getSentencesList()
publicList<Sentence>getSentencesList()
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
getSentencesOrBuilder(int index)
publicSentenceOrBuildergetSentencesOrBuilder(intindex)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
| Parameter |
| Name |
Description |
index |
int
|
getSentencesOrBuilderList()
publicList<?extendsSentenceOrBuilder>getSentencesOrBuilderList()
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
| Returns |
| Type |
Description |
List<? extends com.google.cloud.language.v1.SentenceOrBuilder> |
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
hasDocumentSentiment()
publicbooleanhasDocumentSentiment()
The overall sentiment of the input document.
.google.cloud.language.v1.Sentiment document_sentiment = 1;
| Returns |
| Type |
Description |
boolean |
Whether the documentSentiment field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicAnalyzeSentimentResponse.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedAnalyzeSentimentResponse.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicAnalyzeSentimentResponse.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides