GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment.php 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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 GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment extends \Google\Collection
  19. {
  20. protected $collection_key = 'words';
  21. /**
  22. * For conversations derived from multi-channel audio, this is the channel
  23. * number corresponding to the audio from that channel. For audioChannelCount
  24. * = N, its output values can range from '1' to 'N'. A channel tag of 0
  25. * indicates that the audio is mono.
  26. *
  27. * @var int
  28. */
  29. public $channelTag;
  30. /**
  31. * A confidence estimate between 0.0 and 1.0 of the fidelity of this segment.
  32. * A default value of 0.0 indicates that the value is unset.
  33. *
  34. * @var float
  35. */
  36. public $confidence;
  37. protected $dialogflowSegmentMetadataType = GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata::class;
  38. protected $dialogflowSegmentMetadataDataType = '';
  39. /**
  40. * The language code of this segment as a [BCP-47](https://www.rfc-
  41. * editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US".
  42. *
  43. * @var string
  44. */
  45. public $languageCode;
  46. /**
  47. * The time that the message occurred, if provided.
  48. *
  49. * @var string
  50. */
  51. public $messageTime;
  52. protected $segmentParticipantType = GoogleCloudContactcenterinsightsV1ConversationParticipant::class;
  53. protected $segmentParticipantDataType = '';
  54. protected $sentimentType = GoogleCloudContactcenterinsightsV1SentimentData::class;
  55. protected $sentimentDataType = '';
  56. /**
  57. * The text of this segment.
  58. *
  59. * @var string
  60. */
  61. public $text;
  62. protected $wordsType = GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo::class;
  63. protected $wordsDataType = 'array';
  64. /**
  65. * For conversations derived from multi-channel audio, this is the channel
  66. * number corresponding to the audio from that channel. For audioChannelCount
  67. * = N, its output values can range from '1' to 'N'. A channel tag of 0
  68. * indicates that the audio is mono.
  69. *
  70. * @param int $channelTag
  71. */
  72. public function setChannelTag($channelTag)
  73. {
  74. $this->channelTag = $channelTag;
  75. }
  76. /**
  77. * @return int
  78. */
  79. public function getChannelTag()
  80. {
  81. return $this->channelTag;
  82. }
  83. /**
  84. * A confidence estimate between 0.0 and 1.0 of the fidelity of this segment.
  85. * A default value of 0.0 indicates that the value is unset.
  86. *
  87. * @param float $confidence
  88. */
  89. public function setConfidence($confidence)
  90. {
  91. $this->confidence = $confidence;
  92. }
  93. /**
  94. * @return float
  95. */
  96. public function getConfidence()
  97. {
  98. return $this->confidence;
  99. }
  100. /**
  101. * CCAI metadata relating to the current transcript segment.
  102. *
  103. * @param GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata $dialogflowSegmentMetadata
  104. */
  105. public function setDialogflowSegmentMetadata(GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata $dialogflowSegmentMetadata)
  106. {
  107. $this->dialogflowSegmentMetadata = $dialogflowSegmentMetadata;
  108. }
  109. /**
  110. * @return GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata
  111. */
  112. public function getDialogflowSegmentMetadata()
  113. {
  114. return $this->dialogflowSegmentMetadata;
  115. }
  116. /**
  117. * The language code of this segment as a [BCP-47](https://www.rfc-
  118. * editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US".
  119. *
  120. * @param string $languageCode
  121. */
  122. public function setLanguageCode($languageCode)
  123. {
  124. $this->languageCode = $languageCode;
  125. }
  126. /**
  127. * @return string
  128. */
  129. public function getLanguageCode()
  130. {
  131. return $this->languageCode;
  132. }
  133. /**
  134. * The time that the message occurred, if provided.
  135. *
  136. * @param string $messageTime
  137. */
  138. public function setMessageTime($messageTime)
  139. {
  140. $this->messageTime = $messageTime;
  141. }
  142. /**
  143. * @return string
  144. */
  145. public function getMessageTime()
  146. {
  147. return $this->messageTime;
  148. }
  149. /**
  150. * The participant of this segment.
  151. *
  152. * @param GoogleCloudContactcenterinsightsV1ConversationParticipant $segmentParticipant
  153. */
  154. public function setSegmentParticipant(GoogleCloudContactcenterinsightsV1ConversationParticipant $segmentParticipant)
  155. {
  156. $this->segmentParticipant = $segmentParticipant;
  157. }
  158. /**
  159. * @return GoogleCloudContactcenterinsightsV1ConversationParticipant
  160. */
  161. public function getSegmentParticipant()
  162. {
  163. return $this->segmentParticipant;
  164. }
  165. /**
  166. * The sentiment for this transcript segment.
  167. *
  168. * @param GoogleCloudContactcenterinsightsV1SentimentData $sentiment
  169. */
  170. public function setSentiment(GoogleCloudContactcenterinsightsV1SentimentData $sentiment)
  171. {
  172. $this->sentiment = $sentiment;
  173. }
  174. /**
  175. * @return GoogleCloudContactcenterinsightsV1SentimentData
  176. */
  177. public function getSentiment()
  178. {
  179. return $this->sentiment;
  180. }
  181. /**
  182. * The text of this segment.
  183. *
  184. * @param string $text
  185. */
  186. public function setText($text)
  187. {
  188. $this->text = $text;
  189. }
  190. /**
  191. * @return string
  192. */
  193. public function getText()
  194. {
  195. return $this->text;
  196. }
  197. /**
  198. * A list of the word-specific information for each word in the segment.
  199. *
  200. * @param GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo[] $words
  201. */
  202. public function setWords($words)
  203. {
  204. $this->words = $words;
  205. }
  206. /**
  207. * @return GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo[]
  208. */
  209. public function getWords()
  210. {
  211. return $this->words;
  212. }
  213. }
  214. // Adding a class alias for backwards compatibility with the previous class name.
  215. class_alias(GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment::class, 'Google_Service_Contactcenterinsights_GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment');