| Modifier and Type | Method and Description |
|---|---|
Sentiment.Builder |
Sentiment.Builder.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Sentiment.Builder |
Sentiment.Builder.clear() |
Sentiment.Builder |
Sentiment.Builder.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Sentiment.Builder |
Sentiment.Builder.clearMagnitude()
A non-negative number in the [0, +inf) range, which represents
the absolute magnitude of sentiment regardless of score (positive or
negative).
|
Sentiment.Builder |
Sentiment.Builder.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Sentiment.Builder |
Sentiment.Builder.clearScore()
Sentiment score between -1.0 (negative sentiment) and 1.0
(positive sentiment).
|
Sentiment.Builder |
Sentiment.Builder.clone() |
Sentiment.Builder |
AnalyzeSentimentResponse.Builder.getDocumentSentimentBuilder()
The overall sentiment of the input document.
|
Sentiment.Builder |
AnnotateTextResponse.Builder.getDocumentSentimentBuilder()
The overall sentiment for the document.
|
Sentiment.Builder |
Entity.Builder.getSentimentBuilder()
For calls to [AnalyzeEntitySentiment][] or if
[AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entity_sentiment] is set to
true, this field will contain the aggregate sentiment expressed for this
entity in the provided document.
|
Sentiment.Builder |
EntityMention.Builder.getSentimentBuilder()
For calls to [AnalyzeEntitySentiment][] or if
[AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entity_sentiment] is set to
true, this field will contain the sentiment expressed for this mention of
the entity in the provided document.
|
Sentiment.Builder |
Sentence.Builder.getSentimentBuilder()
For calls to [AnalyzeSentiment][] or if
[AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment] is set to
true, this field will contain the sentiment for the sentence.
|
Sentiment.Builder |
Sentiment.Builder.mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Sentiment.Builder |
Sentiment.Builder.mergeFrom(com.google.protobuf.Message other) |
Sentiment.Builder |
Sentiment.Builder.mergeFrom(Sentiment other) |
Sentiment.Builder |
Sentiment.Builder.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
static Sentiment.Builder |
Sentiment.newBuilder() |
static Sentiment.Builder |
Sentiment.newBuilder(Sentiment prototype) |
Sentiment.Builder |
Sentiment.newBuilderForType() |
protected Sentiment.Builder |
Sentiment.newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
Sentiment.Builder |
Sentiment.Builder.setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Sentiment.Builder |
Sentiment.Builder.setMagnitude(float value)
A non-negative number in the [0, +inf) range, which represents
the absolute magnitude of sentiment regardless of score (positive or
negative).
|
Sentiment.Builder |
Sentiment.Builder.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Sentiment.Builder |
Sentiment.Builder.setScore(float value)
Sentiment score between -1.0 (negative sentiment) and 1.0
(positive sentiment).
|
Sentiment.Builder |
Sentiment.Builder.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Sentiment.Builder |
Sentiment.toBuilder() |
| Modifier and Type | Method and Description |
|---|---|
AnalyzeSentimentResponse.Builder |
AnalyzeSentimentResponse.Builder.setDocumentSentiment(Sentiment.Builder builderForValue)
The overall sentiment of the input document.
|
AnnotateTextResponse.Builder |
AnnotateTextResponse.Builder.setDocumentSentiment(Sentiment.Builder builderForValue)
The overall sentiment for the document.
|
Entity.Builder |
Entity.Builder.setSentiment(Sentiment.Builder builderForValue)
For calls to [AnalyzeEntitySentiment][] or if
[AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entity_sentiment] is set to
true, this field will contain the aggregate sentiment expressed for this
entity in the provided document.
|
EntityMention.Builder |
EntityMention.Builder.setSentiment(Sentiment.Builder builderForValue)
For calls to [AnalyzeEntitySentiment][] or if
[AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entity_sentiment] is set to
true, this field will contain the sentiment expressed for this mention of
the entity in the provided document.
|
Sentence.Builder |
Sentence.Builder.setSentiment(Sentiment.Builder builderForValue)
For calls to [AnalyzeSentiment][] or if
[AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment] is set to
true, this field will contain the sentiment for the sentence.
|
Copyright © 2018 Google LLC. All rights reserved.