GoogleCloudContactcenterinsightsV1CalculateStatsResponse.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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 GoogleCloudContactcenterinsightsV1CalculateStatsResponse extends \Google\Model
  19. {
  20. /**
  21. * The average duration of all conversations. The average is calculated using
  22. * only conversations that have a time duration.
  23. *
  24. * @var string
  25. */
  26. public $averageDuration;
  27. /**
  28. * The average number of turns per conversation.
  29. *
  30. * @var int
  31. */
  32. public $averageTurnCount;
  33. /**
  34. * The total number of conversations.
  35. *
  36. * @var int
  37. */
  38. public $conversationCount;
  39. protected $conversationCountTimeSeriesType = GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries::class;
  40. protected $conversationCountTimeSeriesDataType = '';
  41. /**
  42. * A map associating each custom highlighter resource name with its respective
  43. * number of matches in the set of conversations.
  44. *
  45. * @var int[]
  46. */
  47. public $customHighlighterMatches;
  48. /**
  49. * A map associating each issue resource name with its respective number of
  50. * matches in the set of conversations. Key has the format:
  51. * `projects//locations//issueModels//issues/` Deprecated, use
  52. * `issue_matches_stats` field instead.
  53. *
  54. * @deprecated
  55. * @var int[]
  56. */
  57. public $issueMatches;
  58. protected $issueMatchesStatsType = GoogleCloudContactcenterinsightsV1IssueModelLabelStatsIssueStats::class;
  59. protected $issueMatchesStatsDataType = 'map';
  60. /**
  61. * A map associating each smart highlighter display name with its respective
  62. * number of matches in the set of conversations.
  63. *
  64. * @var int[]
  65. */
  66. public $smartHighlighterMatches;
  67. /**
  68. * The average duration of all conversations. The average is calculated using
  69. * only conversations that have a time duration.
  70. *
  71. * @param string $averageDuration
  72. */
  73. public function setAverageDuration($averageDuration)
  74. {
  75. $this->averageDuration = $averageDuration;
  76. }
  77. /**
  78. * @return string
  79. */
  80. public function getAverageDuration()
  81. {
  82. return $this->averageDuration;
  83. }
  84. /**
  85. * The average number of turns per conversation.
  86. *
  87. * @param int $averageTurnCount
  88. */
  89. public function setAverageTurnCount($averageTurnCount)
  90. {
  91. $this->averageTurnCount = $averageTurnCount;
  92. }
  93. /**
  94. * @return int
  95. */
  96. public function getAverageTurnCount()
  97. {
  98. return $this->averageTurnCount;
  99. }
  100. /**
  101. * The total number of conversations.
  102. *
  103. * @param int $conversationCount
  104. */
  105. public function setConversationCount($conversationCount)
  106. {
  107. $this->conversationCount = $conversationCount;
  108. }
  109. /**
  110. * @return int
  111. */
  112. public function getConversationCount()
  113. {
  114. return $this->conversationCount;
  115. }
  116. /**
  117. * A time series representing the count of conversations created over time
  118. * that match that requested filter criteria.
  119. *
  120. * @param GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries $conversationCountTimeSeries
  121. */
  122. public function setConversationCountTimeSeries(GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries $conversationCountTimeSeries)
  123. {
  124. $this->conversationCountTimeSeries = $conversationCountTimeSeries;
  125. }
  126. /**
  127. * @return GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries
  128. */
  129. public function getConversationCountTimeSeries()
  130. {
  131. return $this->conversationCountTimeSeries;
  132. }
  133. /**
  134. * A map associating each custom highlighter resource name with its respective
  135. * number of matches in the set of conversations.
  136. *
  137. * @param int[] $customHighlighterMatches
  138. */
  139. public function setCustomHighlighterMatches($customHighlighterMatches)
  140. {
  141. $this->customHighlighterMatches = $customHighlighterMatches;
  142. }
  143. /**
  144. * @return int[]
  145. */
  146. public function getCustomHighlighterMatches()
  147. {
  148. return $this->customHighlighterMatches;
  149. }
  150. /**
  151. * A map associating each issue resource name with its respective number of
  152. * matches in the set of conversations. Key has the format:
  153. * `projects//locations//issueModels//issues/` Deprecated, use
  154. * `issue_matches_stats` field instead.
  155. *
  156. * @deprecated
  157. * @param int[] $issueMatches
  158. */
  159. public function setIssueMatches($issueMatches)
  160. {
  161. $this->issueMatches = $issueMatches;
  162. }
  163. /**
  164. * @deprecated
  165. * @return int[]
  166. */
  167. public function getIssueMatches()
  168. {
  169. return $this->issueMatches;
  170. }
  171. /**
  172. * A map associating each issue resource name with its respective number of
  173. * matches in the set of conversations. Key has the format:
  174. * `projects//locations//issueModels//issues/`
  175. *
  176. * @param GoogleCloudContactcenterinsightsV1IssueModelLabelStatsIssueStats[] $issueMatchesStats
  177. */
  178. public function setIssueMatchesStats($issueMatchesStats)
  179. {
  180. $this->issueMatchesStats = $issueMatchesStats;
  181. }
  182. /**
  183. * @return GoogleCloudContactcenterinsightsV1IssueModelLabelStatsIssueStats[]
  184. */
  185. public function getIssueMatchesStats()
  186. {
  187. return $this->issueMatchesStats;
  188. }
  189. /**
  190. * A map associating each smart highlighter display name with its respective
  191. * number of matches in the set of conversations.
  192. *
  193. * @param int[] $smartHighlighterMatches
  194. */
  195. public function setSmartHighlighterMatches($smartHighlighterMatches)
  196. {
  197. $this->smartHighlighterMatches = $smartHighlighterMatches;
  198. }
  199. /**
  200. * @return int[]
  201. */
  202. public function getSmartHighlighterMatches()
  203. {
  204. return $this->smartHighlighterMatches;
  205. }
  206. }
  207. // Adding a class alias for backwards compatibility with the previous class name.
  208. class_alias(GoogleCloudContactcenterinsightsV1CalculateStatsResponse::class, 'Google_Service_Contactcenterinsights_GoogleCloudContactcenterinsightsV1CalculateStatsResponse');