source: vendor/google/apiclient-services/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1AnswerQueryRequest.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 5.8 KB
Line 
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
18namespace Google\Service\DiscoveryEngine;
19
20class GoogleCloudDiscoveryengineV1AnswerQueryRequest extends \Google\Model
21{
22 protected $answerGenerationSpecType = GoogleCloudDiscoveryengineV1AnswerQueryRequestAnswerGenerationSpec::class;
23 protected $answerGenerationSpecDataType = '';
24 /**
25 * @var bool
26 */
27 public $asynchronousMode;
28 protected $groundingSpecType = GoogleCloudDiscoveryengineV1AnswerQueryRequestGroundingSpec::class;
29 protected $groundingSpecDataType = '';
30 protected $queryType = GoogleCloudDiscoveryengineV1Query::class;
31 protected $queryDataType = '';
32 protected $queryUnderstandingSpecType = GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpec::class;
33 protected $queryUnderstandingSpecDataType = '';
34 protected $relatedQuestionsSpecType = GoogleCloudDiscoveryengineV1AnswerQueryRequestRelatedQuestionsSpec::class;
35 protected $relatedQuestionsSpecDataType = '';
36 protected $safetySpecType = GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpec::class;
37 protected $safetySpecDataType = '';
38 protected $searchSpecType = GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpec::class;
39 protected $searchSpecDataType = '';
40 /**
41 * @var string
42 */
43 public $session;
44 /**
45 * @var string[]
46 */
47 public $userLabels;
48 /**
49 * @var string
50 */
51 public $userPseudoId;
52
53 /**
54 * @param GoogleCloudDiscoveryengineV1AnswerQueryRequestAnswerGenerationSpec
55 */
56 public function setAnswerGenerationSpec(GoogleCloudDiscoveryengineV1AnswerQueryRequestAnswerGenerationSpec $answerGenerationSpec)
57 {
58 $this->answerGenerationSpec = $answerGenerationSpec;
59 }
60 /**
61 * @return GoogleCloudDiscoveryengineV1AnswerQueryRequestAnswerGenerationSpec
62 */
63 public function getAnswerGenerationSpec()
64 {
65 return $this->answerGenerationSpec;
66 }
67 /**
68 * @param bool
69 */
70 public function setAsynchronousMode($asynchronousMode)
71 {
72 $this->asynchronousMode = $asynchronousMode;
73 }
74 /**
75 * @return bool
76 */
77 public function getAsynchronousMode()
78 {
79 return $this->asynchronousMode;
80 }
81 /**
82 * @param GoogleCloudDiscoveryengineV1AnswerQueryRequestGroundingSpec
83 */
84 public function setGroundingSpec(GoogleCloudDiscoveryengineV1AnswerQueryRequestGroundingSpec $groundingSpec)
85 {
86 $this->groundingSpec = $groundingSpec;
87 }
88 /**
89 * @return GoogleCloudDiscoveryengineV1AnswerQueryRequestGroundingSpec
90 */
91 public function getGroundingSpec()
92 {
93 return $this->groundingSpec;
94 }
95 /**
96 * @param GoogleCloudDiscoveryengineV1Query
97 */
98 public function setQuery(GoogleCloudDiscoveryengineV1Query $query)
99 {
100 $this->query = $query;
101 }
102 /**
103 * @return GoogleCloudDiscoveryengineV1Query
104 */
105 public function getQuery()
106 {
107 return $this->query;
108 }
109 /**
110 * @param GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpec
111 */
112 public function setQueryUnderstandingSpec(GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpec $queryUnderstandingSpec)
113 {
114 $this->queryUnderstandingSpec = $queryUnderstandingSpec;
115 }
116 /**
117 * @return GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpec
118 */
119 public function getQueryUnderstandingSpec()
120 {
121 return $this->queryUnderstandingSpec;
122 }
123 /**
124 * @param GoogleCloudDiscoveryengineV1AnswerQueryRequestRelatedQuestionsSpec
125 */
126 public function setRelatedQuestionsSpec(GoogleCloudDiscoveryengineV1AnswerQueryRequestRelatedQuestionsSpec $relatedQuestionsSpec)
127 {
128 $this->relatedQuestionsSpec = $relatedQuestionsSpec;
129 }
130 /**
131 * @return GoogleCloudDiscoveryengineV1AnswerQueryRequestRelatedQuestionsSpec
132 */
133 public function getRelatedQuestionsSpec()
134 {
135 return $this->relatedQuestionsSpec;
136 }
137 /**
138 * @param GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpec
139 */
140 public function setSafetySpec(GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpec $safetySpec)
141 {
142 $this->safetySpec = $safetySpec;
143 }
144 /**
145 * @return GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpec
146 */
147 public function getSafetySpec()
148 {
149 return $this->safetySpec;
150 }
151 /**
152 * @param GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpec
153 */
154 public function setSearchSpec(GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpec $searchSpec)
155 {
156 $this->searchSpec = $searchSpec;
157 }
158 /**
159 * @return GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpec
160 */
161 public function getSearchSpec()
162 {
163 return $this->searchSpec;
164 }
165 /**
166 * @param string
167 */
168 public function setSession($session)
169 {
170 $this->session = $session;
171 }
172 /**
173 * @return string
174 */
175 public function getSession()
176 {
177 return $this->session;
178 }
179 /**
180 * @param string[]
181 */
182 public function setUserLabels($userLabels)
183 {
184 $this->userLabels = $userLabels;
185 }
186 /**
187 * @return string[]
188 */
189 public function getUserLabels()
190 {
191 return $this->userLabels;
192 }
193 /**
194 * @param string
195 */
196 public function setUserPseudoId($userPseudoId)
197 {
198 $this->userPseudoId = $userPseudoId;
199 }
200 /**
201 * @return string
202 */
203 public function getUserPseudoId()
204 {
205 return $this->userPseudoId;
206 }
207}
208
209// Adding a class alias for backwards compatibility with the previous class name.
210class_alias(GoogleCloudDiscoveryengineV1AnswerQueryRequest::class, 'Google_Service_DiscoveryEngine_GoogleCloudDiscoveryengineV1AnswerQueryRequest');
Note: See TracBrowser for help on using the repository browser.