Class ConversationLevelSentiment (2.23.0)

public final class ConversationLevelSentiment extends GeneratedMessageV3 implements ConversationLevelSentimentOrBuilder

One channel of conversation-level sentiment data.

Protobuf type google.cloud.contactcenterinsights.v1.ConversationLevelSentiment

Static Fields

CHANNEL_TAG_FIELD_NUMBER

public static final int CHANNEL_TAG_FIELD_NUMBER
Field Value
TypeDescription
int

SENTIMENT_DATA_FIELD_NUMBER

public static final int SENTIMENT_DATA_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ConversationLevelSentiment getDefaultInstance()
Returns
TypeDescription
ConversationLevelSentiment

getDescriptor()

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

newBuilder()

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

newBuilder(ConversationLevelSentiment prototype)

public static ConversationLevelSentiment.Builder newBuilder(ConversationLevelSentiment prototype)
Parameter
NameDescription
prototypeConversationLevelSentiment
Returns
TypeDescription
ConversationLevelSentiment.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ConversationLevelSentiment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationLevelSentiment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ConversationLevelSentiment parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ConversationLevelSentiment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ConversationLevelSentiment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationLevelSentiment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ConversationLevelSentiment parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ConversationLevelSentiment
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ConversationLevelSentiment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationLevelSentiment
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ConversationLevelSentiment parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConversationLevelSentiment
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ConversationLevelSentiment parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ConversationLevelSentiment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ConversationLevelSentiment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationLevelSentiment
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ConversationLevelSentiment> parser()
Returns
TypeDescription
Parser<ConversationLevelSentiment>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getChannelTag()

public int getChannelTag()

The channel of the audio that the data applies to.

int32 channel_tag = 1;

Returns
TypeDescription
int

The channelTag.

getDefaultInstanceForType()

public ConversationLevelSentiment getDefaultInstanceForType()
Returns
TypeDescription
ConversationLevelSentiment

getParserForType()

public Parser<ConversationLevelSentiment> getParserForType()
Returns
TypeDescription
Parser<ConversationLevelSentiment>
Overrides

getSentimentData()

public SentimentData getSentimentData()

Data specifying sentiment.

.google.cloud.contactcenterinsights.v1.SentimentData sentiment_data = 2;

Returns
TypeDescription
SentimentData

The sentimentData.

getSentimentDataOrBuilder()

public SentimentDataOrBuilder getSentimentDataOrBuilder()

Data specifying sentiment.

.google.cloud.contactcenterinsights.v1.SentimentData sentiment_data = 2;

Returns
TypeDescription
SentimentDataOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasSentimentData()

public boolean hasSentimentData()

Data specifying sentiment.

.google.cloud.contactcenterinsights.v1.SentimentData sentiment_data = 2;

Returns
TypeDescription
boolean

Whether the sentimentData field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ConversationLevelSentiment.Builder newBuilderForType()
Returns
TypeDescription
ConversationLevelSentiment.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ConversationLevelSentiment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ConversationLevelSentiment.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ConversationLevelSentiment.Builder toBuilder()
Returns
TypeDescription
ConversationLevelSentiment.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException