Reference documentation and code samples for the Google Cloud Contact Center Insights V1 Client class QaQuestion.
A single question to be scored by the Insights QA feature.
Generated from protobuf message google.cloud.contactcenterinsights.v1.QaQuestion
Namespace
Google \ Cloud \ ContactCenterInsights \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Identifier. The resource name of the question. Format: projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_question}
↳ abbreviation
string
Short, descriptive string, used in the UI where it's not practical to display the full question body. E.g., "Greeting".
↳ create_time
↳ update_time
↳ question_body
string
Question text. E.g., "Did the agent greet the customer?"
↳ answer_instructions
string
Instructions describing how to determine the answer.
↳ answer_choices
array< QaQuestion\AnswerChoice
>
A list of valid answers to the question, which the LLM must choose from.
↳ tags
array
User-defined list of arbitrary tags for the question. Used for grouping/organization and for weighting the score of each question.
↳ order
int
Defines the order of the question within its parent scorecard revision.
↳ metrics
QaQuestion\Metrics
Metrics of the underlying tuned LLM over a holdout/test set while fine tuning the underlying LLM for the given question. This field will only be populated if and only if the question is part of a scorecard revision that has been tuned.
↳ tuning_metadata
QaQuestion\TuningMetadata
Metadata about the tuning operation for the question.This field will only be populated if and only if the question is part of a scorecard revision that has been tuned.
getName
Identifier. The resource name of the question.
Format: projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_question}
string
setName
Identifier. The resource name of the question.
Format: projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_question}
var
string
$this
getAbbreviation
Short, descriptive string, used in the UI where it's not practical to display the full question body. E.g., "Greeting".
string
setAbbreviation
Short, descriptive string, used in the UI where it's not practical to display the full question body. E.g., "Greeting".
var
string
$this
getCreateTime
Output only. The time at which this question was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The time at which this question was created.
$this
getUpdateTime
Output only. The most recent time at which the question was updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The most recent time at which the question was updated.
$this
getQuestionBody
Question text. E.g., "Did the agent greet the customer?"
string
setQuestionBody
Question text. E.g., "Did the agent greet the customer?"
var
string
$this
getAnswerInstructions
Instructions describing how to determine the answer.
string
setAnswerInstructions
Instructions describing how to determine the answer.
var
string
$this
getAnswerChoices
A list of valid answers to the question, which the LLM must choose from.
setAnswerChoices
A list of valid answers to the question, which the LLM must choose from.
$this
getTags
User-defined list of arbitrary tags for the question. Used for grouping/organization and for weighting the score of each question.
setTags
User-defined list of arbitrary tags for the question. Used for grouping/organization and for weighting the score of each question.
var
string[]
$this
getOrder
Defines the order of the question within its parent scorecard revision.
int
setOrder
Defines the order of the question within its parent scorecard revision.
var
int
$this
getMetrics
Metrics of the underlying tuned LLM over a holdout/test set while fine tuning the underlying LLM for the given question. This field will only be populated if and only if the question is part of a scorecard revision that has been tuned.
hasMetrics
clearMetrics
setMetrics
Metrics of the underlying tuned LLM over a holdout/test set while fine tuning the underlying LLM for the given question. This field will only be populated if and only if the question is part of a scorecard revision that has been tuned.
$this
getTuningMetadata
Metadata about the tuning operation for the question.This field will only be populated if and only if the question is part of a scorecard revision that has been tuned.
hasTuningMetadata
clearTuningMetadata
setTuningMetadata
Metadata about the tuning operation for the question.This field will only be populated if and only if the question is part of a scorecard revision that has been tuned.
$this