Google Cloud Dialogflow Cx V3 Client - Class SubmitAnswerFeedbackRequest (0.2.1)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class SubmitAnswerFeedbackRequest.

The request to set the feedback for a bot answer.

Generated from protobuf message google.cloud.dialogflow.cx.v3.SubmitAnswerFeedbackRequest

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ session string

Required. The name of the session the feedback was sent to.

↳ response_id string

Required. ID of the response to update its feedback. This is the same as DetectIntentResponse.response_id.

↳ answer_feedback Google\Cloud\Dialogflow\Cx\V3\AnswerFeedback

Required. Feedback provided for a bot answer.

↳ update_mask Google\Protobuf\FieldMask

Optional. The mask to control which fields to update. If the mask is not present, all fields will be updated.

getSession

Required. The name of the session the feedback was sent to.

Returns
TypeDescription
string

setSession

Required. The name of the session the feedback was sent to.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getResponseId

Required. ID of the response to update its feedback. This is the same as DetectIntentResponse.response_id.

Returns
TypeDescription
string

setResponseId

Required. ID of the response to update its feedback. This is the same as DetectIntentResponse.response_id.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAnswerFeedback

Required. Feedback provided for a bot answer.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\AnswerFeedback|null

hasAnswerFeedback

clearAnswerFeedback

setAnswerFeedback

Required. Feedback provided for a bot answer.

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\AnswerFeedback
Returns
TypeDescription
$this

getUpdateMask

Optional. The mask to control which fields to update. If the mask is not present, all fields will be updated.

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Optional. The mask to control which fields to update. If the mask is not present, all fields will be updated.

Parameter
NameDescription
var Google\Protobuf\FieldMask
Returns
TypeDescription
$this