publicstaticfinalclass AnalyzeSentimentResponse.BuilderextendsGeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>implementsAnalyzeSentimentResponseOrBuilder
The sentiment analysis response message.
Protobuf type google.cloud.language.v1.AnalyzeSentimentResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
Methods
addAllSentences(Iterable<? extends Sentence> values)
publicAnalyzeSentimentResponse.BuilderaddAllSentences(Iterable<?extendsSentence>values)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.cloud.language.v1.Sentence>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicAnalyzeSentimentResponse.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Overrides
addSentences(Sentence value)
publicAnalyzeSentimentResponse.BuilderaddSentences(Sentencevalue)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
| Parameter |
| Name |
Description |
value |
Sentence
|
addSentences(Sentence.Builder builderForValue)
publicAnalyzeSentimentResponse.BuilderaddSentences(Sentence.BuilderbuilderForValue)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
addSentences(int index, Sentence value)
publicAnalyzeSentimentResponse.BuilderaddSentences(intindex,Sentencevalue)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
addSentences(int index, Sentence.Builder builderForValue)
publicAnalyzeSentimentResponse.BuilderaddSentences(intindex,Sentence.BuilderbuilderForValue)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
addSentencesBuilder()
publicSentence.BuilderaddSentencesBuilder()
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
addSentencesBuilder(int index)
publicSentence.BuilderaddSentencesBuilder(intindex)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
| Parameter |
| Name |
Description |
index |
int
|
build()
publicAnalyzeSentimentResponsebuild()
buildPartial()
publicAnalyzeSentimentResponsebuildPartial()
clear()
publicAnalyzeSentimentResponse.Builderclear()
Overrides
clearDocumentSentiment()
publicAnalyzeSentimentResponse.BuilderclearDocumentSentiment()
The overall sentiment of the input document.
.google.cloud.language.v1.Sentiment document_sentiment = 1;
clearField(Descriptors.FieldDescriptor field)
publicAnalyzeSentimentResponse.BuilderclearField(Descriptors.FieldDescriptorfield)
Overrides
clearLanguage()
publicAnalyzeSentimentResponse.BuilderclearLanguage()
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;
clearOneof(Descriptors.OneofDescriptor oneof)
publicAnalyzeSentimentResponse.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Overrides
clearSentences()
publicAnalyzeSentimentResponse.BuilderclearSentences()
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
clone()
publicAnalyzeSentimentResponse.Builderclone()
Overrides
getDefaultInstanceForType()
publicAnalyzeSentimentResponsegetDefaultInstanceForType()
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()
Overrides
getDocumentSentiment()
publicSentimentgetDocumentSentiment()
The overall sentiment of the input document.
.google.cloud.language.v1.Sentiment document_sentiment = 1;
| Returns |
| Type |
Description |
Sentiment |
The documentSentiment.
|
getDocumentSentimentBuilder()
publicSentiment.BuildergetDocumentSentimentBuilder()
The overall sentiment of the input document.
.google.cloud.language.v1.Sentiment document_sentiment = 1;
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.
|
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
|
getSentencesBuilder(int index)
publicSentence.BuildergetSentencesBuilder(intindex)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
| Parameter |
| Name |
Description |
index |
int
|
getSentencesBuilderList()
publicList<Sentence.Builder>getSentencesBuilderList()
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
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> |
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.
|
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
mergeDocumentSentiment(Sentiment value)
publicAnalyzeSentimentResponse.BuildermergeDocumentSentiment(Sentimentvalue)
The overall sentiment of the input document.
.google.cloud.language.v1.Sentiment document_sentiment = 1;
mergeFrom(AnalyzeSentimentResponse other)
publicAnalyzeSentimentResponse.BuildermergeFrom(AnalyzeSentimentResponseother)
publicAnalyzeSentimentResponse.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Overrides
mergeFrom(Message other)
publicAnalyzeSentimentResponse.BuildermergeFrom(Messageother)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalAnalyzeSentimentResponse.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Overrides
removeSentences(int index)
publicAnalyzeSentimentResponse.BuilderremoveSentences(intindex)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
| Parameter |
| Name |
Description |
index |
int
|
setDocumentSentiment(Sentiment value)
publicAnalyzeSentimentResponse.BuildersetDocumentSentiment(Sentimentvalue)
The overall sentiment of the input document.
.google.cloud.language.v1.Sentiment document_sentiment = 1;
setDocumentSentiment(Sentiment.Builder builderForValue)
publicAnalyzeSentimentResponse.BuildersetDocumentSentiment(Sentiment.BuilderbuilderForValue)
The overall sentiment of the input document.
.google.cloud.language.v1.Sentiment document_sentiment = 1;
setField(Descriptors.FieldDescriptor field, Object value)
publicAnalyzeSentimentResponse.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Overrides
setLanguage(String value)
publicAnalyzeSentimentResponse.BuildersetLanguage(Stringvalue)
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;
| Parameter |
| Name |
Description |
value |
String
The language to set.
|
setLanguageBytes(ByteString value)
publicAnalyzeSentimentResponse.BuildersetLanguageBytes(ByteStringvalue)
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;
| Parameter |
| Name |
Description |
value |
ByteString
The bytes for language to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicAnalyzeSentimentResponse.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Overrides
setSentences(int index, Sentence value)
publicAnalyzeSentimentResponse.BuildersetSentences(intindex,Sentencevalue)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
setSentences(int index, Sentence.Builder builderForValue)
publicAnalyzeSentimentResponse.BuildersetSentences(intindex,Sentence.BuilderbuilderForValue)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalAnalyzeSentimentResponse.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Overrides