public static final class AnalyzeSentimentResponse.Builder extends GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder> implements AnalyzeSentimentResponseOrBuilder
The sentiment analysis response message.Protobuf type
google.cloud.language.v1beta2.AnalyzeSentimentResponse| Modifier and Type | Method and Description | 
|---|---|
| AnalyzeSentimentResponse.Builder | addAllSentences(java.lang.Iterable<? extends Sentence> values)
 The sentiment for all the sentences in the document. | 
| AnalyzeSentimentResponse.Builder | addRepeatedField(Descriptors.FieldDescriptor field,
                java.lang.Object value) | 
| AnalyzeSentimentResponse.Builder | addSentences(int index,
            Sentence.Builder builderForValue)
 The sentiment for all the sentences in the document. | 
| AnalyzeSentimentResponse.Builder | addSentences(int index,
            Sentence value)
 The sentiment for all the sentences in the document. | 
| AnalyzeSentimentResponse.Builder | addSentences(Sentence.Builder builderForValue)
 The sentiment for all the sentences in the document. | 
| AnalyzeSentimentResponse.Builder | addSentences(Sentence value)
 The sentiment for all the sentences in the document. | 
| Sentence.Builder | addSentencesBuilder()
 The sentiment for all the sentences in the document. | 
| Sentence.Builder | addSentencesBuilder(int index)
 The sentiment for all the sentences in the document. | 
| AnalyzeSentimentResponse | build() | 
| AnalyzeSentimentResponse | buildPartial() | 
| AnalyzeSentimentResponse.Builder | clear() | 
| AnalyzeSentimentResponse.Builder | clearDocumentSentiment()
 The overall sentiment of the input document. | 
| AnalyzeSentimentResponse.Builder | clearField(Descriptors.FieldDescriptor field) | 
| AnalyzeSentimentResponse.Builder | clearLanguage()
 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. | 
| AnalyzeSentimentResponse.Builder | clearOneof(Descriptors.OneofDescriptor oneof) | 
| AnalyzeSentimentResponse.Builder | clearSentences()
 The sentiment for all the sentences in the document. | 
| AnalyzeSentimentResponse.Builder | clone() | 
| AnalyzeSentimentResponse | getDefaultInstanceForType() | 
| static Descriptors.Descriptor | getDescriptor() | 
| Descriptors.Descriptor | getDescriptorForType() | 
| Sentiment | getDocumentSentiment()
 The overall sentiment of the input document. | 
| Sentiment.Builder | getDocumentSentimentBuilder()
 The overall sentiment of the input document. | 
| SentimentOrBuilder | getDocumentSentimentOrBuilder()
 The overall sentiment of 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. | 
| 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. | 
| Sentence | getSentences(int index)
 The sentiment for all the sentences in the document. | 
| Sentence.Builder | getSentencesBuilder(int index)
 The sentiment for all the sentences in the document. | 
| java.util.List<Sentence.Builder> | getSentencesBuilderList()
 The sentiment for all the sentences in the document. | 
| int | getSentencesCount()
 The sentiment for all the sentences in the document. | 
| java.util.List<Sentence> | getSentencesList()
 The sentiment for all the sentences in the document. | 
| SentenceOrBuilder | getSentencesOrBuilder(int index)
 The sentiment for all the sentences in the document. | 
| java.util.List<? extends SentenceOrBuilder> | getSentencesOrBuilderList()
 The sentiment for all the sentences in the document. | 
| boolean | hasDocumentSentiment()
 The overall sentiment of the input document. | 
| protected GeneratedMessageV3.FieldAccessorTable | internalGetFieldAccessorTable() | 
| boolean | isInitialized() | 
| AnalyzeSentimentResponse.Builder | mergeDocumentSentiment(Sentiment value)
 The overall sentiment of the input document. | 
| AnalyzeSentimentResponse.Builder | mergeFrom(AnalyzeSentimentResponse other) | 
| AnalyzeSentimentResponse.Builder | mergeFrom(CodedInputStream input,
         ExtensionRegistryLite extensionRegistry) | 
| AnalyzeSentimentResponse.Builder | mergeFrom(Message other) | 
| AnalyzeSentimentResponse.Builder | mergeUnknownFields(UnknownFieldSet unknownFields) | 
| AnalyzeSentimentResponse.Builder | removeSentences(int index)
 The sentiment for all the sentences in the document. | 
