GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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 GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue extends \Google\Model
  19. {
  20. /**
  21. * Boolean value.
  22. *
  23. * @var bool
  24. */
  25. public $boolValue;
  26. /**
  27. * A short string used as an identifier. Matches the value used in
  28. * QaQuestion.AnswerChoice.key.
  29. *
  30. * @var string
  31. */
  32. public $key;
  33. /**
  34. * A value of "Not Applicable (N/A)". Should only ever be `true`.
  35. *
  36. * @var bool
  37. */
  38. public $naValue;
  39. /**
  40. * Output only. Normalized score of the questions. Calculated as score /
  41. * potential_score.
  42. *
  43. * @var
  44. */
  45. public $normalizedScore;
  46. /**
  47. * Numerical value.
  48. *
  49. * @var
  50. */
  51. public $numValue;
  52. /**
  53. * Output only. The maximum potential score of the question.
  54. *
  55. * @var
  56. */
  57. public $potentialScore;
  58. /**
  59. * Output only. Numerical score of the answer.
  60. *
  61. * @var
  62. */
  63. public $score;
  64. /**
  65. * Output only. A value of "Skip". If provided, this field may only be set to
  66. * `true`. If a question receives this answer, it will be excluded from any
  67. * score calculations. This would mean that the question was not evaluated.
  68. *
  69. * @var bool
  70. */
  71. public $skipValue;
  72. /**
  73. * String value.
  74. *
  75. * @var string
  76. */
  77. public $strValue;
  78. /**
  79. * Boolean value.
  80. *
  81. * @param bool $boolValue
  82. */
  83. public function setBoolValue($boolValue)
  84. {
  85. $this->boolValue = $boolValue;
  86. }
  87. /**
  88. * @return bool
  89. */
  90. public function getBoolValue()
  91. {
  92. return $this->boolValue;
  93. }
  94. /**
  95. * A short string used as an identifier. Matches the value used in
  96. * QaQuestion.AnswerChoice.key.
  97. *
  98. * @param string $key
  99. */
  100. public function setKey($key)
  101. {
  102. $this->key = $key;
  103. }
  104. /**
  105. * @return string
  106. */
  107. public function getKey()
  108. {
  109. return $this->key;
  110. }
  111. /**
  112. * A value of "Not Applicable (N/A)". Should only ever be `true`.
  113. *
  114. * @param bool $naValue
  115. */
  116. public function setNaValue($naValue)
  117. {
  118. $this->naValue = $naValue;
  119. }
  120. /**
  121. * @return bool
  122. */
  123. public function getNaValue()
  124. {
  125. return $this->naValue;
  126. }
  127. public function setNormalizedScore($normalizedScore)
  128. {
  129. $this->normalizedScore = $normalizedScore;
  130. }
  131. public function getNormalizedScore()
  132. {
  133. return $this->normalizedScore;
  134. }
  135. public function setNumValue($numValue)
  136. {
  137. $this->numValue = $numValue;
  138. }
  139. public function getNumValue()
  140. {
  141. return $this->numValue;
  142. }
  143. public function setPotentialScore($potentialScore)
  144. {
  145. $this->potentialScore = $potentialScore;
  146. }
  147. public function getPotentialScore()
  148. {
  149. return $this->potentialScore;
  150. }
  151. public function setScore($score)
  152. {
  153. $this->score = $score;
  154. }
  155. public function getScore()
  156. {
  157. return $this->score;
  158. }
  159. /**
  160. * Output only. A value of "Skip". If provided, this field may only be set to
  161. * `true`. If a question receives this answer, it will be excluded from any
  162. * score calculations. This would mean that the question was not evaluated.
  163. *
  164. * @param bool $skipValue
  165. */
  166. public function setSkipValue($skipValue)
  167. {
  168. $this->skipValue = $skipValue;
  169. }
  170. /**
  171. * @return bool
  172. */
  173. public function getSkipValue()
  174. {
  175. return $this->skipValue;
  176. }
  177. /**
  178. * String value.
  179. *
  180. * @param string $strValue
  181. */
  182. public function setStrValue($strValue)
  183. {
  184. $this->strValue = $strValue;
  185. }
  186. /**
  187. * @return string
  188. */
  189. public function getStrValue()
  190. {
  191. return $this->strValue;
  192. }
  193. }
  194. // Adding a class alias for backwards compatibility with the previous class name.
  195. class_alias(GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue::class, 'Google_Service_Contactcenterinsights_GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue');