Class QaScorecardResult.ScoreSource (2.54.0)

public static final class QaScorecardResult.ScoreSource extends GeneratedMessageV3 implements QaScorecardResult.ScoreSourceOrBuilder

A scorecard result may have multiple sets of scores from varying sources, one of which becomes the "main" answer above. A ScoreSource represents each individual set of scores.

Protobuf type google.cloud.contactcenterinsights.v1.QaScorecardResult.ScoreSource

Static Fields

NORMALIZED_SCORE_FIELD_NUMBER

public static final int NORMALIZED_SCORE_FIELD_NUMBER
Field Value
Type Description
int

POTENTIAL_SCORE_FIELD_NUMBER

public static final int POTENTIAL_SCORE_FIELD_NUMBER
Field Value
Type Description
int

QA_TAG_RESULTS_FIELD_NUMBER

public static final int QA_TAG_RESULTS_FIELD_NUMBER
Field Value
Type Description
int

SCORE_FIELD_NUMBER

public static final int SCORE_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_TYPE_FIELD_NUMBER

public static final int SOURCE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static QaScorecardResult.ScoreSource getDefaultInstance()
Returns
Type Description
QaScorecardResult.ScoreSource

getDescriptor()

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

newBuilder()

public static QaScorecardResult.ScoreSource.Builder newBuilder()
Returns
Type Description
QaScorecardResult.ScoreSource.Builder

newBuilder(QaScorecardResult.ScoreSource prototype)

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

parseDelimitedFrom(InputStream input)

public static QaScorecardResult.ScoreSource parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
QaScorecardResult.ScoreSource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static QaScorecardResult.ScoreSource parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
QaScorecardResult.ScoreSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static QaScorecardResult.ScoreSource parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
QaScorecardResult.ScoreSource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static QaScorecardResult.ScoreSource parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
QaScorecardResult.ScoreSource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static QaScorecardResult.ScoreSource parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
QaScorecardResult.ScoreSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<QaScorecardResult.ScoreSource> parser()
Returns
Type Description
Parser<ScoreSource>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public QaScorecardResult.ScoreSource getDefaultInstanceForType()
Returns
Type Description
QaScorecardResult.ScoreSource

getNormalizedScore()

public double getNormalizedScore()

The normalized score, which is the score divided by the potential score.

optional double normalized_score = 4;

Returns
Type Description
double

The normalizedScore.

getParserForType()

public Parser<QaScorecardResult.ScoreSource> getParserForType()
Returns
Type Description
Parser<ScoreSource>
Overrides

getPotentialScore()

public double getPotentialScore()

The maximum potential overall score of the scorecard. Any questions answered using na_value are excluded from this calculation.

optional double potential_score = 3;

Returns
Type Description
double

The potentialScore.

getQaTagResults(int index)

public QaScorecardResult.QaTagResult getQaTagResults(int index)

Collection of tags and their scores.

repeated .google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult qa_tag_results = 5;

Parameter
Name Description
index int
Returns
Type Description
QaScorecardResult.QaTagResult

getQaTagResultsCount()

public int getQaTagResultsCount()

Collection of tags and their scores.

repeated .google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult qa_tag_results = 5;

Returns
Type Description
int

getQaTagResultsList()

public List<QaScorecardResult.QaTagResult> getQaTagResultsList()

Collection of tags and their scores.

repeated .google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult qa_tag_results = 5;

Returns
Type Description
List<QaTagResult>

getQaTagResultsOrBuilder(int index)

public QaScorecardResult.QaTagResultOrBuilder getQaTagResultsOrBuilder(int index)

Collection of tags and their scores.

repeated .google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult qa_tag_results = 5;

Parameter
Name Description
index int
Returns
Type Description
QaScorecardResult.QaTagResultOrBuilder

getQaTagResultsOrBuilderList()

public List<? extends QaScorecardResult.QaTagResultOrBuilder> getQaTagResultsOrBuilderList()

Collection of tags and their scores.

repeated .google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult qa_tag_results = 5;

Returns
Type Description
List<? extends com.google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResultOrBuilder>

getScore()

public double getScore()

The overall numerical score of the result.

optional double score = 2;

Returns
Type Description
double

The score.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSourceType()

public QaScorecardResult.ScoreSource.SourceType getSourceType()

What created the score.

.google.cloud.contactcenterinsights.v1.QaScorecardResult.ScoreSource.SourceType source_type = 1;

Returns
Type Description
QaScorecardResult.ScoreSource.SourceType

The sourceType.

getSourceTypeValue()

public int getSourceTypeValue()

What created the score.

.google.cloud.contactcenterinsights.v1.QaScorecardResult.ScoreSource.SourceType source_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for sourceType.

hasNormalizedScore()

public boolean hasNormalizedScore()

The normalized score, which is the score divided by the potential score.

optional double normalized_score = 4;

Returns
Type Description
boolean

Whether the normalizedScore field is set.

hasPotentialScore()

public boolean hasPotentialScore()

The maximum potential overall score of the scorecard. Any questions answered using na_value are excluded from this calculation.

optional double potential_score = 3;

Returns
Type Description
boolean

Whether the potentialScore field is set.

hasScore()

public boolean hasScore()

The overall numerical score of the result.

optional double score = 2;

Returns
Type Description
boolean

Whether the score field is set.

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 QaScorecardResult.ScoreSource.Builder newBuilderForType()
Returns
Type Description
QaScorecardResult.ScoreSource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public QaScorecardResult.ScoreSource.Builder toBuilder()
Returns
Type Description
QaScorecardResult.ScoreSource.Builder

writeTo(CodedOutputStream output)

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