| AnalyzeSentimentResponse.Builder | setDocumentSentiment(Sentiment.Builder builderForValue)
 The overall sentiment of the input document. | 
| AnalyzeSentimentResponse.Builder | setDocumentSentiment(Sentiment value)
 The overall sentiment of the input document. | 
| AnalyzeSentimentResponse.Builder | setField(Descriptors.FieldDescriptor field,
        java.lang.Object value) | 
| AnalyzeSentimentResponse.Builder | setLanguage(java.lang.String value)
 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. | 
| AnalyzeSentimentResponse.Builder | setLanguageBytes(ByteString value)
 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. | 
| AnalyzeSentimentResponse.Builder | setRepeatedField(Descriptors.FieldDescriptor field,
                int index,
                java.lang.Object value) | 
| AnalyzeSentimentResponse.Builder | setSentences(int index,
            Sentence.Builder builderForValue)
 The sentiment for all the sentences in the document. | 
| AnalyzeSentimentResponse.Builder | setSentences(int index,
            Sentence value)
 The sentiment for all the sentences in the document. | 
| AnalyzeSentimentResponse.Builder | setUnknownFields(UnknownFieldSet unknownFields) | 
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>public AnalyzeSentimentResponse.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>public AnalyzeSentimentResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic AnalyzeSentimentResponse build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic AnalyzeSentimentResponse buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic AnalyzeSentimentResponse.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>public AnalyzeSentimentResponse.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>public AnalyzeSentimentResponse.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>public AnalyzeSentimentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>public AnalyzeSentimentResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>public AnalyzeSentimentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>public AnalyzeSentimentResponse.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<AnalyzeSentimentResponse.Builder>public AnalyzeSentimentResponse.Builder mergeFrom(AnalyzeSentimentResponse other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>public AnalyzeSentimentResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<AnalyzeSentimentResponse.Builder>java.io.IOExceptionpublic 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 AnalyzeSentimentResponse.Builder setDocumentSentiment(Sentiment value)
The overall sentiment of the input document.
.google.cloud.language.v1beta2.Sentiment document_sentiment = 1;public AnalyzeSentimentResponse.Builder setDocumentSentiment(Sentiment.Builder builderForValue)
The overall sentiment of the input document.
.google.cloud.language.v1beta2.Sentiment document_sentiment = 1;public AnalyzeSentimentResponse.Builder mergeDocumentSentiment(Sentiment value)
The overall sentiment of the input document.
.google.cloud.language.v1beta2.Sentiment document_sentiment = 1;public AnalyzeSentimentResponse.Builder clearDocumentSentiment()
The overall sentiment of the input document.
.google.cloud.language.v1beta2.Sentiment document_sentiment = 1;public Sentiment.Builder getDocumentSentimentBuilder()
The overall sentiment of the input document.
.google.cloud.language.v1beta2.Sentiment document_sentiment = 1;public 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 AnalyzeSentimentResponse.Builder setLanguage(java.lang.String value)
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;public AnalyzeSentimentResponse.Builder clearLanguage()
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;public AnalyzeSentimentResponse.Builder setLanguageBytes(ByteString value)
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;public 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 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 AnalyzeSentimentResponse.Builder setSentences(int index, Sentence value)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 3;public AnalyzeSentimentResponse.Builder setSentences(int index, Sentence.Builder builderForValue)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 3;public AnalyzeSentimentResponse.Builder addSentences(Sentence value)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 3;public AnalyzeSentimentResponse.Builder addSentences(int index, Sentence value)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 3;public AnalyzeSentimentResponse.Builder addSentences(Sentence.Builder builderForValue)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 3;public AnalyzeSentimentResponse.Builder addSentences(int index, Sentence.Builder builderForValue)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 3;public AnalyzeSentimentResponse.Builder addAllSentences(java.lang.Iterable<? extends Sentence> values)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 3;public AnalyzeSentimentResponse.Builder clearSentences()
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 3;public AnalyzeSentimentResponse.Builder removeSentences(int index)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 3;public Sentence.Builder getSentencesBuilder(int index)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 3;public 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 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 Sentence.Builder addSentencesBuilder()
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 3;public Sentence.Builder addSentencesBuilder(int index)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 3;public java.util.List<Sentence.Builder> getSentencesBuilderList()
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 3;public final AnalyzeSentimentResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>public final AnalyzeSentimentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>