Class AnalyzeSentimentResponse.Builder (2.13.0)
Stay organized with collections
Save and categorize content based on your preferences.
- 2.79.0 (latest)
- 2.77.0
- 2.76.0
- 2.75.0
- 2.74.0
- 2.73.0
- 2.71.0
- 2.69.0
- 2.68.0
- 2.65.0
- 2.64.0
- 2.63.0
- 2.61.0
- 2.60.0
- 2.59.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.1
- 2.3.4
- 2.2.0
- 2.1.10
publicstaticfinalclass AnalyzeSentimentResponse.BuilderextendsGeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>implementsAnalyzeSentimentResponseOrBuilderThe sentiment analysis response message.
Protobuf type google.cloud.language.v1.AnalyzeSentimentResponse
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AnalyzeSentimentResponse.BuilderImplements
AnalyzeSentimentResponseOrBuilderInherited Members
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;
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicAnalyzeSentimentResponse.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)addSentences(Sentence value)
publicAnalyzeSentimentResponse.BuilderaddSentences(Sentencevalue)The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
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;
build()
publicAnalyzeSentimentResponsebuild()buildPartial()
publicAnalyzeSentimentResponsebuildPartial()clear()
publicAnalyzeSentimentResponse.Builderclear()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)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;
AnalyzeSentimentResponse.Builder
This builder for chaining.
clearOneof(Descriptors.OneofDescriptor oneof)
publicAnalyzeSentimentResponse.BuilderclearOneof(Descriptors.OneofDescriptoroneof)clearSentences()
publicAnalyzeSentimentResponse.BuilderclearSentences()The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
clone()
publicAnalyzeSentimentResponse.Builderclone()getDefaultInstanceForType()
publicAnalyzeSentimentResponsegetDefaultInstanceForType()getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()getDocumentSentiment()
publicSentimentgetDocumentSentiment()The overall sentiment of the input document.
.google.cloud.language.v1.Sentiment document_sentiment = 1;
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;
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;
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;
getSentencesBuilder(int index)
publicSentence.BuildergetSentencesBuilder(intindex)The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
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;
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;
getSentencesOrBuilderList()
publicList<?extendsSentenceOrBuilder>getSentencesOrBuilderList()The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
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;
boolean
Whether the documentSentiment field is set.
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()isInitialized()
publicfinalbooleanisInitialized()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)mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicAnalyzeSentimentResponse.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)mergeFrom(Message other)
publicAnalyzeSentimentResponse.BuildermergeFrom(Messageother)mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalAnalyzeSentimentResponse.BuildermergeUnknownFields(UnknownFieldSetunknownFields)removeSentences(int index)
publicAnalyzeSentimentResponse.BuilderremoveSentences(intindex)The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
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)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;
AnalyzeSentimentResponse.Builder
This builder for chaining.
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;
AnalyzeSentimentResponse.Builder
This builder for chaining.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicAnalyzeSentimentResponse.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)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)