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