AnalyzeSentimentResponse class final
The sentiment analysis response message.
- Inheritance
-
- Object
- ProtoMessage
- AnalyzeSentimentResponse
Constructors
-
AnalyzeSentimentResponse({Sentiment? documentSentiment, String languageCode = '', List<
Sentence> sentences = const [], bool languageSupported = false}) - AnalyzeSentimentResponse.fromJson(Object? j)
-
factory
Properties
- documentSentiment → Sentiment?
-
The overall sentiment of the input document.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- languageCode → String
-
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.languagefield for more details.final - languageSupported → bool
-
Whether the language is officially supported. The API may still return a
response when the language is not supported, but it is on a best effort
basis.
final
- qualifiedName → String
-
The fully qualified name of this message, i.e.,
google.protobuf.Durationorgoogle.rpc.ErrorInfo.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sentences
→ List<
Sentence> -
The sentiment for all the sentences in the document.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Object -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- fullyQualifiedName → const String