Reference documentation and code samples for the Google Cloud Contact Center Insights V1 Client class QaAnswer.
An answer to a QaQuestion.
Generated from protobuf message google.cloud.contactcenterinsights.v1.QaAnswer
Namespace
Google \ Cloud \ ContactCenterInsights \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ qa_question |
string
The QaQuestion answered by this answer. |
↳ conversation |
string
The conversation the answer applies to. |
↳ question_body |
string
Question text. E.g., "Did the agent greet the customer?" |
↳ answer_value |
QaAnswer\AnswerValue
The main answer value, incorporating any manual edits if they exist. |
↳ tags |
array
User-defined list of arbitrary tags. Matches the value from QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and for weighting the score of each answer. |
↳ answer_sources |
array<QaAnswer\AnswerSource>
List of all individual answers given to the question. |
getQaQuestion
The QaQuestion answered by this answer.
| Returns | |
|---|---|
| Type | Description |
string |
|
setQaQuestion
The QaQuestion answered by this answer.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getConversation
The conversation the answer applies to.
| Returns | |
|---|---|
| Type | Description |
string |
|
setConversation
The conversation the answer applies to.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getQuestionBody
Question text. E.g., "Did the agent greet the customer?"
| Returns | |
|---|---|
| Type | Description |
string |
|
setQuestionBody
Question text. E.g., "Did the agent greet the customer?"
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAnswerValue
The main answer value, incorporating any manual edits if they exist.
| Returns | |
|---|---|
| Type | Description |
QaAnswer\AnswerValue|null |
|
hasAnswerValue
clearAnswerValue
setAnswerValue
The main answer value, incorporating any manual edits if they exist.
| Parameter | |
|---|---|
| Name | Description |
var |
QaAnswer\AnswerValue
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTags
User-defined list of arbitrary tags. Matches the value from QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and for weighting the score of each answer.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setTags
User-defined list of arbitrary tags. Matches the value from QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and for weighting the score of each answer.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAnswerSources
List of all individual answers given to the question.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setAnswerSources
List of all individual answers given to the question.
| Parameter | |
|---|---|
| Name | Description |
var |
array<QaAnswer\AnswerSource>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|