GoogleCloudContactcenterinsightsV1alpha1EntityMentionData.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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 GoogleCloudContactcenterinsightsV1alpha1EntityMentionData extends \Google\Model
  19. {
  20. /**
  21. * Unspecified.
  22. */
  23. public const TYPE_MENTION_TYPE_UNSPECIFIED = 'MENTION_TYPE_UNSPECIFIED';
  24. /**
  25. * Proper noun.
  26. */
  27. public const TYPE_PROPER = 'PROPER';
  28. /**
  29. * Common noun (or noun compound).
  30. */
  31. public const TYPE_COMMON = 'COMMON';
  32. /**
  33. * The key of this entity in conversation entities. Can be used to retrieve
  34. * the exact `Entity` this mention is attached to.
  35. *
  36. * @var string
  37. */
  38. public $entityUniqueId;
  39. protected $sentimentType = GoogleCloudContactcenterinsightsV1alpha1SentimentData::class;
  40. protected $sentimentDataType = '';
  41. /**
  42. * The type of the entity mention.
  43. *
  44. * @var string
  45. */
  46. public $type;
  47. /**
  48. * The key of this entity in conversation entities. Can be used to retrieve
  49. * the exact `Entity` this mention is attached to.
  50. *
  51. * @param string $entityUniqueId
  52. */
  53. public function setEntityUniqueId($entityUniqueId)
  54. {
  55. $this->entityUniqueId = $entityUniqueId;
  56. }
  57. /**
  58. * @return string
  59. */
  60. public function getEntityUniqueId()
  61. {
  62. return $this->entityUniqueId;
  63. }
  64. /**
  65. * Sentiment expressed for this mention of the entity.
  66. *
  67. * @param GoogleCloudContactcenterinsightsV1alpha1SentimentData $sentiment
  68. */
  69. public function setSentiment(GoogleCloudContactcenterinsightsV1alpha1SentimentData $sentiment)
  70. {
  71. $this->sentiment = $sentiment;
  72. }
  73. /**
  74. * @return GoogleCloudContactcenterinsightsV1alpha1SentimentData
  75. */
  76. public function getSentiment()
  77. {
  78. return $this->sentiment;
  79. }
  80. /**
  81. * The type of the entity mention.
  82. *
  83. * Accepted values: MENTION_TYPE_UNSPECIFIED, PROPER, COMMON
  84. *
  85. * @param self::TYPE_* $type
  86. */
  87. public function setType($type)
  88. {
  89. $this->type = $type;
  90. }
  91. /**
  92. * @return self::TYPE_*
  93. */
  94. public function getType()
  95. {
  96. return $this->type;
  97. }
  98. }
  99. // Adding a class alias for backwards compatibility with the previous class name.
  100. class_alias(GoogleCloudContactcenterinsightsV1alpha1EntityMentionData::class, 'Google_Service_Contactcenterinsights_GoogleCloudContactcenterinsightsV1alpha1EntityMentionData');