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

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

Message representing a possible answer to the question.

Generated from protobuf message google.cloud.contactcenterinsights.v1.QaQuestion.AnswerChoice

Namespace

Google \ Cloud \ ContactCenterInsights \ V1 \ QaQuestion

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)". If provided, this field may only be set to true. If a question receives this answer, it will be excluded from any score calculations.

↳ key string

A short string used as an identifier.

↳ score float

Numerical score of the answer, used for generating the overall score of a QaScorecardResult. If the answer uses na_value, this field is unused.

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)". If provided, this field may only be set to true. If a question receives this answer, it will be excluded from any score calculations.

Returns
Type Description
bool

hasNaValue

setNaValue

A value of "Not Applicable (N/A)". If provided, this field may only be set to true. If a question receives this answer, it will be excluded from any score calculations.

Parameter
Name Description
var bool
Returns
Type Description
$this

getKey

A short string used as an identifier.

Returns
Type Description
string

setKey

A short string used as an identifier.

Parameter
Name Description
var string
Returns
Type Description
$this

getScore

Numerical score of the answer, used for generating the overall score of a QaScorecardResult. If the answer uses na_value, this field is unused.

Returns
Type Description
float

hasScore

clearScore

setScore

Numerical score of the answer, used for generating the overall score of a QaScorecardResult. If the answer uses na_value, this field is unused.

Parameter
Name Description
var float
Returns
Type Description
$this

getValue

Returns
Type Description
string