Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SubmitAnswerFeedbackRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb

Overview

The request to set the feedback for a bot answer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1SubmitAnswerFeedbackRequest

Returns a new instance of GoogleCloudDialogflowCxV3beta1SubmitAnswerFeedbackRequest.



10500
10501
10502
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10500

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#answer_feedbackGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AnswerFeedback

Stores information about feedback provided by users about a response. Corresponds to the JSON property answerFeedback



10486
10487
10488
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10486

def answer_feedback
  @answer_feedback
end

#response_idString

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

Returns:

  • (String)


10492
10493
10494
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10492

def response_id
  @response_id
end

#update_maskString

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

Returns:

  • (String)


10498
10499
10500
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10498

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10505
10506
10507
10508
10509
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10505

def update!(**args)
  @answer_feedback = args[:answer_feedback] if args.key?(:answer_feedback)
  @response_id = args[:response_id] if args.key?(:response_id)
  @update_mask = args[:update_mask] if args.key?(:update_mask)
end