GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessage.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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 GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessage extends \Google\Model
  19. {
  20. /**
  21. * Output only. For user messages, this is the time at which the system
  22. * received the message. For system messages, this is the time at which the
  23. * system generated the message.
  24. *
  25. * @var string
  26. */
  27. public $createTime;
  28. /**
  29. * The message id of the message.
  30. *
  31. * @var string
  32. */
  33. public $messageId;
  34. protected $systemMessageWrapperType = GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessages::class;
  35. protected $systemMessageWrapperDataType = '';
  36. protected $userMessageType = GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageUserMessage::class;
  37. protected $userMessageDataType = '';
  38. /**
  39. * Output only. For user messages, this is the time at which the system
  40. * received the message. For system messages, this is the time at which the
  41. * system generated the message.
  42. *
  43. * @param string $createTime
  44. */
  45. public function setCreateTime($createTime)
  46. {
  47. $this->createTime = $createTime;
  48. }
  49. /**
  50. * @return string
  51. */
  52. public function getCreateTime()
  53. {
  54. return $this->createTime;
  55. }
  56. /**
  57. * The message id of the message.
  58. *
  59. * @param string $messageId
  60. */
  61. public function setMessageId($messageId)
  62. {
  63. $this->messageId = $messageId;
  64. }
  65. /**
  66. * @return string
  67. */
  68. public function getMessageId()
  69. {
  70. return $this->messageId;
  71. }
  72. /**
  73. * A wrapper for system messages per turn.
  74. *
  75. * @param GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessages $systemMessageWrapper
  76. */
  77. public function setSystemMessageWrapper(GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessages $systemMessageWrapper)
  78. {
  79. $this->systemMessageWrapper = $systemMessageWrapper;
  80. }
  81. /**
  82. * @return GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessages
  83. */
  84. public function getSystemMessageWrapper()
  85. {
  86. return $this->systemMessageWrapper;
  87. }
  88. /**
  89. * A message from the user that is interacting with the system.
  90. *
  91. * @param GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageUserMessage $userMessage
  92. */
  93. public function setUserMessage(GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageUserMessage $userMessage)
  94. {
  95. $this->userMessage = $userMessage;
  96. }
  97. /**
  98. * @return GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageUserMessage
  99. */
  100. public function getUserMessage()
  101. {
  102. return $this->userMessage;
  103. }
  104. }
  105. // Adding a class alias for backwards compatibility with the previous class name.
  106. class_alias(GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessage::class, 'Google_Service_Contactcenterinsights_GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessage');