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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > SentimentImplements
SentimentOrBuilderStatic Fields
MAGNITUDE_FIELD_NUMBER
public static final int MAGNITUDE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
SCORE_FIELD_NUMBER
public static final int SCORE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Sentiment getDefaultInstance()
Returns | |
---|---|
Type | Description |
Sentiment |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static Sentiment.Builder newBuilder()
Returns | |
---|---|
Type | Description |
Sentiment.Builder |
newBuilder(Sentiment prototype)
public static Sentiment.Builder newBuilder(Sentiment prototype)
Parameter | |
---|---|
Name | Description |
prototype | Sentiment |
Returns | |
---|---|
Type | Description |
Sentiment.Builder |
parseDelimitedFrom(InputStream input)
public static Sentiment parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input | InputStream |
Returns | |
---|---|
Type | Description |
Sentiment |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Sentiment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Sentiment |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static Sentiment parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data | byte[] |
Returns | |
---|---|
Type | Description |
Sentiment |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |