GoogleCloudContactcenterinsightsV1Conversation.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528
  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 GoogleCloudContactcenterinsightsV1Conversation extends \Google\Collection
  19. {
  20. /**
  21. * Default value for unspecified.
  22. */
  23. public const MEDIUM_MEDIUM_UNSPECIFIED = 'MEDIUM_UNSPECIFIED';
  24. /**
  25. * The format for conversations that took place over the phone.
  26. */
  27. public const MEDIUM_PHONE_CALL = 'PHONE_CALL';
  28. /**
  29. * The format for conversations that took place over chat.
  30. */
  31. public const MEDIUM_CHAT = 'CHAT';
  32. protected $collection_key = 'runtimeAnnotations';
  33. /**
  34. * An opaque, user-specified string representing the human agent who handled
  35. * the conversation.
  36. *
  37. * @var string
  38. */
  39. public $agentId;
  40. protected $callMetadataType = GoogleCloudContactcenterinsightsV1ConversationCallMetadata::class;
  41. protected $callMetadataDataType = '';
  42. protected $correlationInfoType = GoogleCloudContactcenterinsightsV1ConversationCorrelationInfo::class;
  43. protected $correlationInfoDataType = '';
  44. /**
  45. * Output only. The time at which the conversation was created.
  46. *
  47. * @var string
  48. */
  49. public $createTime;
  50. protected $dataSourceType = GoogleCloudContactcenterinsightsV1ConversationDataSource::class;
  51. protected $dataSourceDataType = '';
  52. protected $dialogflowIntentsType = GoogleCloudContactcenterinsightsV1DialogflowIntent::class;
  53. protected $dialogflowIntentsDataType = 'map';
  54. /**
  55. * Output only. The duration of the conversation.
  56. *
  57. * @var string
  58. */
  59. public $duration;
  60. /**
  61. * The time at which this conversation should expire. After this time, the
  62. * conversation data and any associated analyses will be deleted.
  63. *
  64. * @var string
  65. */
  66. public $expireTime;
  67. /**
  68. * A map for the user to specify any custom fields. A maximum of 100 labels
  69. * per conversation is allowed, with a maximum of 256 characters per entry.
  70. *
  71. * @var string[]
  72. */
  73. public $labels;
  74. /**
  75. * A user-specified language code for the conversation.
  76. *
  77. * @var string
  78. */
  79. public $languageCode;
  80. protected $latestAnalysisType = GoogleCloudContactcenterinsightsV1Analysis::class;
  81. protected $latestAnalysisDataType = '';
  82. protected $latestSummaryType = GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData::class;
  83. protected $latestSummaryDataType = '';
  84. /**
  85. * Immutable. The conversation medium.
  86. *
  87. * @var string
  88. */
  89. public $medium;
  90. /**
  91. * Input only. JSON metadata encoded as a string. This field is primarily used
  92. * by Insights integrations with various telephony systems and must be in one
  93. * of Insight's supported formats.
  94. *
  95. * @var string
  96. */
  97. public $metadataJson;
  98. /**
  99. * Immutable. The resource name of the conversation. Format:
  100. * projects/{project}/locations/{location}/conversations/{conversation}
  101. *
  102. * @var string
  103. */
  104. public $name;
  105. /**
  106. * Obfuscated user ID which the customer sent to us.
  107. *
  108. * @var string
  109. */
  110. public $obfuscatedUserId;
  111. protected $qualityMetadataType = GoogleCloudContactcenterinsightsV1ConversationQualityMetadata::class;
  112. protected $qualityMetadataDataType = '';
  113. protected $runtimeAnnotationsType = GoogleCloudContactcenterinsightsV1RuntimeAnnotation::class;
  114. protected $runtimeAnnotationsDataType = 'array';
  115. /**
  116. * The time at which the conversation started.
  117. *
  118. * @var string
  119. */
  120. public $startTime;
  121. protected $transcriptType = GoogleCloudContactcenterinsightsV1ConversationTranscript::class;
  122. protected $transcriptDataType = '';
  123. /**
  124. * Input only. The TTL for this resource. If specified, then this TTL will be
  125. * used to calculate the expire time.
  126. *
  127. * @var string
  128. */
  129. public $ttl;
  130. /**
  131. * Output only. The number of turns in the conversation.
  132. *
  133. * @var int
  134. */
  135. public $turnCount;
  136. /**
  137. * Output only. The most recent time at which the conversation was updated.
  138. *
  139. * @var string
  140. */
  141. public $updateTime;
  142. /**
  143. * An opaque, user-specified string representing the human agent who handled
  144. * the conversation.
  145. *
  146. * @param string $agentId
  147. */
  148. public function setAgentId($agentId)
  149. {
  150. $this->agentId = $agentId;
  151. }
  152. /**
  153. * @return string
  154. */
  155. public function getAgentId()
  156. {
  157. return $this->agentId;
  158. }
  159. /**
  160. * Call-specific metadata.
  161. *
  162. * @param GoogleCloudContactcenterinsightsV1ConversationCallMetadata $callMetadata
  163. */
  164. public function setCallMetadata(GoogleCloudContactcenterinsightsV1ConversationCallMetadata $callMetadata)
  165. {
  166. $this->callMetadata = $callMetadata;
  167. }
  168. /**
  169. * @return GoogleCloudContactcenterinsightsV1ConversationCallMetadata
  170. */
  171. public function getCallMetadata()
  172. {
  173. return $this->callMetadata;
  174. }
  175. /**
  176. * Output only. Info for correlating across conversations.
  177. *
  178. * @param GoogleCloudContactcenterinsightsV1ConversationCorrelationInfo $correlationInfo
  179. */
  180. public function setCorrelationInfo(GoogleCloudContactcenterinsightsV1ConversationCorrelationInfo $correlationInfo)
  181. {
  182. $this->correlationInfo = $correlationInfo;
  183. }
  184. /**
  185. * @return GoogleCloudContactcenterinsightsV1ConversationCorrelationInfo
  186. */
  187. public function getCorrelationInfo()
  188. {
  189. return $this->correlationInfo;
  190. }
  191. /**
  192. * Output only. The time at which the conversation was created.
  193. *
  194. * @param string $createTime
  195. */
  196. public function setCreateTime($createTime)
  197. {
  198. $this->createTime = $createTime;
  199. }
  200. /**
  201. * @return string
  202. */
  203. public function getCreateTime()
  204. {
  205. return $this->createTime;
  206. }
  207. /**
  208. * The source of the audio and transcription for the conversation.
  209. *
  210. * @param GoogleCloudContactcenterinsightsV1ConversationDataSource $dataSource
  211. */
  212. public function setDataSource(GoogleCloudContactcenterinsightsV1ConversationDataSource $dataSource)
  213. {
  214. $this->dataSource = $dataSource;
  215. }
  216. /**
  217. * @return GoogleCloudContactcenterinsightsV1ConversationDataSource
  218. */
  219. public function getDataSource()
  220. {
  221. return $this->dataSource;
  222. }
  223. /**
  224. * Output only. All the matched Dialogflow intents in the call. The key
  225. * corresponds to a Dialogflow intent, format:
  226. * projects/{project}/agent/{agent}/intents/{intent}
  227. *
  228. * @param GoogleCloudContactcenterinsightsV1DialogflowIntent[] $dialogflowIntents
  229. */
  230. public function setDialogflowIntents($dialogflowIntents)
  231. {
  232. $this->dialogflowIntents = $dialogflowIntents;
  233. }
  234. /**
  235. * @return GoogleCloudContactcenterinsightsV1DialogflowIntent[]
  236. */
  237. public function getDialogflowIntents()
  238. {
  239. return $this->dialogflowIntents;
  240. }
  241. /**
  242. * Output only. The duration of the conversation.
  243. *
  244. * @param string $duration
  245. */
  246. public function setDuration($duration)
  247. {
  248. $this->duration = $duration;
  249. }
  250. /**
  251. * @return string
  252. */
  253. public function getDuration()
  254. {
  255. return $this->duration;
  256. }
  257. /**
  258. * The time at which this conversation should expire. After this time, the
  259. * conversation data and any associated analyses will be deleted.
  260. *
  261. * @param string $expireTime
  262. */
  263. public function setExpireTime($expireTime)
  264. {
  265. $this->expireTime = $expireTime;
  266. }
  267. /**
  268. * @return string
  269. */
  270. public function getExpireTime()
  271. {
  272. return $this->expireTime;
  273. }
  274. /**
  275. * A map for the user to specify any custom fields. A maximum of 100 labels
  276. * per conversation is allowed, with a maximum of 256 characters per entry.
  277. *
  278. * @param string[] $labels
  279. */
  280. public function setLabels($labels)
  281. {
  282. $this->labels = $labels;
  283. }
  284. /**
  285. * @return string[]
  286. */
  287. public function getLabels()
  288. {
  289. return $this->labels;
  290. }
  291. /**
  292. * A user-specified language code for the conversation.
  293. *
  294. * @param string $languageCode
  295. */
  296. public function setLanguageCode($languageCode)
  297. {
  298. $this->languageCode = $languageCode;
  299. }
  300. /**
  301. * @return string
  302. */
  303. public function getLanguageCode()
  304. {
  305. return $this->languageCode;
  306. }
  307. /**
  308. * Output only. The conversation's latest analysis, if one exists.
  309. *
  310. * @param GoogleCloudContactcenterinsightsV1Analysis $latestAnalysis
  311. */
  312. public function setLatestAnalysis(GoogleCloudContactcenterinsightsV1Analysis $latestAnalysis)
  313. {
  314. $this->latestAnalysis = $latestAnalysis;
  315. }
  316. /**
  317. * @return GoogleCloudContactcenterinsightsV1Analysis
  318. */
  319. public function getLatestAnalysis()
  320. {
  321. return $this->latestAnalysis;
  322. }
  323. /**
  324. * Output only. Latest summary of the conversation.
  325. *
  326. * @param GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData $latestSummary
  327. */
  328. public function setLatestSummary(GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData $latestSummary)
  329. {
  330. $this->latestSummary = $latestSummary;
  331. }
  332. /**
  333. * @return GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData
  334. */
  335. public function getLatestSummary()
  336. {
  337. return $this->latestSummary;
  338. }
  339. /**
  340. * Immutable. The conversation medium.
  341. *
  342. * Accepted values: MEDIUM_UNSPECIFIED, PHONE_CALL, CHAT
  343. *
  344. * @param self::MEDIUM_* $medium
  345. */
  346. public function setMedium($medium)
  347. {
  348. $this->medium = $medium;
  349. }
  350. /**
  351. * @return self::MEDIUM_*
  352. */
  353. public function getMedium()
  354. {
  355. return $this->medium;
  356. }
  357. /**
  358. * Input only. JSON metadata encoded as a string. This field is primarily used
  359. * by Insights integrations with various telephony systems and must be in one
  360. * of Insight's supported formats.
  361. *
  362. * @param string $metadataJson
  363. */
  364. public function setMetadataJson($metadataJson)
  365. {
  366. $this->metadataJson = $metadataJson;
  367. }
  368. /**
  369. * @return string
  370. */
  371. public function getMetadataJson()
  372. {
  373. return $this->metadataJson;
  374. }
  375. /**
  376. * Immutable. The resource name of the conversation. Format:
  377. * projects/{project}/locations/{location}/conversations/{conversation}
  378. *
  379. * @param string $name
  380. */
  381. public function setName($name)
  382. {
  383. $this->name = $name;
  384. }
  385. /**
  386. * @return string
  387. */
  388. public function getName()
  389. {
  390. return $this->name;
  391. }
  392. /**
  393. * Obfuscated user ID which the customer sent to us.
  394. *
  395. * @param string $obfuscatedUserId
  396. */
  397. public function setObfuscatedUserId($obfuscatedUserId)
  398. {
  399. $this->obfuscatedUserId = $obfuscatedUserId;
  400. }
  401. /**
  402. * @return string
  403. */
  404. public function getObfuscatedUserId()
  405. {
  406. return $this->obfuscatedUserId;
  407. }
  408. /**
  409. * Conversation metadata related to quality management.
  410. *
  411. * @param GoogleCloudContactcenterinsightsV1ConversationQualityMetadata $qualityMetadata
  412. */
  413. public function setQualityMetadata(GoogleCloudContactcenterinsightsV1ConversationQualityMetadata $qualityMetadata)
  414. {
  415. $this->qualityMetadata = $qualityMetadata;
  416. }
  417. /**
  418. * @return GoogleCloudContactcenterinsightsV1ConversationQualityMetadata
  419. */
  420. public function getQualityMetadata()
  421. {
  422. return $this->qualityMetadata;
  423. }
  424. /**
  425. * Output only. The annotations that were generated during the customer and
  426. * agent interaction.
  427. *
  428. * @param GoogleCloudContactcenterinsightsV1RuntimeAnnotation[] $runtimeAnnotations
  429. */
  430. public function setRuntimeAnnotations($runtimeAnnotations)
  431. {
  432. $this->runtimeAnnotations = $runtimeAnnotations;
  433. }
  434. /**
  435. * @return GoogleCloudContactcenterinsightsV1RuntimeAnnotation[]
  436. */
  437. public function getRuntimeAnnotations()
  438. {
  439. return $this->runtimeAnnotations;
  440. }
  441. /**
  442. * The time at which the conversation started.
  443. *
  444. * @param string $startTime
  445. */
  446. public function setStartTime($startTime)
  447. {
  448. $this->startTime = $startTime;
  449. }
  450. /**
  451. * @return string
  452. */
  453. public function getStartTime()
  454. {
  455. return $this->startTime;
  456. }
  457. /**
  458. * Output only. The conversation transcript.
  459. *
  460. * @param GoogleCloudContactcenterinsightsV1ConversationTranscript $transcript
  461. */
  462. public function setTranscript(GoogleCloudContactcenterinsightsV1ConversationTranscript $transcript)
  463. {
  464. $this->transcript = $transcript;
  465. }
  466. /**
  467. * @return GoogleCloudContactcenterinsightsV1ConversationTranscript
  468. */
  469. public function getTranscript()
  470. {
  471. return $this->transcript;
  472. }
  473. /**
  474. * Input only. The TTL for this resource. If specified, then this TTL will be
  475. * used to calculate the expire time.
  476. *
  477. * @param string $ttl
  478. */
  479. public function setTtl($ttl)
  480. {
  481. $this->ttl = $ttl;
  482. }
  483. /**
  484. * @return string
  485. */
  486. public function getTtl()
  487. {
  488. return $this->ttl;
  489. }
  490. /**
  491. * Output only. The number of turns in the conversation.
  492. *
  493. * @param int $turnCount
  494. */
  495. public function setTurnCount($turnCount)
  496. {
  497. $this->turnCount = $turnCount;
  498. }
  499. /**
  500. * @return int
  501. */
  502. public function getTurnCount()
  503. {
  504. return $this->turnCount;
  505. }
  506. /**
  507. * Output only. The most recent time at which the conversation was updated.
  508. *
  509. * @param string $updateTime
  510. */
  511. public function setUpdateTime($updateTime)
  512. {
  513. $this->updateTime = $updateTime;
  514. }
  515. /**
  516. * @return string
  517. */
  518. public function getUpdateTime()
  519. {
  520. return $this->updateTime;
  521. }
  522. }
  523. // Adding a class alias for backwards compatibility with the previous class name.
  524. class_alias(GoogleCloudContactcenterinsightsV1Conversation::class, 'Google_Service_Contactcenterinsights_GoogleCloudContactcenterinsightsV1Conversation');