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\CustomSearchAPI; 19 20class Search extends \Google\Collection 21{ 22 protected $collection_key = 'promotions'; 23 /** 24 * @var array[] 25 */ 26 public $context; 27 protected $itemsType = Result::class; 28 protected $itemsDataType = 'array'; 29 /** 30 * @var string 31 */ 32 public $kind; 33 protected $promotionsType = Promotion::class; 34 protected $promotionsDataType = 'array'; 35 protected $queriesType = SearchQueries::class; 36 protected $queriesDataType = ''; 37 protected $searchInformationType = SearchSearchInformation::class; 38 protected $searchInformationDataType = ''; 39 protected $spellingType = SearchSpelling::class; 40 protected $spellingDataType = ''; 41 protected $urlType = SearchUrl::class; 42 protected $urlDataType = ''; 43 44 /** 45 * @param array[] 46 */ 47 public function setContext($context) 48 { 49 $this->context = $context; 50 } 51 /** 52 * @return array[] 53 */ 54 public function getContext() 55 { 56 return $this->context; 57 } 58 /** 59 * @param Result[] 60 */ 61 public function setItems($items) 62 { 63 $this->items = $items; 64 } 65 /** 66 * @return Result[] 67 */ 68 public function getItems() 69 { 70 return $this->items; 71 } 72 /** 73 * @param string 74 */ 75 public function setKind($kind) 76 { 77 $this->kind = $kind; 78 } 79 /** 80 * @return string 81 */ 82 public function getKind() 83 { 84 return $this->kind; 85 } 86 /** 87 * @param Promotion[] 88 */ 89 public function setPromotions($promotions) 90 { 91 $this->promotions = $promotions; 92 } 93 /** 94 * @return Promotion[] 95 */ 96 public function getPromotions() 97 { 98 return $this->promotions; 99 } 100 /** 101 * @param SearchQueries 102 */ 103 public function setQueries(SearchQueries $queries) 104 { 105 $this->queries = $queries; 106 } 107 /** 108 * @return SearchQueries 109 */ 110 public function getQueries() 111 { 112 return $this->queries; 113 } 114 /** 115 * @param SearchSearchInformation 116 */ 117 public function setSearchInformation(SearchSearchInformation $searchInformation) 118 { 119 $this->searchInformation = $searchInformation; 120 } 121 /** 122 * @return SearchSearchInformation 123 */ 124 public function getSearchInformation() 125 { 126 return $this->searchInformation; 127 } 128 /** 129 * @param SearchSpelling 130 */ 131 public function setSpelling(SearchSpelling $spelling) 132 { 133 $this->spelling = $spelling; 134 } 135 /** 136 * @return SearchSpelling 137 */ 138 public function getSpelling() 139 { 140 return $this->spelling; 141 } 142 /** 143 * @param SearchUrl 144 */ 145 public function setUrl(SearchUrl $url) 146 { 147 $this->url = $url; 148 } 149 /** 150 * @return SearchUrl 151 */ 152 public function getUrl() 153 { 154 return $this->url; 155 } 156} 157 158// Adding a class alias for backwards compatibility with the previous class name. 159class_alias(Search::class, 'Google_Service_CustomSearchAPI_Search'); 160