Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AnswerFeedback

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1AnswerFeedback

Returns a new instance of GoogleCloudDialogflowCxV3beta1AnswerFeedback.



4287
4288
4289
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4287

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

Instance Attribute Details

#custom_ratingString

Corresponds to the JSON property customRating

Returns:

  • (String)


4275
4276
4277
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4275

def custom_rating
  @custom_rating
end

#ratingString

Corresponds to the JSON property rating

Returns:

  • (String)


4280
4281
4282
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4280

def rating
  @rating
end

#rating_reasonGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AnswerFeedbackRatingReason

Corresponds to the JSON property ratingReason



4285
4286
4287
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4285

def rating_reason
  @rating_reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4292
4293
4294
4295
4296
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4292

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