Class Sentiment (2.25.0)

public final class Sentiment extends GeneratedMessageV3 implements SentimentOrBuilder

Represents the feeling associated with the entire text or entities in the text.

Protobuf type google.cloud.language.v1.Sentiment

Implements

SentimentOrBuilder

Static Fields

MAGNITUDE_FIELD_NUMBER

public static final int MAGNITUDE_FIELD_NUMBER
Field Value
TypeDescription
int

SCORE_FIELD_NUMBER

public static final int SCORE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Sentiment getDefaultInstance()
Returns
TypeDescription
Sentiment

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Sentiment.Builder newBuilder()
Returns
TypeDescription
Sentiment.Builder

newBuilder(Sentiment prototype)

public static Sentiment.Builder newBuilder(Sentiment prototype)
Parameter
NameDescription
prototypeSentiment
Returns
TypeDescription
Sentiment.Builder

parseDelimitedFrom(InputStream input)

public static Sentiment parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Sentiment
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Sentiment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Sentiment
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Sentiment parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Sentiment
Exceptions
TypeDescription
InvalidProtocolBufferException