GoogleCloudContactcenterinsightsV1alpha1QaAnswer.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. namespace Google\Service\Contactcenterinsights;
  18. class GoogleCloudContactcenterinsightsV1alpha1QaAnswer extends \Google\Collection
  19. {
  20. protected $collection_key = 'tags';
  21. protected $answerSourcesType = GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource::class;
  22. protected $answerSourcesDataType = 'array';
  23. protected $answerValueType = GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue::class;
  24. protected $answerValueDataType = '';
  25. /**
  26. * The conversation the answer applies to.
  27. *
  28. * @var string
  29. */
  30. public $conversation;
  31. /**
  32. * The QaQuestion answered by this answer.
  33. *
  34. * @var string
  35. */
  36. public $qaQuestion;
  37. /**
  38. * Question text. E.g., "Did the agent greet the customer?"
  39. *
  40. * @var string
  41. */
  42. public $questionBody;
  43. /**
  44. * User-defined list of arbitrary tags. Matches the value from
  45. * QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and for
  46. * weighting the score of each answer.
  47. *
  48. * @var string[]
  49. */
  50. public $tags;
  51. /**
  52. * Lists all answer sources containing one or more answer values of a specific
  53. * source type, e.g., all system-generated answer sources, or all manual edit
  54. * answer sources.
  55. *
  56. * @param GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource[] $answerSources
  57. */
  58. public function setAnswerSources($answerSources)
  59. {
  60. $this->answerSources = $answerSources;
  61. }
  62. /**
  63. * @return GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource[]
  64. */
  65. public function getAnswerSources()
  66. {
  67. return $this->answerSources;
  68. }
  69. /**
  70. * The answer value from this source. This field is populated by default,
  71. * unless the question has a selection strategy configured to return multiple
  72. * answer values, in which case `answer_values` will be populated instead.
  73. *
  74. * @param GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue $answerValue
  75. */
  76. public function setAnswerValue(GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue $answerValue)
  77. {
  78. $this->answerValue = $answerValue;
  79. }
  80. /**
  81. * @return GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue
  82. */
  83. public function getAnswerValue()
  84. {
  85. return $this->answerValue;
  86. }
  87. /**
  88. * The conversation the answer applies to.
  89. *
  90. * @param string $conversation
  91. */
  92. public function setConversation($conversation)
  93. {
  94. $this->conversation = $conversation;
  95. }
  96. /**
  97. * @return string
  98. */
  99. public function getConversation()
  100. {
  101. return $this->conversation;
  102. }
  103. /**
  104. * The QaQuestion answered by this answer.
  105. *
  106. * @param string $qaQuestion
  107. */
  108. public function setQaQuestion($qaQuestion)
  109. {
  110. $this->qaQuestion = $qaQuestion;
  111. }
  112. /**
  113. * @return string
  114. */
  115. public function getQaQuestion()
  116. {
  117. return $this->qaQuestion;
  118. }
  119. /**
  120. * Question text. E.g., "Did the agent greet the customer?"
  121. *
  122. * @param string $questionBody
  123. */
  124. public function setQuestionBody($questionBody)
  125. {
  126. $this->questionBody = $questionBody;
  127. }
  128. /**
  129. * @return string
  130. */
  131. public function getQuestionBody()
  132. {
  133. return $this->questionBody;
  134. }
  135. /**
  136. * User-defined list of arbitrary tags. Matches the value from
  137. * QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and for
  138. * weighting the score of each answer.
  139. *
  140. * @param string[] $tags
  141. */
  142. public function setTags($tags)
  143. {
  144. $this->tags = $tags;
  145. }
  146. /**
  147. * @return string[]
  148. */
  149. public function getTags()
  150. {
  151. return $this->tags;
  152. }
  153. }
  154. // Adding a class alias for backwards compatibility with the previous class name.
  155. class_alias(GoogleCloudContactcenterinsightsV1alpha1QaAnswer::class, 'Google_Service_Contactcenterinsights_GoogleCloudContactcenterinsightsV1alpha1QaAnswer');