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\CloudSearch; 19 20class SearchRequest extends \Google\Collection 21{ 22 protected $collection_key = 'facetOptions'; 23 protected $contextAttributesType = ContextAttribute::class; 24 protected $contextAttributesDataType = 'array'; 25 protected $dataSourceRestrictionsType = DataSourceRestriction::class; 26 protected $dataSourceRestrictionsDataType = 'array'; 27 protected $facetOptionsType = FacetOptions::class; 28 protected $facetOptionsDataType = 'array'; 29 /** 30 * @var int 31 */ 32 public $pageSize; 33 /** 34 * @var string 35 */ 36 public $query; 37 protected $queryInterpretationOptionsType = QueryInterpretationOptions::class; 38 protected $queryInterpretationOptionsDataType = ''; 39 protected $requestOptionsType = RequestOptions::class; 40 protected $requestOptionsDataType = ''; 41 protected $sortOptionsType = SortOptions::class; 42 protected $sortOptionsDataType = ''; 43 /** 44 * @var int 45 */ 46 public $start; 47 48 /** 49 * @param ContextAttribute[] 50 */ 51 public function setContextAttributes($contextAttributes) 52 { 53 $this->contextAttributes = $contextAttributes; 54 } 55 /** 56 * @return ContextAttribute[] 57 */ 58 public function getContextAttributes() 59 { 60 return $this->contextAttributes; 61 } 62 /** 63 * @param DataSourceRestriction[] 64 */ 65 public function setDataSourceRestrictions($dataSourceRestrictions) 66 { 67 $this->dataSourceRestrictions = $dataSourceRestrictions; 68 } 69 /** 70 * @return DataSourceRestriction[] 71 */ 72 public function getDataSourceRestrictions() 73 { 74 return $this->dataSourceRestrictions; 75 } 76 /** 77 * @param FacetOptions[] 78 */ 79 public function setFacetOptions($facetOptions) 80 { 81 $this->facetOptions = $facetOptions; 82 } 83 /** 84 * @return FacetOptions[] 85 */ 86 public function getFacetOptions() 87 { 88 return $this->facetOptions; 89 } 90 /** 91 * @param int 92 */ 93 public function setPageSize($pageSize) 94 { 95 $this->pageSize = $pageSize; 96 } 97 /** 98 * @return int 99 */ 100 public function getPageSize() 101 { 102 return $this->pageSize; 103 } 104 /** 105 * @param string 106 */ 107 public function setQuery($query) 108 { 109 $this->query = $query; 110 } 111 /** 112 * @return string 113 */ 114 public function getQuery() 115 { 116 return $this->query; 117 } 118 /** 119 * @param QueryInterpretationOptions 120 */ 121 public function setQueryInterpretationOptions(QueryInterpretationOptions $queryInterpretationOptions) 122 { 123 $this->queryInterpretationOptions = $queryInterpretationOptions; 124 } 125 /** 126 * @return QueryInterpretationOptions 127 */ 128 public function getQueryInterpretationOptions() 129 { 130 return $this->queryInterpretationOptions; 131 } 132 /** 133 * @param RequestOptions 134 */ 135 public function setRequestOptions(RequestOptions $requestOptions) 136 { 137 $this->requestOptions = $requestOptions; 138 } 139 /** 140 * @return RequestOptions 141 */ 142 public function getRequestOptions() 143 { 144 return $this->requestOptions; 145 } 146 /** 147 * @param SortOptions 148 */ 149 public function setSortOptions(SortOptions $sortOptions) 150 { 151 $this->sortOptions = $sortOptions; 152 } 153 /** 154 * @return SortOptions 155 */ 156 public function getSortOptions() 157 { 158 return $this->sortOptions; 159 } 160 /** 161 * @param int 162 */ 163 public function setStart($start) 164 { 165 $this->start = $start; 166 } 167 /** 168 * @return int 169 */ 170 public function getStart() 171 { 172 return $this->start; 173 } 174} 175 176// Adding a class alias for backwards compatibility with the previous class name. 177class_alias(SearchRequest::class, 'Google_Service_CloudSearch_SearchRequest'); 178