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 |
|
---|
18 | namespace Google\Service\CloudRetail;
|
---|
19 |
|
---|
20 | class GoogleCloudRetailV2SearchRequest extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'variantRollupKeys';
|
---|
23 | protected $boostSpecType = GoogleCloudRetailV2SearchRequestBoostSpec::class;
|
---|
24 | protected $boostSpecDataType = '';
|
---|
25 | /**
|
---|
26 | * @var string
|
---|
27 | */
|
---|
28 | public $branch;
|
---|
29 | /**
|
---|
30 | * @var string
|
---|
31 | */
|
---|
32 | public $canonicalFilter;
|
---|
33 | protected $conversationalSearchSpecType = GoogleCloudRetailV2SearchRequestConversationalSearchSpec::class;
|
---|
34 | protected $conversationalSearchSpecDataType = '';
|
---|
35 | protected $dynamicFacetSpecType = GoogleCloudRetailV2SearchRequestDynamicFacetSpec::class;
|
---|
36 | protected $dynamicFacetSpecDataType = '';
|
---|
37 | /**
|
---|
38 | * @var string
|
---|
39 | */
|
---|
40 | public $entity;
|
---|
41 | protected $facetSpecsType = GoogleCloudRetailV2SearchRequestFacetSpec::class;
|
---|
42 | protected $facetSpecsDataType = 'array';
|
---|
43 | /**
|
---|
44 | * @var string
|
---|
45 | */
|
---|
46 | public $filter;
|
---|
47 | /**
|
---|
48 | * @var string[]
|
---|
49 | */
|
---|
50 | public $labels;
|
---|
51 | /**
|
---|
52 | * @var int
|
---|
53 | */
|
---|
54 | public $offset;
|
---|
55 | /**
|
---|
56 | * @var string
|
---|
57 | */
|
---|
58 | public $orderBy;
|
---|
59 | /**
|
---|
60 | * @var string[]
|
---|
61 | */
|
---|
62 | public $pageCategories;
|
---|
63 | /**
|
---|
64 | * @var int
|
---|
65 | */
|
---|
66 | public $pageSize;
|
---|
67 | /**
|
---|
68 | * @var string
|
---|
69 | */
|
---|
70 | public $pageToken;
|
---|
71 | protected $personalizationSpecType = GoogleCloudRetailV2SearchRequestPersonalizationSpec::class;
|
---|
72 | protected $personalizationSpecDataType = '';
|
---|
73 | /**
|
---|
74 | * @var string
|
---|
75 | */
|
---|
76 | public $query;
|
---|
77 | protected $queryExpansionSpecType = GoogleCloudRetailV2SearchRequestQueryExpansionSpec::class;
|
---|
78 | protected $queryExpansionSpecDataType = '';
|
---|
79 | /**
|
---|
80 | * @var string
|
---|
81 | */
|
---|
82 | public $searchMode;
|
---|
83 | protected $spellCorrectionSpecType = GoogleCloudRetailV2SearchRequestSpellCorrectionSpec::class;
|
---|
84 | protected $spellCorrectionSpecDataType = '';
|
---|
85 | protected $tileNavigationSpecType = GoogleCloudRetailV2SearchRequestTileNavigationSpec::class;
|
---|
86 | protected $tileNavigationSpecDataType = '';
|
---|
87 | protected $userInfoType = GoogleCloudRetailV2UserInfo::class;
|
---|
88 | protected $userInfoDataType = '';
|
---|
89 | /**
|
---|
90 | * @var string[]
|
---|
91 | */
|
---|
92 | public $variantRollupKeys;
|
---|
93 | /**
|
---|
94 | * @var string
|
---|
95 | */
|
---|
96 | public $visitorId;
|
---|
97 |
|
---|
98 | /**
|
---|
99 | * @param GoogleCloudRetailV2SearchRequestBoostSpec
|
---|
100 | */
|
---|
101 | public function setBoostSpec(GoogleCloudRetailV2SearchRequestBoostSpec $boostSpec)
|
---|
102 | {
|
---|
103 | $this->boostSpec = $boostSpec;
|
---|
104 | }
|
---|
105 | /**
|
---|
106 | * @return GoogleCloudRetailV2SearchRequestBoostSpec
|
---|
107 | */
|
---|
108 | public function getBoostSpec()
|
---|
109 | {
|
---|
110 | return $this->boostSpec;
|
---|
111 | }
|
---|
112 | /**
|
---|
113 | * @param string
|
---|
114 | */
|
---|
115 | public function setBranch($branch)
|
---|
116 | {
|
---|
117 | $this->branch = $branch;
|
---|
118 | }
|
---|
119 | /**
|
---|
120 | * @return string
|
---|
121 | */
|
---|
122 | public function getBranch()
|
---|
123 | {
|
---|
124 | return $this->branch;
|
---|
125 | }
|
---|
126 | /**
|
---|
127 | * @param string
|
---|
128 | */
|
---|
129 | public function setCanonicalFilter($canonicalFilter)
|
---|
130 | {
|
---|
131 | $this->canonicalFilter = $canonicalFilter;
|
---|
132 | }
|
---|
133 | /**
|
---|
134 | * @return string
|
---|
135 | */
|
---|
136 | public function getCanonicalFilter()
|
---|
137 | {
|
---|
138 | return $this->canonicalFilter;
|
---|
139 | }
|
---|
140 | /**
|
---|
141 | * @param GoogleCloudRetailV2SearchRequestConversationalSearchSpec
|
---|
142 | */
|
---|
143 | public function setConversationalSearchSpec(GoogleCloudRetailV2SearchRequestConversationalSearchSpec $conversationalSearchSpec)
|
---|
144 | {
|
---|
145 | $this->conversationalSearchSpec = $conversationalSearchSpec;
|
---|
146 | }
|
---|
147 | /**
|
---|
148 | * @return GoogleCloudRetailV2SearchRequestConversationalSearchSpec
|
---|
149 | */
|
---|
150 | public function getConversationalSearchSpec()
|
---|
151 | {
|
---|
152 | return $this->conversationalSearchSpec;
|
---|
153 | }
|
---|
154 | /**
|
---|
155 | * @param GoogleCloudRetailV2SearchRequestDynamicFacetSpec
|
---|
156 | */
|
---|
157 | public function setDynamicFacetSpec(GoogleCloudRetailV2SearchRequestDynamicFacetSpec $dynamicFacetSpec)
|
---|
158 | {
|
---|
159 | $this->dynamicFacetSpec = $dynamicFacetSpec;
|
---|
160 | }
|
---|
161 | /**
|
---|
162 | * @return GoogleCloudRetailV2SearchRequestDynamicFacetSpec
|
---|
163 | */
|
---|
164 | public function getDynamicFacetSpec()
|
---|
165 | {
|
---|
166 | return $this->dynamicFacetSpec;
|
---|
167 | }
|
---|
168 | /**
|
---|
169 | * @param string
|
---|
170 | */
|
---|
171 | public function setEntity($entity)
|
---|
172 | {
|
---|
173 | $this->entity = $entity;
|
---|
174 | }
|
---|
175 | /**
|
---|
176 | * @return string
|
---|
177 | */
|
---|
178 | public function getEntity()
|
---|
179 | {
|
---|
180 | return $this->entity;
|
---|
181 | }
|
---|
182 | /**
|
---|
183 | * @param GoogleCloudRetailV2SearchRequestFacetSpec[]
|
---|
184 | */
|
---|
185 | public function setFacetSpecs($facetSpecs)
|
---|
186 | {
|
---|
187 | $this->facetSpecs = $facetSpecs;
|
---|
188 | }
|
---|
189 | /**
|
---|
190 | * @return GoogleCloudRetailV2SearchRequestFacetSpec[]
|
---|
191 | */
|
---|
192 | public function getFacetSpecs()
|
---|
193 | {
|
---|
194 | return $this->facetSpecs;
|
---|
195 | }
|
---|
196 | /**
|
---|
197 | * @param string
|
---|
198 | */
|
---|
199 | public function setFilter($filter)
|
---|
200 | {
|
---|
201 | $this->filter = $filter;
|
---|
202 | }
|
---|
203 | /**
|
---|
204 | * @return string
|
---|
205 | */
|
---|
206 | public function getFilter()
|
---|
207 | {
|
---|
208 | return $this->filter;
|
---|
209 | }
|
---|
210 | /**
|
---|
211 | * @param string[]
|
---|
212 | */
|
---|
213 | public function setLabels($labels)
|
---|
214 | {
|
---|
215 | $this->labels = $labels;
|
---|
216 | }
|
---|
217 | /**
|
---|
218 | * @return string[]
|
---|
219 | */
|
---|
220 | public function getLabels()
|
---|
221 | {
|
---|
222 | return $this->labels;
|
---|
223 | }
|
---|
224 | /**
|
---|
225 | * @param int
|
---|
226 | */
|
---|
227 | public function setOffset($offset)
|
---|
228 | {
|
---|
229 | $this->offset = $offset;
|
---|
230 | }
|
---|
231 | /**
|
---|
232 | * @return int
|
---|
233 | */
|
---|
234 | public function getOffset()
|
---|
235 | {
|
---|
236 | return $this->offset;
|
---|
237 | }
|
---|
238 | /**
|
---|
239 | * @param string
|
---|
240 | */
|
---|
241 | public function setOrderBy($orderBy)
|
---|
242 | {
|
---|
243 | $this->orderBy = $orderBy;
|
---|
244 | }
|
---|
245 | /**
|
---|
246 | * @return string
|
---|
247 | */
|
---|
248 | public function getOrderBy()
|
---|
249 | {
|
---|
250 | return $this->orderBy;
|
---|
251 | }
|
---|
252 | /**
|
---|
253 | * @param string[]
|
---|
254 | */
|
---|
255 | public function setPageCategories($pageCategories)
|
---|
256 | {
|
---|
257 | $this->pageCategories = $pageCategories;
|
---|
258 | }
|
---|
259 | /**
|
---|
260 | * @return string[]
|
---|
261 | */
|
---|
262 | public function getPageCategories()
|
---|
263 | {
|
---|
264 | return $this->pageCategories;
|
---|
265 | }
|
---|
266 | /**
|
---|
267 | * @param int
|
---|
268 | */
|
---|
269 | public function setPageSize($pageSize)
|
---|
270 | {
|
---|
271 | $this->pageSize = $pageSize;
|
---|
272 | }
|
---|
273 | /**
|
---|
274 | * @return int
|
---|
275 | */
|
---|
276 | public function getPageSize()
|
---|
277 | {
|
---|
278 | return $this->pageSize;
|
---|
279 | }
|
---|
280 | /**
|
---|
281 | * @param string
|
---|
282 | */
|
---|
283 | public function setPageToken($pageToken)
|
---|
284 | {
|
---|
285 | $this->pageToken = $pageToken;
|
---|
286 | }
|
---|
287 | /**
|
---|
288 | * @return string
|
---|
289 | */
|
---|
290 | public function getPageToken()
|
---|
291 | {
|
---|
292 | return $this->pageToken;
|
---|
293 | }
|
---|
294 | /**
|
---|
295 | * @param GoogleCloudRetailV2SearchRequestPersonalizationSpec
|
---|
296 | */
|
---|
297 | public function setPersonalizationSpec(GoogleCloudRetailV2SearchRequestPersonalizationSpec $personalizationSpec)
|
---|
298 | {
|
---|
299 | $this->personalizationSpec = $personalizationSpec;
|
---|
300 | }
|
---|
301 | /**
|
---|
302 | * @return GoogleCloudRetailV2SearchRequestPersonalizationSpec
|
---|
303 | */
|
---|
304 | public function getPersonalizationSpec()
|
---|
305 | {
|
---|
306 | return $this->personalizationSpec;
|
---|
307 | }
|
---|
308 | /**
|
---|
309 | * @param string
|
---|
310 | */
|
---|
311 | public function setQuery($query)
|
---|
312 | {
|
---|
313 | $this->query = $query;
|
---|
314 | }
|
---|
315 | /**
|
---|
316 | * @return string
|
---|
317 | */
|
---|
318 | public function getQuery()
|
---|
319 | {
|
---|
320 | return $this->query;
|
---|
321 | }
|
---|
322 | /**
|
---|
323 | * @param GoogleCloudRetailV2SearchRequestQueryExpansionSpec
|
---|
324 | */
|
---|
325 | public function setQueryExpansionSpec(GoogleCloudRetailV2SearchRequestQueryExpansionSpec $queryExpansionSpec)
|
---|
326 | {
|
---|
327 | $this->queryExpansionSpec = $queryExpansionSpec;
|
---|
328 | }
|
---|
329 | /**
|
---|
330 | * @return GoogleCloudRetailV2SearchRequestQueryExpansionSpec
|
---|
331 | */
|
---|
332 | public function getQueryExpansionSpec()
|
---|
333 | {
|
---|
334 | return $this->queryExpansionSpec;
|
---|
335 | }
|
---|
336 | /**
|
---|
337 | * @param string
|
---|
338 | */
|
---|
339 | public function setSearchMode($searchMode)
|
---|
340 | {
|
---|
341 | $this->searchMode = $searchMode;
|
---|
342 | }
|
---|
343 | /**
|
---|
344 | * @return string
|
---|
345 | */
|
---|
346 | public function getSearchMode()
|
---|
347 | {
|
---|
348 | return $this->searchMode;
|
---|
349 | }
|
---|
350 | /**
|
---|
351 | * @param GoogleCloudRetailV2SearchRequestSpellCorrectionSpec
|
---|
352 | */
|
---|
353 | public function setSpellCorrectionSpec(GoogleCloudRetailV2SearchRequestSpellCorrectionSpec $spellCorrectionSpec)
|
---|
354 | {
|
---|
355 | $this->spellCorrectionSpec = $spellCorrectionSpec;
|
---|
356 | }
|
---|
357 | /**
|
---|
358 | * @return GoogleCloudRetailV2SearchRequestSpellCorrectionSpec
|
---|
359 | */
|
---|
360 | public function getSpellCorrectionSpec()
|
---|
361 | {
|
---|
362 | return $this->spellCorrectionSpec;
|
---|
363 | }
|
---|
364 | /**
|
---|
365 | * @param GoogleCloudRetailV2SearchRequestTileNavigationSpec
|
---|
366 | */
|
---|
367 | public function setTileNavigationSpec(GoogleCloudRetailV2SearchRequestTileNavigationSpec $tileNavigationSpec)
|
---|
368 | {
|
---|
369 | $this->tileNavigationSpec = $tileNavigationSpec;
|
---|
370 | }
|
---|
371 | /**
|
---|
372 | * @return GoogleCloudRetailV2SearchRequestTileNavigationSpec
|
---|
373 | */
|
---|
374 | public function getTileNavigationSpec()
|
---|
375 | {
|
---|
376 | return $this->tileNavigationSpec;
|
---|
377 | }
|
---|
378 | /**
|
---|
379 | * @param GoogleCloudRetailV2UserInfo
|
---|
380 | */
|
---|
381 | public function setUserInfo(GoogleCloudRetailV2UserInfo $userInfo)
|
---|
382 | {
|
---|
383 | $this->userInfo = $userInfo;
|
---|
384 | }
|
---|
385 | /**
|
---|
386 | * @return GoogleCloudRetailV2UserInfo
|
---|
387 | */
|
---|
388 | public function getUserInfo()
|
---|
389 | {
|
---|
390 | return $this->userInfo;
|
---|
391 | }
|
---|
392 | /**
|
---|
393 | * @param string[]
|
---|
394 | */
|
---|
395 | public function setVariantRollupKeys($variantRollupKeys)
|
---|
396 | {
|
---|
397 | $this->variantRollupKeys = $variantRollupKeys;
|
---|
398 | }
|
---|
399 | /**
|
---|
400 | * @return string[]
|
---|
401 | */
|
---|
402 | public function getVariantRollupKeys()
|
---|
403 | {
|
---|
404 | return $this->variantRollupKeys;
|
---|
405 | }
|
---|
406 | /**
|
---|
407 | * @param string
|
---|
408 | */
|
---|
409 | public function setVisitorId($visitorId)
|
---|
410 | {
|
---|
411 | $this->visitorId = $visitorId;
|
---|
412 | }
|
---|
413 | /**
|
---|
414 | * @return string
|
---|
415 | */
|
---|
416 | public function getVisitorId()
|
---|
417 | {
|
---|
418 | return $this->visitorId;
|
---|
419 | }
|
---|
420 | }
|
---|
421 |
|
---|
422 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
423 | class_alias(GoogleCloudRetailV2SearchRequest::class, 'Google_Service_CloudRetail_GoogleCloudRetailV2SearchRequest');
|
---|