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

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

A question may have multiple answers from varying sources, one of which becomes the "main" answer above. AnswerSource represents each individual answer.

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

Namespace

Google \ Cloud \ ContactCenterInsights \ V1 \ QaAnswer

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ source_type int

What created the answer.

↳ answer_value AnswerValue

The answer value from this source.

getSourceType

What created the answer.

Returns
Type Description
int

setSourceType

What created the answer.

Parameter
Name Description
var int
Returns
Type Description
$this

getAnswerValue

The answer value from this source.

Returns
Type Description
AnswerValue|null

hasAnswerValue

clearAnswerValue

setAnswerValue

The answer value from this source.

Parameter
Name Description
var AnswerValue
Returns
Type Description
$this