Class SentimentData (2.45.0)

public final class SentimentData extends GeneratedMessageV3 implements SentimentDataOrBuilder

The data for a sentiment annotation.

Protobuf type google.cloud.contactcenterinsights.v1.SentimentData

Static 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 SentimentData getDefaultInstance()
Returns
Type Description
SentimentData

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static SentimentData.Builder newBuilder()
Returns
Type Description
SentimentData.Builder

newBuilder(SentimentData prototype)

public static SentimentData.Builder newBuilder(SentimentData prototype)
Parameter
Name Description
prototype SentimentData
Returns
Type Description
SentimentData.Builder

parseDelimitedFrom(InputStream input)

public static SentimentData parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SentimentData
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SentimentData parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SentimentData
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SentimentData parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SentimentData
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SentimentData parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SentimentData
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SentimentData parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SentimentData
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SentimentData parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SentimentData
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SentimentData parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SentimentData
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SentimentData parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SentimentData
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SentimentData parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SentimentData
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SentimentData parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SentimentData
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SentimentData parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SentimentData
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SentimentData parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SentimentData
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SentimentData> parser()
Returns
Type Description
Parser<SentimentData>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public SentimentData getDefaultInstanceForType()
Returns
Type Description
SentimentData

getMagnitude()

public float getMagnitude()

A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score.

float magnitude = 1;

Returns
Type Description
float

The magnitude.

getParserForType()

public Parser<SentimentData> getParserForType()
Returns
Type Description
Parser<SentimentData>
Overrides

getScore()

public float getScore()

The sentiment score between -1.0 (negative) and 1.0 (positive).

float score = 2;

Returns
Type Description
float

The score.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SentimentData.Builder newBuilderForType()
Returns
Type Description
SentimentData.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SentimentData.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SentimentData.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SentimentData.Builder toBuilder()
Returns
Type Description
SentimentData.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException