Google Cloud Contact Center Insights V1 Client - Class ScoreSource (2.2.1)

Reference documentation and code samples for the Google Cloud Contact Center Insights V1 Client class ScoreSource.

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.

Generated from protobuf message google.cloud.contactcenterinsights.v1.QaScorecardResult.ScoreSource

Namespace

Google \ Cloud \ ContactCenterInsights \ V1 \ QaScorecardResult

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ source_type int

What created the score.

↳ score float

The overall numerical score of the result.

↳ potential_score float

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

↳ normalized_score float

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

↳ qa_tag_results array<QaTagResult>

Collection of tags and their scores.

getSourceType

What created the score.

Returns
Type Description
int

setSourceType

What created the score.

Parameter
Name Description
var int
Returns
Type Description
$this

getScore

The overall numerical score of the result.

Returns
Type Description
float

hasScore

clearScore

setScore

The overall numerical score of the result.

Parameter
Name Description
var float
Returns
Type Description
$this

getPotentialScore

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

Returns
Type Description
float

hasPotentialScore

clearPotentialScore

setPotentialScore

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

Parameter
Name Description
var float
Returns
Type Description
$this

getNormalizedScore

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

Returns
Type Description
float

hasNormalizedScore

clearNormalizedScore

setNormalizedScore

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

Parameter
Name Description
var float
Returns
Type Description
$this

getQaTagResults

Collection of tags and their scores.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setQaTagResults

Collection of tags and their scores.

Parameter
Name Description
var array<QaTagResult>
Returns
Type Description
$this