source: vendor/google/apiclient-services/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1alphaSearchRequest.php@ f9c482b

Last change on this file since f9c482b was f9c482b, checked in by Vlado 222039 <vlado.popovski@…>, 2 weeks ago

Upload new project files

  • Property mode set to 100644
File size: 13.9 KB
RevLine 
[f9c482b]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 GoogleCloudDiscoveryengineV1alphaSearchRequest extends \Google\Collection
21{
22 protected $collection_key = 'facetSpecs';
23 protected $boostSpecType = GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec::class;
24 protected $boostSpecDataType = '';
25 /**
26 * @var string
27 */
28 public $branch;
29 /**
30 * @var string
31 */
32 public $canonicalFilter;
33 protected $contentSearchSpecType = GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec::class;
34 protected $contentSearchSpecDataType = '';
35 protected $customFineTuningSpecType = GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec::class;
36 protected $customFineTuningSpecDataType = '';
37 protected $dataStoreSpecsType = GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec::class;
38 protected $dataStoreSpecsDataType = 'array';
39 protected $embeddingSpecType = GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec::class;
40 protected $embeddingSpecDataType = '';
41 protected $facetSpecsType = GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpec::class;
42 protected $facetSpecsDataType = 'array';
43 /**
44 * @var string
45 */
46 public $filter;
47 protected $imageQueryType = GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery::class;
48 protected $imageQueryDataType = '';
49 /**
50 * @var string
51 */
52 public $languageCode;
53 protected $naturalLanguageQueryUnderstandingSpecType = GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUnderstandingSpec::class;
54 protected $naturalLanguageQueryUnderstandingSpecDataType = '';
55 /**
56 * @var int
57 */
58 public $offset;
59 /**
60 * @var int
61 */
62 public $oneBoxPageSize;
63 /**
64 * @var string
65 */
66 public $orderBy;
67 /**
68 * @var int
69 */
70 public $pageSize;
71 /**
72 * @var string
73 */
74 public $pageToken;
75 /**
76 * @var array[]
77 */
78 public $params;
79 protected $personalizationSpecType = GoogleCloudDiscoveryengineV1alphaSearchRequestPersonalizationSpec::class;
80 protected $personalizationSpecDataType = '';
81 /**
82 * @var string
83 */
84 public $query;
85 protected $queryExpansionSpecType = GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec::class;
86 protected $queryExpansionSpecDataType = '';
87 /**
88 * @var string
89 */
90 public $rankingExpression;
91 /**
92 * @var string
93 */
94 public $regionCode;
95 /**
96 * @var string
97 */
98 public $relevanceThreshold;
99 /**
100 * @var bool
101 */
102 public $safeSearch;
103 protected $searchAsYouTypeSpecType = GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpec::class;
104 protected $searchAsYouTypeSpecDataType = '';
105 /**
106 * @var string
107 */
108 public $servingConfig;
109 /**
110 * @var string
111 */
112 public $session;
113 protected $sessionSpecType = GoogleCloudDiscoveryengineV1alphaSearchRequestSessionSpec::class;
114 protected $sessionSpecDataType = '';
115 protected $spellCorrectionSpecType = GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec::class;
116 protected $spellCorrectionSpecDataType = '';
117 protected $userInfoType = GoogleCloudDiscoveryengineV1alphaUserInfo::class;
118 protected $userInfoDataType = '';
119 /**
120 * @var string[]
121 */
122 public $userLabels;
123 /**
124 * @var string
125 */
126 public $userPseudoId;
127
128 /**
129 * @param GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec
130 */
131 public function setBoostSpec(GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec $boostSpec)
132 {
133 $this->boostSpec = $boostSpec;
134 }
135 /**
136 * @return GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec
137 */
138 public function getBoostSpec()
139 {
140 return $this->boostSpec;
141 }
142 /**
143 * @param string
144 */
145 public function setBranch($branch)
146 {
147 $this->branch = $branch;
148 }
149 /**
150 * @return string
151 */
152 public function getBranch()
153 {
154 return $this->branch;
155 }
156 /**
157 * @param string
158 */
159 public function setCanonicalFilter($canonicalFilter)
160 {
161 $this->canonicalFilter = $canonicalFilter;
162 }
163 /**
164 * @return string
165 */
166 public function getCanonicalFilter()
167 {
168 return $this->canonicalFilter;
169 }
170 /**
171 * @param GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec
172 */
173 public function setContentSearchSpec(GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec $contentSearchSpec)
174 {
175 $this->contentSearchSpec = $contentSearchSpec;
176 }
177 /**
178 * @return GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec
179 */
180 public function getContentSearchSpec()
181 {
182 return $this->contentSearchSpec;
183 }
184 /**
185 * @param GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec
186 */
187 public function setCustomFineTuningSpec(GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec $customFineTuningSpec)
188 {
189 $this->customFineTuningSpec = $customFineTuningSpec;
190 }
191 /**
192 * @return GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec
193 */
194 public function getCustomFineTuningSpec()
195 {
196 return $this->customFineTuningSpec;
197 }
198 /**
199 * @param GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec[]
200 */
201 public function setDataStoreSpecs($dataStoreSpecs)
202 {
203 $this->dataStoreSpecs = $dataStoreSpecs;
204 }
205 /**
206 * @return GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec[]
207 */
208 public function getDataStoreSpecs()
209 {
210 return $this->dataStoreSpecs;
211 }
212 /**
213 * @param GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec
214 */
215 public function setEmbeddingSpec(GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec $embeddingSpec)
216 {
217 $this->embeddingSpec = $embeddingSpec;
218 }
219 /**
220 * @return GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec
221 */
222 public function getEmbeddingSpec()
223 {
224 return $this->embeddingSpec;
225 }
226 /**
227 * @param GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpec[]
228 */
229 public function setFacetSpecs($facetSpecs)
230 {
231 $this->facetSpecs = $facetSpecs;
232 }
233 /**
234 * @return GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpec[]
235 */
236 public function getFacetSpecs()
237 {
238 return $this->facetSpecs;
239 }
240 /**
241 * @param string
242 */
243 public function setFilter($filter)
244 {
245 $this->filter = $filter;
246 }
247 /**
248 * @return string
249 */
250 public function getFilter()
251 {
252 return $this->filter;
253 }
254 /**
255 * @param GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery
256 */
257 public function setImageQuery(GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery $imageQuery)
258 {
259 $this->imageQuery = $imageQuery;
260 }
261 /**
262 * @return GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery
263 */
264 public function getImageQuery()
265 {
266 return $this->imageQuery;
267 }
268 /**
269 * @param string
270 */
271 public function setLanguageCode($languageCode)
272 {
273 $this->languageCode = $languageCode;
274 }
275 /**
276 * @return string
277 */
278 public function getLanguageCode()
279 {
280 return $this->languageCode;
281 }
282 /**
283 * @param GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUnderstandingSpec
284 */
285 public function setNaturalLanguageQueryUnderstandingSpec(GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUnderstandingSpec $naturalLanguageQueryUnderstandingSpec)
286 {
287 $this->naturalLanguageQueryUnderstandingSpec = $naturalLanguageQueryUnderstandingSpec;
288 }
289 /**
290 * @return GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUnderstandingSpec
291 */
292 public function getNaturalLanguageQueryUnderstandingSpec()
293 {
294 return $this->naturalLanguageQueryUnderstandingSpec;
295 }
296 /**
297 * @param int
298 */
299 public function setOffset($offset)
300 {
301 $this->offset = $offset;
302 }
303 /**
304 * @return int
305 */
306 public function getOffset()
307 {
308 return $this->offset;
309 }
310 /**
311 * @param int
312 */
313 public function setOneBoxPageSize($oneBoxPageSize)
314 {
315 $this->oneBoxPageSize = $oneBoxPageSize;
316 }
317 /**
318 * @return int
319 */
320 public function getOneBoxPageSize()
321 {
322 return $this->oneBoxPageSize;
323 }
324 /**
325 * @param string
326 */
327 public function setOrderBy($orderBy)
328 {
329 $this->orderBy = $orderBy;
330 }
331 /**
332 * @return string
333 */
334 public function getOrderBy()
335 {
336 return $this->orderBy;
337 }
338 /**
339 * @param int
340 */
341 public function setPageSize($pageSize)
342 {
343 $this->pageSize = $pageSize;
344 }
345 /**
346 * @return int
347 */
348 public function getPageSize()
349 {
350 return $this->pageSize;
351 }
352 /**
353 * @param string
354 */
355 public function setPageToken($pageToken)
356 {
357 $this->pageToken = $pageToken;
358 }
359 /**
360 * @return string
361 */
362 public function getPageToken()
363 {
364 return $this->pageToken;
365 }
366 /**
367 * @param array[]
368 */
369 public function setParams($params)
370 {
371 $this->params = $params;
372 }
373 /**
374 * @return array[]
375 */
376 public function getParams()
377 {
378 return $this->params;
379 }
380 /**
381 * @param GoogleCloudDiscoveryengineV1alphaSearchRequestPersonalizationSpec
382 */
383 public function setPersonalizationSpec(GoogleCloudDiscoveryengineV1alphaSearchRequestPersonalizationSpec $personalizationSpec)
384 {
385 $this->personalizationSpec = $personalizationSpec;
386 }
387 /**
388 * @return GoogleCloudDiscoveryengineV1alphaSearchRequestPersonalizationSpec
389 */
390 public function getPersonalizationSpec()
391 {
392 return $this->personalizationSpec;
393 }
394 /**
395 * @param string
396 */
397 public function setQuery($query)
398 {
399 $this->query = $query;
400 }
401 /**
402 * @return string
403 */
404 public function getQuery()
405 {
406 return $this->query;
407 }
408 /**
409 * @param GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec
410 */
411 public function setQueryExpansionSpec(GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec $queryExpansionSpec)
412 {
413 $this->queryExpansionSpec = $queryExpansionSpec;
414 }
415 /**
416 * @return GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec
417 */
418 public function getQueryExpansionSpec()
419 {
420 return $this->queryExpansionSpec;
421 }
422 /**
423 * @param string
424 */
425 public function setRankingExpression($rankingExpression)
426 {
427 $this->rankingExpression = $rankingExpression;
428 }
429 /**
430 * @return string
431 */
432 public function getRankingExpression()
433 {
434 return $this->rankingExpression;
435 }
436 /**
437 * @param string
438 */
439 public function setRegionCode($regionCode)
440 {
441 $this->regionCode = $regionCode;
442 }
443 /**
444 * @return string
445 */
446 public function getRegionCode()
447 {
448 return $this->regionCode;
449 }
450 /**
451 * @param string
452 */
453 public function setRelevanceThreshold($relevanceThreshold)
454 {
455 $this->relevanceThreshold = $relevanceThreshold;
456 }
457 /**
458 * @return string
459 */
460 public function getRelevanceThreshold()
461 {
462 return $this->relevanceThreshold;
463 }
464 /**
465 * @param bool
466 */
467 public function setSafeSearch($safeSearch)
468 {
469 $this->safeSearch = $safeSearch;
470 }
471 /**
472 * @return bool
473 */
474 public function getSafeSearch()
475 {
476 return $this->safeSearch;
477 }
478 /**
479 * @param GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpec
480 */
481 public function setSearchAsYouTypeSpec(GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpec $searchAsYouTypeSpec)
482 {
483 $this->searchAsYouTypeSpec = $searchAsYouTypeSpec;
484 }
485 /**
486 * @return GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpec
487 */
488 public function getSearchAsYouTypeSpec()
489 {
490 return $this->searchAsYouTypeSpec;
491 }
492 /**
493 * @param string
494 */
495 public function setServingConfig($servingConfig)
496 {
497 $this->servingConfig = $servingConfig;
498 }
499 /**
500 * @return string
501 */
502 public function getServingConfig()
503 {
504 return $this->servingConfig;
505 }
506 /**
507 * @param string
508 */
509 public function setSession($session)
510 {
511 $this->session = $session;
512 }
513 /**
514 * @return string
515 */
516 public function getSession()
517 {
518 return $this->session;
519 }
520 /**
521 * @param GoogleCloudDiscoveryengineV1alphaSearchRequestSessionSpec
522 */
523 public function setSessionSpec(GoogleCloudDiscoveryengineV1alphaSearchRequestSessionSpec $sessionSpec)
524 {
525 $this->sessionSpec = $sessionSpec;
526 }
527 /**
528 * @return GoogleCloudDiscoveryengineV1alphaSearchRequestSessionSpec
529 */
530 public function getSessionSpec()
531 {
532 return $this->sessionSpec;
533 }
534 /**
535 * @param GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec
536 */
537 public function setSpellCorrectionSpec(GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec $spellCorrectionSpec)
538 {
539 $this->spellCorrectionSpec = $spellCorrectionSpec;
540 }
541 /**
542 * @return GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec
543 */
544 public function getSpellCorrectionSpec()
545 {
546 return $this->spellCorrectionSpec;
547 }
548 /**
549 * @param GoogleCloudDiscoveryengineV1alphaUserInfo
550 */
551 public function setUserInfo(GoogleCloudDiscoveryengineV1alphaUserInfo $userInfo)
552 {
553 $this->userInfo = $userInfo;
554 }
555 /**
556 * @return GoogleCloudDiscoveryengineV1alphaUserInfo
557 */
558 public function getUserInfo()
559 {
560 return $this->userInfo;
561 }
562 /**
563 * @param string[]
564 */
565 public function setUserLabels($userLabels)
566 {
567 $this->userLabels = $userLabels;
568 }
569 /**
570 * @return string[]
571 */
572 public function getUserLabels()
573 {
574 return $this->userLabels;
575 }
576 /**
577 * @param string
578 */
579 public function setUserPseudoId($userPseudoId)
580 {
581 $this->userPseudoId = $userPseudoId;
582 }
583 /**
584 * @return string
585 */
586 public function getUserPseudoId()
587 {
588 return $this->userPseudoId;
589 }
590}
591
592// Adding a class alias for backwards compatibility with the previous class name.
593class_alias(GoogleCloudDiscoveryengineV1alphaSearchRequest::class, 'Google_Service_DiscoveryEngine_GoogleCloudDiscoveryengineV1alphaSearchRequest');
Note: See TracBrowser for help on using the repository browser.