Package | Description |
---|---|
com.google.cloud.language.v1beta2 |
A client to Cloud Natural Language API
|
Modifier and Type | Method and Description |
---|---|
Sentiment.Builder |
Sentiment.Builder.addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
Sentiment.Builder |
Sentiment.Builder.clear() |
Sentiment.Builder |
Sentiment.Builder.clearField(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(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 |
AnnotateTextResponse.Builder.getDocumentSentimentBuilder()
The overall sentiment for the document.
|
Sentiment.Builder |
AnalyzeSentimentResponse.Builder.getDocumentSentimentBuilder()
The overall sentiment of the input document.
|
Sentiment.Builder |
EntityMention.Builder.getSentimentBuilder()
For calls to [AnalyzeEntitySentiment][] or if
[AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v1beta2.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.v1beta2.AnnotateTextRequest.Features.extract_document_sentiment] is set to
true, this field will contain the sentiment for the sentence.
|
Sentiment.Builder |
Entity.Builder.getSentimentBuilder()
For calls to [AnalyzeEntitySentiment][] or if
[AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v1beta2.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 |
Sentiment.Builder.mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Sentiment.Builder |
Sentiment.Builder.mergeFrom(Message other) |
Sentiment.Builder |
Sentiment.Builder.mergeFrom(Sentiment other) |
Sentiment.Builder |
Sentiment.Builder.mergeUnknownFields(UnknownFieldSet unknownFields) |
static Sentiment.Builder |
Sentiment.newBuilder() |
static Sentiment.Builder |
Sentiment.newBuilder(Sentiment prototype) |
Sentiment.Builder |
Sentiment.newBuilderForType() |
protected Sentiment.Builder |
Sentiment.newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
Sentiment.Builder |
Sentiment.Builder.setField(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(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(UnknownFieldSet unknownFields) |
Sentiment.Builder |
Sentiment.toBuilder() |
Modifier and Type | Method and Description |
---|---|
AnnotateTextResponse.Builder |
AnnotateTextResponse.Builder.setDocumentSentiment(Sentiment.Builder builderForValue)
The overall sentiment for the document.
|
AnalyzeSentimentResponse.Builder |
AnalyzeSentimentResponse.Builder.setDocumentSentiment(Sentiment.Builder builderForValue)
The overall sentiment of the input document.
|
EntityMention.Builder |
EntityMention.Builder.setSentiment(Sentiment.Builder builderForValue)
For calls to [AnalyzeEntitySentiment][] or if
[AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v1beta2.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.v1beta2.AnnotateTextRequest.Features.extract_document_sentiment] is set to
true, this field will contain the sentiment for the sentence.
|
Entity.Builder |
Entity.Builder.setSentiment(Sentiment.Builder builderForValue)
For calls to [AnalyzeEntitySentiment][] or if
[AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_entity_sentiment] is set to
true, this field will contain the aggregate sentiment expressed for this
entity in the provided document.
|
Copyright © 2022 Google LLC. All rights reserved.