Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource
- Inherits:
-
Object
- Object
- Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/contactcenterinsights_v1/classes.rb,
lib/google/apis/contactcenterinsights_v1/representations.rb,
lib/google/apis/contactcenterinsights_v1/representations.rb
Overview
A question may have multiple answers from varying sources, one of which becomes the "main" answer above. AnswerSource represents each individual answer.
Instance Attribute Summary collapse
-
#answer_value ⇒ Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue
Message for holding the value of the answer.
-
#source_type ⇒ String
What created the answer.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource
constructor
A new instance of GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource
Returns a new instance of GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource.
4124 4125 4126 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4124 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer_value ⇒ Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue
Message for holding the value of the answer. QaQuestion.AnswerChoice defines
the possible answer values for a question.
Corresponds to the JSON property answerValue
4117 4118 4119 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4117 def answer_value @answer_value end |
#source_type ⇒ String
What created the answer.
Corresponds to the JSON property sourceType
4122 4123 4124 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4122 def source_type @source_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4129 4130 4131 4132 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4129 def update!(**args) @answer_value = args[:answer_value] if args.key?(:answer_value) @source_type = args[:source_type] if args.key?(:source_type) end |