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
18class Google_Service_CustomSearchAPI_Search extends Google_Collection
19{
20  protected $collection_key = 'promotions';
21  public $context;
22  protected $itemsType = 'Google_Service_CustomSearchAPI_Result';
23  protected $itemsDataType = 'array';
24  public $kind;
25  protected $promotionsType = 'Google_Service_CustomSearchAPI_Promotion';
26  protected $promotionsDataType = 'array';
27  protected $queriesType = 'Google_Service_CustomSearchAPI_SearchQueries';
28  protected $queriesDataType = '';
29  protected $searchInformationType = 'Google_Service_CustomSearchAPI_SearchSearchInformation';
30  protected $searchInformationDataType = '';
31  protected $spellingType = 'Google_Service_CustomSearchAPI_SearchSpelling';
32  protected $spellingDataType = '';
33  protected $urlType = 'Google_Service_CustomSearchAPI_SearchUrl';
34  protected $urlDataType = '';
35
36  public function setContext($context)
37  {
38    $this->context = $context;
39  }
40  public function getContext()
41  {
42    return $this->context;
43  }
44  /**
45   * @param Google_Service_CustomSearchAPI_Result[]
46   */
47  public function setItems($items)
48  {
49    $this->items = $items;
50  }
51  /**
52   * @return Google_Service_CustomSearchAPI_Result[]
53   */
54  public function getItems()
55  {
56    return $this->items;
57  }
58  public function setKind($kind)
59  {
60    $this->kind = $kind;
61  }
62  public function getKind()
63  {
64    return $this->kind;
65  }
66  /**
67   * @param Google_Service_CustomSearchAPI_Promotion[]
68   */
69  public function setPromotions($promotions)
70  {
71    $this->promotions = $promotions;
72  }
73  /**
74   * @return Google_Service_CustomSearchAPI_Promotion[]
75   */
76  public function getPromotions()
77  {
78    return $this->promotions;
79  }
80  /**
81   * @param Google_Service_CustomSearchAPI_SearchQueries
82   */
83  public function setQueries(Google_Service_CustomSearchAPI_SearchQueries $queries)
84  {
85    $this->queries = $queries;
86  }
87  /**
88   * @return Google_Service_CustomSearchAPI_SearchQueries
89   */
90  public function getQueries()
91  {
92    return $this->queries;
93  }
94  /**
95   * @param Google_Service_CustomSearchAPI_SearchSearchInformation
96   */
97  public function setSearchInformation(Google_Service_CustomSearchAPI_SearchSearchInformation $searchInformation)
98  {
99    $this->searchInformation = $searchInformation;
100  }
101  /**
102   * @return Google_Service_CustomSearchAPI_SearchSearchInformation
103   */
104  public function getSearchInformation()
105  {
106    return $this->searchInformation;
107  }
108  /**
109   * @param Google_Service_CustomSearchAPI_SearchSpelling
110   */
111  public function setSpelling(Google_Service_CustomSearchAPI_SearchSpelling $spelling)
112  {
113    $this->spelling = $spelling;
114  }
115  /**
116   * @return Google_Service_CustomSearchAPI_SearchSpelling
117   */
118  public function getSpelling()
119  {
120    return $this->spelling;
121  }
122  /**
123   * @param Google_Service_CustomSearchAPI_SearchUrl
124   */
125  public function setUrl(Google_Service_CustomSearchAPI_SearchUrl $url)
126  {
127    $this->url = $url;
128  }
129  /**
130   * @return Google_Service_CustomSearchAPI_SearchUrl
131   */
132  public function getUrl()
133  {
134    return $this->url;
135  }
136}
137