GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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 GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback extends \Google\Model
  19. {
  20. /**
  21. * Correctness level unspecified.
  22. */
  23. public const CORRECTNESS_LEVEL_CORRECTNESS_LEVEL_UNSPECIFIED = 'CORRECTNESS_LEVEL_UNSPECIFIED';
  24. /**
  25. * Answer is totally wrong.
  26. */
  27. public const CORRECTNESS_LEVEL_NOT_CORRECT = 'NOT_CORRECT';
  28. /**
  29. * Answer is partially correct.
  30. */
  31. public const CORRECTNESS_LEVEL_PARTIALLY_CORRECT = 'PARTIALLY_CORRECT';
  32. /**
  33. * Answer is fully correct.
  34. */
  35. public const CORRECTNESS_LEVEL_FULLY_CORRECT = 'FULLY_CORRECT';
  36. /**
  37. * Indicates whether an answer or item was clicked by the human agent.
  38. *
  39. * @var bool
  40. */
  41. public $clicked;
  42. /**
  43. * The correctness level of an answer.
  44. *
  45. * @var string
  46. */
  47. public $correctnessLevel;
  48. /**
  49. * Indicates whether an answer or item was displayed to the human agent in the
  50. * agent desktop UI.
  51. *
  52. * @var bool
  53. */
  54. public $displayed;
  55. /**
  56. * Indicates whether an answer or item was clicked by the human agent.
  57. *
  58. * @param bool $clicked
  59. */
  60. public function setClicked($clicked)
  61. {
  62. $this->clicked = $clicked;
  63. }
  64. /**
  65. * @return bool
  66. */
  67. public function getClicked()
  68. {
  69. return $this->clicked;
  70. }
  71. /**
  72. * The correctness level of an answer.
  73. *
  74. * Accepted values: CORRECTNESS_LEVEL_UNSPECIFIED, NOT_CORRECT,
  75. * PARTIALLY_CORRECT, FULLY_CORRECT
  76. *
  77. * @param self::CORRECTNESS_LEVEL_* $correctnessLevel
  78. */
  79. public function setCorrectnessLevel($correctnessLevel)
  80. {
  81. $this->correctnessLevel = $correctnessLevel;
  82. }
  83. /**
  84. * @return self::CORRECTNESS_LEVEL_*
  85. */
  86. public function getCorrectnessLevel()
  87. {
  88. return $this->correctnessLevel;
  89. }
  90. /**
  91. * Indicates whether an answer or item was displayed to the human agent in the
  92. * agent desktop UI.
  93. *
  94. * @param bool $displayed
  95. */
  96. public function setDisplayed($displayed)
  97. {
  98. $this->displayed = $displayed;
  99. }
  100. /**
  101. * @return bool
  102. */
  103. public function getDisplayed()
  104. {
  105. return $this->displayed;
  106. }
  107. }
  108. // Adding a class alias for backwards compatibility with the previous class name.
  109. class_alias(GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback::class, 'Google_Service_Contactcenterinsights_GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback');