public static final class AnalyzeSentimentResponse.Builder extends GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder> implements AnalyzeSentimentResponseOrBuilder
The sentiment analysis response message.Protobuf type
google.cloud.language.v1.AnalyzeSentimentResponse
Modifier and Type | Method and Description |
---|---|
AnalyzeSentimentResponse.Builder |
addAllSentences(Iterable<? extends Sentence> values)
The sentiment for all the sentences in the document.
|
AnalyzeSentimentResponse.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
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.
|
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.
|
List<Sentence.Builder> |
getSentencesBuilderList()
The sentiment for all the sentences in the document.
|
int |
getSentencesCount()
The sentiment for all the sentences in the document.
|
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.
|
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,
Object value) |
AnalyzeSentimentResponse.Builder |
setLanguage(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,
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, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>
public AnalyzeSentimentResponse.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>
public AnalyzeSentimentResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public AnalyzeSentimentResponse build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public AnalyzeSentimentResponse buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public AnalyzeSentimentResponse.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>
public AnalyzeSentimentResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>
public AnalyzeSentimentResponse.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>
public AnalyzeSentimentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>
public AnalyzeSentimentResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>
public AnalyzeSentimentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>
public AnalyzeSentimentResponse.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<AnalyzeSentimentResponse.Builder>
public AnalyzeSentimentResponse.Builder mergeFrom(AnalyzeSentimentResponse other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>
public AnalyzeSentimentResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<AnalyzeSentimentResponse.Builder>
IOException
public boolean hasDocumentSentiment()
The overall sentiment of the input document.
.google.cloud.language.v1.Sentiment document_sentiment = 1;
hasDocumentSentiment
in interface AnalyzeSentimentResponseOrBuilder
public Sentiment getDocumentSentiment()
The overall sentiment of the input document.
.google.cloud.language.v1.Sentiment document_sentiment = 1;
getDocumentSentiment
in interface AnalyzeSentimentResponseOrBuilder
public AnalyzeSentimentResponse.Builder setDocumentSentiment(Sentiment value)
The overall sentiment of the input document.
.google.cloud.language.v1.Sentiment document_sentiment = 1;
public AnalyzeSentimentResponse.Builder setDocumentSentiment(Sentiment.Builder builderForValue)
The overall sentiment of the input document.
.google.cloud.language.v1.Sentiment document_sentiment = 1;
public AnalyzeSentimentResponse.Builder mergeDocumentSentiment(Sentiment value)
The overall sentiment of the input document.
.google.cloud.language.v1.Sentiment document_sentiment = 1;
public AnalyzeSentimentResponse.Builder clearDocumentSentiment()
The overall sentiment of the input document.
.google.cloud.language.v1.Sentiment document_sentiment = 1;
public Sentiment.Builder getDocumentSentimentBuilder()
The overall sentiment of the input document.
.google.cloud.language.v1.Sentiment document_sentiment = 1;
public SentimentOrBuilder getDocumentSentimentOrBuilder()
The overall sentiment of the input document.
.google.cloud.language.v1.Sentiment document_sentiment = 1;
getDocumentSentimentOrBuilder
in interface AnalyzeSentimentResponseOrBuilder
public 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.v1.Document.language] field for more details.
string language = 2;
getLanguage
in interface AnalyzeSentimentResponseOrBuilder
public 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.v1.Document.language] field for more details.
string language = 2;
getLanguageBytes
in interface AnalyzeSentimentResponseOrBuilder
public AnalyzeSentimentResponse.Builder setLanguage(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.v1.Document.language] field for more details.
string language = 2;
value
- The language to set.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.v1.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.v1.Document.language] field for more details.
string language = 2;
value
- The bytes for language to set.public List<Sentence> getSentencesList()
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
getSentencesList
in interface AnalyzeSentimentResponseOrBuilder
public int getSentencesCount()
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
getSentencesCount
in interface AnalyzeSentimentResponseOrBuilder
public Sentence getSentences(int index)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
getSentences
in interface AnalyzeSentimentResponseOrBuilder
public AnalyzeSentimentResponse.Builder setSentences(int index, Sentence value)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.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.v1.Sentence sentences = 3;
public AnalyzeSentimentResponse.Builder addSentences(Sentence value)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
public AnalyzeSentimentResponse.Builder addSentences(int index, Sentence value)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
public AnalyzeSentimentResponse.Builder addSentences(Sentence.Builder builderForValue)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.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.v1.Sentence sentences = 3;
public AnalyzeSentimentResponse.Builder addAllSentences(Iterable<? extends Sentence> values)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
public AnalyzeSentimentResponse.Builder clearSentences()
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
public AnalyzeSentimentResponse.Builder removeSentences(int index)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
public Sentence.Builder getSentencesBuilder(int index)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
public SentenceOrBuilder getSentencesOrBuilder(int index)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
getSentencesOrBuilder
in interface AnalyzeSentimentResponseOrBuilder
public List<? extends SentenceOrBuilder> getSentencesOrBuilderList()
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
getSentencesOrBuilderList
in interface AnalyzeSentimentResponseOrBuilder
public Sentence.Builder addSentencesBuilder()
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
public Sentence.Builder addSentencesBuilder(int index)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
public List<Sentence.Builder> getSentencesBuilderList()
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
public final AnalyzeSentimentResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>
public final AnalyzeSentimentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<AnalyzeSentimentResponse.Builder>
Copyright © 2022 Google LLC. All rights reserved.