Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AnswerFeedback

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3AnswerFeedback

Returns a new instance of GoogleCloudDialogflowCxV3AnswerFeedback.



610
611
612
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 610

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

Instance Attribute Details

#custom_ratingString

Corresponds to the JSON property customRating

Returns:

  • (String)


598
599
600
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 598

def custom_rating
  @custom_rating
end

#ratingString

Corresponds to the JSON property rating

Returns:

  • (String)


603
604
605
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 603

def rating
  @rating
end

#rating_reasonGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AnswerFeedbackRatingReason

Corresponds to the JSON property ratingReason



608
609
610
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 608

def rating_reason
  @rating_reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



615
616
617
618
619
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 615

def update!(**args)
  @custom_rating = args[:custom_rating] if args.key?(:custom_rating)
  @rating = args[:rating] if args.key?(:rating)
  @rating_reason = args[:rating_reason] if args.key?(:rating_reason)
end