GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponse.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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 GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponse extends \Google\Model
  19. {
  20. /**
  21. * The chart spec for the data. This will be specified in the vega-lite or
  22. * vega format.
  23. *
  24. * @var array[]
  25. */
  26. public $chartSpec;
  27. /**
  28. * The generated SQL query from the LLM. Will be populated during the chart
  29. * building phase. The generated SQL will be cached in the corresponding chart
  30. * resource.
  31. *
  32. * @var string
  33. */
  34. public $generatedSqlQuery;
  35. protected $textMessageType = GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponseTextOutput::class;
  36. protected $textMessageDataType = '';
  37. /**
  38. * The text output from the LLM. Will be populated during the chart building
  39. * phase. For a reloaded chart, this will NOT be populated. May contain
  40. * THOUGHT or a FINAL response or some in-progress response.
  41. *
  42. * @deprecated
  43. * @var string
  44. */
  45. public $textOutput;
  46. /**
  47. * The chart spec for the data. This will be specified in the vega-lite or
  48. * vega format.
  49. *
  50. * @param array[] $chartSpec
  51. */
  52. public function setChartSpec($chartSpec)
  53. {
  54. $this->chartSpec = $chartSpec;
  55. }
  56. /**
  57. * @return array[]
  58. */
  59. public function getChartSpec()
  60. {
  61. return $this->chartSpec;
  62. }
  63. /**
  64. * The generated SQL query from the LLM. Will be populated during the chart
  65. * building phase. The generated SQL will be cached in the corresponding chart
  66. * resource.
  67. *
  68. * @param string $generatedSqlQuery
  69. */
  70. public function setGeneratedSqlQuery($generatedSqlQuery)
  71. {
  72. $this->generatedSqlQuery = $generatedSqlQuery;
  73. }
  74. /**
  75. * @return string
  76. */
  77. public function getGeneratedSqlQuery()
  78. {
  79. return $this->generatedSqlQuery;
  80. }
  81. /**
  82. * The text output from the LLM. Will be populated during the chart building
  83. * phase. For a reloaded chart, this will NOT be populated. May contain
  84. * THOUGHT or a FINAL response or some in-progress response.
  85. *
  86. * @param GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponseTextOutput $textMessage
  87. */
  88. public function setTextMessage(GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponseTextOutput $textMessage)
  89. {
  90. $this->textMessage = $textMessage;
  91. }
  92. /**
  93. * @return GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponseTextOutput
  94. */
  95. public function getTextMessage()
  96. {
  97. return $this->textMessage;
  98. }
  99. /**
  100. * The text output from the LLM. Will be populated during the chart building
  101. * phase. For a reloaded chart, this will NOT be populated. May contain
  102. * THOUGHT or a FINAL response or some in-progress response.
  103. *
  104. * @deprecated
  105. * @param string $textOutput
  106. */
  107. public function setTextOutput($textOutput)
  108. {
  109. $this->textOutput = $textOutput;
  110. }
  111. /**
  112. * @deprecated
  113. * @return string
  114. */
  115. public function getTextOutput()
  116. {
  117. return $this->textOutput;
  118. }
  119. }
  120. // Adding a class alias for backwards compatibility with the previous class name.
  121. class_alias(GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponse::class, 'Google_Service_Contactcenterinsights_GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponse');