GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotationUserInput.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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 GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotationUserInput extends \Google\Model
  19. {
  20. /**
  21. * Unknown query source.
  22. */
  23. public const QUERY_SOURCE_QUERY_SOURCE_UNSPECIFIED = 'QUERY_SOURCE_UNSPECIFIED';
  24. /**
  25. * The query is from agents.
  26. */
  27. public const QUERY_SOURCE_AGENT_QUERY = 'AGENT_QUERY';
  28. /**
  29. * The query is a query from previous suggestions, e.g. from a preceding
  30. * SuggestKnowledgeAssist response.
  31. */
  32. public const QUERY_SOURCE_SUGGESTED_QUERY = 'SUGGESTED_QUERY';
  33. /**
  34. * The resource name of associated generator. Format:
  35. * `projects//locations//generators/`
  36. *
  37. * @var string
  38. */
  39. public $generatorName;
  40. /**
  41. * Query text. Article Search uses this to store the input query used to
  42. * generate the search results.
  43. *
  44. * @var string
  45. */
  46. public $query;
  47. /**
  48. * Query source for the answer.
  49. *
  50. * @var string
  51. */
  52. public $querySource;
  53. /**
  54. * The resource name of associated generator. Format:
  55. * `projects//locations//generators/`
  56. *
  57. * @param string $generatorName
  58. */
  59. public function setGeneratorName($generatorName)
  60. {
  61. $this->generatorName = $generatorName;
  62. }
  63. /**
  64. * @return string
  65. */
  66. public function getGeneratorName()
  67. {
  68. return $this->generatorName;
  69. }
  70. /**
  71. * Query text. Article Search uses this to store the input query used to
  72. * generate the search results.
  73. *
  74. * @param string $query
  75. */
  76. public function setQuery($query)
  77. {
  78. $this->query = $query;
  79. }
  80. /**
  81. * @return string
  82. */
  83. public function getQuery()
  84. {
  85. return $this->query;
  86. }
  87. /**
  88. * Query source for the answer.
  89. *
  90. * Accepted values: QUERY_SOURCE_UNSPECIFIED, AGENT_QUERY, SUGGESTED_QUERY
  91. *
  92. * @param self::QUERY_SOURCE_* $querySource
  93. */
  94. public function setQuerySource($querySource)
  95. {
  96. $this->querySource = $querySource;
  97. }
  98. /**
  99. * @return self::QUERY_SOURCE_*
  100. */
  101. public function getQuerySource()
  102. {
  103. return $this->querySource;
  104. }
  105. }
  106. // Adding a class alias for backwards compatibility with the previous class name.
  107. class_alias(GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotationUserInput::class, 'Google_Service_Contactcenterinsights_GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotationUserInput');