Google Cloud Contact Center Insights V1 Client - Class AnswerValue (2.2.0)

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

Message for holding the value of a QaAnswer.

QaQuestion.AnswerChoice defines the possible answer values for a question.

Generated from protobuf message google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue

Namespace

Google \ Cloud \ ContactCenterInsights \ V1 \ QaAnswer

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ str_value string

String value.

↳ num_value float

Numerical value.

↳ bool_value bool

Boolean value.

↳ na_value bool

A value of "Not Applicable (N/A)". Should only ever be true.

↳ key string

A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.

↳ score float

Output only. Numerical score of the answer.

↳ potential_score float

Output only. The maximum potential score of the question.

↳ normalized_score float

Output only. Normalized score of the questions. Calculated as score / potential_score.

getStrValue

String value.

Returns
Type Description
string

hasStrValue

setStrValue

String value.

Parameter
Name Description
var string
Returns
Type Description
$this

getNumValue

Numerical value.

Returns
Type Description
float

hasNumValue

setNumValue

Numerical value.

Parameter
Name Description
var float
Returns
Type Description
$this

getBoolValue

Boolean value.

Returns
Type Description
bool

hasBoolValue

setBoolValue

Boolean value.

Parameter
Name Description
var bool
Returns
Type Description
$this

getNaValue

A value of "Not Applicable (N/A)". Should only ever be true.

Returns
Type Description
bool

hasNaValue

setNaValue

A value of "Not Applicable (N/A)". Should only ever be true.

Parameter
Name Description
var bool
Returns
Type Description
$this

getKey

A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.

Returns
Type Description
string

setKey

A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.

Parameter
Name Description
var string
Returns
Type Description
$this

getScore

Output only. Numerical score of the answer.

Returns
Type Description
float

hasScore

clearScore

setScore

Output only. Numerical score of the answer.

Parameter
Name Description
var float
Returns
Type Description
$this

getPotentialScore

Output only. The maximum potential score of the question.

Returns
Type Description
float

hasPotentialScore

clearPotentialScore

setPotentialScore

Output only. The maximum potential score of the question.

Parameter
Name Description
var float
Returns
Type Description
$this

getNormalizedScore

Output only. Normalized score of the questions. Calculated as score / potential_score.

Returns
Type Description
float

hasNormalizedScore

clearNormalizedScore

setNormalizedScore

Output only. Normalized score of the questions. Calculated as score / potential_score.

Parameter
Name Description
var float
Returns
Type Description
$this

getValue

Returns
Type Description
string