Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SubmitAnswerFeedbackRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/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) ⇒ GoogleCloudDialogflowCxV3SubmitAnswerFeedbackRequest

Returns a new instance of GoogleCloudDialogflowCxV3SubmitAnswerFeedbackRequest.



6833
6834
6835
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6833

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

Instance Attribute Details

#answer_feedbackGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AnswerFeedback

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



6819
6820
6821
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6819

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)


6825
6826
6827
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6825

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)


6831
6832
6833
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6831

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6838
6839
6840
6841
6842
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6838

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