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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AnalyzeSentimentResponse.BuilderImplements
AnalyzeSentimentResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllSentences(Iterable<? extends Sentence> values)
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;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.language.v1.Sentence> |
Returns | |
---|---|
Type | Description |
AnalyzeSentimentResponse.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AnalyzeSentimentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
AnalyzeSentimentResponse.Builder |
addSentences(Sentence value)
public AnalyzeSentimentResponse.Builder addSentences(Sentence value)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
Parameter | |
---|---|
Name | Description |
value | Sentence |
Returns | |
---|---|
Type | Description |
AnalyzeSentimentResponse.Builder |
addSentences(Sentence.Builder builderForValue)
public AnalyzeSentimentResponse.Builder addSentences(Sentence.Builder builderForValue)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
Parameter | |
---|---|
Name | Description |
builderForValue | Sentence.Builder |
Returns | |
---|---|
Type | Description |
AnalyzeSentimentResponse.Builder |
addSentences(int index, Sentence value)
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;
Parameters | |
---|---|
Name | Description |
index | int |
value | Sentence |
Returns | |
---|---|
Type | Description |
AnalyzeSentimentResponse.Builder |
addSentences(int index, Sentence.Builder builderForValue)
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;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | Sentence.Builder |
Returns | |
---|---|
Type | Description |
AnalyzeSentimentResponse.Builder |
addSentencesBuilder()
public Sentence.Builder addSentencesBuilder()
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
Returns | |
---|---|
Type | Description |
Sentence.Builder |
addSentencesBuilder(int index)
public Sentence.Builder addSentencesBuilder(int index)
The sentiment for all the sentences in the document.
repeated .google.cloud.language.v1.Sentence sentences = 3;
Parameter | |
---|---|
Name | Description |
|