Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class AnswerFeedback.
Represents feedback the customer has about the quality & correctness of a certain answer in a conversation.
Generated from protobuf message google.cloud.dialogflow.v2.AnswerFeedback
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ correctness_level |
int
The correctness level of the specific answer. |
↳ agent_assistant_detail_feedback |
Google\Cloud\Dialogflow\V2\AgentAssistantFeedback
Detail feedback of agent assist suggestions. |
↳ clicked |
bool
Indicates whether the answer/item was clicked by the human agent or not. Default to false. |
↳ click_time |
Google\Protobuf\Timestamp
Time when the answer/item was clicked. |
↳ displayed |
bool
Indicates whether the answer/item was displayed to the human agent in the agent desktop UI. Default to false. |
↳ display_time |
Google\Protobuf\Timestamp
Time when the answer/item was displayed. |
getCorrectnessLevel
The correctness level of the specific answer.
Generated from protobuf field .google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel correctness_level = 1;
Returns | |
---|---|
Type | Description |
int |
setCorrectnessLevel
The correctness level of the specific answer.
Generated from protobuf field .google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel correctness_level = 1;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getAgentAssistantDetailFeedback
Detail feedback of agent assist suggestions.
Generated from protobuf field .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2;
Returns | |
---|---|
Type | Description |
Google\Cloud\Dialogflow\V2\AgentAssistantFeedback|null |
hasAgentAssistantDetailFeedback
setAgentAssistantDetailFeedback
Detail feedback of agent assist suggestions.
Generated from protobuf field .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Dialogflow\V2\AgentAssistantFeedback
|
Returns | |
---|---|
Type | Description |
$this |
getClicked
Indicates whether the answer/item was clicked by the human agent or not. Default to false.
Generated from protobuf field bool clicked = 3;
Returns | |
---|---|
Type | Description |
bool |
setClicked
Indicates whether the answer/item was clicked by the human agent or not. Default to false.
Generated from protobuf field bool clicked = 3;
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
getClickTime
Time when the answer/item was clicked.
Generated from protobuf field .google.protobuf.Timestamp click_time = 5;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasClickTime
clearClickTime
setClickTime
Time when the answer/item was clicked.
Generated from protobuf field .google.protobuf.Timestamp click_time = 5;
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getDisplayed
Indicates whether the answer/item was displayed to the human agent in the agent desktop UI. Default to false.
Generated from protobuf field bool displayed = 4;
Returns | |
---|---|
Type | Description |
bool |
setDisplayed
Indicates whether the answer/item was displayed to the human agent in the agent desktop UI. Default to false.
Generated from protobuf field bool displayed = 4;
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
getDisplayTime
Time when the answer/item was displayed.
Generated from protobuf field .google.protobuf.Timestamp display_time = 6;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasDisplayTime
clearDisplayTime
setDisplayTime
Time when the answer/item was displayed.
Generated from protobuf field .google.protobuf.Timestamp display_time = 6;
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getDetailFeedback
Returns | |
---|---|
Type | Description |
string |